Question

I have been trying to implement proximity search using Lucene 3.6. I went for SpanNearQuery which almost did the trick for me, but my teacher says QueryParser can do it in a much nicer way (it would also filter the query using the analyzer, unlike SpanNearQuery). Can anyone tell me the syntax of the query? I've been searching on the internet for last few hours now. :(

Was it helpful?

Solution

Have you looked at Lucene query syntax documentation?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top