Skip to content

Commit 41c38a4

Browse files
committed
Fix compile errors
1 parent 39e1bd8 commit 41c38a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/worksap/nlp/elasticsearch/sudachi/index/SudachiTokenizerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class SudachiTokenizerFactory extends AbstractTokenizerFactory {
4141

4242
public SudachiTokenizerFactory(IndexSettings indexSettings,
4343
Environment env, String name, Settings settings) throws IOException {
44-
super(indexSettings, settings);
44+
super(indexSettings, name, settings);
4545
mode = getMode(settings);
4646
discardPunctuation = settings.getAsBoolean("discard_punctuation", true);
4747
resourcesPath = getResourcesPath(env, settings);

src/test/java/com/worksap/nlp/lucene/sudachi/ja/TestSudachiAnalyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ public void testQuery() throws Exception {
153153
assertThat(values[0], is(INPUT_TEXT));
154154

155155
query = queryParser.parse("京都");
156-
assertThat(searcher.search(query, 5).totalHits.value, is(0L));
156+
assertThat(searcher.search(query, 5).totalHits, is(0L));
157157

158158
query = queryParser.parse("岩波");
159-
assertThat(searcher.search(query, 5).totalHits.value, is(0L));
159+
assertThat(searcher.search(query, 5).totalHits, is(0L));
160160
}
161161
}
162162
}

0 commit comments

Comments
 (0)