You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this useful plugin. Let me report a strange behavior.
We want to use sudachi and synonym filter. However, when using synonym filter with sudachi, synonyms are not expanded.
# in sudachi-elasticsearch-sample directory# Place system_core.dic in elasticsearch/sudachi directory ...
docker-compose up -d -build
curl -X PUT "localhost:9200/test" --header "Content-Type: application/json" -d @"index.json"
curl -X PUT "localhost:9200/test" --header "Content-Type: application/json" -d @"index.json"
call analyze API
GET localhost:9200/test/_analyze
{
"analyzer" : "sudachi_search_analyzer_c",
"text" : "サルコイド"
}
logs
{"@timestamp":"2023-09-18T15:47:13.301Z", "log.level": "WARN", "message":"MorphemeFieldFilter does nothing, it is not the current consumer", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][analyze][T#1]","log.logger":"com.worksap.nlp.lucene.sudachi.ja.MorphemeFieldFilter","elasticsearch.cluster.uuid":"WheyDXkCR0OOWQ8E6DYeSw","elasticsearch.node.id":"Edyp8roBQo6bXutCqhA4VQ","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"docker-cluster"}
I appreciate if you check it.
The text was updated successfully, but these errors were encountered:
The warning itself is correct, but its text is a bit misleading, need to fix that.
Warning text means that you have a filter in the pipeline which basically does nothing, in this case the sudachi_baseform one.
Only the last filter which modifies morphemes stemming from Sudachi will have an effect.
Also I have not tested, but the synonym filter should be the last one in the filter chain, otherwise it will not have any effect.
Thanks for this useful plugin. Let me report a strange behavior.
We want to use sudachi and synonym filter. However, when using synonym filter with sudachi, synonyms are not expanded.
versions
With the combination of Elasticsearch7.16.1 and analytics-sudachi-7.16.1-2.1.1, synonyms were expanded without any problems.
How to reproduce
I have published the configuration to reproduce this issue on the research branch of the github repository.
https://github.com/po3rin/sudachi-elasticsearch-sample/tree/morpheme-error-reproduce
check settings
create index
call analyze API
logs
I appreciate if you check it.
The text was updated successfully, but these errors were encountered: