Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-893

Issue when using CQL and with the 'CONTAINS' operator '~' and a wild-card ' * '

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • XP - Content Search
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      An example would be to search for a space called Getting Started using the space.title attribute. This is important to check for this particular space name!
      The endpoint is: wiki/rest/api/search?cql=type=space and space.title ~ "G*" 

      When starting searching by getting the first letter and wildcard start "G*" or "Ge*" or "Get*" it returns space data.
      Unpredictable things start if you add another letter like "Gett*" it doesn't return space data, the same situation with "Getti*" , "Gettin*" and "Getting*"
      If you add the next letter from the name off space {{"Getting* " }}  then again the result is correct - API returns a space data.

      It should be something with the keyword Get, even if you specify "Get" without wildcard it returns space data!

      Steps to Reproduce

      1. Execute wiki/rest/api/search?cql=type=space and space.title ~ "Get*" - it works
      2. Execute wiki/rest/api/search?cql=type=space and space.title ~ "Gett*" - it doesn't works

      Expected Results

      It should return space data for every combination with * as a wildcard, like: "G*""Ge*""Get*", "Gett*", "Gettin*", ...

      Actual Results

      Unpredictable results for queries containing the keyword Get in their space.title.

      Workaround

      THere is no known workaround.

            [AI-893] Issue when using CQL and with the 'CONTAINS' operator '~' and a wild-card ' * '

            There are no comments yet on this issue.

              nmcginley nmcginley
              61fc5024cfea Mirek Sztuba (Inactive)
              Affected customers:
              3 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated: