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

Add support for minShouldMatch and tolerateOtherTerms in {!terms} TermsQParserPlugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • main (10.0)
    • None
    • query parsers
    • None

    Description

      In Solr, the TermsQParser considers a match if any term in a doc/field matches. It can be useful in some contexts (e.g., access control, etc.) to require that a certain threshold of terms match, or to require exclusive presence of enumerated terms (i.e., place a limit on the number of terms that exist in a document that have not been explicitly enumerated in the query).

      As a point of comparison, Elasticsearch implements the former feature as the minimum_should_match_field param on its "Terms set query" (the latter feature – exclusive presence – is afaict not implemented).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              magibney Michael Gibney
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h