jprante/elasticsearch-plugin-bundle

WordDelimiter2 not working with ES 1.5.1

Closed this issue · 2 comments

JVM: 1.8.0_45 ES: 1.5.1:

[Elastica\Exception\ResponseException]
  IndexCreationException[[shop_de] failed to create index]; nested: ElasticsearchIllegalArgumentException[failed to find analyzer type [worddelimiter2
  ] or tokenizer for [svb_wordDelimiter]]; nested: NoClassSettingsException[Failed to load class setting [type] with value [worddelimiter2]]; nested:
  ClassNotFoundException[org.elasticsearch.index.analysis.worddelimiter2.Worddelimiter2AnalyzerProvider];

I used exactly the filter definition from the examples in README.md (only changed name):

"svb_wordDelimiter" => array(
                            "type" => "worddelimiter2",
                            "generate_word_parts" => true,
                            "generate_number_parts" => true,
                            "catenate_all" => true,
                            "split_on_case_change" => true,
                            "split_on_numerics" => true,
                            "stem_english_possessive" => true
                        )

EDIT: Same error with baseform filter?

You load analyzers, but you must load them as tokenizer filters. Example

{
    "index":{
        "analysis":{
            "filter" : {
                "wd" : {
                   "type" : "worddelimiter2",
                   "generate_word_parts" : true,
                   "generate_number_parts" : true,
                   "catenate_all" : true,
                   "split_on_case_change" : true,
                   "split_on_numerics" : true,
                   "stem_english_possessive" : true
                }
            }
        }
    }
}

My bad. Thanks for the great support... !