cpoerschke commented on a change in pull request #202:
URL: https://github.com/apache/lucene/pull/202#discussion_r663192060
##########
File path:
lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestBugInSomething.java
##########
@@ -292,14 +292,13 @@ public void testCuriousWikipediaString() throws Exception
{
115, -105, 97, 65, -33, 57, 44, -1, 123, -68, 100, 13, -41, -64,
-119, 0, 92, 94, -36, 53,
-9, -102, -18, 90, 94, -26, 31, 71, -20
};
- @SuppressWarnings("deprecation")
Analyzer a =
new Analyzer() {
@Override
protected TokenStreamComponents createComponents(String fieldName) {
Tokenizer tokenizer = new WikipediaTokenizer();
TokenStream stream = new SopTokenFilter(tokenizer);
- stream = new WordDelimiterFilter(stream, table, -50, protWords);
Review comment:
`WordDelimiterGraphFilter` rejects the `-50` and it's not yet clear to
me how convert it to something other than `0`. The -50 dates back to
https://github.com/apache/lucene/commit/395c85e54a5848acbfbe63e1c71576c7c7113687#diff-7dd7bf9e8b9993f185f524bee479246dd99b451a796dc0c18ff2361577de1bd6
in 2014.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]