lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: dash-words
Date Mon, 24 Jul 2006 04:34:09 GMT
On 7/23/06, karl wettin <> wrote:
> I'm want to filter words with a dash in them.
> ["x-men"]
> ["xmen"]
> ["x", "men"]
> All of above should be synonyms. The problem is ["x", "men"] requiring a
> distance between the terms and thus also matching "x-men men".

WordDelimiterFilter from Solr does this:

It also has the false match problem you mention... "x xmen" would
match a document with x-men, although this hasn't been a problem in

-Yonik Solr, the open-source Lucene search server

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message