Closed
Description
- Gitea version (or commit ref): 1.9
- Git version: any
- Operating system: any
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
When searching for multiple terms in a repository, the indexer can only 'see' the combinations where the terms first occur in a document. For example, consider the following text:
I like apples.
Hey, apples are nice.
- Searching for any
I
,like
,apples
,hey
,are
ornice
, Gitea returns the document correctly. - Searching for
I like
,like apples
,apples hey
andare nice
, work too. - Searching for
hey apples
orapples are
fails, becauseapples
already appears in the document associated withlike
andhey
.
I don't know what causes this behaviour, but it does not happen with the issues search, so it's probably not a bug in Bleve.
I'll try to look into this when I have some time.