Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo indexer multi-term search is broken #7825

Closed
5 of 7 tasks
guillep2k opened this issue Aug 11, 2019 · 1 comment · Fixed by #7878
Closed
5 of 7 tasks

Repo indexer multi-term search is broken #7825

guillep2k opened this issue Aug 11, 2019 · 1 comment · Fixed by #7878
Labels

Comments

@guillep2k
Copy link
Member

  • 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 or nice, Gitea returns the document correctly.
  • Searching for I like, like apples, apples hey and are nice, work too.
  • Searching for hey apples or apples are fails, because apples already appears in the document associated with like and hey.

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.

@guillep2k
Copy link
Member Author

Closed by #7878

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants