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

Tommaso Teofili commented on OAK-2234:
--------------------------------------

updated test and benchmarks in 
https://gist.github.com/tteofili/52856d938fcd465eab58, it looks like using the 
filter directly in the _IndexSearcher#search_ is a bit faster than using it to 
create a _ConstantScoreQuery_.

> Support property existence query
> --------------------------------
>
>                 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.0.9, 1.2
>
>
> 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)

Reply via email to