简体   繁体   中英

Lucene create index for words with umlauts in stratio

I have a similar issue like described in this thread . I would like to use something like the GermanNormilizationFilter to have a conversion for umlauts like 'ue' -> 'ü' and vice versa.

I use the cassandra stratio plugin and would like to create the index with a cql statement like in the official examples

Basicly, you want to use a part of the lucene german analyzer but not all.

In cassandra-lucene-index you can use a custom analyzer just generating a jar and including it in cassandra lib folder.

By the way, as you only want a part of German analyzer functionality you can build you own custom based on German analyzer just only editing some lines.

If you close look at lucene German analyzer code you can see that you only need to edit(remove/comment) some lines in createComponents method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM