Skip to content

Instantly share code, notes, and snippets.

@dwaghmare
Forked from alanmackenzie/search-api-example.php
Last active August 29, 2015 14:18
Show Gist options
  • Save dwaghmare/689272cf3b4965b6e3c0 to your computer and use it in GitHub Desktop.
Save dwaghmare/689272cf3b4965b6e3c0 to your computer and use it in GitHub Desktop.
<?php
$server = search_api_server_load('acquia_search_solr_server');
$index = search_api_index_load('node_index');
$query = new SearchApiQuery($index);
$query->condition('type', 'article');
$results = $query->execute();
dpm($results);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment