feat: PR prepare

This commit is contained in:
Miroslav Cvetic 2025-03-06 09:55:45 +01:00
parent 64cea36c6a
commit 51e1dca878
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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
}