: do any one know how to make sure minimum match in dismax is working? i : change the values and try doing solrCtl restart indexname but i don't : see it taking into effect. any body have an idea on this?
use debugQuery=true, and then look at the parsedquery ... it can be somewhat confusing if you aren't use to it, but for simple testing: don't use a pf, bf, or bq, set qf to a single field, and set tie=0 using the example configs a url like this... http://localhost:8983/solr/select/?tie=0&pf=&bq=&bf=&q=first+second+third&qt=dismax&qf=text&mm=50%25&debugQuery=true produces... +((DisjunctionMaxQuery((text:first)) DisjunctionMaxQuery((text:second)) DisjunctionMaxQuery((text:third)))~1) () ...that ~1 is the result of computing 50% of 3 rounded down. if i change it to 70%... http://localhost:8983/solr/select/?tie=0&pf=&bq=&bf=&q=first+second+third&qt=dismax&qf=text&mm=70%25&debugQuery=true ...i get... +((DisjunctionMaxQuery((text:first)) DisjunctionMaxQuery((text:second)) DisjunctionMaxQuery((text:third)))~2) () ...etc. One thing to watch out for is that the "~X" syntax only shows you the minNrShouldMath value for boolean queries. for phrase queries it shows you the slop value, and for the individual DisjunctionMaxQueries it shows you the tie breaker value (hence blanking out all those params keeps it simpler and easier to spot the mm value getting used) -Hoss