jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayush Garg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-7606) Doing Faceting only on the resultset of one constraints when query contain multiple constraint with OR condition
Date Fri, 06 Jul 2018 09:36:00 GMT

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

Ayush Garg updated OAK-7606:
----------------------------
    Description: 
Xpath query is  *"//[(@test = 't1' or @name = 'Node2' )]/(rep:facet(text))/(rep:facet(name))
order by jcr:path*"

For understanding this error please run the test method "testFacetOnOR()"  in attached java
file.

In this method 3 nodes are created and  properties are set to nodes.

FacetResult should be on the final result set. But FacetResult set is based on result set
by first constraint "@test='t1' " .

For more understanding run the test method

  was:
For understanding this error please run the test method "testFacetOnOR()"  in attached java
file.

In this method 3 nodes are created and  properties are  set to nodes.

And Xpath query is 

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

FacetResult should be on the final result set. But FacetResult set is based on result set
by first constraint "@test='t1' " .

For more understanding run the test method


> Doing Faceting only on the resultset of one constraints when query contain multiple constraint
with OR condition 
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-7606
>                 URL: https://issues.apache.org/jira/browse/OAK-7606
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene, query
>            Reporter: Ayush Garg
>            Priority: Major
>         Attachments: FacetOnORTest.java
>
>
> Xpath query is  *"//[(@test = 't1' or @name = 'Node2' )]/(rep:facet(text))/(rep:facet(name))
order by jcr:path*"
> For understanding this error please run the test method "testFacetOnOR()"  in attached
java file.
> In this method 3 nodes are created and  properties are set to nodes.
> FacetResult should be on the final result set. But FacetResult set is based on result
set by first constraint "@test='t1' " .
> For more understanding run the test method



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

Mime
View raw message