Then you need to write some custom code for that. Lucene in Action Book (second 
edition, section 6.3.4) has an example for Translating PhraseQuery to 
SpanNearQuery. 

Just use false for the third parameter in SpanNearQuery's ctor.


You can plug https://issues.apache.org/jira/browse/SOLR-1604 too.


> yes sorry i made  a mistake
> 
> title(my AND love AND darling)
> 
> all three words have to match. the problem is always i
> don't want results
> with other words.
> 
> 
> 2011/3/24 Dario Rigolin <dario.rigo...@comperio.it>
> 
> > On Thursday, March 24, 2011 03:52:31 pm Gastone Penzo
> wrote:
> >
> > >
> > > title1: my love darling
> > > title2: my darling love
> > > title3: darling my love
> > > title4: love my darling
> >
> > Sorry but simply search for:
> >
> >
> >  title:( my OR love OR darling)
> > If you have default operator OR you don't need to put
> OR on the query
> >
> > Best regards.
> > Dario Rigolin
> > Comperio srl (Italy)
> >
> 
> 
> 
> -- 
> Gastone Penzo
> *www.solr-italia.it*
> *The first italian blog about Apache Solr*
> 



Reply via email to