Created
September 14, 2022 18:10
-
-
Save n1lux/f44577628e605eb07460651eb3d1fc61 to your computer and use it in GitHub Desktop.
ES Ingest Pipeline
This file contains 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
GET /test2/_count | |
delete test2 | |
put test2 | |
#delete pipeline | |
DELETE _ingest/pipeline/id-hasher | |
#create processor fingerprint | |
PUT _ingest/pipeline/id-hasher | |
{ | |
"processors": [ | |
{ | |
"fingerprint": { | |
"fields": [ | |
"first_name", | |
"last_name", | |
"dob", | |
"phone" | |
], | |
"target_field": "_id" | |
} | |
} | |
] | |
} | |
PUT /test2/_settings | |
{ | |
"index.default_pipeline": "id-hasher" | |
} | |
GET test2/_search | |
{"query":{"match_all":{}}} | |
POST test2/_doc | |
{"first_name":"john","last_name":"doezek","dob":"1987-12-21","phone":"7894456123","so":"on"} | |
POST test2/_doc/_bulk | |
{ "index":{} } | |
{"first_name":"john","last_name":"doe","dob":"1987-12-21","phone":"7894456123","so":"on"} | |
{ "index":{} } | |
{"first_name":"john","last_name":"doe","dob":"1987-12-21","phone":"7894456123","so":"on"} | |
{ "index":{} } | |
{"first_name":"john","last_name":"doe","dob":"1987-12-21","phone":"7894456123","so":"on"} | |
{ "index":{} } | |
{"first_name":"john","last_name":"doe","dob":"1987-12-21","phone":"7894456123","so":"on"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment