Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7888

Make Lucene's AnalyzingInfixSuggester.lookup() method that takes a BooleanQuery filter parameter available in Solr

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.4, 6.0
    • Component/s: Suggester
    • Labels:
      None

      Description

      LUCENE-6464 has introduced a very flexible lookup method that takes as parameter a BooleanQuery that is used for filtering results.

      This ticket is to expose that method to Solr.

      This would allow user to do:

      /suggest?suggest=true&suggest.build=true&suggest.q=term&suggest.contextFilterQuery=contexts:tennis
      
      /suggest?suggest=true&suggest.build=true&suggest.q=term&suggest.contextFilterQuery=contexts:golf AND contexts:football
      

      etc

      Given that the context filtering in currently only implemented by the

      AnalyzingInfixSuggester

      and by the

      BlendedInfixSuggester

      , this initial implementation will support only these 2 lookup implementations.

        Attachments

        1. SOLR-7888.patch
          37 kB
          Arcadius Ahouansou
        2. SOLR-7888.patch
          38 kB
          Jan Høydahl
        3. SOLR-7888-7963.patch
          52 kB
          Arcadius Ahouansou

          Issue Links

            Activity

              People

              • Assignee:
                janhoy Jan Høydahl
                Reporter:
                arcadius Arcadius Ahouansou
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: