Hi, guys
Datatype.TokenCount is mapped to tokencount, resulting in elasticsearch mapper_parsing_exception:
"type":"mapper_parsing_exception","reason":"no handler for type [tokencount] declared on field [length]"
The correct mapping should be token_count