Jack, I mis-stated the problem , I am not using the OR operator as default now(now that I think about it it does not make sense to use the default operator OR along with the mm parameter) , the reason I want to use pf and mm in conjunction is because of my understanding of the edismax parser and I have not looked into pf2 and pf3 parameters yet.
I will state my understanding here below. Pf - Is used to boost the result score if the complete phrase matches. mm <(less than) search term length would help limit the query results to a certain number of better matches. With that being said would it make sense to have dynamic mm (set to the length of search term - 1)? I also have a question around using a fuzzy search along with eDismax parser , but I will ask that in a seperate post once I go thru that aspect of eDismax parser. Thanks again ! On Sun, Mar 30, 2014 at 6:44 PM, Jack Krupansky <j...@basetechnology.com>wrote: > If you use pf, pf2, and pf3 and boost appropriately, the effects of mm > will be dwarfed. > > The general goal is to assure that the top documents really are the best, > not to necessarily limit the total document count. Focusing on the latter > could be a real waste of time. > > It's still not clear why or how you need or want to use OR as the default > operator - you still haven't given us a use case for that. > > To repeat: Give us a full set of use cases before taking this XY Problem > approach of pursuing a solution before the problem is understood. > > -- Jack Krupansky > > -----Original Message----- From: S.L > Sent: Sunday, March 30, 2014 6:14 PM > To: solr-user@lucene.apache.org > Subject: Re: eDismax parser and the mm parameter > > Jacks Thanks Again, > > I am searching Chinese medicine documents , as the example I gave earlier > a user can search for "Ginseng" or Siberian Ginseng or Red Siberian Ginseng > , I certainly want to use pf parameter (which is not driven by mm > parameter) , however for giving higher score to documents that have more of > the terms I want to use edismax now if I give a mm of 3 and the search term > is of only length 1 (like "Ginseng") what does edisMax do ? > > > On Sun, Mar 30, 2014 at 1:21 PM, Jack Krupansky <j...@basetechnology.com> > wrote: > > It still depends on your objective - which you haven't told us yet. Show >> us some use cases and detail what your expectations are for each use case. >> >> The edismax phrase boosting is probably a lot more useful than messing >> around with mm. Take a look at pf, pf2, and pf3. >> >> See: >> http://wiki.apache.org/solr/ExtendedDisMax >> https://cwiki.apache.org/confluence/display/solr/The+ >> Extended+DisMax+Query+Parser >> >> The focus on mm may indeed be a classic "XY Problem" - a premature focus >> on a solution without detailing the problem. >> >> -- Jack Krupansky >> >> -----Original Message----- From: S.L >> Sent: Sunday, March 30, 2014 11:18 AM >> To: solr-user@lucene.apache.org >> Subject: Re: eDismax parser and the mm parameter >> >> Thanks Jack! I understand the intent of mm parameter, my question is that >> since the query terms being provided are not of fixed length I do not know >> what the mm should like for example "Ginseng","Siberian Ginseng" are my >> search terms. The first one can have an mm upto 1 and the second one can >> have an mm of upto 2 . >> >> Should I dynamically set the mm based on the number of search terms in my >> query ? >> >> Thanks again. >> >> >> On Sun, Mar 30, 2014 at 5:20 AM, Jack Krupansky <j...@basetechnology.com> >> wrote: >> >> 1. Yes, the default for mm is 1. >> >>> >>> 2. It depends on what you are really trying to do - you haven't told us. >>> >>> Generally, mm=1 is equivalent to q.op=OR, and mm=100% is equivalent to >>> q.op=AND. >>> >>> Generally, use q.op unless you really know what you are doing. >>> >>> Generally, the intent of mm is to set the minimum number of OR/SHOULD >>> clauses that must match on the top level of a query. >>> >>> -- Jack Krupansky >>> >>> -----Original Message----- From: S.L >>> Sent: Sunday, March 30, 2014 2:25 AM >>> To: solr-user@lucene.apache.org >>> Subject: eDismax parser and the mm parameter >>> >>> Hi All, >>> >>> I am planning to use the eDismax query parser in SOLR to give boost to >>> documents that have a phrase in their fields present. Now there is a mm >>> parameter in the edismax parser query , since the query typed by the user >>> could be of any length (i.e. >=1) I would like to set the mm value to 1 . >>> I >>> have the following questions regarding this parameter. >>> >>> 1. Is it set to 1 by default ? >>> 2. In my schema.xml the defaultOperator is set to "AND" should I set it >>> to "OR" inorder for the edismax parser to be effective with a mm of 1? >>> >>> >>> Thanks in advance! >>> >>> >>> >> >