--- On Mon, 2/28/11, mrw <mikerobertsw...@gmail.com> wrote:

> From: mrw <mikerobertsw...@gmail.com>
> Subject: Basic Dismax syntax question
> To: solr-user@lucene.apache.org
> Date: Monday, February 28, 2011, 7:41 PM
> Say I have an index with first_name
> and last_name fields, and also a copy
> field for the full name called full_name.  Say I add
> two employees:
> Napoleon Bonaparte and Napoleon Dynamite.
> 
> If I search for just the first or last name, or both names,
> with mm=1, I get
> the expected results:
> 
> q=Napoleon&defType=dismax&tie=0.1&qf=first_name%20last_name&mm=1 
>     // 2
> results
> q=Bonaparte&defType=dismax&tie=0.1&qf=first_name%20last_name&mm=1 
>    // 2
> results
> q=Napoleon%20Bonaparte&defType=dismax&tie=0.1&qf=first_name%20last_name&mm=1
> // 2 results
> 
> 
> However, if I try to search for both names with mm=2 (which
> I think means
> term1 AND term2), I get 0 results:
> 
> q=napoleon%20bonaparte&defType=dismax&tie=0.1&qf=first_name%20last_name&mm=2
>     // 0 results
> q=napoleon%20bonaparte&defType=dismax&tie=0.1&qf=full_name&mm=2 
>    // 0
> results
> 
> I also see this when I put all fields (including the copy
> field) into the qf
> parameter.

&debugQuery=on will dump useful information. What is the field types of 
first_name, last_name and full_name? 

What happens when you query first letter uppercased?

q=Napoleon%20Bonaparte&defType=dismax&tie=0.1&qf=first_name%20last_name&mm=2



     

Reply via email to