Incorrect mapping for 'java.lang.Short and java.lang.Byte' fields with Elasticsearch.

Description

Hi,

I recently came across the following case, some of my attributes are not being converted correctly, specific cases of type byte and short.

Maybe because lucene does not have these types, but in elasticsearch we have.

It would be nice as these fields, because are optimized compared to a text / keyword.

I created a test case to be documented here, and maybe in elasticsearch 6.x or before, we'll be able to use these types.

Example class:

The following mapping is created:

Test Case: https://github.com/frekele/hibernate-search-elasticsearch-test-case/tree/HSEARCH-2908
Travis CI log: https://travis-ci.org/frekele/hibernate-search-elasticsearch-test-case

Environment

None

Assignee

Fabio Massimo Ercoli

Reporter

Leandro Kersting de Freitas

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure