1
0

fix(deps): update module github.com/typesense/typesense-go to v2

(cherry picked from commit c54181eeda593ab0c06e4358802d442338ffa5bf)
This commit is contained in:
kolaente
2024-09-19 14:02:43 +02:00
parent b1c4f0c216
commit 96835f6a28
5 changed files with 11 additions and 59 deletions

View File

@ -25,9 +25,9 @@ import (
"code.vikunja.io/api/pkg/db"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/web"
"github.com/typesense/typesense-go/typesense/api"
"github.com/typesense/typesense-go/typesense/api/pointer"
"github.com/typesense/typesense-go/v2/typesense/api"
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
"xorm.io/builder"
"xorm.io/xorm"
"xorm.io/xorm/schemas"
@ -565,8 +565,8 @@ func (t *typesenseTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task,
}
params := &api.SearchCollectionParams{
Q: opts.search,
QueryBy: "title, identifier, description, comments.comment",
Q: pointer.String(opts.search),
QueryBy: pointer.String("title, identifier, description, comments.comment"),
Page: pointer.Int(opts.page),
ExhaustiveSearch: pointer.True(),
FilterBy: pointer.String(strings.Join(filterBy, " && ")),

View File

@ -36,7 +36,7 @@ import (
"github.com/google/uuid"
clone "github.com/huandu/go-clone/generic"
"github.com/jinzhu/copier"
"github.com/typesense/typesense-go/typesense"
"github.com/typesense/typesense-go/v2/typesense"
"xorm.io/builder"
"xorm.io/xorm"
)

View File

@ -27,9 +27,9 @@ import (
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/user"
"github.com/typesense/typesense-go/typesense"
"github.com/typesense/typesense-go/typesense/api"
"github.com/typesense/typesense-go/typesense/api/pointer"
"github.com/typesense/typesense-go/v2/typesense"
"github.com/typesense/typesense-go/v2/typesense/api"
"github.com/typesense/typesense-go/v2/typesense/api/pointer"
"xorm.io/xorm"
)