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
          7 kB
          Torge Schmidt
        2. searchResult.JPG
          26 kB
          Arie Murdianto

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

            Bugfix Automation Bot made changes -
            Support reference count Original: 6 New: 7
            Bugfix Automation Bot made changes -
            Support reference count Original: 7 New: 6
            Bugfix Automation Bot made changes -
            Support reference count Original: 4 New: 7
            Bugfix Automation Bot made changes -
            Support reference count Original: 7 New: 4
            Bugfix Automation Bot made changes -
            Support reference count Original: 5 New: 7
            Bugfix Automation Bot made changes -
            Support reference count Original: 7 New: 5
            Bugfix Automation Bot made changes -
            Support reference count Original: 5 New: 7
            Bugfix Automation Bot made changes -
            Support reference count Original: 7 New: 5
            Monique Khairuliana (Inactive) made changes -
            Description Original: h1. Summary
            h2. 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.

            h2. 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.

            h2. Steps to reproduce
            h3. Symptom A
            # Create a page with the following text:
            bq. This is a built-in functionality that excites many users. We built it ourselves years ago.
            # Search Confluence for the keyword {{built-in}}.

            h3. Symptom B
            # Create a page (A) with the following text:
            bq. This would fall under external-services
            # Create a page (B) with the following:
            bq. This is external to the company
            # Create a page (C) with the following:
            bq. This is a list of services
            # Search Confluence for the keyword {{external-services}}

            h2. Expected Results
            h3. Symptom A
            The search results should return the page above with the word "built-in" bolded.
            bq. This is a *built-in* functionality that excites many users. We built it ourselves years ago.

            h3. Symptom B
            Search results would only show page A

            h2. Actual Results
            h3. Symptom A
            The search results returns the page above with the word "built" bolded and the dash is removed from the word "built-in".
            bq. This is a builtin functionality that excites many users. We *built* it ourselves years ago.

            h3. Symptom B
            Seach results match on pages B and C
            New: h1. Summary
            h2. 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.
            h2. 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.
            h2. Steps to reproduce
            h3. Symptom A
             # Create a page with the following text:
            {quote}This is a built-in functionality that excites many users. We built it ourselves years ago.
            {quote}
             # Search Confluence for the keyword {{built-in}}.

            h3. Symptom B
             # Create a page (A) with the following text:
            {quote}This would fall under external-services
            {quote}
             # Create a page (B) with the following:
            {quote}This is external to the company
            {quote}
             # Create a page (C) with the following:
            {quote}This is a list of services
            {quote}
             # Search Confluence for the keyword {{external-services}}

            h2. Expected Results
            h3. Symptom A

            The search results should return the page above with the word "built-in" bolded.
            {quote}This is a *built-in* functionality that excites many users. We built it ourselves years ago.
            {quote}
            h3. Symptom B

            Search results would only show page A
            h2. Actual Results
            h3. Symptom A

            The search results returns the page above with the word "built" bolded and the dash is removed from the word "built-in".
            {quote}This is a builtin functionality that excites many users. We *built* it ourselves years ago.
            {quote}
            h3. Symptom B

            Search results match on pages B and C
            Bugfix Automation Bot made changes -
            Support reference count Original: 5 New: 7

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

                Created:
                Updated: