[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    Re: Basic Dismax syntax question
From:       mrw <mikerobertswork () gmail ! com>
Date:       2011-02-28 19:13:43
Message-ID: 1298920423017-2597510.post () n3 ! nabble ! com
[Download RAW message or body]

Fields are str type.

The issue happens regardless of case.  I just threw in some examples using
names to highlight the issue.  In the actual index, the data is the affected
fields is all LC, and I'm searching in LC.  

Sounds like the syntax looks okay to you? 


Thanks


iorixxx wrote:
> 
> 
> --- On Mon, 2/28/11, mrw <mikerobertswork@gmail.com> wrote:
> 
> > From: mrw <mikerobertswork@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
> 
> 
> 
> 
> 
> 


-- 
View this message in context: \
http://lucene.472066.n3.nabble.com/Different-behavior-for-q-goo-com-vs-q-goo-com-in-queries-tp2168935p2597510.html
 Sent from the Solr - User mailing list archive at Nabble.com.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic