A sorting method based on mutual assistance score, a search sorting method and a device
By calculating the mutual aid scores in the commodity transaction data and sorting in reverse order, the problem of unreasonable sorting of e-commerce platforms is solved, the credibility of sorting and the enthusiasm of merchants are improved, and more realistic product and store sorting is achieved.
Patent Information
- Application Number
- CN202110706561.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-06-24
AI Technical Summary
Due to excessive human participation in the product and store sorting rules of existing e-commerce platforms, the ordering of products and stores has been unreasonable, which affects the order of recommendations, which reduces user trust and increases labor costs.
The mutual aid score is used to calculate the mutual aid scores of merchants and products by obtaining the purchase amount in the commodity transaction data and the pre-set proportional coefficients, and arrange them in reverse order to generate a list of merchants and products for sorting.
It improves the credibility of the ordering of products and stores, increases the enthusiasm of merchants to increase the ranking, truly reflects the popularity of products and stores, and reduces labor costs.
Smart Images

Figure CN113505148B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to data processing, and in particular, to a sorting method based on mutual assistance scores, a search sorting method and a device. Background Art
[0002] Sorting rules are the most common function of e-commerce platforms. Product sorting and store sorting on most e-commerce platforms are mainly based on fields such as sales volume and price. Merchants on e-commerce platforms can artificially influence the sorting rules of stores or products by setting prices, etc., to achieve the purpose of sorting stores, products, etc.
[0003] However, this excessive human involvement leads to unreasonable sorting, affecting the actual recommendation order of products and stores, and cannot well reflect the popularity of stores and products. The traditional sorting rules are prone to cause distrust among viewers. In addition, the large number of stores and products also increases a lot of labor costs, reducing the practicality of the solution. Summary of the invention
[0004] The purpose of the present invention is to provide a sorting method, a search sorting method and a device based on mutual assistance scores, which are used to solve the technical problems existing in the prior art, such as unreasonable sorting due to excessive human participation, affecting the actual recommendation order of goods and stores, and easily causing distrust among viewers.
[0005] In order to achieve the above-mentioned object, the present disclosure provides a first aspect of a sorting method based on mutual assistance scores, comprising:
[0006] Acquire multiple sets of commodity transaction data generated by the application platform, wherein the commodity transaction data includes the identification of the purchased commodity, the identification of the purchasing merchant, and the purchase amount;
[0007] According to the purchase amount and a preset ratio coefficient, the mutual aid score corresponding to each group of the commodity transaction data is calculated, and the mutual aid score is used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity, thereby obtaining the merchant mutual aid score of each merchant on the application platform and the commodity mutual aid score of each commodity;
[0008] Arrange the merchant mutual assistance scores of each merchant in reverse order to generate a merchant mutual assistance list;
[0009] The commodity mutual assistance list is generated by arranging the commodities in reverse order according to the commodity mutual assistance score of each commodity.
[0010] Optionally, the method further includes:
[0011] Receiving a merchant / product search request sent by a user through the application platform;
[0012] The searched multiple merchants / multiple commodities are sorted according to the merchant mutual assistance list / the commodity mutual assistance list to generate a sorting result.
[0013] Optionally, the merchant mutual assistance list and the commodity mutual assistance list are stored in a remote dictionary service redis cache or an ES cache.
[0014] Optionally, the mutual aid score is equal to the purchase amount * the proportional coefficient.
[0015] Optionally, the merchant mutual assistance list is generated by arranging the merchant mutual assistance scores of each merchant in descending order, including:
[0016] According to the pre-set merchant list rules, query and filter out merchants corresponding to the merchant list rules;
[0017] Arrange the mutual assistance scores of the merchants corresponding to the merchant list rules in reverse order to generate a merchant mutual assistance list corresponding to the merchant list rules; wherein the merchant list rules include merchant attributes and / or merchant list timeliness;
[0018] The mutual assistance scores of each commodity are arranged in descending order to generate a mutual assistance list of commodities, including:
[0019] According to the preset product list rules, query and filter out products corresponding to the product list rules;
[0020] The mutual assistance scores of the commodities corresponding to the commodity list rules are arranged in reverse order to generate a commodity mutual assistance list corresponding to the commodity list rules; wherein the commodity list rules include commodity attributes and / or commodity list timeliness.
[0021] A second aspect of the present disclosure provides a search ranking method, comprising:
[0022] Detecting and sending a search request input by a user through an application platform to a server; the search request is used to search for merchants or commodities on the application platform;
[0023] Receive the search results returned by the server; the search results include multiple merchants / multiple commodities obtained based on the search request, and the multiple merchants / multiple commodities are sorted according to the merchant mutual aid list / commodity mutual aid list; wherein the merchant mutual aid list refers to a list arranged in reverse order according to the merchant mutual aid score of each merchant on the application platform, and the commodity mutual aid list refers to a list arranged in reverse order according to the commodity mutual aid score of each commodity on the application platform; the mutual aid score refers to a value calculated based on the purchase amount corresponding to the commodity transaction data generated on the application platform and a pre-set proportional coefficient, and the mutual aid score corresponding to each group of the commodity transaction data is respectively used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity.
[0024] Based on the ranking of the multiple merchants / multiple commodities in the search results, the multiple merchants / multiple commodities are displayed on a display interface of the application platform.
[0025] A third aspect of the present disclosure provides a ranking device based on mutual assistance scores, comprising:
[0026] An acquisition module, used to acquire multiple sets of commodity transaction data generated by the application platform, wherein the commodity transaction data includes the identification of the purchased commodity, the identification of the purchasing merchant and the purchase amount;
[0027] A calculation module, for calculating the mutual aid score corresponding to each group of the commodity transaction data according to the purchase amount and a preset proportional coefficient, and using the mutual aid score as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity, respectively, to obtain the merchant mutual aid score of each merchant on the application platform and the commodity mutual aid score of each commodity;
[0028] The list generation module is used to generate a merchant mutual assistance list by arranging the merchant mutual assistance scores of each merchant in reverse order; and to generate a commodity mutual assistance list by arranging the commodity mutual assistance scores of each commodity in reverse order.
[0029] A fourth aspect of the present disclosure provides a search ranking device, comprising:
[0030] A detection module, used to detect and send to a server a search request input by a user through an application platform; the search request is used to search for merchants or commodities on the application platform;
[0031] A receiving module, used for receiving the search results returned by the server; the search results include multiple merchants / multiple commodities obtained based on the search request, and the multiple merchants / multiple commodities are sorted according to the merchant mutual aid list / commodity mutual aid list; wherein the merchant mutual aid list refers to a list arranged in reverse order according to the merchant mutual aid score of each merchant on the application platform, and the commodity mutual aid list refers to a list arranged in reverse order according to the commodity mutual aid score of each commodity on the application platform; the mutual aid score refers to a value calculated based on the purchase amount corresponding to the commodity transaction data generated on the application platform and a pre-set proportional coefficient, and the mutual aid score corresponding to each group of the commodity transaction data is respectively used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity.
[0032] The display module is used to display the multiple merchants / multiple commodities on the display interface of the application platform based on the order of the multiple merchants / multiple commodities in the search results.
[0033] A fifth aspect of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0034] A sixth aspect of the present disclosure provides an electronic device, including:
[0035] a memory having a computer program stored thereon;
[0036] A processor is used to execute the computer program in the memory to implement the steps of the method described in the first aspect.
[0037] Through the above technical scheme, on the basis of the traditional e-commerce product and store sorting rules, a new statistical sorting rule and mutual aid score sorting are added. The mutual aid score is calculated by the purchase amount and the pre-set proportional coefficient, and the sorting is no longer based on a single field such as sales volume or price. This solves the existing sorting rules in the prior art, which lead to unreasonable sorting due to excessive human participation, affecting the actual recommended order of products and stores, and easily causing technical problems such as distrust of viewers. It improves the credibility of the sorting of products and stores, and also increases the enthusiasm of merchants to improve the sorting of stores and products.
[0038] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0040] Figure 1 is a flow chart showing a sorting method based on mutual assistance scores according to an exemplary embodiment;
[0041] Figure 2 is a flow chart of a method for sorting mutual assistance scores based on ES cache according to an exemplary embodiment;
[0042] Figure 3 is a flow chart of a search ranking method according to an exemplary embodiment;
[0043] Figure 4 is a schematic diagram of a display interface of an application platform according to an exemplary embodiment;
[0044] Figure 5 is a flow chart of a search and sorting method based on redis cache according to an exemplary embodiment;
[0045] Figure 6 is a block diagram of a sorting device based on mutual assistance scores according to an exemplary embodiment;
[0046] Figure 7 is a block diagram of a search ranking device according to an exemplary embodiment;
[0047] Figure 8 is a block diagram of an electronic device according to an exemplary embodiment;
[0048] Fig. 9 is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0049] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0050] In the disclosed embodiment, the application platform can be any shopping platform. On the one hand, the store settled in the application platform provides goods for other buyers to purchase, so that other buyers can obtain mutual aid points, and the purchased goods can also increase the mutual aid points. On the other hand, the store occupants can purchase goods from other stores as buyers to obtain their own mutual aid points, which are used to improve the order of their own stores in the ranking, thereby more truly reflecting the ranking of stores and goods in the platform and improving trustworthiness. In the disclosed embodiment, the store is also called a merchant, which refers to the entity settled in the application platform to provide goods for other merchants or users to purchase.
[0051] In the disclosed embodiment, the mutual aid score calculated based on a commodity transaction data will be used as the mutual aid score of two dimensions, one is the mutual aid score of the purchased commodity in the transaction data, and the other is the mutual aid score of the purchasing merchant in the transaction data. In the disclosed embodiment, the purchaser refers to the merchant, thereby increasing the enthusiasm of the merchants to improve the ranking of stores and commodities. In other embodiments, the purchaser can be a merchant or an ordinary consumer, and the disclosure does not limit this.
[0052] In the embodiment of the present disclosure, the mutual aid score can also be called the business score, which can be calculated by the following calculation formula: mutual aid score = purchase amount * proportional coefficient, * is multiplication. The value of the proportional coefficient can be set according to actual needs, for example, the proportional coefficient can be 0.3, 0.4, etc. In the specific implementation process, the algorithm formula of the mutual aid score calculation formula can be enriched, such as adding some other coefficients such as browsing, tasks, and login, and the present disclosure does not limit this.
[0053] like Figure 1 As shown, Figure 1 The present invention is a flowchart of a mutual assistance score-based sorting method according to an exemplary embodiment. The method includes the following steps.
[0054] Step 101, obtaining multiple sets of commodity transaction data generated by the application platform, wherein the commodity transaction data includes the identification of the purchased commodity, the identification of the purchasing merchant, and the purchase amount.
[0055] Among them, when a transaction occurs on the application platform, corresponding transaction data will be generated. In addition to the product identification, the purchasing merchant identification and the purchase amount, it can also include the order number, product sku (stock keeping unit), product id (identity document), quantity, time, scene id and topic id, etc. The scene id and topic id can be used to distinguish the platform's scenes, marketing activities, various special activities, etc.
[0056] Step 102, based on the purchase amount and a preset proportional coefficient, calculate the mutual aid score corresponding to each group of the commodity transaction data, and use the mutual aid score as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity, thereby obtaining the merchant mutual aid score of each merchant on the application platform and the commodity mutual aid score of each commodity.
[0057] Among them, a set of commodity transaction data will be placed on the purchased commodity and the purchasing merchant, that is, the mutual aid score calculated based on a commodity transaction data will be used as the mutual aid score of two dimensions, one is the mutual aid score of the purchased commodity in the transaction data, and the other is the mutual aid score of the purchasing merchant in the transaction data. In the embodiment of the present disclosure, when calculating the commodity mutual aid score and the merchant mutual aid score, the proportion coefficients used can be the same or different, and the present disclosure does not limit this.
[0058] Step 103, arranging the merchants in reverse order according to the merchant mutual assistance score of each merchant to generate a merchant mutual assistance list; arranging the commodity mutual assistance score of each commodity in reverse order to generate a commodity mutual assistance list.
[0059] Through the above technical scheme, on the basis of the traditional e-commerce product and store sorting rules, a new statistical sorting rule and mutual aid score sorting are added. The mutual aid score is calculated by the purchase amount and the pre-set proportional coefficient, and the sorting is no longer based on a single field such as sales volume or price. This solves the existing sorting rules in the prior art, which lead to unreasonable sorting due to excessive human participation, affecting the actual recommended order of products and stores, and easily causing technical problems such as distrust of viewers. It improves the credibility of the sorting of products and stores, and also increases the enthusiasm of merchants to improve the sorting of stores and products.
[0060] In the disclosed embodiment, for commodities, when a user searches for commodities through the application platform, after receiving the commodity search request sent by the user through the application platform, the server searches according to the commodity search request of the user, and sorts the searched multiple commodities according to the commodity mutual assistance list to generate a sorting result. Then, the sorting result is fed back to the user, thereby influencing the search ranking order of the commodities in the mall (i.e., the application platform) through the commodity mutual assistance list.
[0061] Similarly, in the disclosed embodiment, for merchants, when a user searches for a merchant through the application platform, after receiving the merchant search request sent by the user through the application platform, the server searches according to the merchant search request of the user, and sorts the searched multiple merchants according to the merchant mutual assistance list to generate a sorting result. Then, the sorting result is fed back to the user, thereby influencing the search ranking order of the merchant in the mall through the merchant mutual assistance list.
[0062] In the disclosed embodiment, in order to improve the data reading rate, the merchant mutual assistance list and the commodity mutual assistance list can be stored in the remote dictionary service redis cache or ES (English full name: Elasticsearch, Chinese name: real-time search engine) cache.
[0063] In the embodiment of the present disclosure, the ES cache is taken as an example to illustrate the sorting method based on the mutual assistance score in the embodiment of the present disclosure. Figure 2 As shown, when a transaction occurs on the application platform, mq (message queue) data is generated. The data received by the server may include but is not limited to the following data: order number, product sku, product id, quantity, amount, purchaser id, purchaser enterprise id, seller id, time, scenario id and topic id, etc., among which the purchaser id and purchaser enterprise id are used to distinguish whether the purchaser is an ordinary user or an enterprise user (ie, a merchant). The id of an ordinary user is the purchaser id, and the id of a merchant is the purchaser enterprise id.
[0064] The server stores the received data in a database. In the embodiment of the present disclosure, the database may be MySQL. The received commodity transaction data is pre-processed through periodic query isolation or internal MQ notification. During the pre-processing, the data is placed on the commodity and on the enterprise in two parallel processes. The mutual aid score is calculated based on a preset proportional coefficient. The mutual aid score here is used to supplement business data, including commodity data and enterprise data.
[0065] Then, in addition to the mutual assistance score, data of various dimensions such as popularity and number of people can also be stored in the ES cache.
[0066] Finally, the list data is output according to the list rule decision. The list rule here can be the list rule of the product or the list rule of the merchant. Correspondingly, the list data is the mutual aid list data of the product or the mutual aid list data of the merchant.
[0067] Taking commodity data as an example, the server queries and filters out the required commodity data from a large amount of commodity data according to the commodity list rules, and arranges them in reverse order according to their mutual aid scores to generate commodity mutual aid list data. Similarly, according to the merchant list rules, the required merchant data is queried and filtered out from a large number of merchants, and arranged in reverse order according to their mutual aid scores to generate merchant mutual aid list data. In the disclosed embodiment, the list data can be stored through the list key: zset set, the top n data can be sorted according to the search, the list data can be inserted in a loop, and automatically sorted. Among them, the list key is used to store the list rules.
[0068] In the disclosed embodiment, the list rules include one or both of commodity attributes and list timeliness, wherein the commodity attributes include but are not limited to commodity categories, commodity regions, etc., and the commodity categories may be daily chemicals, books, fruits and fresh produce, etc. The list timeliness may be the last three months, the last month, or the last week, etc.
[0069] In the disclosed embodiment, the pre-processing worker and the output worker respectively perform scheduled tasks, and the pre-processing worker and the output worker can reasonably customize the interval time, wherein the worker refers to the work process.
[0070] Based on the same inventive concept, the embodiment of the present disclosure also provides a search ranking method, such as Figure 3 As shown, the method includes the following steps.
[0071] Step 301, detect and send a search request input by a user through an application platform to a server; the search request is used to search for merchants or products on the application platform. The application platform may be an APP or a mini program, etc., and the present disclosure does not limit this. The user may input a search request through a search box in the display interface of the APP or mini program, for example, inputting a product name or a merchant name.
[0072] Step 302: Receive the search results returned by the server.
[0073] Among them, the search results include multiple merchants / multiple products obtained based on the search request, and the multiple merchants / multiple products are sorted according to the merchant mutual aid list / product mutual aid list; wherein the merchant mutual aid list refers to a list arranged in reverse order according to the merchant mutual aid score of each merchant on the application platform, and the product mutual aid list refers to a list arranged in reverse order according to the product mutual aid score of each product on the application platform; the mutual aid score refers to a value calculated according to the purchase amount corresponding to the product transaction data generated on the application platform and a pre-set proportional coefficient, and the mutual aid score corresponding to each group of the product transaction data is respectively used as the merchant mutual aid score of the purchasing merchant and the product mutual aid score of the purchased product.
[0074] For the sorting of multiple merchants / multiple products, please refer to the above Figure 1-Figure 2 The various variations and specific examples of the sorting method based on mutual aid scores in the embodiments, through the above detailed description of the sorting method based on mutual aid scores, those skilled in the art can clearly know the sorting method of multiple merchants / multiple products, so for the sake of brevity of the specification, it will not be described in detail here.
[0075] Step 303: Based on the ranking of the multiple merchants / multiple commodities in the search results, the multiple merchants / multiple commodities are displayed on the display interface of the application platform. Figure 4 As shown, Figure 4 It is a schematic diagram of a display interface of an application platform according to an exemplary embodiment. Assuming that the search word input by the user is apple, the figure shows the results sorted by mutual aid score. The closer to the top of the display interface, the higher the mutual aid score of the product.
[0076] In the embodiment of the present disclosure, when the server sorts multiple merchants / multiple commodities, it can sort them by mutual assistance score by default, or it can sort them by mutual assistance score according to the user's choice. In the specific implementation process, the user can also choose other sorting methods according to actual needs, and the present disclosure does not limit this.
[0077] Next, if Figure 5 As shown, taking redis cache as an example, the search and sorting method in the embodiment of the present disclosure is explained.
[0078] Users can choose to view the list through the app or mini program, or enter search terms to search for products or stores. Based on the list selected by the user or the search request entered, the location key is obtained, and the corresponding list is searched in the redis cache according to the key.
[0079] In the disclosed embodiment, the list of rankings stored in redis includes two parts, the list master data redis and the list landing data redis. The list master data redis is used to store manually sorted data, and the list landing data redis is used to store the mutual aid score data of merchants or commodities. When searching for the corresponding list in redis according to the key, traverse the list, obtain the list data from the list landing data redis, obtain the encapsulated return data packet, and then return it to the interface output.
[0080] In the disclosed embodiment, in the list master data redis, the data type can be a sorted-set structure, the manual sorting field is score, and in the list landing data redis, the data type can also be a sorted-set structure, and the mutual score field is score. Sorted-set is a data type of redis, and sorted-set has an additional weight parameter score, and the elements in the set can be arranged by score.
[0081] Based on the same inventive concept, Figure 6 As shown, the embodiment of the present disclosure further provides a sorting device 600 based on mutual assistance score, comprising: an acquisition module 601, used to acquire multiple groups of commodity transaction data generated by the application platform, wherein the commodity transaction data includes the identification of the purchased commodity, the identification of the purchasing merchant and the purchase amount;
[0082] A calculation module 602 is used to calculate the mutual aid score corresponding to each group of the commodity transaction data according to the purchase amount and a preset proportional coefficient, and use the mutual aid score as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity, so as to obtain the merchant mutual aid score of each merchant on the application platform and the commodity mutual aid score of each commodity;
[0083] The list generation module 603 is used to generate a merchant mutual assistance list by arranging the merchant mutual assistance scores of each merchant in reverse order; and to generate a commodity mutual assistance list by arranging the commodity mutual assistance scores of each commodity in reverse order.
[0084] Optionally, the sorting device 600 further includes:
[0085] A receiving module, used to receive a merchant / product search request sent by a user through the application platform;
[0086] The sorting simulation test is used to sort the searched multiple merchants / multiple commodities according to the merchant mutual assistance list / the commodity mutual assistance list to generate a sorting result.
[0087] Optionally, the sorting device 600 further includes:
[0088] The storage module is used to store the merchant mutual assistance list and the commodity mutual assistance list in the remote dictionary service redis cache or ES cache.
[0089] Optionally, the mutual aid score is equal to the purchase amount * the proportional coefficient.
[0090] Optionally, the list generation module 603 is used to query and filter out merchants corresponding to the merchant list rules according to the preset merchant list rules; and generate a merchant mutual assistance list corresponding to the merchant list rules by arranging the merchants corresponding to the merchant list rules in reverse order according to the mutual assistance scores of the merchants; wherein the merchant list rules include merchant attributes and / or merchant list timeliness;
[0091] The list generation module 603 is also used to query and filter out commodities corresponding to the commodity list rules according to the pre-set commodity list rules; and to generate a commodity mutual assistance list corresponding to the commodity list rules by arranging the mutual assistance scores of the commodities corresponding to the commodity list rules in reverse order; wherein the commodity list rules include commodity attributes and / or commodity list timeliness.
[0092] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0093] Based on the same inventive concept, Figure 7 As shown, the embodiment of the present disclosure further provides a search ranking device 700, comprising:
[0094] Detection module 701, used to detect and send to the server a search request input by a user through the application platform; the search request is used to search for merchants or products on the application platform;
[0095] Receiving module 702 is used to receive the search results returned by the server; the search results include multiple merchants / multiple commodities obtained based on the search request, and the multiple merchants / multiple commodities are sorted according to the merchant mutual aid list / commodity mutual aid list; wherein the merchant mutual aid list refers to a list arranged in reverse order according to the merchant mutual aid score of each merchant on the application platform, and the commodity mutual aid list refers to a list arranged in reverse order according to the commodity mutual aid score of each commodity on the application platform; the mutual aid score refers to a value calculated based on the purchase amount corresponding to the commodity transaction data generated on the application platform and a pre-set proportional coefficient, and the mutual aid score corresponding to each group of the commodity transaction data is respectively used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity.
[0096] The display module 703 is used to display the multiple merchants / multiple commodities on the display interface of the application platform based on the ranking of the multiple merchants / multiple commodities in the search results.
[0097] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0098] Figure 8 FIG. 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. Figure 8 As shown, the electronic device 800 may include: a processor 801 and a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.
[0099] The processor 801 is used to control the overall operation of the electronic device 800 to complete all or part of the steps in the above-mentioned sorting method based on mutual assistance scores. The memory 802 is used to store various types of data to support the operation of the electronic device 800, and these data may include, for example, instructions for any application or method used to operate on the electronic device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or sent through the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 805 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0100] In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned search and sorting method.
[0101] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned search ranking method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the electronic device 800 to complete the above-mentioned search ranking method.
[0102] Fig. 9 is a block diagram of an electronic device 900 according to an exemplary embodiment. For example, the electronic device 900 may be provided as a server. Fig. 9 The electronic device 900 includes a processor 922, which may be one or more, and a memory 932 for storing a computer program executable by the processor 922. The computer program stored in the memory 932 may include one or more modules each corresponding to a set of instructions. In addition, the processor 922 may be configured to execute the computer program to perform the above-mentioned ranking method based on mutual assistance scores.
[0103] In addition, the electronic device 900 may further include a power supply component 926 and a communication component 950. The power supply component 926 may be configured to perform power management of the electronic device 900, and the communication component 950 may be configured to implement communication of the electronic device 900, for example, wired or wireless communication. In addition, the electronic device 900 may further include an input / output (I / O) interface 958. The electronic device 900 may operate based on an operating system stored in the memory 932, such as Windows Server 2008. TM , Mac OSX TM , Unix TM , Linux TM etc.
[0104] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned sorting method based on mutual help scores are implemented. For example, the non-transitory computer-readable storage medium can be the above-mentioned memory 932 including program instructions, and the above-mentioned program instructions can be executed by the processor 922 of the electronic device 900 to complete the above-mentioned sorting method based on mutual help scores.
[0105] In another exemplary embodiment, a computer program product is also provided, which includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned mutual assistance score-based ranking method when executed by the programmable device.
[0106] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0107] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction, and the present disclosure will not further explain various possible combinations.
[0108] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A ranking method based on mutual assistance score, characterized in that: include: Acquire multiple sets of commodity transaction data generated by the application platform, wherein the commodity transaction data includes the identification of the purchased commodity, the identification of the purchasing merchant, and the purchase amount; According to the purchase amount and a preset ratio coefficient, the mutual aid score corresponding to each group of the commodity transaction data is calculated, and the mutual aid score is used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity, thereby obtaining the merchant mutual aid score of each merchant on the application platform and the commodity mutual aid score of each commodity; Arrange the merchant mutual assistance scores of each merchant in reverse order to generate a merchant mutual assistance list; Arrange the mutual assistance scores of each commodity in reverse order to generate a mutual assistance list; The method further comprises: Receiving a merchant / product search request sent by a user through the application platform; The searched multiple merchants / multiple commodities are sorted according to the merchant mutual assistance list / the commodity mutual assistance list to generate a sorting result.
2. The method according to claim 1, characterized in that The merchant mutual assistance list and the commodity mutual assistance list are stored in a remote dictionary service redis cache or an ES cache.
3. The method according to claim 1, characterized in that The mutual aid score is equal to the purchase amount*the proportional coefficient.
4. The method according to claim 1, characterized in that The merchant mutual assistance list is generated by arranging each merchant's merchant mutual assistance score in reverse order, including: According to the pre-set merchant list rules, query and filter out merchants corresponding to the merchant list rules; Arrange the mutual assistance scores of the merchants corresponding to the merchant list rules in reverse order to generate a merchant mutual assistance list corresponding to the merchant list rules; wherein the merchant list rules include merchant attributes and / or merchant list timeliness; The mutual assistance scores of each commodity are arranged in descending order to generate a mutual assistance list of commodities, including: According to the preset product list rules, query and filter out products corresponding to the product list rules; The mutual assistance scores of the commodities corresponding to the commodity list rules are arranged in reverse order to generate a commodity mutual assistance list corresponding to the commodity list rules; wherein the commodity list rules include commodity attributes and / or commodity list timeliness.
5. A search ranking method, characterized in that: include: Detect and send to the server the search request entered by the user through the application platform; The search request is used to search for merchants or products on the application platform; Receiving search results returned by the server; The search results include multiple merchants / multiple commodities obtained through the search based on the search request, and the multiple merchants / multiple commodities are sorted according to the merchant mutual aid list / commodity mutual aid list; wherein the merchant mutual aid list refers to a list arranged in reverse order according to the merchant mutual aid score of each merchant on the application platform, and the commodity mutual aid list refers to a list arranged in reverse order according to the commodity mutual aid score of each commodity on the application platform; the mutual aid score refers to a value calculated based on the purchase amount corresponding to the commodity transaction data generated on the application platform and a preset proportional coefficient, and the mutual aid score corresponding to each group of the commodity transaction data is respectively used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity; Based on the ranking of the multiple merchants / multiple commodities in the search results, the multiple merchants / multiple commodities are displayed on a display interface of the application platform.
6. A sorting device based on mutual assistance score, characterized in that: include: An acquisition module, used to acquire multiple sets of commodity transaction data generated by the application platform, wherein the commodity transaction data includes the identification of the purchased commodity, the identification of the purchasing merchant and the purchase amount; A calculation module, for calculating the mutual aid score corresponding to each group of the commodity transaction data according to the purchase amount and a preset proportional coefficient, and using the mutual aid score as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity, respectively, to obtain the merchant mutual aid score of each merchant on the application platform and the commodity mutual aid score of each commodity; A list generation module, used to generate a merchant mutual assistance list by arranging the merchant mutual assistance scores of each merchant in reverse order; Arrange the mutual assistance scores of each commodity in reverse order to generate a mutual assistance list; The sorting device also includes: A receiving module, used to receive a merchant / product search request sent by a user through the application platform; The sorting module is used to sort the searched multiple merchants / multiple commodities according to the merchant mutual assistance list / the commodity mutual assistance list to generate a sorting result.
7. A search and sorting device, characterized in that: include: A detection module, used to detect and send to the server a search request input by a user through the application platform; The search request is used to search for merchants or products on the application platform; A receiving module, used for receiving the search results returned by the server; The search results include multiple merchants / multiple commodities obtained through the search based on the search request, and the multiple merchants / multiple commodities are sorted according to the merchant mutual aid list / commodity mutual aid list; wherein the merchant mutual aid list refers to a list arranged in reverse order according to the merchant mutual aid score of each merchant on the application platform, and the commodity mutual aid list refers to a list arranged in reverse order according to the commodity mutual aid score of each commodity on the application platform; the mutual aid score refers to a value calculated based on the purchase amount corresponding to the commodity transaction data generated on the application platform and a preset proportional coefficient, and the mutual aid score corresponding to each group of the commodity transaction data is respectively used as the merchant mutual aid score of the purchasing merchant and the commodity mutual aid score of the purchased commodity; The display module is used to display the multiple merchants / multiple commodities on the display interface of the application platform based on the order of the multiple merchants / multiple commodities in the search results.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 4.
