docker run \ --name elk01 \ -e node.name="elk01" \ -p 9200:9200 \ docker.elastic.co/elasticsearch/elasticsearch:8.11.3 # reset password docker exec -it elk01 bash -c "(mkfifo pipe1); ( (elasticsearch-reset-password -u elastic -i < pipe1) & ( echo $'y\n123456\n123456' > pipe1) );sleep 5;rm pipe1" # load test data curl -k -u elastic:123456 -XPOST "https://localhost:9200/fruits/_bulk" \ -H 'content-type: application/json' -d' {"index":{"_id":"1"}} {"name_base64":"QXBwbGU=","color_hex":"477265656e"} {"index":{"_id":"2"}} {"name_base64":"QW5hbmFz","color_hex":"59656c6c6f77"} {"index":{"_id":"3"}} {"name_base64":"Q2hlcnJ5","color_hex":"526564"} ' curl -k -u elastic:123456 -XGET "https://localhost:9200/fruits/_search?pretty" \ -H 'content-type: application/json' -d' { "query": { "bool": { "filter": { "script": { "script": { "source": "Debug.explain($(params.field,\"\"))", "params": { "field": "name_base64.keyword", "filteronvalue": "Apple" } } } } } } }'