|
@@ -33,6 +33,7 @@ import java.util.Arrays;
|
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_NUMBER_OF_REPLICAS;
|
|
|
import static org.elasticsearch.cluster.metadata.IndexMetadata.SETTING_NUMBER_OF_SHARDS;
|
|
|
import static org.hamcrest.Matchers.containsString;
|
|
|
import static org.hamcrest.Matchers.equalTo;
|
|
@@ -97,7 +98,7 @@ public class RRFRetrieverBuilderIT extends ESIntegTestCase {
|
|
|
}
|
|
|
}
|
|
|
""";
|
|
|
- createIndex(INDEX, Settings.builder().put(SETTING_NUMBER_OF_SHARDS, 5).build());
|
|
|
+ createIndex(INDEX, Settings.builder().put(SETTING_NUMBER_OF_SHARDS, 1).put(SETTING_NUMBER_OF_REPLICAS, 0).build());
|
|
|
admin().indices().preparePutMapping(INDEX).setSource(mapping, XContentType.JSON).get();
|
|
|
indexDoc(INDEX, "doc_1", DOC_FIELD, "doc_1", TOPIC_FIELD, "technology", TEXT_FIELD, "term");
|
|
|
indexDoc(
|
|
@@ -301,7 +302,7 @@ public class RRFRetrieverBuilderIT extends ESIntegTestCase {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- public void testRankDocsRetrieverWithCollapseAndAggs() {
|
|
|
+ public void testRRFRetrieverWithCollapseAndAggs() {
|
|
|
final int rankWindowSize = 100;
|
|
|
final int rankConstant = 10;
|
|
|
SearchSourceBuilder source = new SearchSourceBuilder();
|