Article data processing method and device, electronic equipment and storage medium

By querying item attribute values ​​by preset attribute type values ​​and priority, the problem of excessive item price information recording in e-commerce B2B mode is solved, and search efficiency and performance are improved.

CN118964716APending Publication Date: 2024-11-15BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1

Patent Information

Application Number
CN202310545020.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the e-commerce B2B model, the amount of price information records of items is too high, resulting in large storage resources occupancy and low search processing efficiency and performance.

Method used

By presetting the attribute type value and the priority of the item provider, query the attribute value of the target item, generate search results, reduce the amount of stored item price information, and improve search efficiency and performance.

Benefits of technology

It reduces storage resource usage, reduces the amount of search data, improves processing efficiency and performance, and optimizes the synchronization and update efficiency of price information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964716A_ABST
    Figure CN118964716A_ABST
Patent Text Reader

Abstract

The invention discloses an article data processing method and device, electronic equipment and a storage medium, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: receiving an article search request, obtaining a parameter value set of each preset search parameter in the search request, searching a target article set in an article set corresponding to an article provider, and querying article information of each target article in the target article set; obtaining the type value of each type included in the corresponding preset attribute of the article provider; for each target article, querying an attribute value of each type corresponding to the target article based on the type value and the article information, so as to determine a current value of a preset attribute corresponding to the target article; and generating a search result based on the article information of the target article and the current value, and sending the search result. According to the embodiment, the problems that the number of recorded price information of the article is too large, more storage resources are occupied, and the processing efficiency and performance are reduced can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for processing item data. Background Art

[0002] In the field of e-commerce, the B2B (Business-to-Business) model is a common model between enterprises. For example, in an item sales scenario, one enterprise can provide items to another enterprise (item seller, such as a sales store, etc.) for sale, and users can search or purchase items from the item seller. Since the basic price of the same item is the same, but considering factors such as the business needs of some item sellers, store prices, preferential prices, etc. applicable to some item sellers can also be set for the items. In related technologies, in order to meet the price information search needs of items from various item sellers, for each item, it is usually necessary to store various types of price information of the item based on the item seller as the dimension. Therefore, the more sellers there are, the more price information records there will be for the item, which not only occupies more storage resources, but also reduces the processing efficiency and performance by searching and processing from a large number of data records. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for processing item data, which can solve the problem of too many item price information records, occupying more storage resources and reducing processing efficiency and performance.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing item data is provided.

[0005] A method for processing item data according to an embodiment of the present invention includes: receiving an item search request, obtaining a parameter value set of each preset search parameter in the search request, searching for a target item set from an item set corresponding to an item provider, and querying item information of each target item in the target item set;

[0006] Obtaining the type value of each type included in the preset attribute corresponding to the item provider;

[0007] For each of the target items, based on the type value and the item information, query the attribute value of each type corresponding to the target item to determine the current value of the preset attribute corresponding to the target item;

[0008] A search result is generated based on the item information of the target item and the current value, and the search result is transmitted.

[0009] In one embodiment, the target item set searched from the corresponding item set of the item provider includes:

[0010] Acquire attribute information corresponding to the item provider, match it with the parameter value set, obtain a matching result, and update the parameter value set;

[0011] Based on the updated parameter value set, the target item set is searched from the corresponding item set of the item provider.

[0012] In yet another embodiment, updating the parameter value set includes:

[0013] Based on the matching results, filter the successfully matched parameter values ​​and the unsuccessfully matched parameter values;

[0014] Determine the pending search parameter corresponding to the parameter value that failed to match, obtain the item association information of the parameter value that successfully matched, and update the parameter value of the pending search parameter based on the item association information to obtain an updated parameter value set.

[0015] In yet another embodiment, based on the type value and the item information, querying the attribute value of each type corresponding to the target item includes:

[0016] Based on the item information, an attribute information table corresponding to each type of the target item is obtained, so as to query the attribute value corresponding to the target item based on the type value corresponding to each type in the attribute information table.

[0017] In yet another embodiment, determining the current value of the preset attribute corresponding to the target item includes:

[0018] Based on the priority of each type corresponding to the item provider, the attribute value with the highest priority is screened from the attribute values ​​of each type to determine the current value of the preset attribute corresponding to the target item.

[0019] In yet another embodiment, before sending the search results, the method further includes:

[0020] Obtaining user information of a user corresponding to the search request to query historical operation data of the user;

[0021] The preference value of each of the target items is calculated based on the historical operation data, so as to determine the arrangement order of each of the target items based on the preference value.

[0022] In yet another embodiment, the method further comprises:

[0023] Receiving a preset attribute update instruction of the target item, and obtaining a to-be-updated type of the preset attribute and an updated attribute value;

[0024] The item provider is queried for a type value corresponding to the type to be updated to obtain the attribute value to be updated of the target item corresponding to the type to be updated, and the attribute value to be updated is updated to the attribute value based on the update.

[0025] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for processing item data is provided.

[0026] An apparatus for processing item data according to an embodiment of the present invention comprises: a search unit, configured to receive an item search request, obtain a parameter value set of each preset search parameter in the search request, search for a target item set from an item set corresponding to an item provider, and query item information of each target item in the target item set;

[0027] An acquisition unit, used to acquire type values ​​of various types included in the preset attributes corresponding to the item provider;

[0028] a determination unit, configured to query, for each of the target items, the attribute values ​​corresponding to the types of the target items based on the type value and the item information, so as to determine the current value of the preset attribute corresponding to the target item;

[0029] A sending unit is used to generate a search result based on the item information of the target item and the current value, and send the search result.

[0030] In one embodiment, the search unit is specifically configured to:

[0031] Acquire attribute information corresponding to the item provider, match it with the parameter value set, obtain a matching result, and update the parameter value set;

[0032] Based on the updated parameter value set, the target item set is searched from the corresponding item set of the item provider.

[0033] In yet another embodiment, the search unit is specifically configured to:

[0034] Based on the matching results, filter the successfully matched parameter values ​​and the unsuccessfully matched parameter values;

[0035] Determine the pending search parameter corresponding to the parameter value that failed to match, obtain the item association information of the parameter value that successfully matched, and update the parameter value of the pending search parameter based on the item association information to obtain an updated parameter value set.

[0036] In yet another embodiment, the determining unit is specifically configured to:

[0037] Based on the item information, an attribute information table corresponding to each type of the target item is obtained, so as to query the attribute value corresponding to the target item based on the type value corresponding to each type in the attribute information table.

[0038] In yet another embodiment, the determining unit is specifically configured to:

[0039] Based on the priority of each type corresponding to the item provider, the attribute value with the highest priority is screened from the attribute values ​​of each type to determine the current value of the preset attribute corresponding to the target item.

[0040] In yet another embodiment, the sending unit is further configured to:

[0041] Obtaining user information of a user corresponding to the search request to query historical operation data of the user;

[0042] The preference value of each of the target items is calculated based on the historical operation data, so as to determine the arrangement order of each of the target items based on the preference value.

[0043] In yet another embodiment, the acquisition unit is further configured to receive a preset attribute update instruction of the target item, and acquire a to-be-updated type of the preset attribute and an updated attribute value;

[0044] The device also includes:

[0045] The updating unit is used to query the type value of the item provider corresponding to the type to be updated to obtain the attribute value to be updated of the target item corresponding to the type to be updated, and update the attribute value to be updated to the attribute value based on the update.

[0046] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0047] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing item data provided by the embodiment of the present invention.

[0048] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0049] A computer-readable medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements the method for processing item data provided by the embodiment of the present invention.

[0050] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.

[0051] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for processing item data provided by the embodiment of the present invention is implemented.

