prabhat2k15 / elasticsearch
This package is abandoned and no longer maintained.
No replacement package was suggested.
This service is for UI Integration
This package has no released version yet, and little information is available.
README
Elastic Search for UI Integration
##how to Integrate
- include search service use service\SearchService;
- Create SearchService Object $ss=new SearchService($host);//$host is the url where you want to hit the search
- Call search($searchkey) method with your search query as parameter
- Save the response and use it accordingly.
##sample Implementation
require_once "vendor/autoload.php";
use service\SearchService;
if (isset($_GET['query'])) {
$host="www.example.com";
$s=new SearchService($host);
$res = $s->search($_GET['query']);
print_r($res);
}
to search the product by ID
$s=new SearchService();
$res = $s->searchById($id);
print_r($res);
To search product by multiple ids, pass the array of ids
$ids = array('0' => 2,'1'=>3,'2'=>4 );
$s=new SearchService();
$res = $s->searchByIds($ids);
print_r($res);
--- for line
heading 1
heading 2
heading3
- ul1
- ul2
- sub ul1
- sub ul2
- ol1
- ol2
- ol1
- ol2 facebook
for code priview
function sum(){
return a+b;
}
this is highlighted
text