Authored by Gino Zhang

增加search_analyzer为空的处理

@@ -600,6 +600,10 @@ public class SearchExplainerService { @@ -600,6 +600,10 @@ public class SearchExplainerService {
600 fieldDesc.analyzer = (String) fieldPropMap.get("analyzer"); 600 fieldDesc.analyzer = (String) fieldPropMap.get("analyzer");
601 fieldDesc.search_analyzer = (String) fieldPropMap.get("search_analyzer"); 601 fieldDesc.search_analyzer = (String) fieldPropMap.get("search_analyzer");
602 602
  603 + if(fieldDesc.search_analyzer == null && fieldDesc.analyzer != null){
  604 + fieldDesc.search_analyzer = fieldDesc.analyzer;
  605 + }
  606 +
603 Object copyTo = fieldPropMap.get("copy_to"); 607 Object copyTo = fieldPropMap.get("copy_to");
604 if (copyTo != null && copyTo instanceof List) { 608 if (copyTo != null && copyTo instanceof List) {
605 List<String> copyToFields = (List<String>) copyTo; 609 List<String> copyToFields = (List<String>) copyTo;