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

[suggest] Make Context Query and Field extensible

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0
    • 5.3, 6.0
    • core/other
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: