Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-20129

Implement AND as default operator in JIRA search

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      If you search in JIRA for 'keyword1 keyword2' JIRA will treat is as 'keyword1 OR keyword2' and display more results than if you search only for 'keyword1'.

      This is because Lucene's default operator is OR.

      You can easily switch the default operator, making Lucene work exactly like Google does: the more you enter in the query field, the narrower is the results list, by including this single line into the code that does the search:

      QueryParser parser = new QueryParser(DocumentBuilder.ALL, analyzer);
      parser.setDefaultOperator(QueryParser.AND_OPERATOR);
      

      Please consider doing it in JIRA. It will improve JIRA search significantly, at a very small cost.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              24bb72cfa340 Michal Szklanowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: