Index on nested payload field? #2256
Unanswered
mymindwentblvnk
asked this question in
Q&A
Replies: 2 comments 6 replies
-
|
So the following index definition seems to work: client.create_payload_index('collection_1', field_name='top_level_attribute[].nested_attribute', field_schema='keyword')When checking the collection information, it confirms to have created an index for all points in the collection. collection_info = client.get_collection('collection_1')
assert collection_info.payload_schema['top_level_attribut[].nested_attribute'].points == number_of_points_in_collection # This is TrueBut I cannot measure any performance improvement. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
It seems it works now ( |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, do you know if it is possible to create an index on a nested payload field?
As written here (https://qdrant.tech/documentation/concepts/indexing/#payload-index), one can easily create an index on a top level field. Our payload looks like this:
{ 'id': 1, 'vector': ..., 'payload': { 'top_level_attribute': [ { 'nested_attribute': ['s1', 's2', 's3', 's4', ...], 'other_nested_attribute': 'some_string' }, { 'nested_attribute': ['s3', 's4', ...], 'other_nested_attribute': 'some_other_string' }, ] } }I want to filter on a certain string in
nested_attribute. How could I create an index on it?Beta Was this translation helpful? Give feedback.
All reactions