I am trying to implement hook_search_api_multi_query_alter
but it seems ‘IN’ operator does not work here. I have to check condition on array. Any pointers for start building custom operator.
function my_module_search_api_multi_query_alter(SearchApiMultiQueryInterface $query) { $indexes = $query->getIndexes(); dpm($query->getFields()); if (isset($indexes['solr_content_index_dev'])) { $query->condition('solr_content_index_dev:nid', array(2918, 2367), 'IN'); } }