Code Monkey home page Code Monkey logo

laravel-cloudsearch's People

Contributors

torann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-cloudsearch's Issues

enable or disable the saved event of Observer

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.

400 Bad Request

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 a 400 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

cursor cannot be set, error message is displayed directly when an exception occurs

Hi, I found two issues when used:

  1. cursor cannot be set
    Because "string" == 0 will always returns true in PHP.

    $this->cursor = $cursor == 0 ? 'initial' : $cursor;

    After setting $cursor will only be "initial".

  2. error message is displayed directly when an exception occurs

    dd($e->getAwsErrorMessage() ?: $e->getMessage());

Please help confirm, thanks.

search:import abstract method error for getSearchDocument

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.

Console command search:index not working

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

command search:import is not defined

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.