Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-15039

Refactor Elasticsearch Page Provider

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.5
    • Fix Version/s: 6.0
    • Component/s: Elasticsearch

      Description

      There are 2 page providers in nuxeo-elasticsearch:

      • The native page provider which was written first and that impl all the predicate logic and parameter escaping.
      • The NXQL page provider which just extend native page provider and uses a NXQL to ES converter for the fixed part.

      Because we now have an NXQL to ES converter, it will be easier to extend CoreQueryDocumentPageProvider to get the NXQL and use the converter.

      This will remove code duplication.

      Also instead of having 2 page providers we can add an ad hoc predicate to submit native ES query syntax.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: