>
> No, phrase query would match docs 2 and 3. Sushan only wantsdoc 2 as I read
> it.
>
Sorry, my bad. I did not read properly before replying.

Cheers
Avlesh

On Wed, Jul 29, 2009 at 3:23 AM, Erick Erickson <erickerick...@gmail.com>wrote:

> No, phrase query would match docs 2 and 3. Sushan only wantsdoc 2 as I read
> it.
>
> You might have some joy with KeywordAnalyzer, which does
> not break the incoming stream up into tokens. You have to be
> careful, though, because it also won't fold the case, so 'Hello'
> would not match 'hello'.
>
> Best
> Erick
>
> On Tue, Jul 28, 2009 at 11:11 AM, Avlesh Singh <avl...@gmail.com> wrote:
>
> > 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