This type of thing is broken with Elasticsearch:
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. |