Bug with `php artisan scout:import` on Bagisto v1.5.1 and Elasticsearch 7.17.13
I'm encountering an issue when trying to reindex products on Bagisto v1.5.1 using Elasticsearch 7.17.13, following the guide provided in the BagistoDevDocs
When I run the following command:
php artisan scout:import Webkul\Product\Models\ProductFlat
I'm getting the following error message:
In ForwardsCalls.php line 71: Call to undefined method Webkul\Product\Models\ProductFlat::makeAllSearchable()
It seems like there is an issue with the
Could you please provide guidance on which command I should use to reindex my products correctly?
Thank you for your assistance.
As per checking the concern in core Bagisto,
This method does not exist in our bagisto. If you are using this method in your project Product Section. You Need to define this method in you modal ProductFlat.
Once you do that you will not be able to see such issue.
In case you find any issue please do let us know.
As per your concern, i checked again and our documentation is updated, please follow the below link for the elastic search configuration.
Once the above steps are followed and completed you need to go to
Admin -> Configure -> Catalog -> Product -> Search Mode -> Select Elastic Search
@ashish2409 Thank you! Indeed i was referring to the 1.x version of the documentation.
I hope this helps you in your query.
In case you find any issue do let us know.