Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-769

Confluence search results should include content added to page via the {include} and {excerpt-include} macros

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      To improve Confluence's search, please provide an option to resolve all

      {include}

      and

      {excerpt-include}

      macro content before Confluence indexes whole page content.

      Problem

      When Confluence indexes page content for searches, it doesn't resolve the content of these inclusions into the page first. Hence, when the user attempts to search for a page based on a term that's actually part of an inclusion's content, then the page that 'hosts' the inclusion will not show up in the search results.

      As far as the user is concerned, those terms are on the page when they view it. It's not until the user looks at the page's Wiki Markup when they'll realise that the content is only being referenced via an inclusion macro (and why the search didn't retrieve the 'host' page).

      It's often more useful to see the names/titles of these 'host' pages in search results, rather than those of the actual 'inclusion pages' themselves, since 'inclusion pages' (and titles) are typically out of context.

      Solution

      To improve Confluence's search efficacy, Confluence could provide an admin console option to makes it resolve the content of all {include} and {excerpt-include} macros first, before it indexes the whole page content.

      If Confluence could resolve all inclusions before indexing whole page content, this will provide the following benefits:

      • If a user searches for text contained within {include} or {excerpt-include} macros, the names (and links) of pages that include this content will appear in the search results, rather than just the 'inclusion pages' further down the list of search results.

      • If a space uses the new 'Documentation Theme' and a user searches for text contained within {include} or {excerpt-include} macros using the search box in the TOC column (for example, any one of our product documentation spaces on CAC), the pages that include this content will appear in the search results, rather than not at all.

        Why would these searches show no results?

        The Documentation Theme requires a 'root page' within the space (from which the TOC is generated) to be set. When you start viewing pages within the space, the search box in the TOC column (by design) will only search pages contained within the 'root page' hierarchy. 'Inclusion pages', however, are typically kept outside this hierarchy to prevent them appearing in the TOC. Hence, if you use this Documentation Theme search box to look for terms contained within an 'inclusion page', you're likely to get no results.

            [AI-769] Confluence search results should include content added to page via the {include} and {excerpt-include} macros

            Bump - still an issue

            Michael Taylor added a comment - Bump - still an issue

            Unfortunately, the ticket is not assigned. One would need to advertise this request on the general Community Boards to gather more votes to gain attention/traction

            Candace Chi-Tsunozaki added a comment - Unfortunately, the ticket is not assigned. One would need to advertise this request on the general Community Boards to gather more votes to gain attention/traction

            Angela L. added a comment - - edited

            Any chance of Atlassian actually doing something about this issue? We need this to work as expected.

            Angela L. added a comment - - edited Any chance of Atlassian actually doing something about this issue? We need this to work as expected.

            Rémi Paquette added a comment - - edited

            This comment also apply for cloud version of Confluence, this is a MUST for our documentation where re-used content using page includes is all over the place. The searchability is usless currently.

             

             

             

            Rémi Paquette added a comment - - edited This comment also apply for cloud version of Confluence, this is a MUST for our documentation where re-used content using page includes is all over the place. The searchability is usless currently.      

            actually all macro content (like github markdown import) should be able to be searchable. Seems best via caching?

            Maarten Van Wauwe added a comment - actually all macro content (like github markdown import) should be able to be searchable. Seems best via caching?

            +1 - this would be a very handy feature for the REST API to control via an additional parameter to include or not include "included content" inside the search result

            Oliver Boeck added a comment - +1 - this would be a very handy feature for the REST API to control via an additional parameter to include or not include "included content" inside the search result

            +1 - this would be very useful for my current projects 

            Jack Michel added a comment - +1 - this would be very useful for my current projects 

            John Thomas added a comment - - edited

            Sooo any chance of this happening? It'd be great to be able to search for content that is displayed on an included page

            John Thomas added a comment - - edited Sooo any chance of this happening? It'd be great to be able to search for content that is displayed on an included page

            michelle.beasley added a comment - - edited

            We need to make this feature happen. What is the point of search if it cannot find the final result?

            michelle.beasley added a comment - - edited We need to make this feature happen. What is the point of search if it cannot find the final result?

            Very disapointed this isn't fixed yet. Come on Atlassian!

            Tom Birch Hansen added a comment - Very disapointed this isn't fixed yet. Come on Atlassian!

              Unassigned Unassigned
              ggaskell Giles Gaskell [Atlassian]
              Votes:
              152 Vote for this issue
              Watchers:
              83 Start watching this issue

                Created:
                Updated: