Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-25

As a user, I can search for content in nested areas and components

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 5.2
    • workbench

      Background info:

      • We want to be able to find content not only at page level but in components nested in areas and sub-areas
      • We do not want to use JCR_SQL2 joins between page nodes and their descendants in searches b/c they are too slow

      The solution to the above problems is to use JR indexing configuration, in particular aggregate indexing. http://wiki.apache.org/jackrabbit/IndexingConfiguration
      This works out pretty well in terms of speed however it returns more results than what one expects.

      To reproduce in demo-project:

      The term we searched for is actually present in page /demo-project/about/subsection-articles/article namely in a component (named 0) found in the sub-area /extras/extras1. So, the first hit (the article page) is correct, whereas the second one (the subsection-articles page) is not.

      Trying with text only present in the same page in a component under the content area would instead return 3 hits!

      • /demo-project/about/subsection-articles/article (the correct one)
      • /demo-project/about/subsection-articles
      • /demo-project/about

      This might possibly have to do with this JR issue https://issues.apache.org/jira/browse/JCR-2947

        Acceptance criteria

              Unassigned Unassigned
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD