quantranhong1999 commented on code in PR #1069:
URL: https://github.com/apache/james-project/pull/1069#discussion_r908252681


##########
server/apps/distributed-app/docs/modules/ROOT/pages/configure/example_french_index.json:
##########
@@ -0,0 +1,255 @@
+{
+       "settings": {
+               "number_of_shards": 5,
+               "number_of_replicas": 1,
+               "index.write.wait_for_active_shards": 1,
+               "analysis": {
+                       "normalizer": {
+                               "case_insensitive": {
+                                       "type": "custom",
+                                       "char_filter": [],
+                                       "filter": ["lowercase", "asciifolding"]
+                               }
+                       },
+                       "analyzer": {
+                               "keep_mail_and_url": {
+                                       "tokenizer": "uax_url_email",
+                                       "filter": ["lowercase", "stop"]
+                               },
+                               "keep_mail_and_url_french": {
+                                       "tokenizer": "uax_url_email",
+                                       "filter": ["lowercase", "french_stop", 
"french_elision", "french_stemmer"]
+                               },
+                               "snowball_keep_mail_and_token": {
+                                       "tokenizer": "uax_url_email",
+                                       "filter": ["lowercase", "stop", 
"english_snowball"]
+                               }
+                       },
+                       "tokenizer": {},
+                       "filter": {
+                               "english_snowball": {
+                                       "type": "snowball",
+                                       "language": "English"
+                               },
+                               "french_elision": {
+                                       "type": "elision",
+                                       "articles_case": true,
+                                       "articles": [
+                                               "l", "m", "t", "qu", "n", "s",
+                                               "j", "d", "c", "jusqu", 
"quoiqu",
+                                               "lorsqu", "puisqu"
+                                       ]
+                               },

Review Comment:
   This is from the [default `french` 
analyzer](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html#french-analyzer)
 of ES. Not sure why you want no predefined value here. IMO we can just put 
some default values here and let people modify it further.



-- 
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: notifications-unsubscr...@james.apache.org

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


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

Reply via email to