scout-elasticsearch-driver
scout-elasticsearch-driver copied to clipboard
This package offers advanced functionality for searching and filtering data in Elasticsearch.
This closes this issue: https://github.com/babenkoivan/scout-elasticsearch-driver/issues/323 Please refer to that thread for more information, as the
Fix not exists getModel method in Builder
Adds the ability to add data into the body of each request set in the Seachable model. eg: `protected $searchSettings = [ 'track_total_hits' => true, ];`
I've added a couple of methods for filtering texts. I needed them for my specific needs, guess someone else might find them useful as well.
Attempting to resolve the https://github.com/babenkoivan/scout-elasticsearch-driver/issues/186 ElasticSearch will return 200 regardless if a record failed with bulk loading, so I'm checking the response for an errors property and if it exists,...
Add support for custom payload which same level with `query` Reference to #286
now we can dot something like ``` Model::search('*')->whereGeoDistance('pin', $position, '500m')->from($offset)->take($limit)->sort([ "_geo_distance" => [ "pin" => $position, "order" => "asc", "unit" => "km", "distance_type" => "plane", ], ] ); ```
Because Scout passes all models through MakeSerachable class when using a queue. The class uses the SerializesModels trait and any eager loaded relations will no longer be present when the...
https://github.com/babenkoivan/scout-elasticsearch-driver/issues/152