Use same index name for indexing that is used for creating the index

This commit is contained in:
Simon Willnauer 2013-09-09 13:00:50 +02:00
parent 732e38b8c7
commit 453e7c1510
1 changed files with 4 additions and 3 deletions

View File

@ -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()