fabriziofortino commented on code in PR #923:
URL: https://github.com/apache/jackrabbit-oak/pull/923#discussion_r1183823792


##########
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticCustomAnalyzer.java:
##########
@@ -189,6 +189,10 @@ private static List<String> loadContent(NodeState file, 
String name) throws IOEx
             try (BufferedReader br = new BufferedReader(content)) {
                 return br.lines()
                         .map(String::trim)
+                        // remove empty lines and comments
+                        .filter(l -> l.length() > 0 && !l.startsWith("#"))

Review Comment:
   I have never seen this format for both stop words and comments. I don't even 
understand what the  `|` means in the configuration (example: `de             | 
 from, of`). It might be that lucene/elastic don't complain with a 
configuration like this but I am not sure about the results. I can create a 
test with this format but I am not sure about a query that proves this 
configuration.



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

Reply via email to