On Oct 27, 2004, at 3:36 PM, Ravi wrote:
Is there way to include stopwords in an exact phrase search? For
example, when I search on Melbourne IT, Lucene only searches for
Melbourne ignoring IT.
But you want stop words removed for general term queries?
Have a look at how Nutch does its thing - it
your analyzer will have removed the stopword when you indexed your documents, so
lucene won't be able to do this for you.
You will need to implement a second pass over the results returned by lucene and
check to see if the stopword is included, perhaps with String.indexOf()
On Wed, 27 Oct 2004