Look at your dismax definition, in solrconfig.xml. You should be able to add something like: <str name="mm">3</str>
Or, if you want to bend your mind, this is also possible (from the example file): <str name="mm">3<-1 5<-2 6<90%</str> See: http://lucene.apache.org/solr/api/org/apache/solr/util/doc-files/min-should-match.html <G>... Erick On Mon, Mar 1, 2010 at 9:04 PM, Steve Reichgut <sreich...@axtaweb.com>wrote: > Thanks Joe. That was exactly the issue. When I added 'mm=1', I got exactly > the results I was looking for. Where would I change the default value for > the 'mm' parameter? Is it in solrconfig.xml? > > Steve > > > On 3/1/2010 5:30 PM, Joe Calderon wrote: > >> what are you using for the mm parameter? if you set it to 1 only one word >> has to match, >> On 03/01/2010 05:07 PM, Steve Reichgut wrote: >> >>> ***Sorry if this was sent twice. I had connection problems here and it >>> didn't look like the first time it went out**** >>> >>> I have been testing out results for some basic queries using both the >>> Standard and DisMax query parsers. The results though aren't what I expected >>> and am wondering if I am misundertanding how the DisMax query parser works. >>> >>> For example, let's say I am doing a basic search for "Apache Solr" across >>> a single field = Field 1 using the Standard parser. My results are exactly >>> what I expected. Any document that includes either "Apache" or "Solr" or >>> "Apache Solr" in Field 1 is listed with priority given to those that include >>> both words. >>> >>> Now, if I do the same search for "Apache Solr" across multiple fields - >>> Field 1, Field 2 - using DisMax, I would expect basically the same results. >>> The results should include any document that has one or both words in Field >>> 1 or Field 2. >>> >>> When I run that query in DisMax though, it only returns the documents >>> that have BOTH words included which in my sample set only includes 1 or 2 >>> documents. I thought that, by default, DisMax should make both words >>> optional so I am confused as to why I am only getting such a small subset. >>> >>> Can anyone shed some light on what I am doing wrong or if I am >>> misunderstanding how DisMax works. >>> >>> Thanks, >>> Steve >>> >> >> >> >