Support the ongoing development of Laravel.io →
Requests Eloquent Packages
Last updated 1 year ago.
0

Hi guys... any updates please. whatever i send the params it through an error like above.

0

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

0

the error was a Whoops? Try using Block Try-Catch to check your code is work fine or not.

0

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';

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.