Easy-Es Easy-Es
💋Home
  • v3.0.0(current version)
  • What's New

    • What' s New In Easy-Es v3.0.0?
  • history version

    • v1.x.x
    • v2.x.x
  • Upgrade guide

    • Upgrade to 3.x.x instructions
💖Support
  • OS Community
  • Recommend Goods
  • Project PPT (opens new window)
  • Project introduction
  • Project members
  • PR
Join
Customer
  • Doc-Apis (opens new window)
  • Fitness plan automatic generation system (opens new window)
  • Vuepress-theme-vdoing (opens new window)
  • Gitee (opens new window)
  • GitCode (opens new window)
  • Github (opens new window)
  • 简体中文 (opens new window)
  • English (opens new window)

adv display by random ❤️become sponsor
💋Home
  • v3.0.0(current version)
  • What's New

    • What' s New In Easy-Es v3.0.0?
  • history version

    • v1.x.x
    • v2.x.x
  • Upgrade guide

    • Upgrade to 3.x.x instructions
💖Support
  • OS Community
  • Recommend Goods
  • Project PPT (opens new window)
  • Project introduction
  • Project members
  • PR
Join
Customer
  • Doc-Apis (opens new window)
  • Fitness plan automatic generation system (opens new window)
  • Vuepress-theme-vdoing (opens new window)
  • Gitee (opens new window)
  • GitCode (opens new window)
  • Github (opens new window)
  • 简体中文 (opens new window)
  • English (opens new window)
  • Quick start

    • Introduction.md
    • Applicable scene
    • Worry free
    • Avoid pit
    • Quick start
    • Springboot demo
    • Spring Integration Guide
    • Solon Integration Guide
    • Config
    • Annotation
  • Core function

    • Condition constructor

      • Introduction of Wrapper
      • Index wrapper
      • Select wrapper
      • Update wrapper
    • Index CRUD

      • Index hosting model
      • Index CRUD
    • Data CRUD

      • Data synchronization solutions
      • Data CRUD
    • Multiple data sources support
    • Dynamic indexing support
    • Four nested query
    • Chain call
  • Extended function

    • Mixed query
    • Origin query
      • API
    • Page
    • Nested
    • Join parent child
    • Get DSL
    • ExecuteDSL
    • Execute SQL
    • Custom RequestOptions
    • Custom default method
  • High-level syntax

    • Field filtering
    • Sort
    • Aggregation
    • Match&fuzzy match
    • Weight
    • Highlight
    • Geo
    • IP
  • Plugin

    • Plugin
  • Other

    • Faq
    • Difference from MP
    • MySQL and EE syntax comparison
    • Update log
    • Update plan
    • Copyright
    • Thanks
  • v3.xDoc
  • Extended function
LaoHan
2023-03-18
目录

Origin query

# API

	// Semi-native query (can also be classified as a hybrid query, commonly used when customizing Aggregation)
    SearchResponse search(LambdaEsQueryWrapper<T> wrapper) throws IOException;
	
	// Standard native query; RequestOptions can be specified
    SearchResponse<T> response = client.withTransportOptions(getTransportOptions()).search(searchRequest, entityClass);
1
2
3
4
5

Friendly Reminder

For scenarios that cannot be resolved using hybrid queries, you can call our provided standard native query method. Both the input parameters and the return values are native to ElasticsearchClient, consistent with using ElasticsearchClient directly. If you need to use ElasticsearchClient in your code, you can simply inject it using the @Autowired annotation. EE has already automatically configured this bean for you.

@Service
public class XxxService{
    // Simply inject it where needed
    @Autowried
    private ElasticsearchClient client;
}
1
2
3
4
5
6

If you need to customize even the ElasticsearchClient that EE auto-configures, we support that as well, since we have added a @ConditionalOnClass(ElasticsearchClient.class) annotation to the auto-configured class. If you have already configured your own ElasticsearchClient, the framework will use your configuration as the standard. EE provides ultimate flexibility and extensibility, ensuring you can use it with confidence.

Help us improve this document (opens new window)
Last update: 2025/08/02
Mixed query
Page

← Mixed query Page→

Theme by Vdoing | Copyright © 2021-2025 LaoHan | Zhejiang ICP No. 2022020479 | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式