mirror of
https://github.com/foomo/typesense.git
synced 2025-10-16 12:45:37 +00:00
feat: PR prepare
This commit is contained in:
parent
64cea36c6a
commit
51e1dca878
@ -18,7 +18,7 @@ import (
|
||||
// for the typesense search API without any knowledge of the typesense API
|
||||
func buildSearchParams(
|
||||
q string,
|
||||
filterBy map[string][]string, // Updated to allow multiple values per field
|
||||
filterBy map[string][]string,
|
||||
page, perPage int,
|
||||
sortBy string,
|
||||
) *api.SearchCollectionParams {
|
||||
@ -56,7 +56,7 @@ func formatFilterQuery(filterBy map[string][]string) string {
|
||||
}
|
||||
}
|
||||
|
||||
return strings.Join(filterClauses, " && ") // AND conditions by default
|
||||
return strings.Join(filterClauses, " && ")
|
||||
}
|
||||
|
||||
func (b *BaseAPI[indexDocument, returnType]) generateRevisionID() pkgtypesense.RevisionID {
|
||||
|
||||
@ -48,6 +48,7 @@ func (c ContentServer[indexDocument]) Provide(
|
||||
|
||||
uriMap, err := c.contentserverClient.GetURIs(ctx, string(indexID), ids)
|
||||
if err != nil {
|
||||
c.l.Error("failed to get URIs", zap.Error(err))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user