mocobeta commented on a change in pull request #480:
URL: https://github.com/apache/lucene/pull/480#discussion_r757776560



##########
File path: 
lucene/luke/src/java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java
##########
@@ -152,6 +152,14 @@ public Analyzer createAnalyzerFromClassName(String 
analyzerType) {
     }
   }
 
+  private Analyzer defaultAnalyzer() {
+    try {
+      return CustomAnalyzer.builder().withTokenizer("standard").build();

Review comment:
       I checked that this works fine without any further modifications in the 
UI, although it can't be recovered once the user builds their own custom chain.
   ```
      private Analyzer defaultAnalyzer() {
   -    try {
   -      return CustomAnalyzer.builder().withTokenizer("standard").build();
   -    } catch (IOException e) {
   -      throw new LukeException("Failed to build custom analyzer.", e);
   -    }
   +    return new StandardAnalyzer();
      }
   ```
   




-- 
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]

Reply via email to