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

Giving multiple result when executing query (for a constraints with OR condition) for Facetextraction

    XMLWordPrintableJSON

    Details

      Description

      A Xpath query   

      //*[( @test = 't1' or @name='Node1')] /(rep:facet(text))/(rep:facet(test))/(rep:facet(name)) order by jcr:path
      

      For testing this error run the test method "testFacetOnOR2()" in attached java file.

      In this test method three node are created and properties are set to the nodes.

      when this query runs it should give the result set of size 2. but it is giving the result set of size 3

      Result set contain same nodepath(i.e node) 2 times as it is common in result set of both constraints separately  i.e "@test='t1' " and "@name='Node1' " . 

      For more understanding please run the test method  "testFacetOnOR2()"  in attached java file.

        Attachments

        1. FacetOnORTest.java
          6 kB
          Ayush Garg

          Issue Links

            Activity

              People

              • Assignee:
                catholicon Vikas Saurabh
                Reporter:
                Ayush__Garg Ayush Garg
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: