Home > Back-end >  Spring Data Elasticsearch - How to get mapping for a field
Spring Data Elasticsearch - How to get mapping for a field

Time:06-16

Wondering how to do this in java using spring data elasticsearch library.

 GET /my-index-000001/_mapping/field/user

CodePudding user response:

This is not supported by Spring Data Elasticsearch. You'll have to get the mapping for the index and extract the part you need from the returned Map<String, Object>.

  • Related