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:"

            [CONFCLOUD-53716] Livesearch macro issues on search

            Rebekkah Dorhout made changes -
            Labels Original: affects-cloud cc-platform confirmed-bug New: RIBS-SHORT affects-cloud cc-platform confirmed-bug
            Andrew Dildy (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            Support reference count Original: 9 New: 10
            Anna Zakharevych made changes -
            Labels Original: NMI14 affects-cloud cc-platform New: affects-cloud cc-platform confirmed-bug
            Anna Zakharevych made changes -
            Labels Original: affects-cloud cc-platform New: NMI14 affects-cloud cc-platform
            SET Analytics Bot made changes -
            Support reference count Original: 8 New: 9
            Aniket Bhosale made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 652309 ]
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            SET Analytics Bot made changes -
            UIS Original: 0 New: 1
            SET Analytics Bot made changes -
            UIS Original: 17 New: 0

              gmartin Glenn Martin (Inactive)
              pmiguel Paulo Miguel (Inactive)
              Affected customers:
              27 This affects my team
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: