Skip to content

Support search qualifiers  #8386

Open
Open
@davidsvantesson

Description

@davidsvantesson
  • Gitea version (or commit ref): 1.10.0+dev-375-g8a828500e

Description

Gitea should support search qualifiers when searching for repositories, issues, PRs or users. This would allow more flexible options when searching.

Example when searching for repos:
topic:
is:private
is:public
owner:name

Search qualifiers shall always be AND search terms (in contrast to text search which is OR).

Note: Gitea has divided search terms by comma and not space so this example:
"sentence of words,topic:mytopic,separate sentance"
would search for repositories where "sentence of words" OR "separate sentance" is in the name or description AND has the topic "mytopic".

Maybe this can be solved by indexing with bleve and using required and exclusion of fields:
https://blevesearch.com/docs/Query-String-Query/

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions