Hi, have you been able to get around the issue yet? I have been told this might be good first things to try: - Delete the index and reindex after. - Reset to default mappings and reindex, re-apply custom changes after if that worked. Hope this helps, Katrin On 17.02.22 07:58, Simon Hohl wrote:
Hello everybody,
in light of the Log4j debacle last year, I am currently trying to update Elasticsearch to the current version of 6, from our old version 5. I read in the wiki (https://wiki.koha-community.org/wiki/Elasticsearch) that
Note: As of 20.05.00, 19.11.05 and 19.05.10 releases, we recommend Elasticsearch 6.x We are at 19.05.17. I updated accordingly and did a complete re-index, but I get the appended error for searches. Did I miss something? An upgrade to the current Koha version is planned for later this year, but will require more testing to make sure all our local changes get re-applied after upgrading via package.
Kind regards
Simon
[2022-02-17T07:50:10,007][DEBUG][o.e.a.s.TransportSearchAction] [vgY4zBy] All shards failed for phase: [query] org.elasticsearch.index.query.QueryShardException: failed to create query: { "query_string" : { "query" : "(_all:A*)", "default_field" : "_all", "fields" : [ "_all^1.0" ], "type" : "best_fields", "default_operator" : "and", "max_determinized_states" : 10000, "enable_position_increments" : true, "fuzziness" : "AUTO", "fuzzy_prefix_length" : 0, "fuzzy_max_expansions" : 50, "phrase_slop" : 0, "analyze_wildcard" : true, "lenient" : true, "escape" : false, "auto_generate_synonyms_phrase_query" : true, "fuzzy_transpositions" : true, "boost" : 1.0 } } at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:335) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:318) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService.parseSource(SearchService.java:806) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService.createContext(SearchService.java:653) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:604) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:388) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService.access$100(SearchService.java:127) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:360) [elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:356) [elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.search.SearchService$4.doRun(SearchService.java:1129) [elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41) [elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:778) [elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.23.jar:6.8.23] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_322] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_322] at java.lang.Thread.run(Thread.java:750) [?:1.8.0_322] Caused by: org.elasticsearch.index.query.QueryValidationException: Validation Failed: 1: [query_string] cannot use [fields] parameter in conjunction with [default_field]; at org.elasticsearch.index.query.QueryValidationException.addValidationError(QueryValidationException.java:43) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.index.query.AbstractQueryBuilder.addValidationError(AbstractQueryBuilder.java:183) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.index.query.QueryStringQueryBuilder.doToQuery(QueryStringQueryBuilder.java:977) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:106) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.index.query.QueryShardContext.lambda$toQuery$2(QueryShardContext.java:319) ~[elasticsearch-6.8.23.jar:6.8.23] at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:331) ~[elasticsearch-6.8.23.jar:6.8.23] ... 16 more
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha