File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/main/java/org/nlpcn/es4sql/query Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ public SqlElasticSearchRequestBuilder explain() throws SqlParseException {
166
166
167
167
request .setSearchType (SearchType .DEFAULT );
168
168
updateRequestWithIndexAndRoutingOptions (select , request );
169
+ updateRequestWithHighlight (select , request );
169
170
SqlElasticSearchRequestBuilder sqlElasticRequestBuilder = new SqlElasticSearchRequestBuilder (request );
170
171
return sqlElasticRequestBuilder ;
171
172
}
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ protected HighlightBuilder.Field parseHighlightField(Object[] params)
69
69
70
70
for (Map .Entry <String ,Object > param : highlightParams .entrySet ()){
71
71
switch (param .getKey ()){
72
+ case "type" :
73
+ field .highlighterType ((String ) param .getValue ());
74
+ break ;
72
75
case "boundary_chars" :
73
76
field .boundaryChars (fromArrayListToCharArray ((ArrayList ) param .getValue ()));
74
77
break ;
You can’t perform that action at this time.
0 commit comments