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

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

            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

            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

            Paul Mason added a comment -

            I'm impacted by this bug as well. I'm trying to make a knowledge base for storing my teams troubleshooting documentation, and this bug severely complicated that process (I'm using tags to separate retired and approved documents so that any tech is able to search retired documents instead of having to use inherited page permissions). The operation in the live search excerpt dropdown is an OR operation: 'approved OR preliminary' labels, and in the full search page (after hitting enter) the results are an AND operation: 'approved AND preliminary' labels. This is a fundamental bug that will possibly break my ability to leverage confluence on this task. I may need to make recommendations for using a competitor instead.

            Paul Mason added a comment - I'm impacted by this bug as well. I'm trying to make a knowledge base for storing my teams troubleshooting documentation, and this bug severely complicated that process (I'm using tags to separate retired and approved documents so that any tech is able to search retired documents instead of having to use inherited page permissions). The operation in the live search excerpt dropdown is an OR operation: 'approved OR preliminary' labels, and in the full search page (after hitting enter) the results are an AND operation: 'approved AND preliminary' labels. This is a fundamental bug that will possibly break my ability to leverage confluence on this task. I may need to make recommendations for using a competitor instead.

            Oliver Sommermann added a comment - - edited

            This bug affects me as well, as I can't tell my users to check if a page already exists before they are creating it. It's been open for almost 6 years?! Can confirm that this also affects Server.

            Oliver Sommermann added a comment - - edited This bug affects me as well, as I can't tell my users to check if a page already exists before they are creating it. It's been open for almost 6 years?! Can confirm that this also affects Server.

            We need this for our knowledge base as well so it's easier to search by topic. The Confluence Cloud search is not powerful enough to get good results without it. A knowledge base should help resolve issues more easily, not create more (search) effort for customers and the support team.

            Almuth Boehme [Communardo] added a comment - We need this for our knowledge base as well so it's easier to search by topic. The Confluence Cloud search is not powerful enough to get good results without it. A knowledge base should help resolve issues more easily, not create more (search) effort for customers and the support team.

            Same feeling than Martin, I need this for my KB and cannot use the livesearch for it.

            Jérôme Wymann added a comment - Same feeling than Martin, I need this for my KB and cannot use the livesearch for it.

            2 years open and not fixed, this is really sad.

            This affects the server version as well!

            Martin Papproth added a comment - 2 years open and not fixed, this is really sad. This affects the server version as well!

            This is bullshit, fix this fucking thing. IT'S PART OF CONFLUENCE AND IT IS A SEARCH MACRO. Can you get any more factory than that? Jesus.

            Brendan McDevitt added a comment - This is bullshit, fix this fucking thing. IT'S PART OF CONFLUENCE AND IT IS A SEARCH MACRO. Can you get any more factory than that? Jesus.

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

                Created:
                Updated:
                Resolved: