jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3838) IndexPlanner incorrectly lets all full text indices to participate for suggest/spellcheck queries
Date Thu, 07 Jan 2016 13:47:40 GMT

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

Thomas Mueller commented on OAK-3838:
-------------------------------------

OK I understand now. If there is only an index for "nt:base" and the query is for node type
"acme", then the index for "nt:base" can not be used, as the index does not contain nodetype
information (and the result is not actually nodes, but suggestions). So, the index for "nt:base"
can only be used for a query on "nt:base".

As for the method name: we currently have getMixinTypes, getPrimaryTypes, getSupertypes. Those
return sets of strings. Therefore, I think the new method should be called just getNodeType
and not getNodeTypeName.

> IndexPlanner incorrectly lets all full text indices to participate for suggest/spellcheck
queries
> -------------------------------------------------------------------------------------------------
>
>                 Key: OAK-3838
>                 URL: https://issues.apache.org/jira/browse/OAK-3838
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>             Fix For: 1.4
>
>         Attachments: OAK-3838-take2.patch, OAK-3838.patch
>
>
> Currently, index planner builds plan for suggest/spellcheck queries even if the indices
don't have those functionality enabled.
> Also, there's another issue: when suggestion/spell-check come into play, we need to dis-allow
inheritance behavior of indexingRule. To clarify, a query like {{SELECT [rep:suggest()] from
[nt:unstructured] where suggest('test')}} if using some index preparing suggestions on {{nt:base}}
would give incorrect suggestions as the index would have suggested values from other type
of nodes as well.



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

Mime
View raw message