File tree Expand file tree Collapse file tree
server/src/main/java/org/elasticsearch/index/analysis Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848import org .apache .lucene .analysis .th .ThaiAnalyzer ;
4949import org .apache .lucene .analysis .tr .TurkishAnalyzer ;
5050import org .apache .lucene .analysis .util .CSVUtil ;
51- import org .elasticsearch .ElasticsearchException ;
5251import org .elasticsearch .ResourceNotFoundException ;
5352import org .elasticsearch .action .support .PlainActionFuture ;
5453import org .elasticsearch .common .Strings ;
@@ -367,15 +366,15 @@ public static Reader getReaderFromIndex(
367366
368367 try {
369368 results = synonymsLoadingFuture .actionGet ();
370- } catch (ElasticsearchException e ) {
369+ } catch (Exception e ) {
371370 if (ignoreMissing == false ) {
372371 throw e ;
373372 }
374373
375374 boolean notFound = e instanceof ResourceNotFoundException ;
376375 String message = String .format (
377376 Locale .ROOT ,
378- "Synonyms set %s %s." + " synonyms will not be applied to search results on indices that use this synonym set" ,
377+ "Synonyms set %s %s. Synonyms will not be applied to search results on indices that use this synonym set" ,
379378 synonymsSet ,
380379 notFound ? "not found" : "could not be loaded"
381380 );
You can’t perform that action at this time.
0 commit comments