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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/01/28 16:08:46 UTC

[jira] [Updated] (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 ]

Chetan Mehrotra updated OAK-2455:
---------------------------------
    Description: 
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

  was:
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


> 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
> ## 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)