Has anyone succeeded in filtering array values using Apache solr? I have nids as an array, programmatically I want to use the array to filter the solr based on the 'entity_id'.
I tried something like
$solr = apachesolr_get_solr();
$query = apachesolr_drupal_query("custom", array('q' => ''),'sort_label asc', 'search/site');
$query->addFilter('entity_id', '[10915 11013]');
$response = $query->search();
But I don't get the desired results, somewhere the apachesolr_search or apachesolr module seems to be adding quotes to the filter values something like
webapp=/solr path=/select params={sort=sort_label+asc&start=0&q=&json.nl=map&wt=json&fq=entity_id:"[10915+11013]"&rows=10} status=500