lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugh Ross" <hugh.r...@propylon.com>
Subject Exact Match Searches and Stop Words
Date Tue, 20 Jun 2006 13:24:07 GMT
I am running an exact match search using an index which was created using
the StandardAnalyzer.

My problem is that when I do an exact match search on this index and look
for a phrase such as

content:"Head of State" using the query parser (StandardAnalyzer again for
searching), the search brings back documents which contain text such as "The
man's head was in a sorry state".

This is not an exact match. The problem is that the standard analyzer
removes the stop word (i.e. "of") before indexing and searching. Is there an
workaround for this?

Many thanks,
Hugh


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message