You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Uwe Schindler <uw...@thetaphi.de> on 2009/04/08 16:53:21 UTC
RE: How can I change that lucene use by default the AND operator between terms ???
The query parser has a option to change that. After creating the query
parser, just set the corresponding option before parsing the query.
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Ariel [mailto:isaacrc82@gmail.com]
> Sent: Wednesday, April 08, 2009 4:46 PM
> To: lucene user
> Subject: How can I change that lucene use by default the AND operator
> between terms ???
>
> When I do a search using lucene internally lucene use by default the OR
> operator between terms, How can I change that lucene use by default the
> AND
> operator between terms ???
>
> Regards
> Ariel
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: How can I change that lucene use by default the AND operator
between terms ???
Posted by 王巍巍 <ww...@gmail.com>.
call method of QueryParser
setDefaultOperator
2009/4/8 Uwe Schindler <uw...@thetaphi.de>
> The query parser has a option to change that. After creating the query
> parser, just set the corresponding option before parsing the query.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
> > -----Original Message-----
> > From: Ariel [mailto:isaacrc82@gmail.com]
> > Sent: Wednesday, April 08, 2009 4:46 PM
> > To: lucene user
> > Subject: How can I change that lucene use by default the AND operator
> > between terms ???
> >
> > When I do a search using lucene internally lucene use by default the OR
> > operator between terms, How can I change that lucene use by default the
> > AND
> > operator between terms ???
> >
> > Regards
> > Ariel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
--
王巍巍(Weiwei Wang)
Department of Computer Science
Gulou Campus of Nanjing University
Nanjing, P.R.China, 210093
Mobile: 86-13913310569
MSN: ww.wang.cs@gmail.com
Homepage: http://cs.nju.edu.cn/rl/weiweiwang