How does Elasticsearch indexes non-text fields

Perhaps take a read through this.

keyword, numerics date etc are not tokenized.. only text fields are tokenized

keywords are stored in the inverted index and doc_values as well

Numerics are also stored in the inverted index but with some other meta data to support range searches etc.