On 10/5/2011 1:01 AM, elisabeth benoit wrote:
Hello,
I'd like to be able to know programmaticaly what value mm was set to for one
request (to avoid having to parse the query, identify stopwords, calculate
mm based on solrconfig.xml). Is there a way to get mm value in solr
response?
To supplement the other answers you've gotten:
If you set echoParams to all, either on the URL or in the solrconfig.xml
request handler definition, each request should give you whatever value
of mm is used, along with all the other parameters, which might be
useful information. If mm is not present in the response when you do
this, then it probably was not specified anywhere. That would indicate
that it is set to the default, 100%.
http://wiki.apache.org/solr/CoreQueryParameters#echoParams
http://wiki.apache.org/solr/DisMaxQParserPlugin#mm_.28Minimum_.27Should.27_Match.29
Thanks,
Shawn