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
makeAllSearchable()
method.Could you please provide guidance on which command I should use to reindex my products correctly?
Thank you for your assistance.
-
@andreaplansol
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. -
@ashish2409 well, if it is the case don't you think you'll need to update your documentation and remove the index section?
here -
As per your concern, i checked again and our documentation is updated, please follow the below link for the elastic search configuration.
Link - https://devdocs.bagisto.com/1.5.x/advanced/indexing-products-to-elasticsearch.html#checking-indexes
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.Thank You.