Closed leapoly closed 1 month ago
If I omit the field QueryBy doing a search in a single collection (because I'm using a preset), NewSearchCollectionRequest generates an empty query_by and it's wrong. This field should be omitted in the query.
QueryBy
NewSearchCollectionRequest
query_by
Example:
"https://.....typesense.net:443/collections/Name/documents/search?include_fields=id&page=1&per_page=100&preset=Preset&q=test&query_by="
Don't include QueryBy
Don't add query_by= in the GET.
query_by=
If I use the MultiSearch, it works
It adds query_by= in the GET
Typesense Version: typesense-go v1.1.0
OS: Mac
Fixed in https://github.com/typesense/typesense-go/pull/174
Description
If I omit the field
QueryBy
doing a search in a single collection (because I'm using a preset),NewSearchCollectionRequest
generates an emptyquery_by
and it's wrong. This field should be omitted in the query.Example:
"https://.....typesense.net:443/collections/Name/documents/search?include_fields=id&page=1&per_page=100&preset=Preset&q=test&query_by="
Steps to reproduce
Don't include
QueryBy
Expected Behavior
Don't add
query_by=
in the GET.If I use the MultiSearch, it works
Actual Behavior
It adds
query_by=
in the GETMetadata
Typesense Version: typesense-go v1.1.0
OS: Mac