ElasticSearch + postman simple to use

ElasticSearch-1
1.1-ElasticSearch introduction
ElasticSearch I would not have introduced what can be found here will know it in the end is doing a.

Download the 1.2-ElasticSearch the
download URL:
https://www.elastic.co/cn/downloads/elasticsearch
download.png
recommended to download version 7.5.0 and below ElasticSearch, tar download specific packages according to their own system, if you want to find a version history in the following past releases.

As for why it is recommended to use version 7.5.0 and below, because of the current Chinese word Ik latest version of the package has only to version 7.5.0.


1.3-ElasticSearch installed to run
1, it can extract the tar package After downloading, you can put under / usr / local / Cellar directory.
2, the command line into the next cd /usr/local/Cellar/elasticsearch-7.5.0/bin directory, use the command line ./elasticsearch run ElasticSearch can. You can enter the URL of the page after running a successful localhost: 9200.
Run successfully .pngAt this point ELasticSearch installation is complete.


2-PostMan
introduce 2.1-postman is
a very useful test port and simulate http request software, whether it is front-end back-end interface testing can be carried out using this test or data acquisition software.

Download the 2.2-postman
download URL: https: //www.getpostman.com/downloads/

2.3-postman use
Here Insert Picture Description
our request URL can then enter localhost: 9200, and then select the information get can get ElasticSearch:
Here Insert Picture Description
You can use put localhost: 9200 / test to create a test index,
Create a test index
Obtaining test index information
Adding data to test the index:Just added to it to obtain data
very convenient, there's more to the reader can explore on their own This chapter is relatively simple, the next chapter we look at how to use ik Chinese word breaker.

Released seven original articles · won praise 3 · Views 1176

Guess you like

Origin blog.csdn.net/qq_38980636/article/details/104066250