Summary

      Symptom A

      When searching for a dashed word, the dash character does not appear in the search results and the hit is not highlighted, making the recognition of the desired result difficult.

      Symptom B

      Dashes can also be treated as spaces and result in matching the individual words joined by the dash. A search for external-services would have matches for pages with just the individual words external and services.

      Steps to reproduce

      Symptom A

      1. Create a page with the following text:

        This is a built-in functionality that excites many users. We built it ourselves years ago.

      2. Search Confluence for the keyword built-in.

      Symptom B

      1. Create a page (A) with the following text:

        This would fall under external-services

      2. Create a page (B) with the following:

        This is external to the company

      3. Create a page (C) with the following:

        This is a list of services

      4. Search Confluence for the keyword external-services

      Expected Results

      Symptom A

      The search results should return the page above with the word "built-in" bolded.

      This is a built-in functionality that excites many users. We built it ourselves years ago.

      Symptom B

      Search results would only show page A

      Actual Results

      Symptom A

      The search results returns the page above with the word "built" bolded and the dash is removed from the word "built-in".

      This is a builtin functionality that excites many users. We built it ourselves years ago.

      Symptom B

      Search results match on pages B and C

        1. screenshot-1.jpg
          screenshot-1.jpg
          7 kB
        2. searchResult.JPG
          searchResult.JPG
          26 kB

            [CONFSERVER-13396] Using dashes in Confluence searches causes inaccurate results

            Still a problem in 2024....

            viktor.safar added a comment - Still a problem in 2024....

            Just wanted to add to Martin's comment, that the version we're running is 6.7.2.

            Martin Hansen added a comment - Just wanted to add to Martin's comment, that the version we're running is 6.7.2.

            Martin Lie added a comment -

            Thanks for the explaination - we have big difficulties in finding our controlled documents (medical device) by using Jira+Confluence, and searching for documents in Confluence with designated Jira IDs (typical: DOC-1234 names).

            We thought a re-index of our large Confluence installation would solve the issue, and planned an upgrade at the same time a few weeks ago - to no avail! 

            Our IT staff found, by Atlassian help, that this is actually a bug.

            The bug is beginning to be a showstopper for our future use of Jira+Confluence - and I am not happy that this is a known bug approaching 10 years of age!! We are using a lot of money and effort on Atlassian products, and it would be a shame if the bug is not closed.

            Martin Lie added a comment - Thanks for the explaination - we have big difficulties in finding our controlled documents (medical device) by using Jira+Confluence, and searching for documents in Confluence with designated Jira IDs (typical: DOC-1234 names). We thought a re-index of our large Confluence installation would solve the issue, and planned an upgrade at the same time a few weeks ago - to no avail!  Our IT staff found, by Atlassian help, that this is actually a bug. The bug is beginning to be a showstopper for our future use of Jira+Confluence - and I am not happy that this is a known bug approaching 10 years of age!! We are using a lot of money and effort on Atlassian products, and it would be a shame if the bug is not closed.

            Unfortunatelly this is still an issue in confluence 4.1.
            Dashes are deleted in the resultlist of a search.

            e.g
            Text on page contains abc-def
            Excerpt shows "abcdef"

            Andreas Ketelhut added a comment - Unfortunatelly this is still an issue in confluence 4.1. Dashes are deleted in the resultlist of a search. e.g Text on page contains abc-def Excerpt shows "abcdef"

            The same issue exists with the excerpt of the space info on the dashboard, see screenshot. The text of the excerpt actually reads
            "Information from IRC-IT to..." with a dash!

            Torge Schmidt added a comment - The same issue exists with the excerpt of the space info on the dashboard, see screenshot. The text of the excerpt actually reads "Information from IRC-IT to..." with a dash!

              Unassigned Unassigned
              amurdianto Arie Murdianto
              Affected customers:
              7 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated: