You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "fabriziofortino (via GitHub)" <gi...@apache.org> on 2024/01/19 14:55:49 UTC
[PR] OAK-10599: oak-search-elastic: improve aggregations support [jackrabbit-oak]
fabriziofortino opened a new pull request, #1275:
URL: https://github.com/apache/jackrabbit-oak/pull/1275
(no comment)
--
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-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10599: oak-search-elastic: improve aggregations support [jackrabbit-oak]
Posted by "fabriziofortino (via GitHub)" <gi...@apache.org>.
fabriziofortino merged PR #1275:
URL: https://github.com/apache/jackrabbit-oak/pull/1275
--
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-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10599: oak-search-elastic: improve aggregations support [jackrabbit-oak]
Posted by "nfsantos (via GitHub)" <gi...@apache.org>.
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-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org