Created
January 19, 2015 08:42
-
-
Save real34/05371e11c2b7191ef3d8 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
public function get($id) | |
{ | |
$es = ConnectionManager::get(self::defaultConnectionName()); | |
$search = new Search($es); | |
$search->addIndex('indications'); | |
$result = $search->search($id); | |
return new Indication($result->getResults()[0]->getSource()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment