Elasticsearch: ES|QL hands-on

In my previous article “Elasticsearch: An Introduction to the ES|QL Query Language”, I gave a brief introduction to Elasticsearch’s latest query language, ES|QL. In today’s article, we use some examples to demonstrate the powerful search and analysis capabilities of ES|QL in detail. Installation If you have not installed your own Elasticsearch and Kibana, please refer […]

SpringBoot–middleware technology-3: Integrate mongodb, integrate ElasticSearch, attached case with code (simple and easy to understand)

SpringBoot integrates mongodb Implementation steps: pom file import coordinates <!–mongo–> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> Yaml configuration file configures mongodb: spring: data: mongodb: uri: mongodb://localhost/spring Just create a pojo @Data @NoArgsConstructor @AllArgsConstructor public class Book {<!– –> private int id; private String name; […]

Gopher hunting using hybrid search with Elasticsearch and Go

BY CARLY RICHMOND, LAURENT SAINT-FéLIX Like animals and programming languages, search has evolved through different practices, making it difficult to choose between them. In the final blog in this series, Carly Richmond and Laurent Saint-Félix combine keyword and vector searches to find gophers in Elasticsearch using the Go client. Building software today is a commitment […]

Local construction of Elastic Stack (Elasticsearch + kibana + Logstash + FileBeat + APM) 7.17.14 version

Local construction of Elastic Stack (Elasticsearch + kibana + Logstash + FileBeat + APM) 7.17.14 version 1. Foreword: 1. This article is a non-cluster environment configuration description for the installation of Elastic Stack version 7.17.14. If you are using the 8.x version of the Elastic Stack product, this article does not apply. 2. The example […]

Springboot integrates Elasticsearch

1. Introduce dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> 2. Two methods to configure ElasticSearch settings 1. Configure in application.yml spring: data: elasticsearch: cluster-nodes: localhost:9300 cluster-name: es-wyf 2. Configure using configuration classes /** * ElasticSearch client configuration */ @Configuration public class RestClientConfig extends AbstractElasticsearchConfiguration { @Override @Bean public RestHighLevelClient elasticsearchClient() { final ClientConfiguration clientConfiguration = ClientConfiguration.builder() .connectedTo(“localhost:9200”) […]

ElasticSearch7.x – HTTP operation – Query document operation

Query all documents under the index http://192.168.254.101:9200/shopping/_search Conditional query Add conditions to the request path: http://192.168.254.101:9200/shopping/_search?q=category:Xiaomi Add conditions to the request body: http://192.168.254.101:9200/shopping/_search Request body content {<!– –> “query” :{<!– –> “match”:{<!– –> “category”:”Xiaomi” } } } If the request body content is as follows, it is a full query {<!– –> “query” :{<!– –> […]

[ElasticSearch Series-08] ElasticSearch handles the relationship between objects

ElasticSearch series overall column Content Link address [1] ElasticSearch download and installation https://zhenghuisheng.blog.csdn.net/article/details /129260827 [2] ElasticSearch concepts and basic operations https://blog.csdn.net/zhenghuishengq/article/details/134121631 [3] ElasticSearch’s advanced query Query DSL https://blog.csdn.net/zhenghuishengq/article/details/134159587 [4] Aggregation query operation of ElasticSearch https://blog.csdn.net/zhenghuishengq/article /details/134159587 [5] SpringBoot integrates elasticSearch https://blog.csdn.net/zhenghuishengq/article/details/134212200 [6] The construction of Es cluster architecture and the core concepts of clusters https://blog.csdn.net/zhenghuishengq/article/details/134258577 […]

Spring Boot integration ElasticSearch

1 Add dependencies First create a project and add ES-related dependencies to the project. The specific dependencies are as follows: <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>7.1.0</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>7.1.0</version> </dependency> 2 Create ES configuration Configure the relevant parameters of ES in the configuration file application.properties. The specific contents are as follows: elasticsearch.host=localhost elasticsearch.port=9200 elasticsearch.connTimeout=3000 elasticsearch.socketTimeout=5000 […]

[ElasticSearch Series-07] ES development scenarios and index sharding settings and optimization

ElasticSearch series overall column Content Link address [1] ElasticSearch download and installation https://zhenghuisheng.blog.csdn.net/article/details/129260827 [2] ElasticSearch concepts and basic operations https://blog.csdn. net/zhenghuishengq/article/details/134121631 [3] ElasticSearch’s advanced query Query DSL https://blog.csdn.net/zhenghuishengq/article/details/134159587 [4] Aggregation query operation of ElasticSearch https://blog.csdn.net/zhenghuishengq/article/details/134159587 [5] SpringBoot integrates elasticSearch https://blog.csdn.net/zhenghuishengq/article/details/134212200 [6] The construction of Es cluster architecture and the core concepts of clusters https: //blog.csdn.net/zhenghuishengq/article/details/134258577 […]