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

Full-text queries fail in Boolean analyzed fields when executed over Elastic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • indexing
    • None

    Description

      Index definition:

      "testIndex": {
       "jcr:primaryType": "nt:unstructured",
       "analyzed": true,
       "type": "Boolean",
       "name": "propa"
      }
      

      Data:

      /test/a    [propa = true ]
      /test/b    [propa = "true"]
      /test/c    [propa = false] 

      The following query executed with Elastic:

      /jcr:root//*[jcr:contains(@propa, 'tru*')]
      

      does not return the correct results of {{{}

      {"/test/a", "/test/b"}

      {}}}. The same query executes correctly with Lucene.

      Using full-text search on a Boolean property is a feature that likely has not many real-world use-cases, but as Lucene supports it, Elastic should also support it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nuno.santos Nuno Santos
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: