Skip to content

Commit 0609fc9

Browse files
committed
Change names
1 parent 65ac607 commit 0609fc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/suggest/phrase/PhraseSuggesterIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)