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

Impossible to distinguish between a space and an underscore in a search query

      We just started using Jira here (3.11). We have thousands of commonly used terms
      in our company that have underscores in them and so a high percentage of our search
      queries will contain underscores. It is currently impossible for us to do these searches in
      Jira.

      Jira seems to treat the underscore character to be identical to a space character.
      For instance if I want to do a search that will match all words that start with "abc_",
      I get the following results.

      Search for:
      abc_
      Matches:
      abc_def (correct)
      abc_hij (correct)
      abc klm (wrong)
      abc def (wrong)

      Search for:
      "abc_"
      Matches:
      abc_def (correct)
      abc_hij (correct)
      abc klm (wrong)
      abc def (wrong)

      Search for:
      "abc_def"
      Matches:
      abc_def (correct)
      abc def (wrong)

      Search for:
      "abc def"
      Matches:
      abc_def (wrong)
      abc def (correct)

      I looked at the Lucene documentation, but underscore is not one of their reserved
      characters, so it appears that this behavior is coming from somewhere inside Jira.

            [JRASERVER-14641] Impossible to distinguish between a space and an underscore in a search query

            Bugfix Automation Bot made changes -
            Minimum Version New: 3.11
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2845507 ] New: JAC Bug Workflow v3 [ 2918458 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2584942 ] New: JAC Bug Workflow v2 [ 2845507 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1544112 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2584942 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels Original: hedge matching New: affects-server hedge matching
            Oswaldo Hernandez (Inactive) made changes -
            Component/s New: Infrastructure & Services - Indexing [ 43408 ]
            Component/s Original: Filtering & Indexing [Deprecated] [ 10231 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 679890 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1544112 ]
            Oswaldo Hernandez (Inactive) made changes -
            Fix Version/s New: 6.2.3 [ 38499 ]
            Resolution New: Obsolete [ 11 ]
            Status Original: Verified [ 10005 ] New: Resolved [ 5 ]
            Ben Magro (Inactive) made changes -
            Labels Original: matching New: hedge matching
            Andy Nguyen (Inactive) made changes -
            Link New: This issue is related to JRA-41724 [ JRA-41724 ]

              Unassigned Unassigned
              3f85ab128771 G B
              Affected customers:
              36 This affects my team
              Watchers:
              31 Start watching this issue

                Created:
                Updated:
                Resolved: