A data display screen dominating processing method, system, electronic equipment and product
By receiving search keywords and paging, the search performance problems caused by the Bucket Aggregation function in the prior art are solved, and faster response speed and better user experience are achieved.
Patent Information
- Application Number
- CN202410818215.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-06-24
AI Technical Summary
When the prior art processes large amounts of product data, the Bucket Aggregation function causes search performance problems, consumes a large amount of system resources, and affects the user experience.
By receiving search keywords, searching according to the default search conditions, obtaining manufacturer information of product data, and paging processing based on the default paging size and the limited number of product products for the same page, ensuring that the number of product data with the same manufacturer information on each page does not exceed the limit, and finally transmitting the data to the front-end in order of page numbers for display.
It effectively avoids the problem of excessive screen display of product data of the same merchant, improves the system response speed and stability, and improves the user's e-commerce information search experience.
Smart Images

Figure CN118690094B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and specifically relates to a data display screen dominating processing method, system, electronic equipment and product. Background Art
[0002] To facilitate online shopping, major e-commerce platforms provide users with product search functions, and users can initiate searches by entering product keywords. On e-commerce platforms, if the product sorting rules favor products from certain manufacturers (for example, based on sales, reviews, and other indicators), then when users browse the product list, the homepage or first few pages displayed on the front end may be occupied by product data from a few large manufacturers, forming a "screen domination" phenomenon, which not only affects the exposure opportunities of other manufacturers' products, but may also reduce the user's shopping experience due to insufficient diversity of product data.
[0003] To solve the screen domination problem, the existing solution is to use the Bucket Aggregation function of the Elasticsearch search engine (a distributed search and data analysis engine based on the full-text search and word segmentation technology of the Lucene full-text search engine, which can quickly and efficiently execute complex search queries and meet the storage and retrieval requirements of various types of data). This function is similar to the GROUP BY statement in MySQL (an open source relational database management system) (used to combine aggregate functions and group result sets according to one or more columns). The product data stored in the database can be grouped according to certain conditions (such as manufacturers, categories, etc.), and then a certain number of product data are selected from each group for display. This ensures that products from different manufacturers can get a certain display opportunity on the front-end search results page, avoiding excessive screen space occupation by product data of one or several manufacturers.
[0004] However, in the process of using the prior art, the inventors found that the prior art has at least the following problems:
[0005] There are potential search performance issues when using the Bucket Aggregation function. Specifically, when the aggregation operation is applied to a large amount of commodity data, the aggregation processing and statistical process is quite complex and time-consuming, resulting in the consumption of more system resources such as CPU (Central Processing Unit), memory and I / O (Input / Output). At the same time, the latency of data query increases, affecting the user experience. Summary of the invention
[0006] The present invention aims to solve the above technical problems at least to a certain extent. The present invention provides a data display screen dominance processing method, system, electronic device and product.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] In a first aspect, the present invention provides a data display screen dominance processing method, comprising:
[0009] Receive a search keyword sent by a designated front end, and perform a search based on the search keyword and a preset default search condition to obtain a search result; wherein the default search condition includes a default paging size, and the search result includes a plurality of commodity data;
[0010] Acquire manufacturer information corresponding to the plurality of product data in the search result;
[0011] According to the default paging size and the preset limit number of same-vendor products per page, the plurality of product data in the search result are paging processed to obtain a first product data set corresponding to each page one by one; wherein, in the first product data set corresponding to any page, the number of product data with the same vendor information does not exceed the limit number of same-vendor products per page, and the total number of each page is greater than 1;
[0012] The page numbers of the first product data sets corresponding to all pages are obtained, and all the first product data sets are transmitted to the designated front end in the order of the page numbers, so that the designated front end can visually display the product data in all the first product data sets in the order of the page numbers.
[0013] In a possible design, the default search condition also includes a preset default search strategy; correspondingly, a search is performed according to the search keyword and the preset default search condition to obtain a search result, including:
[0014] Setting query parameters and search types corresponding to the specified query syntax according to the search keywords and the default search conditions;
[0015] Encapsulate the query parameter and the search type according to the specified query grammar to obtain initial query request data;
[0016] Calling a preset screen dominance algorithm, so as to obtain system configuration information based on the screen dominance algorithm and the default search strategy, and calculating the amount of data to be returned for a single search based on the system configuration information and the default paging size;
[0017] Encapsulating the amount of data to be returned for a single search into the initial query request data to obtain final query request data;
[0018] A search is performed according to the final query request data to obtain a search result.
[0019] In a possible design, the specified query syntax adopts the DSL query syntax of the Elasticsearch search engine; correspondingly, when retrieving data according to the final query request, it is implemented by calling the API interface of the Elasticsearch search engine.
[0020] In one possible design, the system configuration information includes the number of pages to be processed; correspondingly, the amount of data to be returned in a single search is the product of the number of pages to be processed and the default paging size.
[0021] In a possible design, the search result is in the format of a JSON array, and the multiple product data in the search result constitute multiple array objects in the JSON array; correspondingly, any product data in the search result includes a product name, product image, product price and / or the manufacturer to which the product belongs.
[0022] In a possible design, obtaining the manufacturer information corresponding to the plurality of commodity data one by one includes:
[0023] Calling a preset screen dominance algorithm, and parsing and processing the search results based on the screen dominance algorithm to obtain the plurality of product data;
[0024] The manufacturer information is respectively parsed from the plurality of commodity data to obtain the manufacturer information corresponding to the plurality of commodity data in the search result.
[0025] In a possible design, after obtaining the manufacturer information corresponding to the plurality of product data in the search result, the method further includes:
[0026] The plurality of commodity data are grouped according to different manufacturer information to obtain a second commodity data set corresponding to each different manufacturer information; wherein the total number of each different manufacturer information is greater than 1.
[0027] In a second aspect, the present invention provides a data display screen dominance processing system, which is used to implement any of the data display screen dominance processing methods described above; the data display screen dominance processing system includes:
[0028] A data retrieval module, used to receive a search keyword sent by a designated front end, and perform a search based on the search keyword and a preset default search condition to obtain a search result; wherein the default search condition includes a default paging size, and the search result includes a plurality of commodity data;
[0029] a paging processing module, which is in communication with the data retrieval module and is used to obtain the manufacturer information corresponding to the plurality of the product data in the retrieval results; and is also used to perform paging processing on the plurality of the product data in the retrieval results according to the default paging size and the preset limit number of products of the same manufacturer per page, so as to obtain a first product data set corresponding to each page; wherein, in the first product data set corresponding to any page, the number of product data with the same manufacturer information does not exceed the limit number of products of the same manufacturer per page, and the total number of each page is greater than 1;
[0030] The paging data output module is communicatively connected with the paging processing module, and is used to obtain the page numbers of the first product data set corresponding to all pages, and transmit all the first product data sets to the designated front end in the order of the page numbers, so that the designated front end can visually display the product data pages in all the first product data sets in the order of the page numbers.
[0031] In a third aspect, the present invention provides an electronic device, comprising:
[0032] a memory for storing computer program instructions; and,
[0033] The processor is used to execute the computer program instructions to complete the operation of the data display screen dominating processing method as described in any one of the above items.
[0034] In a fourth aspect, the present invention provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the data display screen dominating processing method as described in any one of the above items.
[0035] The beneficial effects of the present invention are:
[0036] The present invention discloses a method, system, electronic device and product for processing data display dominance screen, which can avoid the problem of excessive dominance screen display of product data of the same merchant on one page, and at the same time, the system has fast response speed and strong stability, which is conducive to improving the user's e-commerce information search experience. Specifically, during the implementation of the present invention, first, a search keyword sent by a designated front end is received, and a search is performed according to the search keyword and a preset default search condition including a default paging size to obtain a search result, and then the manufacturer information corresponding to the multiple product data in the search result is obtained; then, according to the default paging size and the preset limit number of products of the same manufacturer per page, the multiple product data in the search result are paged to obtain a first product data set corresponding to each page; finally, the page numbers of the first product data set corresponding to all pages are obtained, and all the first product data sets are transmitted to the designated front end in the order of the page numbers, so that the designated front end can visualize the product data in all the first product data sets in the order of the page numbers. In this process, after obtaining the search results and the manufacturer information corresponding to the multiple product data in the search results, the present invention performs paging processing on the multiple product data in the search results, and ensures that in the first product data set corresponding to each page, the number of product data with the same manufacturer information does not exceed the limited number of products of the same manufacturer per page, instead of adopting the technical solution of the prior art of first grouping the multiple product data in the search results and then selecting a fixed number of product data from each grouping set in turn. This can be applied to the situation where a large amount of product data is retrieved, while ensuring the performance of the system and providing users with a better e-commerce information search experience.
[0037] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flowchart of a data display screen dominance processing method in an embodiment;
[0039] Figure 2 This is a module block diagram of a data display screen dominance processing system in an embodiment;
[0040] Figure 3 It is a module block diagram of an electronic device in an embodiment. DETAILED DESCRIPTION
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0042] Embodiment 1:
[0043] This embodiment discloses a method for processing data display screen dominance, which is executed based on a server of an e-commerce platform. The server may be, but is not limited to, a computer device or a virtual machine with certain computing resources, such as a personal computer, a smart phone, a personal digital assistant, or a wearable device, or a virtual machine; Figure 1 As shown, the method may include but is not limited to the following steps:
[0044] S1. Receive the search keywords sent by the designated front end, and perform a search based on the search keywords and preset default search conditions to obtain search results; wherein the default search conditions include a default paging size, and the search results include multiple product data; it should be noted that, in this embodiment, the search keywords are keywords input by the user to the designated front end or obtained by screening for retrieving the product data required by the user; during implementation, different default search conditions can be set according to different system search modules, wherein the default paging size is the number of product data displayed on each page, which is predefined according to the device type, page settings, etc. of the designated front end and is not limited here.
[0045] In this embodiment, the default search conditions also include a preset default search strategy; as an example, the default search strategy is a custom setting of the e-commerce platform, such as setting to search for three-day new product data, search for popular hot-selling column product data, or search for gold medal product data, etc., which is not limited here. Correspondingly, in step S1, a search is performed according to the search keywords and the preset default search conditions to obtain a search result, including:
[0046] S101. Setting query parameters and search types corresponding to the specified query syntax according to the search keywords and the default search conditions;
[0047] It should be noted that, in this embodiment, the specified query syntax adopts the DSL (a Java open source framework for building type-safe SQL query statements) query syntax of the Elasticsearch search engine; correspondingly, the query parameters include query parameters such as docs (document array parameter), _type (specified type) and _source (specified field to be queried), and the search type is set according to the type of the search keyword. Search types include filter (conditional pass), must (complete match), should (or operation) and wildCardQUery (fuzzy match), etc., which are not limited here.
[0048] S102: Encapsulate the query parameter and the search type according to the specified query grammar to obtain initial query request data.
[0049] In this embodiment, when a user needs to search for product data containing the keyword "shirt", the e-commerce platform server encapsulates the query parameters and search types obtained according to the search keywords input by the user and the default search conditions as follows:
[0050] GET index_name / ? Search#Sends a search request to the index named "index_name". The query parameter of the index request is "?Search"
[0051] {
[0052] "query":{#Query object, used to define the query type and conditions to be executed
[0053] "match":{#A match query that finds all documents that match the given field and value.
[0054] "keyword":"Search keyword"#Fields to be searched that include "Search keyword"
[0055] }
[0056] },#{} is the request body, including specific query parameters and settings
[0057] "from":1, / / page number#Paging parameter, indicating that data will be returned starting from the first result;
[0058] "size":100 / / Page size#Paging parameter, indicating the maximum number of documents returned for each query
[0059] }.
[0060] S103. Call the preset screen dominating algorithm, so as to obtain the system configuration information based on the screen dominating algorithm according to the default search strategy, and calculate the amount of data to be returned for a single search according to the system configuration information and the default paging size.
[0061] Specifically, in step S103, the system configuration information includes the limit number of products of the same manufacturer per page and the number of pages to be processed; correspondingly, the amount of data to be returned in a single search is the product of the number of pages to be processed and the default paging size.
[0062] S104. Encapsulate the amount of data to be returned for a single search into the initial query request data to obtain final query request data; specifically, in this embodiment, the amount of data to be returned for a single search is encapsulated into the initial query request data as a size parameter (a paging parameter, indicating the maximum number of documents returned for each query); in this embodiment, the final query request data obtained can also be referred to as DSL query request data.
[0063] S105. Perform a search according to the final query request data to obtain a search result. It should be noted that, in this embodiment, the search according to the final query request data is performed by calling the API (Application Programming Interface) interface of the Elasticsearch search engine.
[0064] Specifically, in this embodiment, in the process of retrieving commodity data by the Elasticsearch search engine, first, the final query request is parsed to convert the final query request into a query DSL that can be understood by the Elasticsearch search engine; then, the query is executed through the Elasticsearch search engine, and the commodity document data matching the search keyword and the default search condition is queried in the commodity database. In this process, the inverted index structure and distributed search engine of the Elasticsearch search engine are used to efficiently locate the matching commodity document data. Once the matching commodity document data is retrieved, the Elasticsearch search engine sorts the commodity document data according to the sorting method specified by the user, and returns partial results according to the paging information; among them, common sorting methods include sorting by relevance, price, sales volume, etc. After the retrieved commodity document data is sorted and paging, the final retrieval result is obtained, and the retrieval result is returned to the server of the e-commerce platform. After receiving the retrieval result, the server of the e-commerce platform in this embodiment can further process the retrieval result as needed, such as rendering the search result page, displaying the commodity list, etc., which is not limited here.
[0065] In this embodiment, the search result adopts the format of JSON array (an ordered data set that can contain multiple elements, also known as array object, and each array object is separated by commas), and the multiple product data in the search result constitute multiple array objects in the JSON array; correspondingly, any product data in the search result includes basic product information such as product name, product image, product price and / or product manufacturer.
[0066] S2. Obtaining manufacturer information corresponding to the plurality of commodity data in the search result.
[0067] Specifically, in step S2, obtaining the manufacturer information corresponding to the plurality of commodity data one by one includes:
[0068] S201. Calling a preset screen dominance algorithm, and parsing the search results based on the screen dominance algorithm to obtain the plurality of commodity data; specifically, in the implementation process of this embodiment, Alibaba fastJSON toolkit (a high-performance JSON processor written in Java language, which can convert between JSON strings and Java objects) is used to parse the search results;
[0069] S202. Analyze and obtain manufacturer information from the plurality of commodity data respectively, and obtain manufacturer information corresponding to the plurality of commodity data in the search result.
[0070] In addition, in step S2 of this embodiment, after obtaining the manufacturer information corresponding to the plurality of commodity data in the search results, the method further includes:
[0071] The plurality of commodity data are grouped according to different manufacturer information to obtain a second commodity data set corresponding to each different manufacturer information; wherein the total number of each different manufacturer information is greater than 1, that is, the number of the second commodity data sets is multiple. It should be noted that the plurality of commodity data are grouped according to different manufacturer information to facilitate rapid acquisition of the manufacturer information of each commodity data when the commodity data is paging in step S3.
[0072] S3. According to the default paging size and the preset limit number of same-manufacturer products per page, the multiple product data in the search results are paging processed to obtain a first product data set corresponding to each page; wherein, in the first product data set corresponding to any page, the number of product data with the same manufacturer information does not exceed the limit number of same-manufacturer products per page, and the total number of each page is greater than 1, that is, the number of first product data sets is multiple; it should be noted that the limit number of same-manufacturer products per page is the data in the system configuration information obtained according to the default search condition, that is, the system configuration information also includes the limit number of same-manufacturer products per page. In this embodiment, when the multiple product data in the search results are paging processed, they are executed in the order in which the product data in the search results are returned, and when product data exceeding the limit number of same-manufacturer products per page appears in a certain page, it is moved to the next page, and a product data with different manufacturer information is taken from the subsequent product data to fill in the position, until all product data in the search results are paging completed, and finally the corresponding page number data is taken according to the page number passed in by the specified front end.
[0073] S4. Obtain the page numbers of the first product data sets corresponding to all pages, and transmit all the first product data sets to the designated front end in the order of the page numbers, so that the designated front end can visually display the product data in all the first product data sets in the order of the page numbers.
[0074] This embodiment can avoid the problem of excessive screen display of product data of the same merchant on one page, and at the same time, the system has a fast response speed and strong stability, which is conducive to improving the user's e-commerce information search experience. Specifically, during the implementation of this embodiment, first, the search keyword sent by the designated front end is received, and the search is performed according to the search keyword and the preset default search conditions including the default paging size to obtain the search results, and then the manufacturer information corresponding to the multiple product data in the search results is obtained; then, according to the default paging size and the preset limit on the number of products of the same manufacturer per page, the multiple product data in the search results are paged to obtain the first product data set corresponding to each page; finally, the page numbers of the first product data set corresponding to all pages are obtained, and all the first product data sets are transmitted to the designated front end in the order of the page numbers, so that the designated front end can visualize the product data in all the first product data sets in the order of the page numbers. In this process, after obtaining the search results and the manufacturer information corresponding to the multiple product data in the search results, this embodiment performs paging processing on the multiple product data in the search results, and ensures that in the first product data set corresponding to each page, the number of product data with the same manufacturer information does not exceed the limited number of products of the same manufacturer per page, instead of adopting the technical solution of the prior art of first grouping the multiple product data in the search results and then selecting a fixed number of product data from each grouping set in turn. This can be applied to the situation where a large amount of product data is retrieved, while ensuring the performance of the system and providing users with a better e-commerce information search experience.
[0075] Embodiment 2:
[0076] This embodiment discloses a data display screen dominance processing system, which is used to implement the data display screen dominance processing method in embodiment 1; Figure 2 As shown, the data display screen dominance processing system includes:
[0077] A data retrieval module, used to receive a search keyword sent by a designated front end, and perform a search based on the search keyword and a preset default search condition to obtain a search result; wherein the default search condition includes a default paging size, and the search result includes a plurality of commodity data;
[0078] a paging processing module, which is in communication with the data retrieval module and is used to obtain the manufacturer information corresponding to the plurality of the product data in the retrieval results; and is also used to perform paging processing on the plurality of the product data in the retrieval results according to the default paging size and the preset limit number of products of the same manufacturer per page, so as to obtain a first product data set corresponding to each page; wherein, in the first product data set corresponding to any page, the number of product data with the same manufacturer information does not exceed the limit number of products of the same manufacturer per page, and the total number of each page is greater than 1;
[0079] The paging data output module is communicatively connected with the paging processing module, and is used to obtain the page numbers of the first product data set corresponding to all pages, and transmit all the first product data sets to the designated front end in the order of the page numbers, so that the designated front end can visually display the product data pages in all the first product data sets in the order of the page numbers.
[0080] It should be noted that the working process, working details and technical effects of the data display screen dominance processing system provided in this embodiment 2 can be found in embodiment 1 and will not be repeated here.
[0081] Embodiment 3:
[0082] Based on Embodiment 1 or 2, this embodiment discloses an electronic device, which may be a smart phone, a tablet computer, a laptop computer, or a desktop computer. The electronic device may be referred to as a user terminal, a portable terminal, a desktop terminal, etc. Figure 3 As shown, the electronic equipment includes:
[0083] a memory for storing computer program instructions; and,
[0084] The processor is used to execute the computer program instructions to complete the operations of the data display screen dominating processing method as described in any one of Example 1.
[0085] Specifically, the processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen.
[0086] The memory 302 may include one or more computer-readable storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the data display screen dominance processing method provided in Example 1 of the present application.
[0087] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the communication interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a display screen 305 and a power supply 306.
[0088] The communication interface 303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. In some embodiments, the processor 301, the memory 302, and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302, and the communication interface 303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0089] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with a communication network and other communication devices through electromagnetic signals.
[0090] The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof.
[0091] The power supply 306 is used to supply power to various components in the electronic device.
[0092] Embodiment 4:
[0093] Based on any one of Examples 1 to 3, this embodiment discloses a computer program product, including a computer program or instructions, which, when executed by a computer, implements the data display dominance processing method as described in any one of Example 1.
[0094] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data display screen dominance processing method, characterized by: include: Receive a search keyword sent by a designated front end, and perform a search based on the search keyword and a preset default search condition to obtain a search result; wherein the default search condition includes a default paging size, and the search result includes a plurality of commodity data; Acquire manufacturer information corresponding to the plurality of product data in the search result; According to the default paging size and the preset limit number of same-vendor products per page, the plurality of product data in the search result are paging processed to obtain a first product data set corresponding to each page one by one; wherein, in the first product data set corresponding to any page, the number of product data with the same vendor information does not exceed the limit number of same-vendor products per page, and the total number of each page is greater than 1; Obtaining page numbers of the first product data sets corresponding to all pages, and transmitting all the first product data sets to a designated front end in the order of the page numbers, so that the designated front end can visually display the product data in all the first product data sets in the order of the page numbers; The default search conditions also include a preset default search strategy; correspondingly, a search is performed according to the search keywords and the preset default search conditions to obtain search results, including: Setting query parameters and search types corresponding to the specified query syntax according to the search keywords and the default search conditions; Encapsulate the query parameter and the search type according to the specified query grammar to obtain initial query request data; Calling a preset screen dominance algorithm, so as to obtain system configuration information based on the screen dominance algorithm and the default search strategy, and calculating the amount of data to be returned for a single search based on the system configuration information and the default paging size; Encapsulating the amount of data to be returned for a single search into the initial query request data to obtain final query request data; A search is performed according to the final query request data to obtain a search result.
2. A data display screen dominating processing method according to claim 1, characterized in that: The specified query syntax adopts the DSL query syntax of the Elasticsearch search engine; correspondingly, when searching according to the final query request data, it is realized by calling the API interface of the Elasticsearch search engine.
3. A data display screen dominating processing method according to claim 1, characterized in that: The system configuration information includes the number of pages to be processed; correspondingly, the amount of data to be returned in a single search is the product of the number of pages to be processed and the default paging size.
4. A data display screen dominating processing method according to claim 1, characterized in that: The search result is in the format of a JSON array, and the multiple product data in the search result constitute multiple array objects in the JSON array; correspondingly, any product data in the search result includes a product name, a product image, a product price and / or a manufacturer to which the product belongs.
5. A data display screen dominating processing method according to claim 4, characterized in that: Obtaining the manufacturer information corresponding to the plurality of product data, including: Calling a preset screen dominance algorithm, and parsing and processing the search results based on the screen dominance algorithm to obtain the plurality of product data; The manufacturer information is respectively parsed from the plurality of commodity data to obtain the manufacturer information corresponding to the plurality of commodity data in the search result.
6. A data display screen dominating processing method according to claim 1, characterized in that: After obtaining the manufacturer information corresponding to the plurality of product data in the search result, the method further includes: The plurality of commodity data are grouped according to different manufacturer information to obtain a second commodity data set corresponding to each different manufacturer information; wherein the total number of each different manufacturer information is greater than 1.
7. A data display screen dominance processing system, characterized by: Used to implement the data display screen dominating processing method as described in any one of claims 1 to 6; The data display screen domination processing system includes: A data retrieval module, used to receive a search keyword sent by a designated front end, and perform a search based on the search keyword and a preset default search condition to obtain a search result; wherein the default search condition includes a default paging size, and the search result includes a plurality of commodity data; a paging processing module, which is in communication with the data retrieval module and is used to obtain the manufacturer information corresponding to the plurality of the product data in the retrieval results; and is also used to perform paging processing on the plurality of the product data in the retrieval results according to the default paging size and the preset limit number of products of the same manufacturer per page, so as to obtain a first product data set corresponding to each page; wherein, in the first product data set corresponding to any page, the number of product data with the same manufacturer information does not exceed the limit number of products of the same manufacturer per page, and the total number of each page is greater than 1; The paging data output module is communicatively connected with the paging processing module, and is used to obtain the page numbers of the first product data set corresponding to all pages, and transmit all the first product data sets to the designated front end in the order of the page numbers, so that the designated front end can visually display the product data pages in all the first product data sets in the order of the page numbers.
8. An electronic device, characterized in that: include: a memory for storing computer program instructions; as well as, A processor is used to execute the computer program instructions to complete the operation of the data display screen dominating processing method as described in any one of claims 1 to 6.
9. A computer program product comprising a computer program or instructions, characterized in that: When the computer program or the instruction is executed by a computer, the data display screen dominating processing method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Commodity display information display system and method
CN110415629A
Searching method and system based on social shopping mall and storage medium
CN117726394A