summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/search/nested
diff options
context:
space:
mode:
authorChristoph Büscher <christoph@elastic.co>2016-03-15 11:41:53 +0100
committerChristoph Büscher <christoph@elastic.co>2016-03-15 12:43:19 +0100
commitbc84cdfed1cf912b6ba486977d5ed9df024d75d9 (patch)
tree876e4baeae4e51ed018fc9b51e25b9c220be09c7 /core/src/test/java/org/elasticsearch/search/nested
parent1f1f6861b777cff0deb925ba88b623d2b3c249ed (diff)
Using SortMode enum in all sort builders
Diffstat (limited to 'core/src/test/java/org/elasticsearch/search/nested')
-rw-r--r--core/src/test/java/org/elasticsearch/search/nested/SimpleNestedIT.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/src/test/java/org/elasticsearch/search/nested/SimpleNestedIT.java b/core/src/test/java/org/elasticsearch/search/nested/SimpleNestedIT.java
index 2f93260414..e38ac0ca76 100644
--- a/core/src/test/java/org/elasticsearch/search/nested/SimpleNestedIT.java
+++ b/core/src/test/java/org/elasticsearch/search/nested/SimpleNestedIT.java
@@ -34,6 +34,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.sort.SortBuilders;
+import org.elasticsearch.search.sort.SortMode;
import org.elasticsearch.search.sort.SortOrder;
import org.elasticsearch.test.ESIntegTestCase;
@@ -748,7 +749,7 @@ public class SimpleNestedIT extends ESIntegTestCase {
.addSort(
SortBuilders.fieldSort("parent.child.child_values")
.setNestedPath("parent.child")
- .sortMode("sum")
+ .sortMode(SortMode.SUM)
.order(SortOrder.ASC)
)
.execute().actionGet();
@@ -768,7 +769,7 @@ public class SimpleNestedIT extends ESIntegTestCase {
.addSort(
SortBuilders.fieldSort("parent.child.child_values")
.setNestedPath("parent.child")
- .sortMode("sum")
+ .sortMode(SortMode.SUM)
.order(SortOrder.DESC)
)
.execute().actionGet();
@@ -789,7 +790,7 @@ public class SimpleNestedIT extends ESIntegTestCase {
SortBuilders.fieldSort("parent.child.child_values")
.setNestedPath("parent.child")
.setNestedFilter(QueryBuilders.termQuery("parent.child.filter", true))
- .sortMode("sum")
+ .sortMode(SortMode.SUM)
.order(SortOrder.ASC)
)
.execute().actionGet();
@@ -809,7 +810,7 @@ public class SimpleNestedIT extends ESIntegTestCase {
.addSort(
SortBuilders.fieldSort("parent.child.child_values")
.setNestedPath("parent.child")
- .sortMode("avg")
+ .sortMode(SortMode.AVG)
.order(SortOrder.ASC)
)
.execute().actionGet();
@@ -828,7 +829,7 @@ public class SimpleNestedIT extends ESIntegTestCase {
.addSort(
SortBuilders.fieldSort("parent.child.child_values")
.setNestedPath("parent.child")
- .sortMode("avg")
+ .sortMode(SortMode.AVG)
.order(SortOrder.DESC)
)
.execute().actionGet();
@@ -849,7 +850,7 @@ public class SimpleNestedIT extends ESIntegTestCase {
SortBuilders.fieldSort("parent.child.child_values")
.setNestedPath("parent.child")
.setNestedFilter(QueryBuilders.termQuery("parent.child.filter", true))
- .sortMode("avg")
+ .sortMode(SortMode.AVG)
.order(SortOrder.ASC)
)
.execute().actionGet();