lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Giffney" <samuelgiff...@gmail.com>
Subject Apostrophe S ('s)
Date Sun, 20 Aug 2006 23:17:08 GMT
Using the Standard Analyzer the string
McDonald's
is indexed with the term
mcdonald

so it will be found by a (QueryParser parsed) query for
McDonald
or
McDonald's
but not
McDonalds

Wikipedia (who uses lucene) says on
http://en.wikipedia.org/wiki/Wikipedia:Searching

An apostrophe is identical to a single quote, therefore Mu'ammar can
be found searching for exactly that (and not otherwise). A word with
apostrophe s is an exception in that it can be found also searching
for the word without the apostrophe and the s.

Is this a custom parser?
How can one achieve this same exception most easily?

Sam

---------------------------------------------------------------------
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