nfsantos commented on code in PR #1275:
URL: https://github.com/apache/jackrabbit-oak/pull/1275#discussion_r1475664290


##########
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticIndexHelper.java:
##########
@@ -108,14 +112,30 @@ private static void mapInternalProperties(@NotNull 
TypeMapping.Builder builder)
                                         .searchAnalyzer("keyword")
                                         .searchQuoteAnalyzer("keyword")))
                 .properties(FieldNames.PATH_DEPTH,
-                        b1 -> b1.integer(
-                                b2 -> b2.docValues(false)))
+                        b1 -> b1.integer(b2 -> b2.docValues(false)))
                 .properties(FieldNames.FULLTEXT,
-                        b1 -> b1.text(
-                                b2 -> b2.analyzer("oak_analyzer")))
+                        b1 -> b1.text(b2 -> b2.analyzer("oak_analyzer")))
                 .properties(ElasticIndexDefinition.DYNAMIC_BOOST_FULLTEXT,
-                        b1 -> b1.text(
-                                b2 -> b2.analyzer("oak_analyzer")));
+                        b1 -> b1.text(b2 -> b2.analyzer("oak_analyzer")))
+                .properties(FieldNames.SPELLCHECK,
+                        b1 -> b1.text(b2 -> b2.analyzer("trigram")))
+                .properties(FieldNames.SUGGEST,
+                        b1 -> b1.nested(
+                                // TODO: evaluate 
https://www.elastic.co/guide/en/elasticsearch/reference/current/faster-prefix-queries.html

Review Comment:
   This link is not valid



-- 
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: dev-unsubscr...@jackrabbit.apache.org

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

Reply via email to