use of com.shencangsheng.view.module.TemplateModuleInstance in project View-Elasticsearch by shencangsheng.
the class QueryTest method main.
public static void main(String[] args) throws Exception {
FileReader templateJson = new FileReader("template.json");
String queryJson = templateJson.readString();
ObjectMapper objectMapper = new ObjectMapper();
List<QueryInstance> queryInstances = objectMapper.readValue(queryJson, new TypeReference<>() {
});
BoolQueryBuilder boolQueryBuilder = BoolQueryBuilderFactory.boolQueryBuilderFactory(queryInstances, new TemplateModuleInstance());
System.out.println(boolQueryBuilder);
}
Aggregations