Created
January 6, 2024 09:55
-
-
Save atakde/7e1dbadc4e0684ac03a3b3ea9505bea7 to your computer and use it in GitHub Desktop.
MySearchEngine (Medium Elastic Example)
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 | |
namespace Atakan\ElasticEx; | |
class MySearchEngine | |
{ | |
public function search($params) | |
{ | |
$elastic = Elastic::getInstance(); | |
$client = $elastic->getClient(); | |
return $client->search($params); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment