fix(typesense): getting all data from typesense
This commit is contained in:
parent
98102e59f2
commit
c217233e08
@ -374,11 +374,14 @@ func (t *typesenseTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task,
|
|||||||
Q: opts.search,
|
Q: opts.search,
|
||||||
QueryBy: "title, identifier, description, comments.comment",
|
QueryBy: "title, identifier, description, comments.comment",
|
||||||
Page: pointer.Int(opts.page),
|
Page: pointer.Int(opts.page),
|
||||||
PerPage: pointer.Int(opts.perPage),
|
|
||||||
ExhaustiveSearch: pointer.True(),
|
ExhaustiveSearch: pointer.True(),
|
||||||
FilterBy: pointer.String(strings.Join(filterBy, " && ")),
|
FilterBy: pointer.String(strings.Join(filterBy, " && ")),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if opts.perPage > 0 {
|
||||||
|
params.PerPage = pointer.Int(opts.perPage)
|
||||||
|
}
|
||||||
|
|
||||||
if sortby != "" {
|
if sortby != "" {
|
||||||
params.SortBy = pointer.String(sortby)
|
params.SortBy = pointer.String(sortby)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user