Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Elasticsearch list paging method and system

A paging system and paging technology, applied in the list paging method and system field of Elasticsearch, can solve the problems affecting the page turning function and data export, limit the depth of paging, etc., achieve the effect of saving space, compressing data storage, and improving query efficiency

Pending Publication Date: 2022-01-18
百融至信(北京)科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a list paging method and system of Elasticsearch, which solves the technical problems that the default query data volume of Elasticsearch in the prior art is 1w, limits the depth of pagination, affects the page turning function and data export, and achieves through from+size+ The old page number + unique sorting field form performs a small jump up and down to solve the problem of list paging without limiting the depth of paging, and solves the limit of the number of items greater than 1w, realizes the page turning function and data export, and solves the display and export of customer PB-level data lists , improve query efficiency, data storage compression, better technical effect of saving space

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Elasticsearch list paging method and system
  • Elasticsearch list paging method and system
  • Elasticsearch list paging method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] like figure 1 As shown, the present application provides a list paging method of elasticsearch, wherein the method comprises:

[0028] Step S100: Set the first paging parameters of the N page under the list, where the first page parameter includes from + size + old page number + old page last unique order field;

[0029] Further, in which the first paging parameter is in the first paging parameter * size, and is smaller than the sort field query.

[0030] Specifically, the API of RESTHIGHLEVELCLIENT is recommended by ElasticSearch, and its package system operates the method of ES, including index structure management, data increasing rendex management, common query method, and can combine native ES query native syntax, function Strong. When listing, set the first paging parameters of the N page under the list, the first page parameter includes the FROM + SIZE + Old Page + Old Page Last Unique Sort Field. From is the number of initial results that should be skipped, generall...

Embodiment 2

[0051] Based on the same inventive concept Paging list of one embodiment Elasticsearch with the preceding embodiment, the present invention also provides a paging system Elasticsearch list, such as figure 2 Shown, the system comprising:

[0052] A first setting unit 11, the first setting unit 11 for a first paging parameters n pages in the list provided, wherein said first parameter comprises a tab from + size + p + old old page last field a single sort;

[0053] A second setting unit 12, a second setting unit 12 for setting a second parameter list page n page, wherein the second parameter comprises a tab from + size + p + Old Old Page a first field the unique sorting;

[0054] A first obtaining unit 13, the first obtaining unit 13 according to the first tab and said second tab parameter parameter acquired data.

[0055] Further, the system further comprising:

[0056] A second acquiring unit, a second acquisition unit for paging the total number of pieces of data, obtaining an un...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an Elasticsearch list paging method and a system. The method comprises the steps that first paging parameters of n pages under a list are set, wherein the first paging parameters comprise from + size + old page numbers + last-bit unique sorting fields of the old page number; second paging parameters of n pages on the list are set, wherein the second paging parameters comprise from + size + old page numbers + first-bit unique sorting fields of the old page numbers; and acquiring data information according to the first paging parameters and the second paging parameters. The technical problems that the paging depth is limited and the page turning function and the data export are influenced due to the fact that the total amount of query data of Elasticsearch in the prior art is 1w by default are solved.

Description

Technical field [0001] The present invention relates to the field of listings, and more particularly to a list paging method and system of elasticsearch. Background technique [0002] ElasticSearch is a popular enterprise-class search engine that implements three ways to use RESTHIGHLEVELCLIENT: the default use of from + size form; Scroll Search mode (scrolling search), for non-real-time processing of large amounts of data; Search_after mode (scrolling search), you can process depth paging in real time, but you cannot randomly jump, you can only be a page one page. [0003] However, in the process of implementing the techniques of invention inventive in the embodiment of the present application, the inventors discover at least the following techniques: [0004] Prior Art Elasticsearch default query data is 1W, restricting the depth of paging, affecting the technical issues of flip function and data export. Inventive content [0005] The present application examples are solved by...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/9038G06F16/2458
CPCG06F16/9038G06F16/2471
Inventor 郭临泉夏雨王云龙闫红天
Owner 百融至信(北京)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products