As Ian says, but you can set the default to AND or OR, see the API docs. The 'out of the box' default is OR.
See QueryParser.setDefaultOperator Best Erick On Tue, Aug 19, 2008 at 4:30 AM, Ian Lea <[EMAIL PROTECTED]> wrote: > No, lucene does not automatically replace spaces with AND. > > See http://lucene.apache.org/java/2_3_2/queryparsersyntax.html > > > -- > Ian. > > > On Tue, Aug 19, 2008 at 1:34 AM, DanaWhite <[EMAIL PROTECTED]> wrote: > > > > For some reason I am thinking I read somewhere that if you queried > something > > like: > > > > "Eiffel Tower" > > > > Lucene would execute the query "Eiffel AND Tower" > > > > Basically I am trying to ask, does lucene automatically replaces spaces > with > > the AND operator? > > > > Thanks > > Dana > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >