mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] fix test problem after search refactoring
Original commit: elastic/x-pack-elasticsearch@10d4f061ce
This commit is contained in:
parent
215a554555
commit
7ec03c040b
@ -161,8 +161,7 @@ public class IndexActionTests extends ESIntegTestCase {
|
||||
|
||||
SearchResponse searchResponse = client().prepareSearch("test-index")
|
||||
.setTypes("test-type")
|
||||
.addSort("foo", SortOrder.ASC)
|
||||
.setSource(searchSource()
|
||||
.setSource(searchSource().sort("foo", SortOrder.ASC)
|
||||
.query(matchAllQuery())
|
||||
.aggregation(terms("timestamps").field(customTimestampField ? timestampField : "_timestamp")))
|
||||
.get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user