80 0 0 0
Last Updated : 2021-01-18 14:46:18
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.
http://localhost:9200/federalbills/
php artisan elastic:create-index App\\ElasticsearchIndexConfigurators\\FederalBillIndexConfigurator
php artisan make:searchable-model MyModel --index-configurator=MyIndexConfigurator
php artisan scout:import "App\Bill"
//PUT
https://search-alpha-ejy342scj7a3coqfhhtkopoh5u.us-east-2.es.amazonaws.com/newIndexname
//PUT
https://search-alpha-ejy342scj7a3coqfhhtkopoh5u.us-east-2.es.amazonaws.com/_ingest/pipeline/attachment?pretty
// Now, in the body in postmap use raw and JSON and add this :
{
"description" : "Extract attachment information encoded in Base64 with UTF-8 charset",
"processors" : [
{
"attachment" : {
"field" : "content",
"indexed_chars" : -1
}
}
]
}