Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-53716

Livesearch macro issues on search

    XMLWordPrintable

Details

    Description

      Summary

      When using the Livesearch macro of Confluence restricted by 2 or more labels and Space, if you hit enter after typing your words or click on See more results for: you get different results.

      When you hit enter, the macro will get as results only pages where the 2 or more labels are matched, although when you are typing the words on the Livesearch bar, the results suggested are not the ones you get when hit enter.

      Analysing the URL you will be able to see that when you hit enter the macro validates if all 2 or more labels are available on one page, although the preview of the results displays pages where just 1 of the labels are on the page, no need for all labels be matched. Although if you click on "See more results for:" when you are typing your search, the macro shows exactly the results that are expected as shown in the preview.

      URL when hitting enter:

      https://pece.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+%22custom%22+and+space+%3D+%22TEST1%22+and+label+%3D+%22test%22+and+label+%3D+%22report%22+and+label+%3D+%22label%22&queryString=custom

      It's almost like two different searches. When changing the URL, replacing all the "and" for "or", it worked.

      Environment

      Cloud
      Confluence 1000.241.0

      Steps to Reproduce

      1. Add the Livesearch to a page
      2. Restrict it to the space you are working
      3. Restrict it using 3 labels
      4. Create 1 page with the first label and the word "test"
      5. Create 1 page with the second label and the word "test"
      6. Create 1 page with the third label and the word "test"
      7. Create 1 page with all labels and the word "test"
      8. Try to search on the live search for test
      9. Hit enter on the keyboard
      10. Click on the search button to display the URL
      11. Return to the livesearch page, to the same search and click on "See more results for:"

      Expected Results

      In both cases, the macro should have the same behaviour, search for all labels, or separately.

      Actual Results

      Shows nothing when hitting enter

      Workaround

      Click on "See more results for:"

      Attachments

        Issue Links

          Activity

            People

              gmartin Glenn Martin
              pmiguel Paulo Miguel (Inactive)
              Votes:
              27 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: