./bin/elasticsearch-plugin install mapper-murmur3
PUT foo/_mapping/bar
{
"properties": {
"qux": {
"type": "text",
"fields": {
"hash": {
"type": "murmur3"
}
}
}
}
}
POST foo/bar/2
{
"qux": "Lorem ipsum elastic audio technica glad"
}
GET foo/_field_stats?fields=*&pretty
Note that no object is returned for the qux.hash
field
PUT foo/_mapping/bar
{
"properties": {
"boop": {
"type": "text",
"fields": {
"raw": {
"type": "keyword"
}
}
}
}
}
POST foo/bar/3
{
"boop": "Lorem ipsum elastic audio technica glad errand math"
}
GET foo/_field_stats?fields=*&pretty
Note that an object is returned for the boop.raw
field