mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-13 00:45:25 +02:00
Meilisearch indexer support for searching issues with any assignee
This commit is contained in:
parent
f7faab1ac4
commit
8f6f6306f8
@ -186,7 +186,9 @@ func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (
|
||||
query.And(inner_meilisearch.NewFilterEq("poster_id", options.PosterID.Value()))
|
||||
}
|
||||
|
||||
if options.AssigneeID.Has() {
|
||||
if options.AnyAssigneeOnly {
|
||||
query.And(inner_meilisearch.NewFilterGte("assignee_id", 1))
|
||||
} else if options.AssigneeID.Has() {
|
||||
query.And(inner_meilisearch.NewFilterEq("assignee_id", options.AssigneeID.Value()))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user