[0052] An embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, for preset attributes (such as item price attributes), different prices can be divided into types based on demand, and the item provider and the type value of the type included in the preset attribute can be pre-configured, and attribute information records corresponding to different type values ​​can be stored for each item, that is, the price information record is not based on the item provider as a dimension, so as to reduce the number of attribute information records corresponding to the stored items and reduce the occupancy of storage resources; in this way, after receiving an item search request, the parameter value of each preset search parameter can be obtained to search for a target item set; then, for each target item, based on the type value corresponding to the item provider, the attribute value corresponding to each type of the target item can be queried, so that the attribute value of the preset attribute corresponding to the target item can be determined, and then the search result can be generated, thereby reducing the occupied storage resources, reducing the amount of search data, and improving the processing efficiency and performance.

[0053] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0055] Figure 1 is a schematic diagram of a main process of a method for processing item data according to an embodiment of the present invention;

[0056] Figure 2 is a schematic diagram of another main flow of the method for processing item data according to an embodiment of the present invention;

[0057] Figure 3 is a schematic diagram of another main flow of the method for processing item data according to an embodiment of the present invention;

[0058] Figure 4 is a schematic diagram of main units of an apparatus for processing item data according to an embodiment of the present invention;

[0059] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0060] Figure 6It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION

[0061] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0062] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.

[0063] An embodiment of the present invention provides an item data processing system, which can be used in a scenario of searching for items.

[0064] In a B2B scenario, a first business system may provide items to multiple second business systems, and each second business system may sell items to users.

[0065] For each item, the first business system provides the item to the second business system, and usually sets a basic price. The basic price of each second business system corresponding to the item is the same. In some business needs, the prices of items in some or all second business systems can also be adjusted. For example, for a second business system belonging to a certain area, the store price corresponding to the item can be set, or, in a second business system within the scope of a preferential activity, the preferential price corresponding to the item can be set. So for an item, it can include different price types for each second business system. In order to accurately store and search price information, the relevant technology usually stores each price of the item based on the second business system as a dimension, such as the storage method: item + second business system + price information, that is, each item corresponding to each second business system is stored. If the number of second business systems is 100,000, each item needs to store 100,000 price information records to store the price information corresponding to each second business system. In this way, when the number of second business systems is large, it will result in a large number of stored price information records, occupying more storage resources, and when searching for item data, it is necessary to search and process from a large number of data records, which will also reduce the efficiency and performance of the processing.

[0066] In the B2B model, various types of prices are usually applicable to multiple second business systems. For example, the basic price of an item is applicable to all second business systems, and the preferential price is also applicable to all second business systems within the preferential range. Therefore, in the embodiment of the present invention, different types of prices can be divided for items. For example, the price attributes of an item include various types, such as basic price, store price, preferential price, etc., and the type value corresponding to each type of each second business system is set. The price information of the item can be stored in the form of: item + type + price information to reduce the amount of stored data of the item price information. For example, for the basic price of item A, the type value corresponding to the basic price type of each second business system can be set to XX, and the corresponding price information to be stored can have only one record, that is, item A + XX + price. Compared with the storage method in the above-mentioned related art that requires the storage of 100,000 price information records for items, data storage resources can be greatly saved, and when searching for data, the amount of searched data can be reduced, thereby improving the efficiency and performance of processing, and at the same time, the efficiency of synchronization and updating of price information can be improved.

[0067] The embodiment of the present invention provides a method for processing item data, which can be executed by an item data processing system. Figure 1 As shown, the method includes:

[0068] S101: receiving an item search request, obtaining a parameter value set of each preset search parameter in the search request, searching for a target item set from a corresponding item set of an item provider, and querying item information of each target item in the target item set.

[0069] Among them, the search request for the item can be sent by the user through the terminal device, and the search request may include specific parameter values ​​used for the search. In the embodiment of the present invention, each preset search parameter can be pre-configured, and then the parameter value of each preset search parameter can be extracted from the search request to obtain a parameter value set.

[0070] It should be noted that, in the embodiment of the present invention, the preset search parameters include multiple ones, and the search request may include parameter values ​​corresponding to one or more preset search parameters, and for the preset search parameters that do not include parameter values ​​in the search request, it can be determined that the parameter value of the preset search parameter is empty. Specifically, in the embodiment of the present invention, the preset search parameters may include keywords, categories at all levels, brands, item types, item sources, minimum order quantity, price, sales volume, shelf time, activity information, etc.

