Skip to content

Commit

Permalink
Merge branch 'master' of github.com:romanchyla/montysolr
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchyla committed Feb 22, 2016
2 parents feaa095 + e8141b9 commit 381d0f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,14 @@ public void testAuthorSynonyms() throws Exception {
String[] expected = { "Müller, Bill", "Mueller, Bill", "Muller, Bill" };
assertTokenStreamContents(stream, expected);
}

public void testAccents() throws Exception {
Reader reader = new StringReader("Jeřábková, Tereza");
Tokenizer tokenizer = new KeywordTokenizer(reader);
AuthorTransliterationFactory factory = new AuthorTransliterationFactory(new HashMap<String,String>());
TokenStream stream = factory.create(new TestFilter(tokenizer));

String[] expected = { "Jeřábková, Tereza", "Jerabkova, Tereza"};
assertTokenStreamContents(stream, expected);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<codecFactory class="solr.SchemaCodecFactory"/>
<schemaFactory class="ClassicIndexSchemaFactory"/>

<indexConfig>

<maxIndexingThreads>8</maxIndexingThreads>
Expand Down

0 comments on commit 381d0f6

Please sign in to comment.