--- On Thu, 11/10/11, roySolr <royrutten1...@gmail.com> wrote:

> From: roySolr <royrutten1...@gmail.com>
> Subject: One field must match with edismax
> To: solr-user@lucene.apache.org
> Date: Thursday, November 10, 2011, 11:40 AM
> Hello,
> 
> I have some problems with my application. I have some
> fields and use edismax
> to search between them. Now i want to configure that one
> field must match.
> Let's give an example:
> 
> firstname  lastname     Nicknames
> Lionel       messi   
>      loe,pulga   
> 
> When i search i want only results that match on lastname
> and maybe other
> fields. So "lionel pulga" gives no results but "messi leo"
> will matched. So
> what i want is to configure that there always must be a
> match in one
> field(lastname). Is this possible? 


Hmm, how about filtering results with a filter query?

q=messi leo&fq={!edismax qf='lastname' mm='1'}messi leo

or

fq={!q.op=OR df=lastname}messi leo

Reply via email to