Hi guys... any updates please. whatever i send the params it through an error like above.
I don't have experience with elastic, but I would ask this over at the github page as I expect you will get a better response there.
If it was me I would build the index on saving the record - could be in the controller or in the model
Then perform the search in your search controller
the error was a Whoops? Try using Block Try-Catch to check your code is work fine or not.
First of all you have to index all the data on elasticsearch server. After that you have to specify following code where ever you want to pull the data from elasticsearch.
$searchParams['index'] = 'Your Index Name'; $searchParams['type'] = 'Your Type Name'; // Nothing but Collection or Table Name. $searchParams['body']['query']['query_string']['query'] = 'foofield:barstring';
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community