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

JQL search containing underscores doesn't always return correct results when indexing language is set to 'English - Aggressive Stemming'

XMLWordPrintable

      Status Update June 14, 2024

      Hi everyone,

      Thank you for reporting this issue. Our engineers confirmed this problem is specific to Jira sites using English - Aggressive stemming as their indexing language. Fixing this problem would require us to change the underlying tokenization performed by Apache Lucene, which is not trivial and may introduce impact to other text searches.

      For that reason, and given the widespread impact of this bug is limited, we will not be prioritising this bug at this time. In the meantime, we have updated the documentation under Search for issues using the text field to recommend using Moderate or Minimal stemming modes instead.

      Please don't hesitate to leave a comment on this ticket if you continue to be impacted by this bug and the workaround isn't satisfactory, and we will consider your feedback.

      Regards,
      Weronika Cabaj
      Software Engineer

       Issue Summary

      When performing a JQL search on a site with "English - Aggressive Stemming", or Dutch as the indexing language, this can sometimes fail to retrieve the correct results when the search term contains an underscore (_).

      Steps to Reproduce

      1. Create an issue with the title goodservices_happy
      2. Set the site's indexing language to "English - Aggressive Stemming"
      3. Search for JQL summary ~ "goodservices_happy"

      Expected Results

      The Jira issue is returned.

      Actual Results

      The Jira issue is not returned.

      Workaround

      Set the stemming language to English - Moderate Stemming.

      Alternatively, use the JQL exact phrase search instead, e.g.  summary ~ "\"goodservices_happy\"" OR remove the underscore, e.g. summary ~ "goodservices happy".

              c0203fad96e0 Dominik Kaliszewski
              9cd37cdfcb63 Jacqui Shadforth
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: