lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jilal Oussama <jilal.ouss...@gmail.com>
Subject Re: Query with whitespace
Date Fri, 01 Mar 2013 20:50:27 GMT
You can also specify in you schema that the default query operator is AND.
On Mar 1, 2013 5:35 PM, "Jack Park" <jackpark@topicquests.org> wrote:

> I found a tiny notice about just using quotes; tried it in the admin
> query console and it works. e.g. label:"car house" would fetch any
> document for which the label field contained that phrase.
>
> Jack
>
> On Fri, Mar 1, 2013 at 9:17 AM, Shawn Heisey <solr@elyograg.org> wrote:
> > On 3/1/2013 8:50 AM, vsl wrote:
> >>
> >> I would like to send query like "car house". My expectation is to have
> >> resulting documents that contains both car and house. Unfortunately
> Apache
> >> Solr out of the box returns documents as if the whitespace between was
> >> treated as OR. Does anybody know how to fix this?
> >
> >
> > Three solutions come to mind: 1) Set the q.op parameter to AND.  2) Send
> > "car AND house" instead, or "+car +house".  3) Use the edismax query
> parser
> > (defType=edismax) and set the mm parameter to 100%.  The wiki should have
> > info on all these.
> >
> > Thanks,
> > Shawn
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message