msokolov commented on a change in pull request #491:
URL: https://github.com/apache/lucene/pull/491#discussion_r759769058



##########
File path: lucene/MIGRATE.md
##########
@@ -156,42 +179,42 @@ For example, these entries are not allowed at all and an 
exception is thrown whe
 日本経済新聞,日経 新聞,ニッケイ シンブン,カスタム名詞
 ```
 
-## JapaneseTokenizer no longer emits original (compound) tokens by default 
when the mode is not NORMAL (LUCENE-9123)
+### JapaneseTokenizer no longer emits original (compound) tokens by default 
when the mode is not NORMAL (LUCENE-9123)
 
-JapaneseTokenizer and JapaneseAnalyzer no longer emits original tokens when 
discardCompoundToken option is not specified.
-The constructor option has been introduced since Lucene 8.5.0, and the default 
value is changed to true.
+`JapaneseTokenizer` and `JapaneseAnalyzer` no longer emits original tokens 
when `discardCompoundToken` option is not specified.
+The constructor option has been introduced since Lucene 8.5.0, and the default 
value is changed to `true`.
 
 When given the text "株式会社", JapaneseTokenizer (mode != NORMAL) emits 
decompounded tokens "株式" and "会社" only and no
-longer outputs the original token "株式会社" by default. To output original 
tokens, discardCompoundToken option should be
-explicitly set to false. Be aware that if this option is set to false 
SynonymFilter or SynonymGraphFilter does not work
+longer outputs the original token "株式会社" by default. To output original 
tokens, `discardCompoundToken` option should be
+explicitly set to `false`. Be aware that if this option is set to `false`, 
`SynonymFilter` or `SynonymGraphFilter` does not work
 correctly (see LUCENE-9173).
 
-## Analysis factories now have customizable symbolic names (LUCENE-8778) and 
need additional no-arg constructor (LUCENE-9281)
+### Analysis factories now have customizable symbolic names (LUCENE-8778) and 
need additional no-arg constructor (LUCENE-9281)
 
-The SPI names for concrete subclasses of TokenizerFactory, TokenFilterFactory, 
and CharfilterFactory are no longer
+The SPI names for concrete subclasses of `TokenizerFactory`, 
`TokenFilterFactory`, and `CharfilterFactory` are no longer
 derived from their class name. Instead, each factory must have a static "NAME" 
field like this:
 
-```
+```java
     /** o.a.l.a.standard.StandardTokenizerFactory's SPI name */
     public static final String NAME = "standard";
 ```
 
-A factory can be resolved/instantiated with its NAME by using methods such as 
TokenizerFactory#lookupClass(String)
-or TokenizerFactory#forName(String, Map<String,String>).
+A factory can be resolved/instantiated with its `NAME` by using methods such 
as `TokenizerFactory.lookupClass(String)`
+or `TokenizerFactory.forName(String, Map<String,String>)`.
 
-If there are any user-defined factory classes that don't have proper NAME 
field, an exception will be thrown
-when (re)loading factories. e.g., when calling 
TokenizerFactory#reloadTokenizers(ClassLoader).
+If there are any user-defined factory classes that don't have proper `NAME` 
field, an exception will be thrown
+when (re)loading factories. e.g., when calling 
`TokenizerFactory.reloadTokenizers(ClassLoader)`.
 
 In addition starting all factories need to implement a public no-arg 
constructor, too. The reason for this
 change comes from the fact that Lucene now uses `java.util.ServiceLoader` 
instead its own implementation to
 load the factory classes to be compatible with Java Module System changes 
(e.g., load factories from modules).
 In the future, extensions to Lucene developed on the Java Module System may 
expose the factories from their
 `module-info.java` file instead of `META-INF/services`.
 
-This constructor is never called by Lucene, so by default it throws a 
UnsupportedOperationException. User-defined
+This constructor is never called by Lucene, so by default it throws a 
`UnsupportedOperationException`. User-defined

Review comment:
       nit: "an" Unsupported...

##########
File path: lucene/MIGRATE.md
##########
@@ -200,45 +223,42 @@ factory classes should implement it in the following way:
 
 (`defaultCtorException()` is a protected static helper method)
 
