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. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12589 Reviewed-by: Gusted <gusted@noreply.codeberg.org>