Description
I have a collection, this collection has some fields which should have been made indexes. Now i want to query over these fields with filters, below is the sample code:
filter = wvc.query.Filter.by_property('loc').equal('london')
result = weaviateQuerier(class_name='XXXXX',
filters=filter,
topk=1000,
query_vector=dummyVector2,
include_metadata=True)
result
this is the error i get :
WeaviateQueryError: Query call with protocol GRPC search failed with message explorer: get class: vector search: object vector search at index âXXXXXXâ shard âxxxxxxâ_SwOVo2TQ8g38: build inverted filter allow list: nested query: nested clause at pos 1: Filtering by property âlocâ requires inverted index. Is
indexFilterable
option of property âlocâ enabled? Set it totrue
or leave empty.
Is there any way i can âsetâ these filters after schema creation (is that what error meant)?
I am new to weaviate, sorry if this is already answered somewhere, the closest answer i looked at was :
Property Modification, but seeing this error, just wanted to make sure if its the case.
Server Setup Information
- Weaviate Server Version: 1.23.7
- Deployment Method: docker
- Client Language and Version: Python, Weaviate V4
Thanks !