You should perform a PhraseQuery on the required field.
Meaning, http://your-solr-host:port:/your-core-path/select?q=fieldName:"Hello
how are you sushan" would work for you.

Cheers
Avlesh

2009/7/28 Gérard Dupont <ger.dup...@gmail.com>

> Hi Sushan,
>
> I'm not an expert of Solr, just beginner, but it appears to me that you
>  may
> have default 'OR' combinaison fo keywords so that will explain this
> behavior. Try to modify the configuration for an 'AND' combinaison.
>
> cheers
>
> On Tue, Jul 28, 2009 at 16:49, Sushan Rungta <s...@clickindia.com> wrote:
>
> > I am extremely sorry for responding late as I was ill from past few days.
> >
> > My problem is explained below with an example:
> >
> > I am having three documents with following list:
> >
> > 1. Hello how are you
> > 2. Hello how are you sushan
> > 3. Hello how are you sushan. I am fine.
> >
> > When I search for a query "Hello how are you sushan", I should only get
> > document 2 in my result.
> >
> > I hope this will give you all a better insight in my problem.
> >
> > regards,
> >
> > Sushan Rungta
> >
>
>
>
> --
> Gérard Dupont
> Information Processing Control and Cognition (IPCC) - EADS DS
> http://weblab-project.org
>
> Document & Learning team - LITIS Laboratory
>

Reply via email to