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/03/15 12:25:38 UTC
[jira] [Resolved] (OAK-2234) Support property existence query (for
Lucene)
[ https://issues.apache.org/jira/browse/OAK-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra resolved OAK-2234.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.2)
1.1.8
Added support with http://svn.apache.org/r1666790 in same way as OAK-2517 is implemented. If enabled then in if given property is found to be not null then name of that property would be stored in {{:notNullProps}} Lucene field and on query side a {{TermQuery}} would be used
To make use of this feature set {{notNullCheckEnabled}} to {{true}}
{noformat}
+ indexRules
- jcr:primaryType = "nt:unstructured"
+ nt:base
+ properties
- jcr:primaryType = "nt:unstructured"
+ assetType
- propertyIndex = true
- name = "assetType"
- notNullCheckEnabled = true
{noformat}
> Support property existence query (for Lucene)
> ---------------------------------------------
>
> Key: OAK-2234
> URL: https://issues.apache.org/jira/browse/OAK-2234
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: oak-lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.1.8
>
>
> Add support for property existence query like
> {noformat}
> select [jcr:path] from [nt:base] where propa is not null
> {noformat}
> Opposite of this cannot be be supported i.e. {{propa is null}} though!
> With OAK-1208 query creation logic explicitly ignores such queries but with recent Lucene changes it appears to be possible LUCENE-995
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)