Uploaded image for project: 'Periscope'
  1. Periscope
  2. MGNLPER-134

JcrSearchResultSupplier not considering NodeType constraint in query

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2.2
    • 1.2.1
    • Maintenance 14
    • 3

    Description

      The JcrSearchResultSupplierDefinition allows the specification of a NodeType constraint.

      However this constraint is not considered in the construction of the JCR Query in info.magnolia.periscope.search.jcr.JcrSearchResultSupplier. Even though the method runQuery(...) contains code to create this constraint, it is not part of the final query.
      Only after the query has been executed, the result is being filtered by the specified NodeTypes.

      Depending on the size of the queried workspace this may result in substantially longer query times and performance issues.
      In our case the website workspace contains around 45,000 nodes. The initial query without the NodeType constraint took around 10 - 15 seconds, as the supplier queried for [nt:base] instead of [mgnl:page]

      Please make the NodeType constraint part of the constructed query.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ajuran Antonín Juran
                soenke.schmidt Sönke Schmidt
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1.5d
                      1.5d