[
https://issues.apache.org/jira/browse/OAK-9708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom Blackford updated OAK-9708:
-------------------------------
Description:
A query like this:
{code}
//*[jcr:contains(., '"/my/path"')] option(index tag testTag)
{code}
...which uses an index with a path regex, will still log a WARN like :
{code}
Potentially improper use of index /oak:index/regexIndex with queryFilterRegex
(["']|^)/ to search for value /my/path
{code}
....because of the presence of the property restriction ":indexTag" (from the
index tag option).
This should be ignored in the logic here -
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndexPlanner.java#L308-L319
was:
A query like this:
{code}
//*[jcr:contains(., '"/my/path"')] option(index tag testTag)
{code}
...which uses an index with a path regex, will still log a WARN like :
{code}
Potentially improper use of index /oak:index/regexIndex with queryFilterRegex
(["']|^)/ to search for value /my/path
{code}
....because of the presense of the property restriction ":indexTag" (from the
index tag option).
This should be ignored in the logic here -
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndexPlanner.java#L308-L319
> Invalid logging of 'improper' regex WARN
> ----------------------------------------
>
> Key: OAK-9708
> URL: https://issues.apache.org/jira/browse/OAK-9708
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: indexing
> Reporter: Tom Blackford
> Priority: Minor
>
> A query like this:
> {code}
> //*[jcr:contains(., '"/my/path"')] option(index tag testTag)
> {code}
> ...which uses an index with a path regex, will still log a WARN like :
> {code}
> Potentially improper use of index /oak:index/regexIndex with queryFilterRegex
> (["']|^)/ to search for value /my/path
> {code}
> ....because of the presence of the property restriction ":indexTag" (from the
> index tag option).
> This should be ignored in the logic here -
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndexPlanner.java#L308-L319
--
This message was sent by Atlassian Jira
(v8.20.1#820001)