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

Inconsistent behavior with contains operator

    XMLWordPrintable

Details

    • 50
    • 39
    • 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

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

      Test was performed on 5.2.7 with no plugins. It was done only against the summary field.

      Test issue summary was: "Test_1234"

      1. summary ~ 'test_1234' - Full match with underscore WORKS.
      2. summary ~ 'test_123' - Partial match with underscore FAILS.
      3. summary ~ 'test_123*' - Partial match with underscore and wildcard WORKS.
      4. summary ~ 'test_' - Partial match with no trailing characters after the underscore returns many issues which do not contain an underscore, one that does "Test Test _ Test Test", but not the one we want. FAILS.
      5. summary ~ 'test_*' - Partial match with a wildcard WORKS.
      6. summary ~ 'est_1234'- Partial match with missing leading characters. FAILS.
      7. summary ~ 'est' - Partial match with missing leading characters and no underscore. FAILS.
      8. summary ~ '*est' - Leading wildcards are prohibited by the system.

      I kind of understand 6 and 7 not working because we only claim to perform "simple derivatives of that word" in https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-CONTAINS:~ but in concert with test 8, it means that you can not do any kind of mid word matching.

      Tests 2 and 4 seem to meet the requirement of "simple derivatives of that word" in that it is a string with a number of values removed from the end. How do we distinguish between test 4 failing, vs test 5 working?

      Test 4 also shows that the underscore "_" character is not being correctly handler by Lucene as it brings up a number of issues where "test" is mentioned in the summary but no underscore is present.

      Consistency in the behavior of this operator should be improved.

      Attachments

        1. CQA_CWS_VP.png
          CQA_CWS_VP.png
          98 kB
        2. CQA-1.png
          CQA-1.png
          146 kB
        3. screenshot-1.png
          screenshot-1.png
          99 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bberenberg Boris Berenberg (Inactive)
              Votes:
              167 Vote for this issue
              Watchers:
              126 Start watching this issue

              Dates

                Created:
                Updated: