Insert List of nested datatype using Java API

Hi,

I have an ArrayList of objects. Say the objects are of the following format

public class S 
{
    String ID;
    Date startTime;
    Long duration;
    List<Tag> tags;
    Process process;
}

Here, Tag and Process are POJOs.

I want to

  1. Index the Java objects in elasticsearch using the Java API
  2. Make queries in the stored index (in the nested objects as well i.e., in Tag, Process)

I am using Flink-elasticsearch connector and IndexRequest class to insert the index.

How can I do it ?

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