Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6702

[suggest] Make Context Query and Field extensible

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 5.3, 6.0
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      ContextSuggestField indexes context information along with
      suggestions, which can be used to filter and/or boost suggestions using
      ContextQuery.
      It would be useful to make ContextSuggestField extensible such that subclasses
      can inject context values at index-time, without having to specify the
      contexts in its ctor.
      ContextQuery can be made extensible by allowing sub-classes to override
      how context automaton is created from provided query contexts.
      Currently, ContextQuery uses a context value of "*" to consider all context values,
      It makes sense to have a dedicated addAllContexts() instead.

        Attachments

        1. LUCENE-6702.patch
          20 kB
          Areek Zillur
        2. LUCENE-6702.patch
          20 kB
          Areek Zillur

          Activity

            People

            • Assignee:
              areek Areek Zillur
              Reporter:
              areek Areek Zillur
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: