i'm not very sure of what are your needs, but if queryparser don't suit them, you can always construct the query programatically.
On 5/8/08, Sudhanya Chatterjee <[EMAIL PROTECTED]> wrote: > Hi, > > > > In our application we are adding multiple fields to lucene document while > indexing. > > Analyzer used is StandardAnalyzer. > > Few fields are tokenized and few untokenized. > > While searching QueryParser returns proper results for fields which are > tokenized and not for untokenized. > > We also need to support AND , OR operators in search phrase. > > With QueryParser these operators are supported. > > For untokenized fields the queries are created using phraseQuery. > > We need to support AND OR operators for all fields. > > How to achieve this? > > > > Thanks, > > Sudhanya > > > DISCLAIMER > ========== > This e-mail may contain privileged and confidential information which is the > property of Persistent Systems Ltd. It is intended only for the use of the > individual or entity to which it is addressed. If you are not the intended > recipient, you are not authorized to read, retain, copy, print, distribute > or use this message. If you have received this communication in error, > please notify the sender and delete all copies of this message. Persistent > Systems Ltd. does not accept any liability for virus infected mails. >