Created
March 11, 2015 20:51
-
-
Save confact/6ac9ccc9f34e317e352f to your computer and use it in GitHub Desktop.
Elasticsearch codeigniter advancedquery example
This file contains 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
$esquery = '{ | |
"fields" : ["name", "bitrate", "genres","urlid","country", "country_name"], | |
"query": | |
{ | |
"query_string": { | |
"query":"'.$query.'" | |
} | |
} | |
}'; | |
echo json_encode(($this->elasticsearch->advancedquery("station",$esquery))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment