Unable to add List of string in a elastic document

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.

Pojo Class
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);

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.