Confluence search API is not providing excerpt highlight in page body or title when performing an exact phrase search containing multiple words.

XMLWordPrintable

    • 9
    • Minor
    • 1

      Issue Summary

      Confluence search API is not providing excerpt highlight in body or title when performing an exact phrase search containing multiple words.

      Steps to Reproduce

      Scenario 1:-

      1) Create a Confluence page containing a single word say "mobile".

      2) Perform a browser CQL Search for this single word.

      https://atlassiantester5.atlassian.net/wiki/rest/api/search?cql=((title%20~%20%22mobile%22)%20OR%20(text%20~%20%22mobile%22))%20AND%20space%20IN%20(CHEM)&expand=content.history.lastUpdated&limit=20

      The JSON response excerpt tag will contain below data

      hl@@@mobile@@@endhl

      Scenario 2:-

      1) Create a Confluence page containing a phrase say "mobile device".

      2) Perform a browser CQL Search for the exact phrase.

      https://xxxxx.atlassian.net/wiki/rest/api/search?cql=((title%20~%20%22%5C%22mobile%20device%5C%22%22)%20OR%20(text%20~%20%22%5C%22mobile%20device%5C%22%22))

      The JSON response excerpt tag will not highlight the search keywords.

      Expected Results

      The Confluence search API should highlight the keyword in the title or body irrespective of the type of search.

      Actual Results

      Confluence search API does not highlight when performing an exact phrase search containing multiple words.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

        1. Scenario1.png
          Scenario1.png
          726 kB
        2. Scenario2.png
          Scenario2.png
          685 kB
        3. screenshot-1.png
          screenshot-1.png
          245 kB

            Assignee:
            Saurabh Jain
            Reporter:
            Sajan M (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: