The use of the Sense plug-in for Elasticsearch to add, delete, modify and check, an introduction to the Sense plug-in for the chrome browser, offline installation, and simple usage records

Overview of the Sense chrome plugin

Sense is a chrome-based plugin. Through the Sense extension, we can easily operate ElasticSearch. ElasticSearch is an open source distributed search engine with high reliability and support for many enterprise-level search use cases. Like Solr4, it is built on Lucene. Time-time indexing and full-text search are supported.
ElasticSearch as a Lucene-based search server. It provides a full-text search engine with distributed multi-user capabilities, and its interface is also RESTful. The document storage type is also in json format. Then we can operate ElasticSearch for CRUD as simple as operating webapi. On the Linux server, we can use the curl command to operate. But as window users, most of us are not familiar with the curl command.


Download and install

Originally, this extension can be downloaded and installed directly in the plug-in library of the chrome browser. However, due to various reasons, it was removed from the store. Just like many apps, they are almost downloaded from the APP store. Anyway, right now, when I write an article, you cannot search for it, so you can only download it from other channels.

The following is my screenshot when it is still available for download in the plugin library of the chrome browser.


It looked like it could be searched before, but now it can't be found.


Of course, it's not the point that this search can't be found.

I will provide a link to the cloud disk, and those who need it can download it.

Link: https://pan.baidu.com/s/1skEpN45 Password: ehd5

I added a little bit between the names, the cloud disk is always caught by river crabs,,,

For the chrome browser, how to install offline plug-ins, please refer to the link below.

Google has flagged xxx as malicious and blocked the solution


Oh, this is an open source project on the github website, the specific address is as follows:

https://github.com/bleskes/sense
https://github.com/cheics/sense


simple to use

URL format:
http://localhost:9200/<index>/<type>/[<id>]
where index and type must be provided.
id is the unique identifier of a piece of data (document), if it is repeated, it will overwrite the existing one.
Index and type stratify information, which is convenient for management. Index can be understood as a database, and type can be understood as a data table.

For the understanding of this, index and type and documentation, please refer to another article on wet chest. I wrote it myself.

Elasticsearch keywords: index, type, field, index status, mapping, document, vernacular


a. add

PUT /blog/article/3
{ "title":"Big Wet Breast", "content":"Under the Big Tree", "tags":"Big Brother" }


After running, the data will go to es.

Explanation of URL: According to the explanation of the URL above, this is the index index of a blog, and there is a type called article in it. When you create a new one by default, assign an initial value to its ID, 3.

That's how it is explained


b. Modification/overwriting
modification is to set the id to be consistent with the existing record.

Let's not give an example.


c. Delete
DELETE /ezsonar_config/module/5a2f8b2ad4c63d6091c5974e

Screenshots in action.


Click the green button, and once executed, it will return the result on the right. Then, this doc, the document disappears, delete it.


d. Inquiry

Inquiries are all kinds of postures, and I will definitely not be able to show them all.

Simple is a very simple get request.


Still similar to the above explanation, first is the type of request: get, then which index, blog, then type, article, then ID, 2

Of course, run, you will get the result.


For detailed CRUD commands, please refer to the official:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index.html

Put a few more screenshots below to record the use of this sense plugin

Take a look at the data used.


Then there is crud, add, delete, modify and check.




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325934524&siteId=291194637