forgejo/modules/indexer
forgejo-backport-action 5c01277387 [v15.0/forgejo] fix(issue-search): single exclude query was erroneosly considered as must (#12592)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/12589

The bleve indexer included a fast path to consider a single token to be of MUST rather than should.
However, the condition missed an additional check and would erroneosly include a NOT as a MUST.

This was not spotted by the tests as such exclude queries were usually made along with another term to avoid noise.

Co-authored-by: Shiny Nematoda <snematoda.751k2@aleeas.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12592
2026-05-16 13:13:00 +02:00
..
code [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
internal refactor: replace Value() from Option[T] with Get() & ValueOrZeroValue() (#11218) 2026-02-10 16:41:21 +01:00
issues [v15.0/forgejo] fix(issue-search): single exclude query was erroneosly considered as must (#12592) 2026-05-16 13:13:00 +02:00
stats chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00