[0071] The item provider represents a system that provides items to the user, and the corresponding item set of the item provider represents the item set that can be provided to the user, so the item set corresponding to the search request is searched for the user from the item set, that is, the target item set. Since the search results returned to the user usually include relevant information of the item, the item information of the target item can be obtained first in this step.

[0072] It should be noted that, for an item, some of its attributes include multiple types, such as price information, so this attribute information can be set as a preset attribute to query the attribute information through a corresponding processing method, so the item information queried in this step may not include the attribute information of the preset attribute. The item information of a specific target item may include an item identifier and other information.

[0073] In the embodiment of the present invention, in order to facilitate the search of items, the parameter value set of each preset search parameter can be optimized, that is, the search conditions can be optimized. The step of searching the target item set can be performed as follows: obtaining the attribute information corresponding to the item provider, matching it with the parameter value set, obtaining the matching result, and updating the parameter value set; based on the updated parameter value set, searching the target item set from the item set corresponding to the item provider.

[0074] The attribute information corresponding to the item provider may include the type of items, item brands, etc. of the items that the item provider operates. Therefore, in this step, the attribute information corresponding to the item provider may be matched with the parameter value set to obtain a matching result to determine the associated information of the search request to update the parameter value set. For example, the parameter value set includes the ZZ brand, and ZZ can represent both the brand of an electronic device and the brand of food. Therefore, if the attribute information of the item provider includes that the type of items operated is an electronic device, when it is matched with the parameter value set, it can be determined that the matching result is that ZZ is the brand of the electronic device. In this way, it can be determined that the parameter value set should be information associated with the ZZ electronic brand, and then the parameter values ​​in the parameter value set that are inconsistent with the electronic device can be updated. For example, the only electronic product of the ZZ brand is a mobile phone, but the parameter value of the item type in the parameter value set is a computer. At this time, the parameter value of the item type in the parameter value set can be updated to a mobile phone.

[0075] Specifically, in an embodiment of the present invention, the step of updating the parameter value set can be specifically performed as follows: filtering the successfully matched parameter values ​​and the unsuccessfully matched parameter values ​​based on the matching results; determining the pending search parameters corresponding to the unsuccessfully matched parameter values, and obtaining the item association information of the successfully matched parameter values, so as to update the parameter values ​​of the pending search parameters based on the item association information, so as to obtain an updated parameter value set.

[0076] The matching results may include parameter values ​​that are successfully matched and parameter values ​​that are unsuccessfully matched. The preset search parameters corresponding to the parameter values ​​that are unsuccessfully matched can be determined as pending search parameters, and then the item association information of the successfully matched parameter values ​​can be used to update the parameter values ​​of the pending search parameters based on the item association information to obtain an updated parameter value set.

[0077] In the embodiment of the present invention, a successfully matched parameter value indicates that the parameter value matches the attribute information of the item provider, and an unsuccessfully matched parameter value indicates that the parameter value does not match the attribute information of the item provider. For example, the parameter value including the item type in the parameter value is computer, and the attribute information of the item provider indicates that the only type of items provided by the item provider is mobile phone. In this case, it indicates that the parameter value "computer" does not match the attribute information of the item provider, and the preset search parameter corresponding to "computer" is the item type, which can be determined as the pending search parameter. The parameter value of the pending search parameter can be determined based on the item information associated with the successfully matched parameter value. For example, the successfully matched parameter value includes the item brand ZZ, and the type corresponding to ZZ is mobile phone, that is, the item type in the item association information of ZZ is mobile phone, so the parameter value of the item type in the pending search parameter can be updated to mobile phone.

[0078] It should be noted that, in an embodiment of the present invention, a priority can be set for each preset search parameter, and whether its corresponding parameter value matches the attribute information of the item provider can be determined based on the order of priority from high to low. For pending search parameters, they can be determined based on the parameter value of the preset search parameter with a higher priority than it.

[0079] S102: Obtain the type value of each type included in the preset attribute corresponding to the item provider.

[0080] The preset attribute refers to a preset item attribute, which includes multiple types, so it is necessary to determine the corresponding attribute value from the multiple types. In the embodiment of the present invention, the preset attribute may include the item price. In the embodiment of the present invention, the type value of each type included in the preset attribute is preset by the item provider. In this step, the type value is first obtained to obtain the attribute value of the preset attribute.

[0081] For example, the preset attribute is the item price, and the item price may include types of basic price and preferential price. In the embodiment of the present invention, the type values ​​of the basic price and preferential price corresponding to each item provider may be preset to facilitate acquisition in this step.

[0082] S103: For each target item, based on the type value and item information, query the attribute values ​​of each type corresponding to the target item to determine the current value of the preset attribute corresponding to the target item.

[0083] For each target item in the target item set in step S101, the value of the preset attribute corresponding to each target item can be determined respectively. After obtaining the type value of each type of preset attribute corresponding to the item provider in step S102, the attribute value of each type corresponding to the target item can be queried, and then the current value of the preset attribute corresponding to the target item can be determined from the attribute values ​​of each type.

[0084] Specifically, in the embodiment of the present invention, an attribute information table corresponding to each type of each item can be set, so in this step, a price information table corresponding to each type of the target item can be obtained based on the item information of the target item, and then the attribute value corresponding to the target item can be queried based on the type value corresponding to the type in each attribute information table. The item information can specifically be an item identifier.

[0085] In some embodiments, the priority of each type of preset attribute corresponding to the item provider can be set, so in this step, the attribute value with the highest priority can be screened from the attribute values ​​of each type to determine the current value of the preset attribute corresponding to the target item.

[0086] For example, taking the preset attribute as the price of the item, the item price includes two types: basic price and preferential price; for item A, the type value of the basic price corresponding to the item provider is XX, the basic price is 2.0, and the type value of the basic price corresponding to the item provider is YY, and the preferential price is 1.0. Therefore, the price information records stored in the embodiment of the present invention include: item A+XX+2.0, item A+YY+1.0. Therefore, in this step, the type value of the basic price corresponding to the item provider can be obtained first, which is XX and the type value of the basic price corresponding to the item provider can be obtained first, and then the attribute value of the basic price corresponding to item A can be 2.0 and the attribute value of the preferential price can be 1.0, and then the current value corresponding to the item can be determined based on the priority of the basic price and the preferential price.

[0087] It should be noted that, in the above steps, if the attribute value with the highest priority is empty, the attribute value of the next level can be selected according to the priority to determine the current value of the preset attribute corresponding to the target item.

[0088] S104: Generate search results based on the item information and current value of the target item, and send the search results.

[0089] In the embodiment of the present invention, the search results of the search request can be obtained for the item information of each target item and the current value of the preset attribute, and then sent to the user.

[0090] In the embodiment of the present invention, a scoring system may be preset to score and sort the target items so that the user can quickly find the items he is searching for. Specifically, in this step, user information of the user corresponding to the search request may be obtained to query the user's historical operation data, and the preference value of each target item may be calculated based on the historical operation data to determine the arrangement order of each target item based on the preference value.

[0091] The user's preferences, such as preferred brands, categories, etc., can be analyzed through historical operation data, and then compared with the current values ​​of the target item's item information and preset attributes to calculate the preference value of each target item.

[0092] It should be noted that the specific method of calculating the preference in the embodiment of the present invention is not limited. In the embodiment of the present invention, after the parameter value set is obtained in step S101, the preference score of each parameter value is determined based on the user's historical operation data, and then the target items can be sorted based on the preference score to obtain the arrangement order of the target items in the search results.

[0093] It should be noted that in the embodiment of the present invention, after the target items are obtained, the target items can also be filtered based on the inventory. For the search results obtained, the item data of each target item can be obtained based on a preset item data template and then returned to the user, wherein the content included in the item data template can be set based on demand.

[0094] In an embodiment of the present invention, for preset attributes (such as item price attributes), different prices can be classified into types based on demand, and the item provider and the type values ​​of the types included in the preset attributes can be pre-configured, and attribute information records corresponding to different type values ​​can be stored for each item, that is, the price information record is not based on the item provider as a dimension, so as to reduce the number of attribute information records corresponding to the stored items and reduce the occupancy of storage resources; in this way, after receiving an item search request, the parameter values ​​of each preset search parameter can be obtained to search for a target item set; then, for each target item, based on the type value corresponding to the item provider, the attribute values ​​corresponding to each type of the target item can be queried, so as to determine the attribute values ​​of the preset attributes corresponding to the target item, and then generate search results, thereby reducing the occupied storage resources, reducing the amount of search data, and improving processing efficiency and performance.

[0095] It should be noted that the data of each item in the embodiment of the present invention can be stored in a preset database, such as an ES database. In the embodiment of the present invention, data can be regularly pulled from a preset data source, and then the item data stored in the database can be synchronized and updated.

[0096] For example, the attribute information table can be stored in a database, and the database can receive the preset attribute update instruction of the target item, and then obtain the type to be updated and the updated attribute value of the preset attribute; then the type value of the type to be updated corresponding to the type to be updated of the item provider can be queried to obtain the attribute value to be updated corresponding to the type to be updated of the target item, and the attribute value to be updated can be updated to be based on the updated attribute value.

[0097] It should be noted that in the embodiment of the present invention, the data in the preset data source can be synchronized by means of incremental data synchronization. The preset data source can be based on MySQL as a data storage tool. Every time the data changes, a binlog will be issued. After the system receives the message, the data can be synchronized to the ES database in real time. At the same time, a compensation mechanism can also be set. When the incremental data fails to synchronize successfully due to abnormalities and other reasons, the compensation mechanism can periodically scan MySQL in full and issue the full amount of data to synchronize the data to the ES database again. At the same time, an exception handling mechanism can also be set, that is, the message has the characteristic of being retried if the consumption fails, which can reduce the probability of data writing failure. When the number of retries exceeds the defined threshold, an alarm will notify manual processing.

[0098] Combine the following Figure 1 The system architecture shown in the figure will be used to specifically describe the method for processing item data in the embodiment of the present invention. Figure 2 As shown, the method includes:

[0099] S201: receiving a search request for an item, and obtaining a parameter value set of each preset search parameter in the search request.

[0100] S202: Acquire attribute information corresponding to the item provider, match it with the parameter value set, obtain a matching result, and update the parameter value set.

[0101] S203: Based on the updated parameter value set, search for a target item set from the item set corresponding to the item provider.

[0102] S204: Obtain the type value of each type included in the preset attribute corresponding to the item provider.

[0103] S205: For each target item, based on the type value and item information, query the attribute values ​​of each type corresponding to the target item to determine the current value of the preset attribute corresponding to the target item.

[0104] S206: Generate search results based on the item information and current value of the target item, and send the search results.

[0105] It should be noted that the data processing principle of the present invention is similar to Figure 1 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.

[0106] Combine the following Figure 1 The system architecture shown in the figure will be used to specifically describe the method for processing item data in the embodiment of the present invention. Figure 3 As shown, the method includes:

[0107] S301: receiving a search request for an item, and obtaining a parameter value set of each preset search parameter in the search request.

[0108] S302: searching for a target item set from the item set corresponding to the item provider, and querying item information of each target item in the target item set.

[0109] S303: Obtain the type value of each type included in the preset attribute corresponding to the item provider.

[0110] S304: For each target item, based on the type value and item information, query the attribute values ​​of each type corresponding to the target item.

[0111] S305: Based on the priorities of the item providers corresponding to each type, the attribute value with the highest priority is screened from the attribute values ​​of each type to determine the current value of the preset attribute corresponding to the target item.

[0112] S306: Generate search results based on the item information and current value of the target item, and send the search results.

[0113] It should be noted that the data processing principle of the present invention is similar to Figure 1 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.

