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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2018/10/09 09:23:00 UTC

[jira] [Updated] (OAK-7605) Giving multiple result when executing query (for a constraints with OR condition) for Facetextraction

     [ https://issues.apache.org/jira/browse/OAK-7605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Mueller updated OAK-7605:
--------------------------------
    Description: 
A Xpath query    

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

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.

  was:
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.


> Giving multiple result when executing query (for a constraints with OR condition) for Facetextraction
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OAK-7605
>                 URL: https://issues.apache.org/jira/browse/OAK-7605
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene, query
>            Reporter: Ayush Garg
>            Priority: Major
>         Attachments: FacetOnORTest.java
>
>
> A Xpath query    
> {noformat}
> //*[( @test = 't1' or @name='Node1')] /(rep:facet(text))/(rep:facet(test))/(rep:facet(name)) order by jcr:path
> {noformat}
> 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.



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