Brian is right, if you map your field as not_analyzed, then you can do
exact case-sensitive matches on it, as well as term facets/aggregations and
sorts. This applies to fields like IDs, Guids, or anything you can think of
that you don't want tokenized:
{
"mappings": {
"doc": {
"properties": {
"Id": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/edbe39c7-9983-40ff-afa2-c7f61319dc6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.