[0114] In order to solve the problems existing in the prior art, an embodiment of the present invention provides an apparatus 400 for processing item data, such as Figure 4 As shown, the device 400 includes:

[0115] The search unit 401 is used to receive a search request for an item, obtain a parameter value set of each preset search parameter in the search request, search for a target item set from a corresponding item set of an item provider, and query item information of each target item in the target item set;

[0116] An acquisition unit 402 is used to acquire type values ​​of various types included in the preset attributes corresponding to the item provider;

[0117] A determination unit 403 is used to query the attribute value of each type corresponding to each target item based on the type value and the item information to determine the current value of the preset attribute corresponding to the target item;

[0118] The sending unit 404 is configured to generate a search result based on the item information of the target item and the current value, and send the search result.

[0119] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 The method of the illustrated embodiment is the same and will not be repeated here.

[0120] In one embodiment, the search unit 401 is specifically configured to:

[0121] Acquire attribute information corresponding to the item provider, match it with the parameter value set, obtain a matching result, and update the parameter value set;

[0122] Based on the updated parameter value set, the target item set is searched from the corresponding item set of the item provider.

[0123] In yet another embodiment, the search unit 401 is specifically configured to:

[0124] Based on the matching results, filter the successfully matched parameter values ​​and the unsuccessfully matched parameter values;

[0125] Determine the pending search parameter corresponding to the parameter value that failed to match, obtain the item association information of the parameter value that successfully matched, and update the parameter value of the pending search parameter based on the item association information to obtain an updated parameter value set.

[0126] In yet another embodiment, the determining unit 403 is specifically configured to:

[0127] Based on the item information, an attribute information table corresponding to each type of the target item is obtained, so as to query the attribute value corresponding to the target item based on the type value corresponding to each type in the attribute information table.

[0128] In yet another embodiment, the determining unit 403 is specifically configured to:

[0129] Based on the priority of each type corresponding to the item provider, the attribute value with the highest priority is screened from the attribute values ​​of each type to determine the current value of the preset attribute corresponding to the target item.

[0130] In yet another embodiment, the sending unit 404 is further configured to:

[0131] Obtaining user information of a user corresponding to the search request to query historical operation data of the user;

[0132] The preference value of each of the target items is calculated based on the historical operation data, so as to determine the arrangement order of each of the target items based on the preference value.

[0133] In yet another embodiment, the acquisition unit 402 is further configured to receive a preset attribute update instruction of the target item, and acquire the to-be-updated type of the preset attribute and the updated attribute value;

[0134] The device 400 further includes:

[0135] The updating unit is used to query the type value of the item provider corresponding to the type to be updated to obtain the attribute value to be updated of the target item corresponding to the type to be updated, and update the attribute value to be updated to the attribute value based on the update.

[0136] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 , 2 , and 3 are the same as the embodiments shown in FIG. 3 and will not be described again here.

[0137] In an embodiment of the present invention, for preset attributes (such as item price attributes), different prices can be classified into types based on demand, and the item provider and the type values ​​of the types included in the preset attributes can be pre-configured, and attribute information records corresponding to different type values ​​can be stored for each item, that is, the price information record is not based on the item provider as a dimension, so as to reduce the number of attribute information records corresponding to the stored items and reduce the occupancy of storage resources; in this way, after receiving an item search request, the parameter values ​​of each preset search parameter can be obtained to search for a target item set; then, for each target item, based on the type value corresponding to the item provider, the attribute values ​​corresponding to each type of the target item can be queried, so that the attribute values ​​of the preset attributes corresponding to the target item can be determined, and then the search results can be generated, thereby reducing the occupied storage resources, reducing the amount of search data, and improving the processing efficiency and performance.

[0138] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.

[0139] The electronic device according to an embodiment of the present invention comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for processing item data provided by the embodiment of the present invention.

[0140] Figure 5 An exemplary system architecture 500 is shown to which the method or apparatus for item data processing according to an embodiment of the present invention may be applied.

[0141] like Figure 5As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0142] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal devices 501, 502, 503.