-## TermsEnum is now fully abstract (LUCENE-8292)
-
-TermsEnum has been changed to be fully abstract, so non-abstract subclass must 
implement all it's methods.
-Non-Performance critical TermsEnums can use BaseTermsEnum as a base class 
instead. The change was motivated
-by several performance issues with FilterTermsEnum that caused significant 
slowdowns and massive memory consumption due
-to not delegating all method from TermsEnum. See LUCENE-8292 and LUCENE-8662
+### TermsEnum is now fully abstract (LUCENE-8292, LUCENE-8662)
 
-## RAMDirectory, RAMFile, RAMInputStream, RAMOutputStream removed
+`TermsEnum` has been changed to be fully abstract, so non-abstract subclass 
must implement all it's methods.

Review comment:
       nit: "non-abstract subclasses must implement all of its methods."

##########
File path: lucene/MIGRATE.md
##########
@@ -156,42 +179,42 @@ For example, these entries are not allowed at all and an 
exception is thrown whe
 日本経済新聞,日経 新聞,ニッケイ シンブン,カスタム名詞
 ```
 
-## JapaneseTokenizer no longer emits original (compound) tokens by default 
when the mode is not NORMAL (LUCENE-9123)
+### JapaneseTokenizer no longer emits original (compound) tokens by default 
when the mode is not NORMAL (LUCENE-9123)
 
-JapaneseTokenizer and JapaneseAnalyzer no longer emits original tokens when 
discardCompoundToken option is not specified.
-The constructor option has been introduced since Lucene 8.5.0, and the default 
value is changed to true.
+`JapaneseTokenizer` and `JapaneseAnalyzer` no longer emits original tokens 
when `discardCompoundToken` option is not specified.
+The constructor option has been introduced since Lucene 8.5.0, and the default 
value is changed to `true`.
 
 When given the text "株式会社", JapaneseTokenizer (mode != NORMAL) emits 
decompounded tokens "株式" and "会社" only and no
-longer outputs the original token "株式会社" by default. To output original 
tokens, discardCompoundToken option should be
-explicitly set to false. Be aware that if this option is set to false 
SynonymFilter or SynonymGraphFilter does not work
+longer outputs the original token "株式会社" by default. To output original 
tokens, `discardCompoundToken` option should be
+explicitly set to `false`. Be aware that if this option is set to `false`, 
`SynonymFilter` or `SynonymGraphFilter` does not work
 correctly (see LUCENE-9173).
 
-## Analysis factories now have customizable symbolic names (LUCENE-8778) and 
need additional no-arg constructor (LUCENE-9281)
+### Analysis factories now have customizable symbolic names (LUCENE-8778) and 
need additional no-arg constructor (LUCENE-9281)
 
-The SPI names for concrete subclasses of TokenizerFactory, TokenFilterFactory, 
and CharfilterFactory are no longer
+The SPI names for concrete subclasses of `TokenizerFactory`, 
`TokenFilterFactory`, and `CharfilterFactory` are no longer
 derived from their class name. Instead, each factory must have a static "NAME" 
field like this:
 
-```
+```java
     /** o.a.l.a.standard.StandardTokenizerFactory's SPI name */
     public static final String NAME = "standard";
 ```
 
-A factory can be resolved/instantiated with its NAME by using methods such as 
TokenizerFactory#lookupClass(String)
-or TokenizerFactory#forName(String, Map<String,String>).
+A factory can be resolved/instantiated with its `NAME` by using methods such 
as `TokenizerFactory.lookupClass(String)`
+or `TokenizerFactory.forName(String, Map<String,String>)`.
 
-If there are any user-defined factory classes that don't have proper NAME 
field, an exception will be thrown
-when (re)loading factories. e.g., when calling 
TokenizerFactory#reloadTokenizers(ClassLoader).
+If there are any user-defined factory classes that don't have proper `NAME` 
field, an exception will be thrown
+when (re)loading factories. e.g., when calling 
`TokenizerFactory.reloadTokenizers(ClassLoader)`.
 
 In addition starting all factories need to implement a public no-arg 
constructor, too. The reason for this
 change comes from the fact that Lucene now uses `java.util.ServiceLoader` 
instead its own implementation to
 load the factory classes to be compatible with Java Module System changes 
(e.g., load factories from modules).
 In the future, extensions to Lucene developed on the Java Module System may 
expose the factories from their
 `module-info.java` file instead of `META-INF/services`.
 
-This constructor is never called by Lucene, so by default it throws a 
UnsupportedOperationException. User-defined
+This constructor is never called by Lucene, so by default it throws a 
`UnsupportedOperationException`. User-defined
 factory classes should implement it in the following way:
 
-```
+```java

Review comment:
       nice!




-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to