You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2015/02/04 12:59:34 UTC

[jira] [Resolved] (OAK-2455) Support for invoking suggestor via Query

     [ https://issues.apache.org/jira/browse/OAK-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili resolved OAK-2455.
----------------------------------
    Resolution: Fixed
      Assignee: Tommaso Teofili

fixed in r1657128

> 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
>            Assignee: Tommaso Teofili
>             Fix For: 1.1.6
>
>         Attachments: OAK-2455.0.patch, OAK-2455.1.patch
>
>
> 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
> ## search phrase
> ## Set of contexts - contexts to filter the lookup by
> ## onlyMorePopular - return only more popular results
> ## num - maximum number of results to return
> [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)