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 ]

            The livesearch macro and advanced search now use the same query, and the results are consistent.

            Specifically regarding labels, this means if you add two or more labels to your search, the results will match content that is labelled by any one or more of the labels (an OR search on labels).

            Andrew Dildy (Inactive) added a comment - The livesearch macro and advanced search now use the same query, and the results are consistent. Specifically regarding labels, this means if you add two or more labels to your search, the results will match content that is labelled by any one or more of the labels (an OR search on labels).
            SET Analytics Bot made changes -
            Support reference count Original: 9 New: 10

            Hi a016bebe2eb4,
            I changed status for this bug to confirmed bug for further investigation and bug fix.

            Best,
            Anna

            Anna Zakharevych added a comment - Hi a016bebe2eb4 , I changed status for this bug to confirmed bug for further investigation and bug fix. Best, Anna
            Anna Zakharevych made changes -
            Labels Original: NMI14 affects-cloud cc-platform New: affects-cloud cc-platform confirmed-bug

            Paul Mason added a comment - - edited

            Within my personal space I have a page titled 'Test Troubleshooting KB' for use as a homepage for the test KB. Beneath this homepage I have 9 pages that were all created using a lightly modified troubleshooting article template (Modified to add a graphic, some additional text sections and tags). On the homepage, I have a Livesearch widget restricted to @self space key, restricted to labels 'preliminary, approved', size medium, no placeholder text, all content types, and additional info: page excerpt. Five of the sub-articles have the tag 'preliminary', none of the subarticles have the tag 'approved'. 

            Replication given above settings:
            Typing 'preliminary' into the livesearch entry field results in 5 results within the additional info dropdown.
            Hitting enter or clicking the search button takes me to the full search results with the error: "No results found for preliminary. Please try one of the following suggestions:..."

            The settings for this full search: "In space: (my personal space's name)" any date, all content, "Label: approved", "Label: preliminary".

            Of note is that the two labels are listed separately. If I instead remove both of them and create the filter: "Label: approved, preliminary" I get all the expected results.

             

             

            Paul Mason added a comment - - edited Within my personal space I have a page titled 'Test Troubleshooting KB' for use as a homepage for the test KB. Beneath this homepage I have 9 pages that were all created using a lightly modified troubleshooting article template (Modified to add a graphic, some additional text sections and tags). On the homepage, I have a Livesearch widget restricted to @self space key, restricted to labels 'preliminary, approved', size medium, no placeholder text, all content types, and additional info: page excerpt. Five of the sub-articles have the tag 'preliminary', none of the subarticles have the tag 'approved'.  Replication given above settings: Typing 'preliminary' into the livesearch entry field results in 5 results within the additional info dropdown. Hitting enter or clicking the search button takes me to the full search results with the error: "No results found for preliminary. Please try one of the following suggestions:..." The settings for this full search: "In space: (my personal space's name)" any date, all content, "Label: approved", "Label: preliminary". Of note is that the two labels are listed separately. If I instead remove both of them and create the filter: "Label: approved, preliminary" I get all the expected results.    

            Hi everyone,

            This is Anna from the Confluence team. Thank you for raising this bug and bringing it to our attention. After our investigation into this issue, we weren’t able to reproduce the described behavior within our instances.
            We would like to get to the root cause of what you’re experiencing. Could you provide some more details or a screenshot to help us narrow down this case?

            We will keep this issue open for another 14 days, but if we don’t hear back by then we will need to close this out to focus on our upcoming roadmap for all Confluence users.

            Best,

            Anna

            Anna Zakharevych added a comment - Hi everyone, This is Anna from the Confluence team. Thank you for raising this bug and bringing it to our attention. After our investigation into this issue, we weren’t able to reproduce the described behavior within our instances. We would like to get to the root cause of what you’re experiencing. Could you provide some more details or a screenshot to help us narrow down this case? We will keep this issue open for another 14 days, but if we don’t hear back by then we will need to close this out to focus on our upcoming roadmap for all Confluence users. Best, Anna
            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

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

                Created:
                Updated:
                Resolved: