Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-13672

Better searching when stemming is in place. Improve Lucene QueryParser to perform analysis on prefixed queries.

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Currently the default using of "Porter" stemming means that certain search phrases do not return results that the user might expect.

      For example if the issue summary is "Moose problems" then the default stemming will cause "moos" to be stored in the index.

      If the user then enters a search request for "Moose" then no match will be made. The reason is that the Lucene QueryParser code does NOT perform analysis on "Prefix" queries by default.

      Hence a PrefixQuery for the term "moose" is submitted and the index doent contain this terms and hence no issue is returned.

      The improvement would be to tweak QueryParser so that it does perform "analysis" on prefix queries. So the term "moose" would be stemmed to "moos" and then the Prefix Query would return the expected results.

        1. Lucene-JIRA+search.doc
          45 kB
          Brian Riedinger

            Unassigned Unassigned
            bbaker ɹǝʞɐq pɐɹq
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: