Review ++
This commit is contained in:
parent
437488ae64
commit
176a4fc8da
|
@ -2471,7 +2471,7 @@ public class HighlighterSearchIT extends ESIntegTestCase {
|
|||
|
||||
logger.info("--> highlighting and searching on field1");
|
||||
SearchSourceBuilder source = searchSource().query(boolQuery()
|
||||
.should(boolQuery().mustNot(constantScoreQuery(QueryBuilders.existsQuery("field1"))))
|
||||
.should(boolQuery().mustNot(QueryBuilders.existsQuery("field1")))
|
||||
.should(matchQuery("field1", "test"))
|
||||
.should(constantScoreQuery(queryStringQuery("field1:photo*"))))
|
||||
.highlighter(highlight().field("field1"));
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ExistsIT extends ESIntegTestCase {
|
|||
Map<String, Object> barObject = new HashMap<>();
|
||||
barObject.put("foo", "bar");
|
||||
barObject.put("bar", singletonMap("bar", "foo"));
|
||||
final Map<String, Object>[] sources = new Map[]{
|
||||
final Map<String, Object>[] sources = new Map[] {
|
||||
// simple property
|
||||
singletonMap("foo", "bar"),
|
||||
// object fields
|
||||
|
|
Loading…
Reference in New Issue