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 "Mohit Kataria (JIRA)" <ji...@apache.org> on 2019/04/03 08:42:00 UTC

[jira] [Commented] (OAK-8189) Getting warning message in error logs while trying to search using filters

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

Mohit Kataria commented on OAK-8189:
------------------------------------

PFA patch for the same.

 

CC: [~tmueller], [~catholicon]

> Getting warning message in error logs while trying to search using filters
> --------------------------------------------------------------------------
>
>                 Key: OAK-8189
>                 URL: https://issues.apache.org/jira/browse/OAK-8189
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: indexing
>            Reporter: Mohit Kataria
>            Priority: Major
>         Attachments: 0001-OAK-8189-Getting-warning-message-in-error-logs-while.patch
>
>
> Log level warn is being used  at [1]. In case an index can't be used because of some filter not supported by that index, a warning is being locked. Though is a normal scenario as that query may have been created keeping another index in mind.
> e.g. 
>  select [jcr:path], [jcr:score], [rep:facet(jcr:content/metadata/x)], [rep:facet(jcr:content/metadata/y)] from [z] as
>  a where isdescendantnode(a, '/content/p')
>  Lets assume we have facets configured on index definition z on properties which are not indexed in nt:base leading to warning log. 
> [1]: [https://github.com/apache/jackrabbit-oak/blob/5deeea0055deb776fffbf268b66c4a97d096d124/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndexPlanner.java#L224]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)