We're updating the issue view to help you get more done. 

Using DSL with Elasticsearch and dates is broken

Description

This type of thing is broken with Elasticsearch:

1 Query query = monthQb.keyword().onField( "dateOfBirth" ).matching( new Date() ).createQuery();

This is due to the fact that the default analyzer is used to analyze the search term and it separates the dates in several tokens, namely [t, z].

We have to special case FieldBridges which we don't want to analyze. There is already something like that for field bridges considered numeric but it should be generalized.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.6.0.Alpha3
5.6.0.Alpha1
5.6.0.Alpha2

Priority

Major