Kevin
08/27/2021, 7:14 PMquery_by=title,description,keywords
), I get the expected result, but when I separate them out (query_by=title&query_by=description&query_by=keywords
), i get no results. I suspect it is related to the (string[]
) field keyword, but can't figure out how to fix as the non-working query is the one that the python lib is calling
https://${url}:443/collections/${collection-name}/documents/search?q=banana&query_by=title,description,keywords
//expected result
https://${url}:443/collections/${collection-name}/documents/search?q=banana&query_by=title&query_by=description&query_by=keywords
//no results
Jason Bosco
08/27/2021, 7:18 PMKevin
08/27/2021, 7:20 PMsearch_parameters = {
'q': 'python',
'query_by': ['title', 'description', 'keywords']
}
res = client.collections[COLLECTION_NAME].documents.search(search_parameters)
Jason Bosco
08/27/2021, 7:29 PMKevin
08/27/2021, 7:30 PM'query_by': ['title', 'description', 'keywords']
-> 'query_by': 'title,description,keywords'
Kevin
08/27/2021, 7:32 PM'query_by': ','.join(['title', 'description', 'keywords'])
Kevin
08/27/2021, 7:32 PM