Minimum match and phrase slop

Influence search relevancy by using minimum match and phrase slop.


Minimum match

Specifies the number of search keywords required to match the indexed document, when the ANY search type is used. A number denotes the number of query keywords to match. A number that is formulated with a percentage denotes that a percentage of the query keywords must match.

For more information about the specification format, see Minimum Number Specification Format.

For more information about setting values within the component configuration file, see Changing properties in the component configuration file (wc-component.xml). Depending on the length of the query sent to Solr, minMatch calculates the minimum number of terms that must match before products are returned. For example, if shopper's search query contains 6 terms, the following values might be used:

Note: If you use minimum match, IBM recommends enabling the runtime query expansion algorithm. This algorithm is primarily used with minimum match and search term associations; however, we can also enable the algorithm regardless of the search features that the site uses. Multiple-word search results are improved because the query is enclosed within parentheses and the query length is better controlled. See Combining minimum match with search term associations (using the query-time expansion algorithm).


Phrase slop

Specifies how far apart the indexed search terms are in the document to influence relevancy. Phrase slop defines the amount of slop on phrase queries that are built for phrase fields.

For example, if you set a phrase slop of 1 for the red shirt search term then red shirt is more relevant than red striped long sleeve shirt.


Related tasks
Tuning multiple-word search result relevancy by using minimum match and phrase slop
Combining minimum match and search term associations