In spring-data-elasticsearch 3.0.0.RC2, @Field annotation has a boolean index() and a String analyzer().
How to config "not_analyzed" with @Field annotation?
With Spring Data ES 3.0.0 (which works with ES 5.x), you now do it like this:
@Field(type=FieldType.Keyword)
String myField;
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more