torann / laravel-cloudsearch Goto Github PK
View Code? Open in Web Editor NEWIndex and search Laravel models on Amazon's CloudSearch
License: BSD 2-Clause "Simplified" License
Index and search Laravel models on Amazon's CloudSearch
License: BSD 2-Clause "Simplified" License
Hi, thank you for developing this package, it is great!
But there is a suggestion for use.
Because the models will always trigger the saved event and then add the queue when save.
However, sometimes updated data may not be related to index.
Hope that new parameters can be added to the config to enable/disable the saved event of Observer.
Let us decide when we want to add a queue.
Thanks again.
Hello
I'm facing issue with queue every two days with response 400 from amazon
Error executing "UploadDocuments" on "http://SEARCHURL/2013-01-01/documents/batch?format=sdk"; AWS HTTP error: Client error:
POST http://SEARCH-URL.com/2013-01-01/documents/batch?format=sdk
resulted in a400 Bad Request
response:
{"status": "error", "errors": [{"message": "[Deprecated: Use the outer message field] Validation error for field 'body (truncated...)
I set batching_size to 10 and still face same issue
Please help
Hi, I found two issues when used:
cursor cannot be set
Because "string" == 0 will always returns true in PHP.
error message is displayed directly when an exception occurs
laravel-cloudsearch/src/CloudSearcher.php
Line 194 in 5556db9
Please help confirm, thanks.
Hey Torann, Just want to say great work you have done with this package, Ive just started to learn cloud search so everything is quite new and looking forward to working with a much more laravel friendly way by using your package. I appreciate the time and effort you have gone to with making this package it is very clean.
I have an issue i face when using search:import. I have tried with and without the Searchable triat being added to the model, The first error i get without the trait is:
php artisan search:index MasterTest
Model [\App\Api\MasterTest ] does not support searching.
With the searchable trait:
php artisan search:index MasterTest
PHP Fatal error: Class App\Api\MasterTest contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (App\Api\MasterTest::getSearchDocument) in /www/app/Api/MasterTest.php on line 8
[Symfony\Component\Debug\Exception\FatalErrorException]
Class App\Api\MasterTest contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (App\Api\MasterTest::getSearchDocument)
I have attempted to add a getSearchDocument method but unsure what the method should return or if it should be present on the model as it does not mention this in the docs?
Any help would be greatly appreciated, Thansk.
When i execute artisan search:index
i get the following error:
[Symfony\Component\Debug\Exception\FatalThrowableError] Type error: Argument 1 passed to LaravelCloudSearch\Console\IndexCommand::index() must be an instance of Illuminate\Database\Eloquent\Builder, instance of A pp\Models\Vintage given, called in /home/vagrant/sites/vinamicus-server/vendor/torann/laravel-cloudsearch/src/Console/AbstractCommand.php on line 76
I ran through all of the steps, but stuck on adding my Model.
[tracker@vps project]$ php artisan search:import Product
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "search:import" is not defined.
Did you mean one of these?
scout:import
search:fields
search:flush
search:index
search:queue
tntsearch:import
[tracker@vps project]$ php artisan search:import App\Product
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "search:import" is not defined.
Did you mean one of these?
scout:import
search:fields
search:flush
search:index
search:queue
tntsearch:import
Any help is greatly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.