I’ve been trying to follow some other threads and the forum and trying out different addresses, but none of them work, including the one from the tutorial.
"Elasticsearch": {
"ConnectionString": "http://localhost:9200",
"Username": null,
"Password": null,
"Prefix": "LitiumEducation",
"Synonym": {
"Server": "http://host.docker.internal:9210"
}
},
Still getting exactly the same issue.
In ElasticSearch container I’m getting these errors:
2023-05-30 10:00:42 {"type": "server", "timestamp": "2023-05-30T08:00:42,876Z", "level": "WARN", "component": "r.suppressed", "cluster.name": "docker-cluster", "node.name": "d194c7a34469", "message": "path: /.kibana_task_manager/_search, params: {ignore_unavailable=true, index=.kibana_task_manager}", "cluster.uuid": "7LVyl6TCTEyzval2BPSKqw", "node.id": "zBiq_ksQQo6_N3jT2Xj9Tg" ,
2023-05-30 10:00:42 "stacktrace": ["org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:545) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:306) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:574) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:386) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.AbstractSearchAsyncAction.access$200(AbstractSearchAsyncAction.java:66) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:242) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.SearchExecutionStatsCollector.onFailure(SearchExecutionStatsCollector.java:73) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:59) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:423) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1130) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1239) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1213) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:71) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:65) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:44) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:692) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:00:42 "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]",
2023-05-30 10:00:42 "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]",
2023-05-30 10:00:42 "at java.lang.Thread.run(Thread.java:830) [?:?]"] }
2023-05-30 10:14:18 {"type": "server", "timestamp": "2023-05-30T08:14:18,137Z", "level": "DEBUG", "component": "o.e.a.s.TransportSearchAction", "cluster.name": "docker-cluster", "node.name": "d194c7a34469", "message": "[litiumeducation.v2.productdocument.en-us][0], node[zBiq_ksQQo6_N3jT2Xj9Tg], [P], s[STARTED], a[id=6DGpmLX4RXScY05sM9bNag]: Failed to execute [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[litiumeducation.aq.productdocument.en-us], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=true], types=[], routing='null', preference='null', requestCache=null, scroll=null, maxConcurrentShardRequests=0, batchedReduceSize=512, preFilterShardSize=128, allowPartialSearchResults=true, localClusterAlias=null, getOrCreateAbsoluteStartMillis=-1, ccsMinimizeRoundtrips=true, source={\"from\":0,\"size\":20,\"query\":{\"bool\":{\"must\":[{\"bool\":{\"filter\":[{\"term\":{\"channelSystemId\":{\"value\":\"dc6fc8d1-d778-48cf-9b2c-bca765d03ac7\",\"boost\":1.0}}},{\"term\":{\"assortments\":{\"value\":\"09a2522a-aaba-415e-a64e-ba65b373119f\",\"boost\":1.0}}},{\"term\":{\"organizations\":{\"value\":\"00000000-0000-0000-0000-000000000000\",\"boost\":1.0}}}],\"adjust_pure_negative\":true,\"boost\":1.0}},{\"bool\":{\"should\":[{\"match\":{\"name\":{\"query\":\"lkj\",\"operator\":\"OR\",\"analyzer\":\"synonymAnalyzer\",\"fuzziness\":\"AUTO\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"auto_generate_synonyms_phrase_query\":true,\"boost\":10.0}}},{\"match\":{\"name.ngram\":{\"query\":\"lkj\",\"operator\":\"OR\",\"analyzer\":\"synonymAnalyzer\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"auto_generate_synonyms_phrase_query\":true,\"boost\":20.0}}},{\"match\":{\"articleNumber\":{\"query\":\"lkj\",\"operator\":\"OR\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"auto_generate_synonyms_phrase_query\":true,\"boost\":2.0}}},{\"match\":{\"content\":{\"query\":\"lkj\",\"operator\":\"OR\",\"analyzer\":\"synonymAnalyzer\",\"fuzziness\":\"AUTO\",\"prefix_length\":0,\"max_expansions\":50,\"fuzzy_transpositions\":true,\"lenient\":false,\"zero_terms_query\":\"NONE\",\"auto_generate_synonyms_phrase_query\":true,\"boost\":1.0}}}],\"adjust_pure_negative\":true,\"boost\":1.0}}],\"filter\":[{\"bool\":{\"should\":[{\"term\":{\"permissions\":{\"value\":\"Group:790c27b4-54c9-4be6-a05e-25b326461eae\",\"boost\":1.0}}}],\"adjust_pure_negative\":true,\"boost\":1.0}}],\"adjust_pure_negative\":true,\"boost\":1.0}},\"_source\":{\"includes\":[\"isBaseProduct\",\"baseProductSystemId\",\"variantSystemIds\"],\"excludes\":[]},\"sort\":[{\"_score\":{\"order\":\"desc\"}},{\"name.keyword\":{\"order\":\"asc\"}},{\"articleNumber\":{\"order\":\"asc\"}}]}}]", "cluster.uuid": "7LVyl6TCTEyzval2BPSKqw", "node.id": "zBiq_ksQQo6_N3jT2Xj9Tg" ,
2023-05-30 10:14:18 "stacktrace": ["org.elasticsearch.transport.RemoteTransportException: [d194c7a34469][172.18.0.5:9300][indices:data/read/search[phase/query]]",
2023-05-30 10:14:18 "Caused by: org.elasticsearch.index.query.QueryShardException: [match] analyzer [synonymAnalyzer] not found",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.MatchQueryBuilder.doToQuery(MatchQueryBuilder.java:408) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:99) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.addBooleanClauses(BoolQueryBuilder.java:394) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.doToQuery(BoolQueryBuilder.java:380) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:99) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.addBooleanClauses(BoolQueryBuilder.java:394) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.doToQuery(BoolQueryBuilder.java:378) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:99) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.QueryShardContext.lambda$toQuery$1(QueryShardContext.java:334) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:346) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:333) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.parseSource(SearchService.java:758) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.createContext(SearchService.java:600) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:554) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:351) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$1(SearchService.java:343) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionListener.lambda$map$2(ActionListener.java:146) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:44) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:692) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]",
2023-05-30 10:14:18 "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]",
2023-05-30 10:14:18 "at java.lang.Thread.run(Thread.java:830) [?:?]"] }
2023-05-30 10:14:18 {"type": "server", "timestamp": "2023-05-30T08:14:18,138Z", "level": "DEBUG", "component": "o.e.a.s.TransportSearchAction", "cluster.name": "docker-cluster", "node.name": "d194c7a34469", "message": "All shards failed for phase: [query]", "cluster.uuid": "7LVyl6TCTEyzval2BPSKqw", "node.id": "zBiq_ksQQo6_N3jT2Xj9Tg" ,
2023-05-30 10:14:18 "stacktrace": ["org.elasticsearch.index.query.QueryShardException: [match] analyzer [synonymAnalyzer] not found",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.MatchQueryBuilder.doToQuery(MatchQueryBuilder.java:408) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:99) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.addBooleanClauses(BoolQueryBuilder.java:394) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.doToQuery(BoolQueryBuilder.java:380) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:99) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.addBooleanClauses(BoolQueryBuilder.java:394) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.BoolQueryBuilder.doToQuery(BoolQueryBuilder.java:378) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:99) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.QueryShardContext.lambda$toQuery$1(QueryShardContext.java:334) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:346) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:333) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.parseSource(SearchService.java:758) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.createContext(SearchService.java:600) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:554) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:351) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.search.SearchService.lambda$executeQueryPhase$1(SearchService.java:343) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionListener.lambda$map$2(ActionListener.java:146) ~[elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:44) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:692) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.6.2.jar:7.6.2]",
2023-05-30 10:14:18 "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]",
2023-05-30 10:14:18 "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]",
2023-05-30 10:14:18 "at java.lang.Thread.run(Thread.java:830) [?:?]"] }
I don’t see any errors in synonymserver container.