On Wed, Apr 29, 2009 at 9:15 PM, Umar Shah <u...@wisdomtap.com> wrote:
> can anyone explan the behavior of function query if there are other > terms in the query > > it seems the value of the function query and actual match score are > interfering in some manner. what should be expected? > > Yes, if you include a term in the q field, it is scored according to the tf-idf based lucene scoring. The example in the wiki is incorrect I guess, it should have used a filter query. You can see how the query is parsed using debugQuery=on. My guess is that q=field:value _val_:5 is being evaluated as an or between the term query and the function query. That is why documents matching the term query are ranked higher due to the tf-idf score. -- Regards, Shalin Shekhar Mangar.