Created
July 24, 2019 04:28
-
-
Save ReeMii/beb17ac7141a28db83c7ba6051124edc to your computer and use it in GitHub Desktop.
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
curl -X PUT "localhost:9200/2250-jobstream-dev/_mapping/job" -H 'Content-Type: application/json' -d' | |
{ | |
"properties": { | |
"wp_id": { | |
"type": "text", | |
"fields": { | |
"raw": { | |
"type": "text", | |
"store": true | |
} | |
} | |
} | |
} | |
} | |
' | |
# przez kibanę | |
PUT 2250-jobstream-dev/_mapping/job | |
{ | |
"properties": { | |
"country_code": { | |
"type": "text", | |
"fields": { | |
"raw": { | |
"type": "text", | |
"store": true | |
}, | |
"keyword": { | |
"type": "keyword", | |
"ignore_above": 256 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment