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



##########
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:
       > If analyzers common is a hard dependency we can for sure only use the 
custom analyzer.
   
   I'm not fully sure what you exactly mean by "hard dependency" though, 
analysis modules are "implementation" dependencies.
   https://github.com/apache/lucene/blob/main/lucene/luke/build.gradle
   
   > If you change to custom analyzer throughout, showing the class name makes 
no sense anymore. Do we have a good toString() for custom analyzer, so you see 
components?
   
   As for this concern, Luke shows the chain details when CustomAnalyzer is 
composed.
   "Show analysis chain" link appears in the right of the class name.
   ![Screenshot from 2021-11-27 
22-12-56](https://user-images.githubusercontent.com/1825333/143683084-c9969dd8-0b30-4dd1-a8bc-dd0da23a0519.png)
   
   Then this window pops up.
   ![Screenshot from 2021-11-27 
22-13-22](https://user-images.githubusercontent.com/1825333/143683131-c4280d0b-dbaf-44c4-ac83-f5809df15073.png)
   
   




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