File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
learning_resources_search Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11services :
22 opensearch :
3- image : opensearchproject/opensearch:2.19.3
3+ image : opensearchproject/opensearch:3.1.0
44 environment :
55 - " cluster.name=opensearch-cluster"
66 - " bootstrap.memory_lock=true" # along with the memlock settings below, disables swapping
Original file line number Diff line number Diff line change @@ -739,7 +739,13 @@ def execute_learn_search(search_params):
739739 settings .DEFAULT_SEARCH_MAX_INCOMPLETENESS_PENALTY
740740 )
741741 search = construct_search (search_params )
742- return search .execute ().to_dict ()
742+ results = search .execute ().to_dict ()
743+ if results .get ("_shards" , {}).get ("failures" ):
744+ log .error (
745+ "Search encountered shard failures: %s" ,
746+ results .get ("_shards" ).get ("failures" ),
747+ )
748+ return results
743749
744750
745751def subscribe_user_to_search_query (
You can’t perform that action at this time.
0 commit comments