Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8189

Getting warning message in error logs while trying to search using filters

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: indexing
    • Labels:

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              thomasm Thomas Mueller
              Reporter:
              tihom88 Mohit Kataria
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: