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

JcrSearchResultSupplier not considering NodeType constraint in query

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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