Execute a search against the Solr search server.
public retrieveResults ( &$searchRequest, &$totalResults ) : array | ||
$searchRequest | SolrSearchRequest | |
$totalResults | integer An output parameter returning the total number of search results found by the query. This differs from the actual number of returned results as the search can be limited. | |
return | array | An array of search results. The main keys are result types. These are "scoredResults" and "alternativeSpelling". The keys in the "scoredResults" sub-array are scores (1-9999) and the values are article IDs. The alternative spelling sub-array returns an alternative query string (if any) and the number of hits for this string. Null if an error occurred while querying the server. |