[
https://issues.apache.org/jira/browse/OAK-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295238#comment-14295238
]
Chetan Mehrotra commented on OAK-2455:
--------------------------------------
After discussing with [~tmueller] it was decided to move forward now by using
the native-query support provided by Oak QueryEngine to pass in suggestor
parameters till the time QueryEngine can provide support for such constructs
> Support for invoking suggestor via Query
> ----------------------------------------
>
> Key: OAK-2455
> URL: https://issues.apache.org/jira/browse/OAK-2455
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: query
> Reporter: Chetan Mehrotra
> Fix For: 1.1.6
>
>
> Similar to planned support for spell check OAK-2175 we need to provide
> support for suggestor via the Query engine. It should be possible to various
> parameters as supported by Lucene suggestor impl [1]
> {code}
> SELECT rep:suggest() FROM nt:base WHERE jcr:path = '/' AND SUGGEST('fox is')
> {code}
> Such an approach should allow
> # Selecting the right suggestor index via path
> # Ability to pass parameter like number of suggestions required, context etc
> [1]
> https://github.com/apache/lucene-solr/blob/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/Lookup.java#L252
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)