NexNoSQL Client: a three-in-one visual client management tool for Elasticsearch, Redis, and MongoDB

background:

In our work, we use Elasticsearch as storage to support content search. Elasticsearch is a software that everyone is familiar with. It is a distributed, highly scalable, and high-real-time search and data analysis engine. It not only supports text indexing, but also supports aggregation operations. , using it can not only do data search, but also do report analysis, which is very convenient.

Pain points:

We also encountered many pain points during the use process, mainly as follows:

1. The written data cannot be searched immediately : Elasticsearch has a refresh interval, and only the data after the refresh can be searched. If you want to search immediately after inserting the data, you need the program to wait, which is embarrassing to think about. Of course, if you want to query the inserted data, there is a way, that is to query through _id, there is only one way.

2. Can’t find a friendly visual client: the original development projects are based on MySQL and Redis, which are supported by excellent visual client software, such as navicat for mysql, Redis Desktop Manager, etc., which can reduce the The difficulty we learn and use, even if we know little about MySQL and Redis, does not prevent us from using them conveniently. But for Elasticsearch, we have not found a similar tool for a long time. Although there is Elasticsearch-Head in the online search, it only supports simple queries and cannot perform data update operations; Kinaba is an official work of ES, and its functions are very powerful. However, DSL statements need to be written, and the operation is complicated, which is not conducive to Xiaobai's direct start, and is also not conducive to quick use in work.

NexNoSQL Client

Recently, I finally found an Elasticsearch visualization client software on the Internet. The most important thing is that it is free, so hurry up and get it. Client download address:

https://github.com/NexNoSQL/NexNoSQLClient/releases/download/v1.0.0/NexNoSQL-Client-1.0.0-setup.exe​github.com/NexNoSQL/NexNoSQLClient/releases/download/v1.0.0/NexNoSQL-Client-1.0.0-setup.exe

It integrates the data management of Elasticsearch, Redis, and MongoDB. If you use these three types in your project, you don’t need to install the three types of software. You can install one of them. I mainly use its ES function .

1. Connect to the cluster:

After the software is installed, click the new button directly, and a new cluster dialog box will pop up, select type=elasticsearch, fill in the corresponding name, IP and port number, and then you can connect to the cluster corresponding to the node. In the ES cluster There are multiple nodes, we only need to fill in the IP and port number of a certain node.

2. ES functions: index, index template, index alias, management monitoring, advanced operation

After connecting, we can see the elasticsearch function of the software

3. Index operation

This time I will talk about the operation of the index

3.1. Create an index:

Click + next to the index directory, and the settings related to index building are displayed on the right. The upper part is the basic settings of the index, such as the name and type of the index, the number of fragments, the number of copies, and the size of the returned result. The next part is the mapping setting of the index field, such as the name of the field, the type of the field, whether it can be retrieved, does it look familiar, it is as simple as setting the MySQL table in Navicat, and there is no need to write complicated ES scripts anymore . In addition, the "Script" TAB on the right also has corresponding script displays, which can be used for our learning. For example, let's set a type, and then see how the script is generated.

3.2. Insert index data

After we build an index, what we definitely want to do is to insert data into the index. The data in ES is in JSON format, so how do we insert data? Click the index directory, and then you can see all the indexes in the cluster, and then click the test2 index we just added, and the following interface appears:

Click "Add Document" to pop up the corresponding dialog box, and then we can enter the content in JSON format:

3.2. Query index data

This is the biggest advantage of this software. It is very simple to query data, and there are many query conditions that can be selected:

Supports all, id, must, most not, should, and also supports sort operations.

If we select all to view, we can query the relevant data and display the total number of the index.

3.3. Modify and delete index data

After querying the data, you can modify and delete the data. There is an operation button on the right side of the above picture, isn’t it particularly convenient?

at last:

I will write here first today. Here are only index-related operations. You can explore other content by yourself. In addition, there are functions of Redis and MongoDB. I will write a few more articles to share my experience with you.

Guess you like

Origin blog.csdn.net/duzm200542901104/article/details/129960342