Hello every one. Could please somebody help me wit...
# random
a
Hello every one. Could please somebody help me with this error! It is drving me crazy, I cannot find what is wrong. I'm using python3.10.11 This is my schema
my_schema = {
'name': 'oias',
'fields': [
{'name': 'number', 'type': 'int32'},
{'name': 'id', 'type': 'string'},
{'name': 'name', 'type': 'string'},
]
]
This is an example of my jsonl
{"number": 1, "name": "name_1", "id": "A000001"}
{"number": 2, "name": "name_2", "id": "A000002"}
{"number": 3, "name": "name_3", "id": "A000003"}
{"number": 4, "name": "name_4", "id": "A000004"}
When I do the search:
search_parameters = {
'q': A000002
'query_by': 'id',
"exhaustive_search": 'true',
}
client.collections['oias'].documents.search(search_parameters)
I get this error: RequestMalformed: [Errno 400] Cannot use
id
as a query by field.
PLEASE, HELP! I would really appreciate any comment