Elasticsearch exception no mapping found for spellCheckWord_es_ES or spellCheckWord_en_US fields

Issue

Liferay search funcionality is working fine, but there are some exceptions written to the log file related to Elasticsearch:

  • no mapping found for field [spellCheckWord_es_ES]
    org.elasticsearch.transport.RemoteTransportException: [elastic-2][10.110.61.30:9300][indices:data/read/search[phase/query]]
    Caused by: java.lang.IllegalArgumentException: no mapping found for field [spellCheckWord_es_ES]
    at org.elasticsearch.search.suggest.SuggestionBuilder.populateCommonFields(SuggestionBuilder.java:307) ~[elasticsearch-6.5.4.jar:6.5.4]
    at org.elasticsearch.search.suggest.term.TermSuggestionBuilder.build(TermSuggestionBuilder.java:452) ~[elasticsearch-6.5.4.jar:6.5.4]
    at org.elasticsearch.search.suggest.SuggestBuilder.build(SuggestBuilder.java:175) ~[elasticsearch-6.5.4.jar:6.5.4]
    [...]
    [2019-07-19T09:52:02,676][DEBUG][o.e.a.s.TransportSearchAction] [elastic-2] All shards failed for phase: [query]
    org.elasticsearch.ElasticsearchException$1: no mapping found for field [spellCheckWord_es_ES]
    at org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:657) ~[elasticsearch-6.5.4.jar:6.5.4]
    at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:131) ~[elasticsearch-6.5.4.jar:6.5.4]
  • no mapping found for field [spellCheckWord_en_US]
    org.elasticsearch.transport.RemoteTransportException: [elastic-2][10.127.130.235:9300][indices:data/read/search[phase/query]]
    Caused by: java.lang.IllegalArgumentException: no mapping found for field [spellCheckWord_en_US]
    at org.elasticsearch.search.suggest.SuggestionBuilder.populateCommonFields(SuggestionBuilder.java:307) ~[elasticsearch-6.5.0.jar:6.5.0]
    at org.elasticsearch.search.suggest.term.TermSuggestionBuilder.build(TermSuggestionBuilder.java:452) ~[elasticsearch-6.5.0.jar:6.5.0]
    at org.elasticsearch.search.suggest.SuggestBuilder.build(SuggestBuilder.java:175) ~[elasticsearch-6.5.0.jar:6.5.0]
     [...]
    [2019-07-05T18:26:34,139][DEBUG][o.e.a.s.TransportSearchAction] [eportal_dxp_213_node] All shards failed for phase: [query]
    org.elasticsearch.ElasticsearchException$1: no mapping found for field [spellCheckWord_en_US]
    at org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:657) ~[elasticsearch-6.5.0.jar:6.5.0]
    at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:131) ~[elasticsearch-6.5.0.jar:6.5.0]

Environment

  • DXP 7.0 - 7.3

Resolution

  • This error is produced because Spell Checker information is not indexed
  • You have to reindex Spell Checker information, following this steps:
    • Go to Control Panel → Configuration → Search
    • Click on execute button next to "Reindex all spell check indexes" text.

Additional Information

Este artigo foi útil?
Utilizadores que acharam útil: 1 de 2