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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.2.1
    • 5.4, 6.0
    • Suggester
    • 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-7963.patch
          52 kB
          Arcadius Ahouansou
        2. SOLR-7888.patch
          38 kB
          Jan Høydahl
        3. SOLR-7888.patch
          37 kB
          Arcadius Ahouansou

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              arcadius Arcadius Ahouansou
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: