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 <[EMAIL PROTECTED]>
Date: Sat, 05 Oct 2002 10:16:02 +0530
To: Lucene Users List <[EMAIL PROTECTED]>
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 [EMAIL PROTECTED] there something wrong with the way Iquery?
> How should I get to desired results.
>    Thanks in Advance
> 
> Regards,
> Suneetha
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

-- 
__________________________________________________________
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to