thanks for answering. echoParams just echos mm value in solrconfig.xml (in my case mm = 4<-1 6<-2), not the actual value of mm for one particular request.
I think would be very useful to be able to know which mm value was effectively used, in particular for request with stopwords. It's of course possible to calculate mm in my own code, but this would necessitate to be synchronize with mm default value in solrconfig.xml + with stopwords.txt + identifying all stopwords in request. Best regards, Elisabeth 2011/10/5 Shawn Heisey <s...@elyograg.org> > 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/CoreQueryParameters#echoParams> > http://wiki.apache.org/solr/**DisMaxQParserPlugin#mm_.** > 28Minimum_.27Should.27_Match.**29<http://wiki.apache.org/solr/DisMaxQParserPlugin#mm_.28Minimum_.27Should.27_Match.29> > > Thanks, > Shawn > >