Details
-
Bug
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The following query is taken from a test in LucenePropertyIndexTest.
select [jcr:path] from [nt:base] where propa like '%oo\%'
It works correctly in Lucene, but fails in Elastic. The Elastic module generates the following Elastic query:
{ "query": { "bool": { "filter": [{ "wildcard": { "propa": { "value": "*oo\\*" } } }] } } }
The search term sent to Elastic should be "*oo%".
The corresponding Lucene query is correct:
[nt:base] as [nt:base] /* traverse "*" where [nt:base].[propa] like '%oo\%' */
Attachments
Issue Links
- is related to
-
OAK-9886 Missing tests for like constraint in Elastic
- Closed
- links to