Deleting and re-index an elasticsearch index in Laravel

1451 0 0 0

Last Updated : 2024-03-29 00:17:22

If you need to change the mapping of an elasticsearch index, then you have to remove it first and then re-create and re-index it again. Here is how you can do this in a Laravel application.


  1. To remove an elasticsearch index, using postman:
    http://localhost:9200/federalbills/?

    Mohammed Anwar

    Mohammed Anwar

    Experienced technical lead PHP, MySQL and Laravel Developer for 15+ years, with proven ability to develop and create high-quality and optimized web applications. Great ability to build and optimize database design, schema and queries. Versed programing trainer and instructor delivering web courses and helping others to get into the field in a timely manner. Fast and eager learner for new technologies .