How to provide Hyphenation Patterns (XML) to OpenSearch?

0

I would like to use the "hyphenation decompounder" token filter of OpenSearch, to split German compound words into separate tokens (https://www.elastic.co/guide/en/elasticsearch/reference/7.10/analysis-hyp-decomp-tokenfilter.html)

To use it you need to provide a XML file with "hyphenation_patterns_path" prop.

Supposedly packages are the go to tool to provide the file with OpenSearch service. However package upload is rejected with "Copy failed" error, detailing in "Validation failure: package contains unsupported content." ... since obviously the XML file is not a plain word list.

But how else can the XML file be provided to OpenSearch? Or is it just not possible at all?

This is the XML file in question: https://github.com/uschindler/german-decompounder/blob/master/de_DR.xml

Kind regards Stefan

stesie
已提问 1 年前266 查看次数
1 回答
0

What worked for us was removing the line

<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则