An information recommendation method and device, and a computer readable storage medium

By combining a local inverted index library with a data server in the e-commerce platform, the inefficiency caused by the large amount of data and the refined targeting of needs in the gift money business was solved, achieving efficient information matching and resource utilization, and improving the system's performance and accuracy.

CN115203571BActive Publication Date: 2026-04-17BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
Filing Date
2022-07-27
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing e-commerce platforms frequently modify their existing data structures for gift money transactions due to the large volume of data and the increasingly refined nature of targeted demands, resulting in inefficiency and low resource utilization.

Method used

By combining a local inverted index library with the inverted index library of the data server, the system receives terminal requests, obtains relevant information about the target item, performs intersection and verification processing, and builds a local inverted index library. This reduces multi-table joins and improves matching efficiency and resource utilization.

Benefits of technology

By applying a local inverted index, the efficiency of information matching and resource utilization are improved, data storage pressure is reduced, and the timeliness and accuracy of information are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115203571B_ABST
    Figure CN115203571B_ABST
Patent Text Reader

Abstract

This invention provides an information recommendation method and apparatus, and a computer-readable storage medium. The method includes: receiving multiple first resource information requests sent by multiple first terminals; each first resource information request carrying target item-related information; the target item-related information including information on multiple target types; responding to each first resource information request, obtaining first local item-related information and first local resource information corresponding to each target type from a local inverted index based on the target item-related information; performing intersection processing and verification processing between different types based on the first local item-related information and the first local resource information to obtain matching information corresponding to the target item-related information, and sending it to the first terminals. Using the above scheme, efficient matching can be performed based on the local inverted index, solving the problem of large resource consumption in data structure storage systems, and improving matching efficiency and resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data analysis, and more particularly to an information recommendation method and apparatus, and a computer-readable storage medium. Background Technology

[0002] In the ever-growing e-commerce ecosystem, various e-commerce platforms and merchants, in order to attract new customers and increase user activity and stickiness, often offer coupons or subsidies—known as Jingxiang Gift Money—to users. These coupons are funded by the platform, merchants, and promoters. As the Gift Money service becomes more widespread, the amount of data gradually increases. To meet interface performance requirements, Redis was used to heterogeneously structure the data, ultimately leading to excessive reliance on Redis. When the data volume of a single table exceeds 5 million records, the performance of multi-table joins cannot meet the requirements of the current scenario. With the promotion and popularization of the Gift Money service, in order to meet the personalized promotion of promoters, the granularity of targeting has gradually become more refined. More personalized targeting requirements have been added in dimensions such as promoters, SKUs, and platforms, including promotion slots and channels. During the iteration process, it was found that each addition of a new targeting type could be a small-scale reconstruction of the existing structure, which was time-consuming, labor-intensive, and inefficient. Summary of the Invention

[0003] The present invention aims to provide an information recommendation method and apparatus, and a computer-readable storage medium, which can improve matching efficiency and resource utilization.

[0004] The technical solution of this invention is implemented as follows:

[0005] This invention provides an information recommendation method applied to a business server, the method comprising:

[0006] The system receives multiple first resource information requests sent by multiple first terminals; each first resource information request carries target item-related information; the target item-related information includes information on multiple target types;

[0007] In response to each first resource information request, the system retrieves first local item-related information and first local resource information corresponding to each target type from the local inverted index library based on the target item-related information; wherein, the first local resource information represents information on discounts applied to the value of the item; the local inverted index library is obtained by synchronizing from the inverted index library in the data server, and the local inverted index library stores item-related information of multiple types and resource information corresponding to each type; the multiple target types belong to any multiple of the multiple types;

[0008] Based on the first local item information and the first local resource information, intersection processing and verification processing between different types are performed to obtain matching information corresponding to the target item information, and then sent to the first terminal.

[0009] This invention provides an information recommendation method applied to a data server, the method comprising:

[0010] Receive an information request from a second terminal; the information request carries information related to the initial item and initial resource information;

[0011] In response to the information request, the initial item-related information and initial resource information are compressed to obtain full item-related information and full resource information; there is a correspondence between the full item-related information and the full resource information;

[0012] Based on the information related to all items, the inverted index library in the data server is determined;

[0013] The full resource information is stored in the inverted index library of the data server according to the corresponding relationship;

[0014] Receive an initialization information request sent by the service server;

[0015] In response to the initialization information request, the full range of item-related information and their corresponding full range of resource information are sent to the business server, so that the business server can synchronously determine the local inverted index library.

[0016] This invention provides an information recommendation device, comprising: a first receiving unit, a first acquiring unit, and a first sending unit; wherein,

[0017] The first receiving unit is configured to receive multiple first resource information requests sent by multiple first terminals; each first resource information request carries target item related information; the target item related information includes information on multiple target types;

[0018] The acquisition unit is configured to, in response to each first resource information request, acquire, from the local inverted index library, the first local item-related information and the first local resource information corresponding to each target type, based on the target item-related information; wherein, the first local resource information represents information on discounts applied to the value of the item; the local inverted index library is obtained synchronously from the inverted index library in the data server, and the local inverted index library stores item-related information of multiple types, and resource information corresponding to each type; the multiple target types belong to any multiple of the multiple types;

[0019] The first sending unit is used to perform intersection processing and verification processing between different types of the first local item-related information and the first local resource information to obtain matching information corresponding to the target item-related information, and send it to the first terminal.

[0020] This invention provides an information recommendation device, comprising: a second receiving unit, a second acquiring unit, a storage unit, a determining unit, and a second sending unit; wherein,

[0021] The second receiving unit is used to receive an information request from the second terminal; the information request carries information related to the initial item and initial resource information;

[0022] The second acquisition unit is used to compress the initial item-related information and initial resource information in response to the information request to obtain full item-related information and full resource information; the full item-related information and the full resource information have a corresponding relationship;

[0023] The determining unit is used to determine the inverted index library in the data server based on the information related to all items.

[0024] The storage unit is used to store the full resource information in the inverted index library in the data server according to the corresponding relationship;

[0025] The second receiving unit is further configured to receive an initialization information request sent by the service server;

[0026] The second sending unit is used to respond to the initialization information request by sending the full amount of item-related information and its corresponding full amount of resource information to the business server, so that the business server can synchronously determine the local inverted index library locally.

[0027] This invention provides a service server, the service server comprising:

[0028] The first memory is used to store executable data instructions;

[0029] A first processor, configured to execute executable instructions stored in the first memory, wherein when the executable instructions are executed, the first processor executes the information recommendation method.

[0030] This invention provides a data server, the data server comprising:

[0031] The second memory is used to store executable data instructions;

[0032] The second processor, when executing executable instructions stored in the second memory, executes the information recommendation method when the executable instructions are executed.

[0033] This invention provides a computer-readable storage medium storing executable instructions that, when executed, cause a first processor to perform the information recommendation method as described in this invention.

[0034] This invention provides a computer-readable storage medium storing executable instructions that, when executed, cause a second processor to perform the information recommendation method as described in this invention.

[0035] This invention provides an information recommendation method and apparatus, and a computer-readable storage medium. The method includes: receiving multiple first resource information requests sent by multiple first terminals; each first resource information request carrying target item-related information; the target item-related information including information on multiple target types; responding to each first resource information request, obtaining first local item-related information and first local resource information corresponding to each target type from a local inverted index library based on the target item-related information; wherein the first local resource information represents information on discounts applied to the value of the item; the local inverted index library is obtained synchronously from an inverted index library in a data server, and the local inverted index library stores multiple types of item-related information and resource information corresponding to each type; the multiple target types belong to any multiple of the multiple types; based on the first local item-related information and the first local resource information, performing intersection processing and verification processing between different types to obtain matching information corresponding to the target item-related information, and sending it to the first terminals. Using the above scheme, efficient matching can be performed based on the inverted index information of the data structure storage system and the local inverted index information, solving the problem of large resource consumption of the data structure storage system and improving matching efficiency and resource utilization. Attached Figure Description

[0036] Figure 1 This invention provides an optional flowchart of an information recommendation method. Figure 1 ;

[0037] Figure 2 An optional gift money information image is provided for an information recommendation method according to an embodiment of the present invention;

[0038] Figure 3 An optional gift-targeting promoter information graph is provided as an embodiment of the information recommendation method of the present invention;

[0039] Figure 4 An optional gift-targeting platform information diagram is provided as an embodiment of the information recommendation method of the present invention;

[0040] Figure 5 An optional gift-oriented product information image is provided as an embodiment of the information recommendation method of the present invention;

[0041] Figure 6 A flowchart illustrating an optional gift money matching method for an embodiment of the present invention is provided.

[0042] Figure 7 This invention provides an optional flowchart of an information recommendation method. Figure 2 ;

[0043] Figure 8 This invention provides an optional flowchart of an information recommendation method. Figure 3 ;

[0044] Figure 9 This invention provides an optional flowchart of an information recommendation method. Figure 4 ;

[0045] Figure 10 This is a schematic diagram of an optional local inverted index library for an information recommendation method provided in an embodiment of the present invention;

[0046] Figure 11 This invention provides an optional flowchart of an information recommendation method. Figure 5 ;

[0047] Figure 12 This is a schematic diagram of an optional inverted index database in a data server, which is provided as an embodiment of the information recommendation method of the present invention.

[0048] Figure 13 This invention provides an optional flowchart of an information recommendation method. Figure 6 ;

[0049] Figure 14 This invention provides an optional flowchart of an information recommendation method. Figure 7 ;

[0050] Figure 15 A schematic diagram of the structure of an information recommendation device provided in an embodiment of the present invention. Figure 1 ;

[0051] Figure 16 A schematic diagram of the structure of an information recommendation device provided in an embodiment of the present invention. Figure 2 ;

[0052] Figure 17 A schematic diagram of the structure of a service server is provided in this embodiment of the invention. Figure 1 ;

[0053] Figure 18 A schematic diagram of the structure of a data server is provided in an embodiment of the present invention. Figure 1 . Detailed Implementation

[0054] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present invention.

[0055] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The present invention provides an information recommendation method applied to a data server. Figure 1 This is an optional flowchart illustrating an information recommendation method provided by an embodiment of the present invention. Figure 1 , will combine Figure 1 The steps shown are explained.

[0056] S101, Receive multiple first resource information requests sent by multiple first terminals.

[0057] In some embodiments of the present invention, each first resource information request carries target item information, which includes information on multiple target types, such as promoter type information, platform type information, and product type information, etc.

[0058] In some embodiments of the present invention, the first terminal may be a mobile phone, tablet, or other device capable of sending information requests. The present invention does not impose any limitations on this.

[0059] S102. In response to each first resource information request, retrieve the first local item information and the first local resource information corresponding to each target type from the local inverted index library based on the target item information.

[0060] In some embodiments of the present invention, the first local resource information represents information on discounts applied to the value of an item. The local inverted index is synchronized from the inverted index in the data server. The local inverted index stores information related to multiple types of items, and the resource information corresponding to each type. Multiple target types belong to any number of the multiple types. An inverted index, also commonly referred to as a reverse index, inset archive, or reverse archive, is an indexing method used to store a mapping of the storage location of a word within a document or a set of documents in a full-text search.

[0061] In some embodiments of the present invention, the service server may respond to each resource information request by searching the local index library based on the target item information to obtain the first local item information and the first local resource information corresponding to each target type.

[0062] For example, the first local resource information could be discount coupons, no-threshold coupons, and buy-one-get-one-free promotion information, etc.

[0063] S103. Based on the first local item information and the first local resource information, perform intersection processing and verification processing between different types to obtain matching information corresponding to the target item information, and send it to the first terminal.

[0064] In some embodiments of the present invention, the service server can perform intersection processing between different types of first local item-related information and first local resource information to obtain matching item-related information and matching resource information; perform verification processing on the matching resource information to obtain verification results; determine matching information through matching resource information, matching item-related information and verification results; and finally send the matching information to the first terminal.

[0065] In some embodiments of the present invention, after receiving matching information, the first terminal may display an item-related information page or a resource information page.

[0066] In some embodiments of the present invention, the first local item-related information includes item information, promoter information, and platform information, etc. The first local resource information is item discount information.

[0067] For example, product discount information can be gift money information, referral information can be gift money-targeted referral information, platform information can be gift money-targeted platform information, and product information can be gift money-targeted product information. Gift money information, such as... Figure 2 As shown, this includes the auto-incrementing ID (id), the gift code (ciphertext) (gift_coupon_key), the creator ID (union_id), the denomination (denomination), the number of coupons (amount), the receive start time (receive_start_time), the receive end time (receive_end_time), the validity period (number of days) (effective_days), and the batch ID (batch_id). The gift-targeted referral information is as follows: Figure 3As shown, this includes an auto-incrementing primary key (id), a gift ID (plaintext) (gift_coupon_id), affiliate gift (type), gift referral target (union_id), pid, maximum amount (amount), gift creation time (gift_coupon_create_time), and start time for claiming (gift_coupon_start_time). The platform information for targeted gift claims is as follows: Figure 4 As shown, this includes an auto-incrementing primary key (id), a gift coupon ID (plaintext) (gift_coupon_id), an affiliate gift (type), a gift promotion target (union_id), and a maximum quantity (amount). Gift-specific product information is as follows: Figure 5 As shown, it includes an auto-incrementing primary key (id), gift ID (plaintext) (gift_coupon_id), skuld (sku_id), creation time (create_time), and affiliate gift (type). Existing technologies typically perform multi-table joins to determine matching information. Table 1 shows the results of a multi-table join, as shown in Table 1, which includes five parts: Key, Value, Type, Expiration Time, and Description. The keys include: "gc_"+giftCouponKey, "gc_promoterId"+promoterId, "gc_amount"+giftCouponKey+promoterId, "gc_sku"+giftCouponKey, and "gc_plat"+giftCouponKey; the values ​​include: gift money JSON, gift money key, maximum distribution limit, skuIds, and platIds; the types include: String, List, and ScoreSet; the expiration time includes: 30 days and none [asynchronous job maintenance]; the description includes: basic gift money information, gift money that can be promoted, the maximum amount of this gift money that the promoter can distribute, all skulds under this gift money, and all platlds under this gift money.

[0068] Table 1: Results of Multi-Table Query

[0069]

[0070] In some embodiments of the present invention, the matching resource information may be matching gift money, as illustrated in the existing gift money matching flowchart, such as... Figure 6As shown, promoters create gift certificates, upload them to shopping platforms, and obtain short links through link sharing. These short links are then used for promotion, which can take place on social media platforms, short video platforms, etc. The promotional message is sent to end-user devices; end-users click on the link to match the gift certificate, resulting in a product and gift certificate display page, which then returns to the end-user. The specific process for matching gift money is as follows: Redis obtains the matching result ("match_result" + promoterld + promoterld + promoterld + promoterld) and checks if it exists. If the matching result exists, the result set is returned directly. If the matching result does not exist, the promoter ID is used to query the gift money ("gc_promoterId" + promoterId). If the gift money does not exist, the result set is returned. If the gift money exists, the promoter ID is used for validation ("gc_sku" + giftCouponKey) and the promoterld is used for validation ("gc_plat" + giftCouponKey). If the validation passes, the matching result is cached ("match_result" + promoterld + promoterld + promoterld) and the result set is returned. If the validation fails, the promoter ID query for the gift money is repeated until the result set is returned.

[0071] Understandably, matching item-related information and resource information locally can improve matching efficiency and the timeliness of information.

[0072] In some embodiments of the present invention, S103 can be implemented by S1031, S1032 and S1033, as follows:

[0073] S1031. Based on the first local item information and the first local resource information, perform intersection processing between different types to obtain matching item information and matching resource information.

[0074] In some embodiments of the present invention, the service server can perform intersection processing on multiple types of item-related information in the first local item-related information to obtain matching item-related information from the multiple types of item-related information; and perform intersection processing on multiple types of resource information in the first local resource information to obtain matching resource information from the multiple types of resource information.

[0075] S1032. Perform verification processing on the matching resource information to obtain the verification result.

[0076] In some embodiments of the present invention, the business server can use a preset verification tool to verify the matching resource information, determine whether the matching resource information is valid, and thus obtain the verification result.

[0077] S1033. Based on the matching resource information, matching item information and verification results, determine the matching information and send the matching information to the first terminal.

[0078] In some embodiments of the present invention, the service server obtains the verification result. If the verification result indicates success, the matching resource information is used as the matching information; if the verification result indicates failure, the matching item information is used as the matching information; and the matching information is sent to the first terminal.

[0079] For example, if the verification result indicates that the coupon is valid, the coupon will be sent to the first terminal as matching information; if the verification result indicates that the coupon has expired, the item-related information will be sent to the first terminal as matching information.

[0080] For example, such as Figure 7 As shown, resource information can be gift money. When the shopping platform administrator maintains basic gift money information, the data server obtains gift money (equivalent to item-related and resource information, stored in MySQL and Elasticsearch) through event tracking. The obtained gift money is used in parallel to construct an inverted index + bitSet and incremental messages, which are then stored in Redis. When the instance (equivalent to the business server) starts, it fully pulls the inverted index + bitSet from Redis to build a local index, initializing the local inverted index + bitSet. After startup, a timer is set to periodically pull incremental consumption messages based on the local index location. This ensures continuous near real-time synchronization between the local index and the Redis index. Simultaneously, downstream systems can directly provide matching and verification services using local data.

[0081] For example, such as Figure 8 As shown, the downstream (equivalent to the first terminal) sends the skuld, promoter ID, and platform ID (equivalent to target item information and its corresponding resource information) to the business server through the matching interface. Locally, it obtains BitSet result set 1 by combining the sku enumeration and skuld, BitSet result set 2 by combining the platform enumeration and platform ID, BitSet result set 3 by combining the promoter enumeration and promoter ID, and BitSet result set n by combining other enumerations and other IDs. All types of information are processed locally under Map<Directed Dimension Enumeration, Map<Dimension Value, Inverted Index>local. After intersecting BitSet result set 1, BitSet result set 2, BitSet result set 3, and BitSet result set n, etc., the BitSet result set (equivalent to matching resource information) is obtained. This is then verified by calling the downstream interface verification library through a filter, and the matching result (equivalent to matching information) is returned to the downstream.

[0082] Understandably, by performing intersection processing and verification processing on the first local item information and the first local resource information, the validity and accuracy of the sent matching information are ensured.

[0083] In some embodiments of the present invention, S104-S106 are executed before S102, as follows:

[0084] S104. Upon initial startup or at a preset time, send an initialization information request to the data server.

[0085] In some embodiments of the present invention, the business server sends an initialization information request to the data server upon initial startup; or, the business server sends an initialization information request to the data server at a preset time point.

[0086] For example, the preset time could be 12:00 AM every day.

[0087] S105. Receive the full set of item-related information and corresponding full set of resource information sent by the data server in response to the initialization information request.

[0088] In some embodiments of the present invention, the total amount of item-related information includes item-related information of multiple types. The total amount of resource information includes resource information corresponding to multiple types.

[0089] In some embodiments of the present invention, the business server receives the full amount of item-related information and the full amount of resource information corresponding to the full amount of item-related information sent by the data server in response to the initialization information request.

[0090] S106. Based on all item-related information and all resource information, construct a local inverted index library.

[0091] In some embodiments of the present invention, a local inverted index library stores local item-related information and local resource information.

[0092] In some embodiments of the present invention, the business server can synchronize multiple types of item-related information and their corresponding multiple types of resource information in the initial local inverted index library to obtain multiple types of local item-related information and their corresponding multiple types of resource information, thus forming a local inverted index library.

[0093] For example, such as Figure 9As shown, based on multiple types of item-related information, such as referral type, platform type, and product type, the targetlds redis.hKeys(...type) are determined, thus determining hmGet(...type, targetlds), and finally determining the local MAP[Map<targeted dimension enumeration, Map<dimension value, inverted index>](Map <String,Map<String,BitSet> >).

[0094] An exemplary diagram of a local inverted index library, such as... Figure 10 As shown, the local inverted index consists of a Map<Directed Dimension Enumeration, a Map<Dimension Value, and a bitSet after the inverted order of the gift ID. This includes information on referral type, platform type, and product type. Each type further includes specific type information; for example, the referral type includes unionld1 and pld; the platform type includes media1 and media2; and the product type includes skuld1 and skuld2. Each specific type information is formatted as giftCouponKey1, giftCouponKey2, etc. Each specific type information is stored in byte array format, such as 110000, etc.

[0095] Understandably, building a local inverted index based on all item-related information and their corresponding resource information obtained from the data server can reduce the data storage pressure on the data server.

[0096] In some embodiments of the present invention, S201-S205 are also executed after S106, as follows:

[0097] S201. Send a consumption task request to the data server.

[0098] In some embodiments of the present invention, the service server sends a consumption task request to the data server.

[0099] S202. In response to the consumption task request, based on the current location, pull a preset number of first incremental messages from the incremental message queue in the data server.

[0100] In some embodiments of the present invention, the first incremental message represents newly added item-related information and corresponding resource information, or changed item-related messages and corresponding resource information.

[0101] In some embodiments of the present invention, in response to a consumption task request, the service server pulls a preset number of first incremental messages from the incremental message queue in the data server based on the current location. The preset number is typically 10 messages.

[0102] S203. Based on the message type corresponding to each of the first incremental messages, obtain the second local item information and the second local resource information of the same type in the local inverted index library.

[0103] In some embodiments of the present invention, the business server can search in the local inverted index library according to the message type corresponding to each of the first incremental messages to obtain the second local item-related information and the second local resource information that are consistent with the message type corresponding to each of the first incremental messages.

[0104] S204. Based on the message identifiers corresponding to the first incremental messages, update the second local resource information and the item-related information under the corresponding type, and determine the updated second local item-related information, second local resource information, and next location in the local inverted index.

[0105] In some embodiments of the present invention, the next position is used to determine the position from which to pull a new message from the incremental message queue; wherein, the corresponding initial position of each update of the local inverted index is the first message in the incremental message queue.

[0106] In some embodiments of the present invention, the business server can update the second local resource information and the item-related information under the corresponding type according to the message identifier corresponding to each of the first incremental messages, so as to obtain the updated second local item-related information, second local resource information and next location in the local inverted index library.

[0107] For example, such as Figure 11 As shown, the business server (local) retrieves incremental messages (equivalent to the first incremental message) from the incremental message queue (scoreSet) in the data server (redis) based on the local position (equivalent to the current position), and performs message type strategy adaptation. The types include: adding bonus, adding promoter, adding platform, adding product, deleting bonus, deleting site owner, deleting product, stopping and updating basic information; updating the second local item information, the second local resource information and the local position (equivalent to the next position).

[0108] It is understandable that updating the local inverted index can ensure the accuracy of the information in the local inverted index when item-related or resource-related information changes.

[0109] This invention provides an information recommendation method for data servers, which will be described in detail below.

[0110] S301, Receive information request from the second terminal.

[0111] In some embodiments of the present invention, the information request carries initial item information and initial resource information. Both the initial item information and the initial resource information are pre-set information on the second terminal.

[0112] S302. In response to the information request, compress the initial item-related information and initial resource information to obtain the full item-related information and full resource information.

[0113] In some embodiments of the present invention, the initial resource information corresponds to the initial item information, and the total item information corresponds to the total resource information.

[0114] In some embodiments of the present invention, the data server can respond to an information request by classifying the initial item-related information to obtain multiple types of item-related information; for each type of item-related information, further subdivision processing is performed to obtain unit information corresponding to each type of item-related information. The data format of the unit information is converted to obtain first minimum unit information; the first minimum unit information is compressed to obtain second minimum unit information. The full set of item-related information is determined using the second minimum unit information. The initial resource information is then compressed in the same way as the initial item-related information to obtain the full set of resource information.

[0115] In some embodiments of the present invention, S302 can be implemented by S3021, S3022, S3023, S3024, S3025 and S3026, as follows:

[0116] S3021. In response to the information request, the initial item-related information is classified and processed to obtain item-related information of multiple types.

[0117] In some embodiments of the present invention, the data server may respond to an information request by classifying the initial item-related information according to the information type to obtain multiple types of item-related information.

[0118] For example, the initial item-related information includes information about promoters, platforms, and products. After categorizing these information, we can obtain item-related information for promoters, platform-related items, and product-related items.

[0119] S3022. For each type of item-related information, perform further subdivision processing to obtain the unit information corresponding to each type of item-related information.

[0120] In some embodiments of the present invention, the data server performs subdivision processing on the relevant information of each type of item according to the information identifier in each type, so as to obtain the unit information corresponding to the relevant information of each type of item.

[0121] For example, after the relevant information of items of different platform types is processed in a subdivided manner, we can obtain information about platform 1, platform 2, platform 3, and so on.

[0122] S3023. Convert the data format of the unit information to obtain the first smallest unit information.

[0123] In some embodiments of the present invention, the data server converts the data format of the unit information into a bitmap (bitSet) format to obtain the first minimum unit information.

[0124] S3024. Compress the first minimum unit information to obtain the second minimum unit information.

[0125] In some embodiments of the present invention, the second smallest unit information is data in the form of a byte array.

[0126] In some embodiments of the present invention, the data server may compress the first minimum unit information to obtain the second minimum unit information.

[0127] S3025. Based on the information of the second smallest unit, determine the relevant information of all items.

[0128] In some embodiments of the present invention, the data server summarizes the second smallest unit information under all types to determine the relevant information of all items.

[0129] S3026. Perform the same compression process on the initial resource information as on the initial item information to obtain the full resource information.

[0130] In some embodiments of the present invention, the data server can perform the same compression processing on the initial resource information as on the initial item information to obtain the full resource information.

[0131] It is understandable that compressing the initial resource information and initial item information to obtain the full item information and full resource information reduces storage space and can improve storage efficiency.

[0132] S303. Based on all item-related information, determine the inverted index library in the data server.

[0133] In some embodiments of the present invention, the data server can determine the inverted index library in the data server by using all item-related information in a certain arrangement.

[0134] S304. Store all resource information in an inverted index database on the data server according to the corresponding relationship.

[0135] In some embodiments of the present invention, the data server can store all resource information in an inverted index library in the data server according to the correspondence relationship.

[0136] An exemplary diagram of an inverted index database in a data server, such as... Figure 12 The inverted index shown is a hash structure, including: key: giftCoupon_direct_index_direction type; field: direction value [promoterld / platld / skuld]; value: a compressed byte array of the gift ID's bitSet. The key includes promoter type, platform type, and product type information. Each type information further includes specific type information; for example, promoter type includes: unionld1 and pld; platform type includes: media1 and media2; product type includes: skuld1 and skuld2. Each specific type information is formatted as giftCouponKey1, giftCouponKey2, etc. Each specific type information is stored in byte array format, for example, 110000, etc. The value is always 11, etc.

[0137] S305, Receive initialization information request sent by the service server.

[0138] In some embodiments of the present invention, the data server receives an initialization information request sent by the business server.

[0139] S306. In response to the initialization information request, send all item-related information and their corresponding resource information to the business server so that the business server can synchronously determine the local inverted index library.

[0140] In some embodiments of the present invention, in response to an initialization information request, the data server sends all item-related information and its corresponding full resource information to the business server, so that the business server can synchronously determine the local inverted index library.

[0141] It is understandable that compressing the initial resource information and initial item information to obtain the full item information and full resource information reduces storage space and can improve storage efficiency. At the same time, sending the full item information and its corresponding full resource information to the business server can facilitate local storage and reduce the storage pressure on the data server.

[0142] In some embodiments of the present invention, S307, S308 and S309 are also executed after S304, as follows:

[0143] S307, Received an incremental message from the second terminal.

[0144] In some embodiments of the present invention, the incremental message carries change information. The change information includes newly added item-related information and corresponding resource information, or changed item-related information and corresponding resource information. The message structure of the incremental message includes a message type and a message identifier.

[0145] An example message structure for an incremental message is as follows:

[0146]

[0147] Among them, "platList", "skuList", "giftCouponKey" and "operate Type" are message types; "1: Add Gift Money, 2: Add Promoter, 4: Add Platform", etc. are message identifiers.

[0148] S308. Update the information on all items and all resources in the data server according to the message type of the incremental message.

[0149] In some embodiments of the present invention, all item-related information and all resource-related information are stored in the inverted index library of the data server.

[0150] In some embodiments of the present invention, the data server can obtain item-related information and resource information of the corresponding type in the data server based on the message type of the incremental message. Based on the message identifier of the incremental message, the item-related information and resource information of the corresponding type in the data server are updated to determine the updated full item-related information and full resource information in the data server.

[0151] In some embodiments of the present invention, S302 can be implemented by S3021 and S3022, as follows:

[0152] S3021. Based on the message type of the incremental message, obtain the item-related information and resource information of the corresponding type in the data server.

[0153] In some embodiments of the present invention, the data server can obtain item-related information and resource information of the corresponding type in the data server based on the information type of newly added item-related information and the information type of corresponding resource information. Alternatively, it can obtain item-related information and resource information of the corresponding type in the data server based on the information type of changed item-related information and the information type of corresponding resource information.

[0154] S3022. Based on the message identifier of the incremental message, update the item-related information and resource information of the corresponding type in the data server, and determine the updated full item-related information and full resource information in the data server.

[0155] In some embodiments of the present invention, the data server can update the item-related information and resource information of the corresponding type in the data server based on the information identifiers of newly added item-related information and the corresponding resource information, thereby determining the updated total item-related information and total resource information in the data server. Alternatively, the data server can update the item-related information and resource information of the corresponding type in the data server based on the information identifiers of changed item-related information and the corresponding resource information, thereby determining the updated total item-related information and total resource information in the data server.

[0156] It is understandable that if the item-related and resource-related information of the second terminal changes, timely updating of all item-related and resource-related information in the data server can ensure the validity and accuracy of the data in the data server.

[0157] In some embodiments of the present invention, S309 and S3010 are also executed after S308, as follows:

[0158] S309. Store the incremental message in the incremental message queue.

[0159] In some embodiments of the present invention, the data server may store incremental messages in an incremental message queue.

[0160] For example, such as Figure 13 As shown, information can be obtained through event tracking. This information includes new gift money (equivalent to information related to newly added items and corresponding resource information) and changes to gift money (equivalent to information related to changed items and corresponding resource information). Based on the new and changes to gift money, corresponding unit-based additions or updates are performed in Redis (equivalent to a data server). The strategy is adapted according to the message type to determine whether to update or add information. The types include: adding gift money, adding promoters, adding platforms, adding products, deleting gift money, deleting site owners, deleting products, stopping, and updating basic information. Finally, the incremental messages are stored in the incremental message queue (List).

[0161] S3010: Upon receiving a consumption task request, the incremental message queue is sent to the business server in response to the consumption task request.

[0162] In some embodiments of the present invention, the data server may receive a consumption task request sent by the business server, and in response to the consumption task request, send an incremental message queue to the business server.

[0163] Understandably, when item-related and resource-related information changes on the second terminal, timely updates to all item-related and resource-related information on the data server ensure the validity and accuracy of the data. Storing the changed information in an incremental message queue and sending consumption service requests to the business server facilitates data updates on the business server.

[0164] This invention provides an information recommendation method, such as... Figure 14 As shown, the following steps will provide a detailed explanation.

[0165] S1. The second terminal sends an information request to the data server.

[0166] In some embodiments of the present invention, the second terminal can send the set initial item-related information and initial resource information to the data server via an information request.

[0167] S2. In response to the information request, the data server compresses the initial item-related information and initial resource information to obtain the full item-related information and full resource information, and determines the inverted index library in the data server.

[0168] S3. The business server sends an initialization information request to the data server.

[0169] S4. The data server responds to the initialization information request by sending all item-related information and their corresponding full resource information.

[0170] S5: The business server builds a local inverted index library based on all item-related information and all resource information.

[0171] S6. The second terminal sends an incremental message to the data server.

[0172] In some embodiments of the present invention, when the information in the second terminal changes, the second terminal sends an incremental message to the data server, and the incremental message carries the change information.

[0173] S7. The data server updates the information related to all items and all resources in the data server according to the message type of the incremental message, and stores the incremental message in the incremental message queue.

[0174] S8, the business server sends a consumption task request to the data server.

[0175] S9. In response to the consumption task request, the data server sends an incremental message queue to the business server.

[0176] S10. The business server pulls a preset number of first incremental messages from the incremental message queue in the data server and updates the local inverted index library.

[0177] S11, The first terminal sends multiple first resource information requests.

[0178] S12. In response to each first resource information request, the business server retrieves the first local item information and the first local resource information corresponding to each target type from the local inverted index library based on the target item information.

[0179] S13. The business server performs intersection processing and verification processing between different types based on the first local item information and the first local resource information to obtain matching information corresponding to the target item information.

[0180] S14. The business server sends the matching information to the first terminal.

[0181] In some embodiments of the present invention, the business server sends matching information to the first terminal, and the first terminal displays a resource information page or an item-related information page after receiving the matching information.

[0182] Understandably, by acquiring data between the data server and the business server, information matching and verification can be performed locally, reducing the storage pressure on the data server and improving matching efficiency.

[0183] This invention provides a schematic diagram of the structure of an information recommendation device. Figure 1 ,like Figure 15 As shown, the information recommendation device 15 includes: a first receiving unit 1501, a first acquiring unit 1502, and a first sending unit 1503; wherein,

[0184] The first receiving unit 1501 is configured to receive multiple first resource information requests sent by multiple first terminals; each first resource information request carries target item related information; the target item related information includes information on multiple target types;

[0185] The first acquisition unit 1502 is configured to, in response to each first resource information request, acquire, from the local inverted index library, the first local item-related information and the first local resource information corresponding to each target type, based on the target item-related information; wherein, the first local resource information represents information on discounts applied to the value of the item; the local inverted index library is obtained synchronously from the inverted index library in the data server, and the local inverted index library stores multiple types of item-related information and resource information corresponding to each type; the multiple target types belong to any multiple of the multiple types;

[0186] The first sending unit 1503 is used to perform intersection processing and verification processing between different types based on the first local item-related information and the first local resource information, to obtain matching information corresponding to the target item-related information, and send it to the first terminal.

[0187] In some embodiments of the present invention, the information recommendation device 15 further includes a construction unit 1504, wherein, in response to each first resource information request, before obtaining the first local item information and the first local resource information corresponding to each target type from the local inverted index library according to the target item information, the first sending unit 1503 is further configured to send an initialization information request to the data server when it is first started or when a preset time point is reached;

[0188] The first receiving unit 1501 is used to receive the full amount of item-related information and the corresponding full amount of resource information sent by the data server in response to the initialization information request;

[0189] The construction unit 1504 is used to construct the local inverted index library based on the full amount of item-related information and the full amount of resource information; the local inverted index library stores local item-related information and local resource information.

[0190] In some embodiments of the present invention, the full amount of item-related information includes: item-related information of multiple types, and the full amount of resource information includes: resource information corresponding to multiple types; the construction unit 1504 is used to synchronize the item-related information of multiple types and the resource information corresponding to the multiple types in the initial local inverted index library to obtain local item-related information of multiple types and the resource information corresponding to the multiple types, thereby constituting the local inverted index library.

[0191] In some embodiments of the present invention, the information recommendation device 15 further includes a first determining unit 1505, wherein, after synchronizing the item-related information of the multiple types and the resource information corresponding to the multiple types in the initial local inverted index library to obtain the local item-related information of the multiple types and the resource information corresponding to the multiple types, and forming the local inverted index library, the first sending unit 1503 is further used to send a consumption task request to the data server.

[0192] The first acquisition unit 1502 is used to respond to the consumption task request and, based on the current location, pull a preset number of first incremental messages from the incremental message queue in the data server; the first incremental messages represent newly added item-related information and corresponding resource information, or changed item-related messages and corresponding resource information; according to the message type corresponding to each of the first incremental messages, acquire second local item-related information and second local resource information of the same type in the local inverted index library.

[0193] The first determining unit 1505 is used to update the second local resource information and the item-related information under the corresponding type according to the message identifier corresponding to each of the first incremental messages, and determine the updated second local item-related information, second local resource information and next position in the local inverted index library; the next position is used to determine the position for the next new message to be pulled from the incremental message queue; wherein, the corresponding initial position of each update of the local inverted index library, the initial position corresponds to the first message in the incremental message queue.

[0194] In some embodiments of the present invention, the first acquisition unit 1502 is used to perform intersection processing between different types based on the first local item-related information and the first local resource information to obtain matching item-related information and matching resource information; and to perform verification processing on the matching resource information to obtain a verification result.

[0195] The first sending unit 1503 is used to determine the matching information based on the matching resource information, the matching item information and the verification result, and send the matching information to the first terminal.

[0196] In some embodiments of the present invention, the first acquisition unit 1502 is configured to perform intersection processing on multiple types of item-related information in the first local item-related information to obtain matching item-related information in the multiple types of item-related information; and to perform intersection processing on multiple types of resource information in the first local resource information to obtain matching resource information in the multiple types of resource information.

[0197] In some embodiments of the present invention, the first determining unit 1505 is configured to, if the verification result is successful, use the matching resource information as the matching information; if the verification result fails, use the matching item information as the matching information.

[0198] The first sending unit 1503 is used to send the matching information to the first terminal.

[0199] This invention provides a schematic diagram of the structure of an information recommendation device. Figure 2 ,like Figure 16 As shown, the information recommendation device 16 includes: a second receiving unit 1601, a second acquiring unit 1602, a storage unit 1603, a second determining unit 1604, and a second sending unit 1605; wherein,

[0200] The second receiving unit 1601 is used to receive an information request from the second terminal; the information request carries information related to the initial item and information related to the initial resource.

[0201] The second acquisition unit 1602 is used to compress the initial item-related information and initial resource information in response to the information request to obtain full item-related information and full resource information; the full item-related information and the full resource information have a corresponding relationship;

[0202] The second determining unit 1604 is used to determine the inverted index library in the data server based on the total amount of item-related information;

[0203] The storage unit 1603 is used to store the full resource information in the inverted index library in the data server according to the corresponding relationship;

[0204] The second receiving unit 1601 is also used to receive an initialization information request sent by the service server;

[0205] The second sending unit 1605 is used to respond to the initialization information request by sending the full amount of item-related information and its corresponding full amount of resource information to the business server, so that the business server can synchronously determine the local inverted index library locally.

[0206] In some embodiments of the present invention, the second acquisition unit 1602 is configured to, in response to the information request, classify the initial item-related information to obtain multiple types of item-related information; further subdivide each type of item-related information to obtain unit information corresponding to each type of item-related information; convert the data format of the unit information to obtain first minimum unit information; compress the first minimum unit information to obtain second minimum unit information; the second minimum unit information is data in the form of a byte array.

[0207] The second determining unit 1604 is used to determine the relevant information of the total number of items based on the second minimum unit information;

[0208] The second acquisition unit 1602 is used to perform the same compression processing on the initial resource information as that on the initial item information to obtain the full resource information.

[0209] In some embodiments of the present invention, after storing the full resource information in the inverted index library in the data server according to the correspondence, the second receiving unit 1601 is further configured to receive incremental messages from the second terminal; the incremental messages carry change information; the change information includes newly added item-related information and corresponding resource information, or changed item-related information and corresponding resource information; the message structure of the incremental message includes message type and message identifier;

[0210] In some embodiments of the present invention, the information recommendation device 16 further includes an update unit 1606, wherein the update unit 1606 is used to update the full item-related information and full resource information in the data server according to the message type of the incremental message; the full item-related information and the full resource information exist in the inverted index library of the data server.

[0211] In some embodiments of the present invention, after updating the full item-related information and full resource information in the data server according to the incremental message type in the incremental message, the storage unit 1603 is used to store the incremental message in the incremental message queue;

[0212] The second sending unit 1605 is used to receive a consumption task request and, in response to the consumption task request, send the incremental message queue to the business server.

[0213] In some embodiments of the present invention, the second acquisition unit 1602 is used to acquire item-related information and resource information of the corresponding type in the data server according to the message type of the incremental message;

[0214] The second determining unit 1604 is used to update the item-related information and resource information of the corresponding type in the data server according to the message identifier of the incremental message, and to determine the updated full item-related information and full resource information in the data server.

[0215] Based on the methods described in the above embodiments, this invention provides a schematic diagram of the structure of a business server. Figure 1 ,like Figure 17 As shown, the business server 17 includes a first processor 1701 and a first memory 1702; the first memory 1702 stores one or more programs executable by the first processor 1701, and when one or more programs are executed, the information recommendation method as described in the embodiments of the present invention is executed by the first processor 1701.

[0216] Based on the methods described in the above embodiments, this invention provides a schematic diagram of the structure of a data server. Figure 1 ,like Figure 18 As shown, the data server 18 includes: a second processor 1801 and a second memory 1802; the second memory 1802 stores one or more programs executable by the second processor 1801, and when one or more programs are executed, the information recommendation method as described in the embodiments of the present invention is executed by the second processor 1801.

[0217] This invention also provides a computer-readable storage medium applied to a business server. The computer storage medium stores executable instructions, which, when executed, cause a first processor to execute the information recommendation method as described in this invention.

[0218] This invention also provides a computer-readable storage medium for use in a data server. The computer storage medium stores executable instructions, which, when executed, cause a second processor to execute the information recommendation method as described in this invention.

[0219] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0220] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0221] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0222] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0223] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention.

Claims

1. An information recommendation method, characterized in that, Applied to business servers, including: Receive multiple first resource information requests sent by multiple first terminals; each first resource information request carries target item related information; the target item related information includes information on multiple target types; In response to each first resource information request, the system retrieves first local item-related information and first local resource information corresponding to each target type from the local inverted index library based on the target item-related information; wherein, the first local resource information represents information on discounts applied to the value of the item; the local inverted index library is obtained by synchronizing from the inverted index library in the data server, and the local inverted index library stores item-related information of multiple types and resource information corresponding to each type; the multiple target types belong to any multiple of the multiple types; Based on the first local item information and the first local resource information, intersection processing and verification processing between different types are performed to obtain matching information corresponding to the target item information, and then sent to the first terminal; the intersection processing and verification processing between different types includes: performing intersection processing between different types to obtain an intersection result; and performing verification processing on the intersection result.

2. The method according to claim 1, characterized in that, Before retrieving the first local item information and the first local resource information corresponding to each target type from the local inverted index library based on the target item information in response to each first resource information request, the method further includes: Upon initial startup or at a preset time, an initialization information request is sent to the data server. Receive the full set of item-related information and its corresponding full set of resource information sent by the data server in response to the initialization information request; Based on the full set of item-related information and the full set of resource information, a local inverted index is constructed; the local inverted index stores local item-related information and local resource information.

3. The method according to claim 2, characterized in that, The total amount of item-related information includes: item-related information of multiple types; the total amount of resource information includes: resource information corresponding to multiple types. The step of constructing the local inverted index library based on the full set of item-related information and the full set of resource information includes: The item-related information of the multiple types and the corresponding resource information of the multiple types are synchronized in the initial local inverted index library to obtain the local item-related information of the multiple types and the corresponding resource information of the multiple types, which constitute the local inverted index library.

4. The method according to claim 3, characterized in that, After synchronizing the item-related information of the multiple types and the corresponding resource information of the multiple types in the initial local inverted index library to obtain the local item-related information of the multiple types and the corresponding resource information of the multiple types, and constructing the local inverted index library, the method further includes: Send a consumption task request to the data server; In response to the consumption task request, based on the current location, a preset number of first incremental messages are retrieved from the incremental message queue in the data server; the first incremental messages represent newly added item-related information and corresponding resource information, or changed item-related messages and corresponding resource information; Based on the message type corresponding to each of the first incremental messages, obtain the second local item information and the second local resource information of the same type in the local inverted index library; Based on the message identifier corresponding to each of the first incremental messages, the second local resource information and the item-related information under the corresponding type are updated, and the updated second local item-related information, second local resource information, and next position in the local inverted index are determined; the next position is used to determine the position for the next new message to be pulled from the incremental message queue; wherein, the initial position corresponding to each update of the local inverted index is the first message in the incremental message queue.

