How did you performed the test? If you tested out with explain then
current code in 1.0/1.2 return misleading result and this got fixed in
trunk with OAK-2943. Technically Oak would convert the OR clause to a
union query and then each part of union should then be able to make
use of index.
Chetan Mehrotra


On Mon, Sep 7, 2015 at 6:36 PM, Davide Giannella <[email protected]> wrote:
> On 07/09/2015 14:32, Burkhard Pauli wrote:
>> ...
>> Question: Does the Lucene property index support or conditions? I tried
>> even with a oak property index without success.
>>
>
> I can be be totally wrong, so please take this carefully, but AFAIR
> lucene property index does not support ORs.
>
> This is mainly used for tests but should be valid for real-life as well
>
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexPlanner.java#L452
>
> Davide
>
>

Reply via email to