Using 2 search preference together

Hi All,

We are using elasticsearch version 0.90.5, Java API for our application.
We need to specify node location "_only_node:" preference to search the data and "_shards:2" preference as well. Could some one help me to use both the preference together.

Thank you in advance.