Forked from alanmackenzie/search-api-example.php
Last active
August 29, 2015 14:18
-
-
Save dwaghmare/689272cf3b4965b6e3c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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