Hi Tommaso, thank you for the answer but the problem in your solution is that solr returns to me also docs with other words. For example:
my love is the world i want to exclude the other words. it must give to me only docs with my love or love my. stop Thank you 2011/3/24 Tommaso Teofili <tommaso.teof...@gmail.com> > Hi Gastone, > I think you should use proximity search as described here in Lucene query > syntax page [1]. > So searching for "my love"~2 should work for your use case. > Cheers, > Tommaso > > [1] : > http://lucene.apache.org/java/2_9_3/queryparsersyntax.html#ProximitySearches > > 2011/3/24 Gastone Penzo <gastone.pe...@gmail.com> > >> 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. >> >> is it possible?? >> >> thanx >> >> -- >> Gastone Penzo >> *www.solr-italia.it* >> *The first italian blog about Apache Solr* >> > > -- Gastone Penzo *www.solr-italia.it* *The first italian blog about Apache Solr*