This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'localhost:9200/ecom/_doc/123' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"title": "Adidas NMD_R1 V3", | |
"description": "adasad ada das dasd asd", | |
"price": "154.00", | |
"filters": [ | |
{ | |
"name": "shoe_size", | |
"pretty_name": "Shoe size", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request PUT 'localhost:9200/ecom' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"mappings": { | |
"dynamic": true, | |
"properties": { | |
"title": { | |
"type": "text", | |
"copy_to": "all_filters" | |
}, |