5. The method according to claim 1, characterized in that, The step of performing intersection and verification processing between different types based on the first local item-related information and the first local resource information to obtain matching information corresponding to the target item-related information, and sending it to the first terminal, includes: Based on the first local item information and the first local resource information, the intersection of different types is processed to obtain the matching item information and the matching resource information; The matching resource information is verified to obtain the verification result; Based on the matching resource information, the matching item information, and the verification result, the matching information is determined and sent to the first terminal.

6. The method according to claim 5, characterized in that, The step of performing intersection processing between different types based on the first local item information and the first local resource information to obtain matching item information and matching resource information includes: Based on the multiple types of item information in the first local item information, an intersection process is performed to obtain the matching item information from the multiple types of item information; Based on the resource information of multiple types in the first local resource information, an intersection process is performed to obtain the matching resource information among the multiple types of resource information.

7. The method according to claim 5, characterized in that, The step of determining the matching information based on the matching resource information, the matching item information, and the verification result, and sending the matching information to the first terminal, includes: If the verification result indicates success, then the matching resource information will be used as the matching information. If the verification result fails, the relevant information of the matched item will be used as the matching information. The matching information is sent to the first terminal.

8. An information recommendation method, characterized in that, Applications to data servers include: Receive an information request from a second terminal; the information request carries information related to the initial item and initial resource information; In response to the information request, the initial item-related information and initial resource information are compressed to obtain full item-related information and full resource information; the full item-related information and the full resource information have a corresponding relationship; the initial item-related information includes multiple different types of information; the initial resource information represents information on discounts applied to the value of the item; Based on the information related to all items, the inverted index library in the data server is determined; The full resource information is stored in the inverted index library of the data server according to the corresponding relationship; Receive an initialization information request sent by the service server as described in any one of claims 1-7; In response to the initialization information request, the full range of item-related information and their corresponding full range of resource information are sent to the business server, so that the business server can synchronously determine the local inverted index library.

9. The method according to claim 8, characterized in that, In response to the information request, the initial item-related information and initial resource information are compressed to obtain full item-related information and full resource information, including: In response to the information request, the initial item-related information is classified to obtain multiple types of item-related information; For each type of item, the relevant information is further subdivided to obtain the unit information corresponding to each type of item. The data format of the unit information is converted to obtain the first minimum unit information; The first minimum unit information is compressed to obtain the second minimum unit information; the second minimum unit information is data in the form of a byte array. Based on the information of the second smallest unit, determine the relevant information of the total number of items; The initial resource information is compressed in the same way as the initial item information to obtain the full resource information.

10. The method according to claim 8, characterized in that, After storing the full resource information in the inverted index database of the data server according to the corresponding relationship, the method further includes: Receive incremental messages from the second terminal; the incremental messages carry change information; the change information includes newly added item-related information and corresponding resource information, or changed item-related information and corresponding resource information; the message structure of the incremental message includes message type and message identifier; Based on the message type of the incremental message, update the full item information and full resource information in the data server; the full item information and full resource information exist in the inverted index library of the data server.

11. The method according to claim 10, characterized in that, After updating the information related to all items and all resources in the data server according to the information type of the incremental message, the method further includes: The incremental message is stored in the incremental message queue; Upon receiving a consumption task request, the incremental message queue is sent to the business server in response to the consumption task request.

12. The method according to claim 10, characterized in that, The step of updating the total item information and total resource information in the data server according to the message type of the incremental message includes: Based on the message type of the incremental message, obtain the item-related information and resource information of the corresponding type in the data server; Based on the message identifier of the incremental message, update the item-related information and resource information of the corresponding type in the data server, and determine the updated full item-related information and full resource information in the data server.

13. An information recommendation device, characterized in that, Applied to a business server, it includes: a first receiving unit, an acquiring unit, and a first sending unit, wherein, The first receiving unit is configured to receive multiple first resource information requests sent by multiple first terminals; each first resource information request carries target item related information; the target item related information includes information on multiple target types; The acquisition unit is configured to, in response to each first resource information request, acquire, from the local inverted index library, the first local item-related information and the first local resource information corresponding to each target type, based on the target item-related information; wherein, the first local resource information represents information on discounts applied to the value of the item; the local inverted index library is obtained synchronously from the inverted index library in the data server, and the local inverted index library stores item-related information of multiple types, and resource information corresponding to each type; the multiple target types belong to any multiple of the multiple types; The first sending unit is configured to perform intersection processing and verification processing between different types based on the first local item-related information and the first local resource information, to obtain matching information corresponding to the target item-related information, and send it to the first terminal; the intersection processing and verification processing between different types includes: performing intersection processing between different types to obtain an intersection result; and performing verification processing on the intersection result.

14. An information recommendation device, characterized in that, Applied to business servers, including: The first memory is used to store executable instructions; A first processor, when executing executable instructions stored in the first memory, implements the information recommendation method according to any one of claims 1 to 7.

15. An information recommendation device, characterized in that, Applied to a data server, it includes: a second receiving unit, a second acquiring unit, a storage unit, a determining unit, and a second sending unit, wherein... The second receiving unit is used to receive an information request from the second terminal; the information request carries information related to the initial item and initial resource information; The second acquisition unit is configured to, in response to the information request, compress the initial item-related information and initial resource information to obtain full item-related information and full resource information; the full item-related information and the full resource information have a corresponding relationship; the initial item-related information includes multiple different types of information; the initial resource information represents information on discounts applied to the value of the item; The determining unit is used to determine the inverted index library in the data server based on the information related to all items. The storage unit is used to store the full resource information in the inverted index library in the data server according to the corresponding relationship; The second receiving unit is further configured to receive an initialization information request sent by the service server as described in any one of claims 1-7; The second sending unit is used to respond to the initialization information request by sending the full amount of item-related information and its corresponding full amount of resource information to the business server, so that the business server can synchronously determine the local inverted index library locally.

16. An information recommendation device, characterized in that, Applications to data servers include: The second memory is used to store executable instructions; The second processor, when executing executable instructions stored in the second memory, implements the information recommendation method according to any one of claims 8 to 12.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores executable instructions that, when executed, cause a first processor to perform the information recommendation method as described in any one of claims 1 to 7; or cause a second processor to perform the information recommendation method as described in any one of claims 8 to 12.

Citation Information

Patent Citations

  • Indexing method and device of data

    CN108334514A

  • Data processing method and device, equipment and storage medium

    CN112800095A