Olala wrote:
> 
> Hi all!
> 
> I am developing a seach engine with Solr, and now I want to search both
> with and without diacritics, for example: if I query kho, it will response
> kho, khó, khò,... But if I query khó, it will response only khó.
> 
> Who anyone have solution? I have used <filter
> class="solr.ISOLatin1AccentFilterFactory"/> but it is not correct :(
> 

How about using         <filter class="solr.PatternReplaceFilterFactory"/> ? 
Here
you can define regexp, in which you can define: If term has some diactrics,
then convert it to non-diactric. Then, concatenate to this non-diactric term
your original one. 
Place it in index part. In query part don't convert your query in such
pattern. Then, you must be able to search kho and get both: with diactrics
and without, but when querying kho with diactrics, get only with diactrics..
-- 
View this message in context: 
http://old.nabble.com/Search-both-diacritics-and-non-diacritics-tp26897627p26897638.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to