Skip to content

zt9788/easy.framework.elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

easy.framework.elasticsearch

easy to use elasticsearch for 7.X

ESWrappers<TestModelClass> entityWrapper = ESWrappers.<TestModelClass>build();
        entityWrapper.or().eq("key1","admin");
        entityWrapper.and().eq("key2",3);
        entityWrapper.subCondition()
                .or().lt("key3",1574179200000L)
                .or().isNull("key4")
                .endCondition()
        .order("key5",SortOrder.ASC)
        .setUseFilter(true);
        esCrmCaseMapper.selectList(entityWrapper);


It is like

 where key1 = 'admin' and key2=3 and (key3 > 1574179200000L or key4 is null) order by key5 asc 

About

easy to use elasticsearch for 7.X

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages