Indexing and Querying Complex Object having MAP and List

30 views
Skip to first unread message

Praveen Mishra

unread,
Aug 5, 2021, 6:21:03 AM8/5/21
to cqengine-discuss
Hi,

I am having a complex object where want to retrieve object from collection met criteria bases on values of Map attribute.

How can we Add Attribute for same and make Query.

Sample Objct structure

public class CQCustomObject {

    public final int id;

    public final String name;

    public final List<String> attributes;

    public final List<String> modules;

    public final List<CQModuleSource> cqModuleSource;

    public final Map<String, List<String>> attributesMap; 

}

public class CQModuleSource {

    public final String moduleID;

    public final List<String> sourceIds;

}

Here I want to retrieve objects matches with Key and value of  attributesMap along with other and criteria.

Reply all
Reply to author
Forward
0 new messages