Skip to content

Instantly share code, notes, and snippets.

@anunay
Last active August 29, 2015 14:05
Show Gist options
  • Save anunay/6473efb240eaae4f1fc9 to your computer and use it in GitHub Desktop.
Save anunay/6473efb240eaae4f1fc9 to your computer and use it in GitHub Desktop.
<?php
$subjects = array("Agriculture","Economy","Politics");
$array_params = array("Subjects:" . implode(" OR Subjects:",$subjects));
$AdditionalParameters = array('fq' => array_merge($array_params), 'sort' => array($sortval . $score_sort), 'facet' => 'on', 'facet.mincount' => 1);
$search->setQuery("*:*");
$search->get_results();
//objects function may vary this is a sample code only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment