[ 
https://issues.apache.org/jira/browse/OAK-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15130147#comment-15130147
 ] 

Vikas Saurabh commented on OAK-3973:
------------------------------------

One of the possible approach is to allow a query of the form:
{noformat}
SELCT rep:suggest() from [someType] where 
*ISDESCENDANTNODE([/filter/root/path])* AND SUGGEST('sugg') //similarly for 
xpath
{noformat}

Note, the result rows would still have {{jcr:path=="/"}} (though they need to 
get {{null}} - OAK-3507) while internally what we want is to filter the results 
according to this path. [~tmueller], do you think this is acceptable query form 
for indicate that we want suggestion from under that sub-tree? Any other 
suggestions?

> There should be a way to get filtered suggestions based on some path
> --------------------------------------------------------------------
>
>                 Key: OAK-3973
>                 URL: https://issues.apache.org/jira/browse/OAK-3973
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>             Fix For: 1.4
>
>
> Currently, suggestions are indexed at index level - so, when querying for 
> suggestions, the result incorporates all documents indexed by that document.
> So, this doesn't allow filtering suggestions for a subset of indexed document 
> - at least we should be able to get filtered suggestion based on a root path.
> This seems very similar to a functionality provided by lucene vide 
> LUCENE-5528 which was fixed in lucene 4.8. Since oak is still on 4.7, so, we 
> can't exploit that feature.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to