Test learning-118-Realize the query of more than 10,000 data in the big data platform Es (elasticsearch)

Foreword:

The Es component elasticsearch in the big data platform is a frequently used component in big data research and development projects. It is popular because of its ability to quickly query data. But even before es is configured in the early stage, it can only support 10,000 data response queries.

The most direct manifestation is paged query. Assuming that there are 10 items per page, when jumping to 1000 pages, the data response is timely. But if you jump to 2000 pages, or 4000 pages, the data will not be queried.

1. Configure es to increase the query data limit to 200 million

1. Find your Es index, copy the name, and close

Copy index name: credit_trace

2. Compile 3 parts of information and copy them to their respective ones

ip information fill in your own

http://ip:9200/    PUT
credit_trace/_settings?preserve_existing=true
{
  "max_result_window" : "2000000000"
 }

 Fill in the corresponding information to the corresponding position

Finally, click Submit Request. If the configuration is correct, the window on the right side will display the following {acknowledge: true}

As shown in the figure above, the setting is successful, and the maximum query volume is 200 million.

3. Change the request method to get, and submit the request for query. If the following figure shows status: 400, it means it is successful.

 

4. Finally, open the index credit_trace, as shown in the figure below, search for the name--->action--->open.

That's it. In this way, the es query can reach 200 million.

If you have any comments, you must reply 

Guess you like

Origin blog.csdn.net/u013521274/article/details/115356113