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

Make Elasticsearch hints an extension point

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Elasticsearch
    • Upgrade notes:
      Hide

      Elasticsearch hints are now exposed as extension point. To contribute or override an existing Elasticsearch hint, you should provide a name for your Elasticsearch hint and an implementation of org.nuxeo.elasticsearch.api. ESHintQueryBuilder.

      For more details on how we contribute, see the JIRA comment and documentation.

      Show
      Elasticsearch hints are now exposed as extension point. To contribute or override an existing Elasticsearch hint, you should provide a name for your Elasticsearch hint and an implementation of org.nuxeo.elasticsearch.api. ESHintQueryBuilder. For more details on how we contribute, see the JIRA comment and documentation.
    • Sprint:
      nxfit 11.1.6, nxfit 11.1.7
    • Story Points:
      5

      Description

      This would make the feature more useful as each query type has parameters which today can't be used.

      Each hint would have a name and a class that implement the same java interface with one method that takes the 3 parameter (field, analyzer and value) and returns the resulting ES query object.

      Example: the match query has a fuzziness parameter which cannot be used today. But it could be in a custom hint

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 5 hours, 20 minutes
                  3d 5h 20m