lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jianbin Dai <djian...@yahoo.com>
Subject Re: how to do exact serch with solrj
Date Sun, 31 May 2009 06:52:31 GMT

That's correct! Thanks Avlesh.

--- On Sat, 5/30/09, Avlesh Singh <avlesh@gmail.com> wrote:

> From: Avlesh Singh <avlesh@gmail.com>
> Subject: Re: how to do exact serch with solrj
> To: solr-user@lucene.apache.org
> Date: Saturday, May 30, 2009, 11:45 PM
> You need exact match for all the
> three tokens?
> If yes, try query.setQuery("title:\"hello the world\"");
> 
> Cheers
> Avlesh
> 
> On Sun, May 31, 2009 at 12:12 PM, Jianbin Dai <djianbin@yahoo.com>
> wrote:
> 
> >
> > I tried, but seems it's not working right.
> >
> > --- On Sat, 5/30/09, Avlesh Singh <avlesh@gmail.com>
> wrote:
> >
> > > From: Avlesh Singh <avlesh@gmail.com>
> > > Subject: Re: how to do exact serch with solrj
> > > To: solr-user@lucene.apache.org
> > > Date: Saturday, May 30, 2009, 10:56 PM
> > > query.setQuery("title:hello the
> > > world") is what you need.
> > >
> > > Cheers
> > > Avlesh
> > >
> > > On Sun, May 31, 2009 at 6:23 AM, Jianbin Dai
> <djianbin@yahoo.com>
> > > wrote:
> > >
> > > >
> > > > Hi,
> > > >
> > > > I want to search "hello the world" in the
> "title"
> > > field using solrj. I set
> > > > the query filter
> > > > query.addFilterQuery("title");
> > > > query.setQuery("hello the world");
> > > >
> > > > but it returns not exact match results as
> well.
> > > >
> > > > I know one way to do it is to set "title"
> field to
> > > string instead of text.
> > > > But is there any way i can do it? If I do
> the search
> > > through web interface
> > > > Solr Admin by title:"hello the world", it
> returns
> > > exact matches.
> > > >
> > > > Thanks.
> > > >
> > > > JB
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> 


      

Mime
View raw message