Re: Query options in queries with OR

2019-03-22 Thread Piotr Tajduś

OAK-8162 created.

Best regards,
Piotr Tajduś


On 22.03.2019 14:38, Thomas Mueller wrote:

Hi,

Yes, this definitely looks like a bug... Could you file a Jira issue please?

Regards,
Thomas


On 22.03.19, 13:12, "Vikas Saurabh"  wrote:

 That sounds like a bug to me. Would love to hear Thomas Mueller's thoughts
 too though.
 
 --Vikas

 (sent from mobile)
 
 On Fri 22 Mar, 2019, 17:26 Piotr Tajduś,  wrote:
 
 > Hi,

 >
 > Not sure if this is a bug, but when query with OR is divided into union
 > of queries, options (like index tag) are not passed into subqueries. I
 > have fixed it in my copy of sources in
 > org.apache.jackrabbit.oak.query.QueryImpl.copyOf() by copying options 
too.
 >
 >
 > Best regards,
 >
 > Piotr Tajduś
 >
 >
 >
 







Re: Query options in queries with OR

2019-03-22 Thread Thomas Mueller
Hi,

Yes, this definitely looks like a bug... Could you file a Jira issue please?

Regards,
Thomas


On 22.03.19, 13:12, "Vikas Saurabh"  wrote:

That sounds like a bug to me. Would love to hear Thomas Mueller's thoughts
too though.

--Vikas
(sent from mobile)

On Fri 22 Mar, 2019, 17:26 Piotr Tajduś,  wrote:

> Hi,
>
> Not sure if this is a bug, but when query with OR is divided into union
> of queries, options (like index tag) are not passed into subqueries. I
> have fixed it in my copy of sources in
> org.apache.jackrabbit.oak.query.QueryImpl.copyOf() by copying options too.
>
>
> Best regards,
>
> Piotr Tajduś
>
>
>




Re: Query options in queries with OR

2019-03-22 Thread Vikas Saurabh
That sounds like a bug to me. Would love to hear Thomas Mueller's thoughts
too though.

--Vikas
(sent from mobile)

On Fri 22 Mar, 2019, 17:26 Piotr Tajduś,  wrote:

> Hi,
>
> Not sure if this is a bug, but when query with OR is divided into union
> of queries, options (like index tag) are not passed into subqueries. I
> have fixed it in my copy of sources in
> org.apache.jackrabbit.oak.query.QueryImpl.copyOf() by copying options too.
>
>
> Best regards,
>
> Piotr Tajduś
>
>
>


Query options in queries with OR

2019-03-22 Thread Piotr Tajduś

Hi,

Not sure if this is a bug, but when query with OR is divided into union 
of queries, options (like index tag) are not passed into subqueries. I 
have fixed it in my copy of sources in 
org.apache.jackrabbit.oak.query.QueryImpl.copyOf() by copying options too.



Best regards,

Piotr Tajduś