Full text search engine Elasticsearch basic tutorial
Full text search is the most common requirement. Open source Elasticsearch is the first choice of full-text search engines. It can quickly store, search and analyze massive data. Wikipedia, Stack Overflow and Github all use it. At the bottom of elasticsearch is the open source library Lucene. However, you can't use Lucene directly. You must w ...
Posted by Restless on Fri, 03 Dec 2021 09:10:48 -0800
HTTP request operation of ElasticSearch
Mapping operation
The mapping in the index library is similar to the table structure in the database. To create a database table, you need to set the field name, type, length, constraint, etc; The same is true for the index library. You need to know what fields are under this type and what constraint information each field has. This is ...
Posted by Gordonator on Thu, 02 Dec 2021 19:00:58 -0800
Redis basics 7 - data types and practice types
Business scenario 1
Automatic dialogue of semantic recognition language in the field of artificial intelligence. The trial behavior of trial users is limited to 10 calls per minute
Solution
1. Design a counter to record the call times, which is used to control the service execution times. Take the user id as the key and the usage times as th ...
Posted by mightymouse on Tue, 30 Nov 2021 17:52:40 -0800
Elasticsearch learning notes
1 getting started with elasticsearch
Elasticsearch is an open source search engine based on Apache Lucene. Whether in open source or proprietary domain, Lucene can be regarded as the most advanced, best performing and most powerful search engine library so far. However, Lucene is just a library. If you want to use it, you must use Java as ...
Posted by joon on Tue, 30 Nov 2021 14:09:50 -0800
Elasticsearch concept and query syntax
Elasticsearch concept and query syntax
ES is an open source search engine written in Java. It uses Lucene internally for indexing and searching. By encapsulating Lucene, it hides the complexity of Lucene and provides a set of simple and consistent restful APIs instead.
However, elastic search is not only Lucene, but also a full-text search en ...
Posted by sane993 on Sun, 28 Nov 2021 21:27:50 -0800
Spring Cloud Alibaba technology stack [in]
Spring Cloud Alibaba Sentinel
1, Sentinel introduction
With the popularity of microservices, the stability between services and services becomes more and more important. Sentinel takes traffic as the starting point to protect the stability of services from multiple dimensions such as traffic control, fuse degradation and system load protect ...
Posted by shane18 on Fri, 26 Nov 2021 18:03:51 -0800
A thinkphp package that can easily generate CSV files from Eloquent models.
composer require whereof/think-csv
$users = User::select(); // All users
$csvExporter = new \whereof\think\csv\Export();
$csvExporter->build($users, ['email', 'name'])->download();
Create CSV
$exporter - > build ($modelcollection, $fields) requires three parameters. The first is the model (a collection of models), the second is t ...
Posted by ckdoublenecks on Sat, 20 Nov 2021 18:43:41 -0800
Elasticsearch dynamic template
1, Dynamic mapping
When we first used ES, we probably didn't know much about mapping, and we didn't add mapping. Why can we add documents normally. That's because ES can dynamically map. When adding documents, fields that do not exist can be dynamically added to mapping. The following are some default mapping methods.
|Value | if missing, add ...
Posted by cornelombaard on Sat, 20 Nov 2021 10:46:15 -0800
Elasticsearch learning notes II
Learn the second of the notes made by Elasticsearch.
catalogue
1, elasticsearch overview.
2, Comparison and selection of Solr and elasticsearch.
1. solr overview.
2. Lucene overview.
3. Applicable scenarios and comparison of Solr and elasticsearch.
4,elasticsearch-head.
3, Kibana overview.
1. kibana overview.
2. kibana is sinicized. ...
Posted by jawaking00 on Tue, 09 Nov 2021 13:06:09 -0800
Codeforces Round #753 (Div. 3)
There are three main situations:
It's been a second since I took a look at my beard. The implementation is also very simple. I write casually / too lazy to write
After a second, I felt that it would not be realized, so I went to look at other people's code
I didn't understand the question
A
Direct simulation.
B
Simple math problems + find rul ...
Posted by morris on Wed, 03 Nov 2021 17:48:13 -0700