lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Kothiyal" <ravikothi...@mail.com>
Subject Re: Is Like Search Possible ?
Date Mon, 07 Oct 2002 04:24:45 GMT
Dear Suneetha,
As far as I know the lucene is not case sensitive.

Are you storing the Domain also as a field in the index . If yes than you can refine your
query as "toAddress:abc* AND Domain:xyz.com"

Otherwise you can refine it using fuzzy search.
"toAddress:abc* AND toAddress:@xyz.com~"

Hope this will help You

Regards

Ravi


----- Original Message -----
From: Suneetha Rao <suneethad@india.adventnet.com>
Date: Sat, 05 Oct 2002 13:01:48 +0530
To: Lucene Users List <lucene-user@jakarta.apache.org>
Subject: Re: Is Like Search Possible ?


> Dear Ravi,
>                 Thanks for ur help but my problem is not solved  yet. I have indexed
the field ToAddress.
> I'm able to get results if I search for  (toAddress:abc*)  it gives me all mailids starting
with abc
> but I want it to search for in the domain how do I do it ??
>             Also I've found it does not return any results when I query for (toAddress:Abc).
> If Lucene is not case sensitive  why doesen't  it give me results.
> 
> Regards,
> Suneetha
> 
> Ravi Kothiyal wrote:
> 
> > Dear Suneetha,
> > visit http://jakarta.apache.org/lucene/docs/queryparsersyntax.html
> > for the syntax about query. But this is for basic html search. But I think if you
want to search through email's ToAddress field, You have a create an index which stores the
toAddress than only you can retereve the search for toAddress.
> >
> > Hope this will help you
> >
> > Regards
> > Ravi
> >
> > ----- Original Message -----
> > From: Suneetha Rao <suneethad@india.adventnet.com>
> > Date: Sat, 05 Oct 2002 10:16:02 +0530
> > To: Lucene Users List <lucene-user@jakarta.apache.org>
> > Subject: Is Like Search Possible ?
> >
> > > Hi,
> > >         I've used lucene and indexed the whole database where I savd the
> > > mail headers
> > > and some files where I saved the mail contents.I would like to to a
> > > search on email
> > > ids.I'm using a Boolean Query to retirive results and is using the
> > > StandardAnalyzer.
> > > How do I translate the SQL Statement
> > >             SELECT * FROM <tableName> where TOADDRESS LIKE '%infy%' ;
> > > I  tried   the query  +(toAddress:infy*) but it does  does not retrieve
> > > any results.
> > > I basically want to retrieve all records that have the toAddress
> > > like abc@infy.com.Is there something wrong with the way Iquery?
> > > How should I get to desired results.
> > >    Thanks in Advance
> > >
> > > Regards,
> > > Suneetha
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
> > >
> > >
> >
> > --
> > __________________________________________________________
> > Sign-up for your own FREE Personalized E-mail at Mail.com
> > http://www.mail.com/?sr=signup
> >
> > "Free price comparison tool gives you the best prices and cash back!"
> > http://www.bestbuyfinder.com/download.htm
> >
> > --
> > To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
> 
> 

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

"Free price comparison tool gives you the best prices and cash back!"
http://www.bestbuyfinder.com/download.htm


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message