Using below code Index and document is created but List field is added in document.
In elastic search plugin head Id, name are presents but list of tags field is missing.
Please suggest how to store list data in elastic documents.
Code
Pojo Class
`@Getter
@Setter
public class User {
String id = null;
String name = null;
private List<String> tags;
}`
Insert data to elastic document code
public Object insertData(User user) {
Map<String, Object> dataMap = objectMapper.convertValue(user, Map.class);
IndexRequest indexRequest = new IndexRequest(INDEX, TYPE, user.getId()).source(dataMap);
IndexResponse indexResponse = restHighLevelClient.index(indexRequest, RequestOptions.DEFAULT);
}