Hi,

You could use a tag (see 
http://jackrabbit.apache.org/oak/docs/query/query-engine.html#Query_Option_Index_Tag).
 So: 

* add the second index with a higher cost than the original index (e.g. using a 
high costPerExecution / costPerEntry)
* in this second index, set the tag "myindex"
* in the query, use "option(index tagged myindex)"

That way, only your query will use that index, and the other queries will use 
the (lower cost) default index.

Regards,
Thomas


Reply via email to