See the list of supported formats: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html#strict-date-time
Would be a nice improvement to let users customize the format.
See {{org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactoryContext}}: the idea would be to make {{asLocalDate}} et. al. return a specialized context that allows to set the format, at least in the Elasticsearch case.
Maybe at some point we could allow it for Lucene too, but that's not really a priority. |
|