--- On Thu, 3/24/11, Gastone Penzo <gastone.pe...@gmail.com> wrote:

> From: Gastone Penzo <gastone.pe...@gmail.com>
> Subject: invert terms in search with exact match
> To: solr-user@lucene.apache.org
> Date: Thursday, March 24, 2011, 3:58 PM
> Hi,
> is it possible with standard query search (not dismax) to
> have
> exact matches that allow any terms order?
> 
> for example:
> 
> if i search "my love" i would solr gives to me docs with
> 
> - my love
> - love my
> 
> it's easy: q=title:(my AND love)
> 
> the problem is it returns also docs with
> 
> "my love is my dog"
> 
> i don't want this. i want only docs with title formed by
> these 2 terms: my
> and love.

PhraseQuery has an interesting property. If you don't use slop value (means 
zero) it is ordered phrase query. However starting from 1, it is un-ordered.

"my love"~1 will somehow satisfy you.  If really want "my love" to be unordered 
you can try solr-1604.


      

Reply via email to