Hi;

I am working with apache-solr-3.6.0 on windows machine. I would like to
search for two words with certain number of words apart (No more than this
number). For example: Consider the following phrases, I would like to search
for Daisy & exam with no more than 2 words apart.

Daisy has exam.
Daisy has an exam.
Daisy has a math exam.
Daisy has a difficult math exam.
I searched for such thing and I tried Term Proximity.

http://localhost:8983/solr/select/?q="Daisy
exam"~2&version=2.2&start=0&rows=10&indent=on&debugQuery=true

The result that I need should be the phrase: Daisy has an exam. But using
the above criteria, the result was the last 3 phrase.

So any ideas to use an exact number of words apart?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Proximity-search-using-exact-number-of-words-apart-tp4008099.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to