Use same index name for indexing that is used for creating the index
This commit is contained in:
parent
732e38b8c7
commit
453e7c1510
|
@ -771,9 +771,10 @@ public class SuggestSearchTests extends AbstractSharedClusterTest {
|
||||||
.put("index.analysis.filter.shingler.output_unigrams", true)).addMapping("type1", mappingBuilder));
|
.put("index.analysis.filter.shingler.output_unigrams", true)).addMapping("type1", mappingBuilder));
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
|
||||||
index("text", "type2", "1", "foo", "bar");
|
index("test", "type2", "1", "foo", "bar");
|
||||||
index("text", "type2", "2", "foo", "bar");
|
index("test", "type2", "2", "foo", "bar");
|
||||||
index("text", "type1", "1", "name", "Just testing the suggestions api");
|
index("test", "type1", "1", "name", "Just testing the suggestions api");
|
||||||
|
index("test", "type1", "2", "name", "An other title about equal length");
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
SearchResponse searchResponse = client().prepareSearch()
|
SearchResponse searchResponse = client().prepareSearch()
|
||||||
|
|
Loading…
Reference in New Issue