Michael Gibney created SOLR-16004:
-------------------------------------

             Summary: Add support for minShouldMatch and tolerateOtherTerms in 
{!terms} TermsQParserPlugin
                 Key: SOLR-16004
                 URL: https://issues.apache.org/jira/browse/SOLR-16004
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: main (10.0)
            Reporter: Michael Gibney


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|https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-set-query.html#terms-set-field-params]
 on its "Terms set query" (the latter feature -- exclusive presence -- is 
afaict not implemented).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to