File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/internalClusterTest/java/org/elasticsearch/search/suggest/phrase Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,16 @@ public void testPhraseSuggestionWithNgramsAndUnigramsWorks() throws IOException
100100 assertNoFailuresAndResponse (searchRequestBuilder , response -> { assertNotNull (response .getSuggest ()); });
101101 }
102102
103- private void createIndexAndDocs (boolean allowUnigrams ) throws IOException {
104- // Create an index with a shingle analyzer that outputs NO unigrams (only n-grams)
103+ private void createIndexAndDocs (boolean outputUnigrams ) throws IOException {
104+ // Create an index with a shingle analyzer that outputs unigrams or not
105105 assertAcked (
106106 prepareCreate ("test" ).setSettings (
107107 Settings .builder ()
108108 .put (SETTING_NUMBER_OF_SHARDS , randomIntBetween (1 , 5 ))
109109 .put ("index.analysis.analyzer.ngram_only.tokenizer" , "standard" )
110110 .putList ("index.analysis.analyzer.ngram_only.filter" , "my_shingle" , "lowercase" )
111111 .put ("index.analysis.filter.my_shingle.type" , "shingle" )
112- .put ("index.analysis.filter.my_shingle.output_unigrams" , allowUnigrams )
112+ .put ("index.analysis.filter.my_shingle.output_unigrams" , outputUnigrams )
113113 .put ("index.analysis.filter.my_shingle.min_shingle_size" , 2 )
114114 .put ("index.analysis.filter.my_shingle.max_shingle_size" , 3 )
115115 )
You can’t perform that action at this time.
0 commit comments