Apache solr filter based on array values
I finally figured it out. Just a small change to what Clive suggested will solve the issue.

$query-&gt;addParam('fq', "entity_id:(10915 OR 11013)");


The above code gives me the expected response, i.e., result of node 10915 and 11013.

Hope this helps :)