Joe
Joe

Reputation: 93

dismax solr request handler MM , PS and Q.ALT

I'm testing the dismax requesthandler , im trying to customize the mm ( Minimum Match ) Parameter ( i already looked at the documentation )

 <str name="mm">
 2<-2 3<-70% 5<-50%  
 </str>
 <int name="ps">100</int>
 <str name="q.alt">*:*</str>

I have 3 Questions :

Can you provide me some advise for the best configuration of DisMax ?

Thank you !

Upvotes: 8

Views: 4402

Answers (1)

Karl Johansson
Karl Johansson

Reputation: 1751

1: Your string would translate to

1-2 terms: match all terms
3 terms: total number of terms - 2 must match (i.e. 1 term must match :)
4-5 terms: 70% of the terms must match 
6+ terms: 50% of the terms must match

mm-string to achieve your requirement would be

2<%70 4<%50

A very good resource for mm strings can be found here.

2: The pf parameter is used to boost document relevance based on query terms occurring in close proximity of each other (as opposed to being scattered all over the document).

3: The q.alt parameter is used as a fallback query for cases when the client did not provide any search terms. In my interpretation, it is meant for use if you don't do any client-side query processing/transformation, but there could be other practical uses for it.

Upvotes: 10

Related Questions