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 2014/10/16 12:59:33 UTC

[jira] [Updated] (OAK-2205) Allow native query to be run against specifc property index

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

Chetan Mehrotra updated OAK-2205:
---------------------------------
    Description: 
With support for multiple Lucene indexes its not possible to allow a native query to pickup specific Lucene index

bq. select [jcr:path] from [nt:base]  where native('lucene', 'name:(Hello OR World)')

To support running this query against a specific Lucene property index 'foo' we can encode the index name in function name

bq. select [jcr:path] from [nt:base]  where native('foo', 'name:(Hello OR World)')

  was:
With support for multiple Lucene indexes its not possible to allow a native query to pickup specific Lucene index

bq. select [jcr:path] from [nt:base]  where native('lucene', 'name:(Hello OR World)')

To support running this query against a specific Lucene property index 'foo' we can encode the index name in function name

bq. select [jcr:path] from [nt:base]  where native('lucene-foo', 'name:(Hello OR World)')


> Allow native query to be run against specifc property index
> -----------------------------------------------------------
>
>                 Key: OAK-2205
>                 URL: https://issues.apache.org/jira/browse/OAK-2205
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: oak-lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.0.8, 1.2
>
>
> With support for multiple Lucene indexes its not possible to allow a native query to pickup specific Lucene index
> bq. select [jcr:path] from [nt:base]  where native('lucene', 'name:(Hello OR World)')
> To support running this query against a specific Lucene property index 'foo' we can encode the index name in function name
> bq. select [jcr:path] from [nt:base]  where native('foo', 'name:(Hello OR World)')



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