[0143] The terminal devices 501 , 502 , and 503 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0144] The server 505 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.

[0145] It should be noted that the method for processing item data provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing item data is generally disposed in the server 505 .

[0146] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0147] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an embodiment of the present invention. Figure 6 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0148] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0149] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0150] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0151] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0152] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a search unit, an acquisition unit, a determination unit, and a sending unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the search unit may also be described as a "unit for item search function".

[0154] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the method for processing item data provided by the present invention.

[0155] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for processing item data provided in an embodiment of the present invention.

[0156] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing item data, characterized in that: include: Receive a search request for an item, obtain a parameter value set of each preset search parameter in the search request, search for a target item set from a corresponding item set of an item provider, and query item information of each target item in the target item set; Obtaining the type value of each type included in the preset attribute corresponding to the item provider; For each of the target items, based on the type value and the item information, query the attribute value of each type corresponding to the target item to determine the current value of the preset attribute corresponding to the target item; A search result is generated based on the item information of the target item and the current value, and the search result is transmitted.

2. The method according to claim 1, characterized in that The target item set searched from the corresponding item set of the item provider includes: Acquire attribute information corresponding to the item provider, match it with the parameter value set, obtain a matching result, and update the parameter value set; Based on the updated parameter value set, the target item set is searched from the corresponding item set of the item provider.

3. The method according to claim 2, characterized in that Updating the parameter value set includes: Based on the matching results, filter the successfully matched parameter values ​​and the unsuccessfully matched parameter values; Determine the pending search parameter corresponding to the parameter value that failed to match, obtain the item association information of the parameter value that successfully matched, and update the parameter value of the pending search parameter based on the item association information to obtain an updated parameter value set.

4. The method according to claim 1, characterized in that: Based on the type value and the item information, querying the attribute value of each type corresponding to the target item includes: Based on the item information, an attribute information table corresponding to each type of the target item is obtained, so as to query the attribute value corresponding to the target item based on the type value corresponding to each type in the attribute information table.

5. The method according to claim 1, characterized in that Determining a current value of a preset attribute corresponding to the target item includes: Based on the priority of each type corresponding to the item provider, the attribute value with the highest priority is screened from the attribute values ​​of each type to determine the current value of the preset attribute corresponding to the target item.

6. The method according to claim 1, characterized in that Before sending the search results, the method further includes: Obtaining user information of a user corresponding to the search request to query historical operation data of the user; The preference value of each of the target items is calculated based on the historical operation data, so as to determine the arrangement order of each of the target items based on the preference value.

7. The method according to claim 1, characterized in that The method further comprises: Receiving a preset attribute update instruction of the target item, and obtaining a to-be-updated type of the preset attribute and an updated attribute value; The item provider is queried for a type value corresponding to the type to be updated to obtain the attribute value to be updated of the target item corresponding to the type to be updated, and the attribute value to be updated is updated to the attribute value based on the update.

8. A device for processing item data, characterized in that: include: A search unit, configured to receive a search request for an item, obtain a parameter value set of each preset search parameter in the search request, search for a target item set from a corresponding item set of an item provider, and query item information of each target item in the target item set; An acquisition unit, used to acquire type values ​​of various types included in the preset attributes corresponding to the item provider; a determination unit, configured to query, for each of the target items, the attribute values ​​corresponding to the types of the target items based on the type value and the item information, so as to determine the current value of the preset attribute corresponding to the target item; A sending unit is used to generate a search result based on the item information of the target item and the current value, and send the search result.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Commodity search method and device

    CN109213936A

  • Effective price tag pushing method and device, computer equipment and storage medium

    CN110706019A

  • Value attribute value collection method, device, equipment and storage medium

    CN113762995A

  • Commodity search recommendation method and system

    CN114611010A

  • Techniques for dynamic variations of a search query

    US10497039B1

Cited By

  • Intelligent inquiry method and device, electronic equipment and storage medium

    CN121071004A

  • Intelligent inquiry method and device, electronic equipment and storage medium

    CN121071004B