Authored by Gino Zhang

增加search_analyzer为空的处理

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