Should I index an array field in the payload and filter searches by it? #4816
diegoanvilla
started this conversation in
General
Replies: 1 comment
-
This should be fine, as long as you create a proper payload index on the specific key that would contain the array of values. Then you can use a simple match filter. Note that if you search without a vector (using scroll) it will not be able to use any HNSW index. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am seeking to implement a search functionality that filters results based on an array field in the payload. The payload would contain values such as [11145, 1158, 2458...], and the search would typically involve a single value from the array. However, I am uncertain if this approach is optimal, particularly in light of the fact that as more data is uploaded, it may lead to slower service speeds and increased resource consumption.
Beta Was this translation helpful? Give feedback.
All reactions