[
https://issues.apache.org/jira/browse/OAK-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra updated OAK-2190:
---------------------------------
Attachment: OAK-2190.patch
[Proposed approach|^OAK-2190.patch] (makes uses of existing support) but does
not seem to work as for above query the propertyRestriction does not have
{{isLike}} set to true and instead its a range restriction looking for {{propa
> 'hum' and propa < 'hun'}}. This gets translated to Lucene query {{propa:[hum
TO hun]}} and that somehow does not work
Probably the proper way would be to use prefix query and such string comparison
does not work.
Checked with [~tmueller] and query engine transaltes like expression to range
one
[~alex.parvulescu] and [~tmueller] thoughts?
> Support for like query for string
> ---------------------------------
>
> Key: OAK-2190
> URL: https://issues.apache.org/jira/browse/OAK-2190
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: oak-lucene
> Reporter: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.0.8, 1.2
>
> Attachments: OAK-2190.patch
>
>
> Lucene property index should support {{LIKE}} operation. So a query like
> bq. select [jcr:path] from [nt:base] where propa like 'hum%'
> Should be implemented in terms of prefix query
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)