Commodity selection method and device based on configuration and computer device
By identifying product information associated with basic rules and configuring subset rules in e-commerce platforms, and combining offline and real-time strategies to optimize product selection methods, the problem of resource waste caused by large computational loads is solved, achieving efficient product selection and resource utilization.
Patent Information
- Application Number
- CN202211683730.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-12-27
AI Technical Summary
Existing product selection methods involve a large amount of computation, leading to wasted search engine storage and resources.
By identifying product information associated with preset basic rules and importing it into the search engine; configuring subset rules based on operational scenario information; obtaining query statements to retrieve target product information from the search engine; and optimizing the calculation process by combining offline and real-time strategies.
Reduce computational load, save search engine storage space, improve resource utilization, and enhance operational and computational efficiency.
Smart Images

Figure CN116108306B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a commodity selection method and device based on configuration and a computer device. BACKGROUND
[0002] As the core content of an e-commerce platform, commodities are naturally an important part of the daily operation of an e-commerce platform in screening better commodities from a large number of platform commodity pools. A flexible, wide-ranging and functional commodity selection method will play an important role in promoting transaction conversion, improving platform commodity quality and risk control.
[0003] The current commodity selection method is to define various rules of commodities, calculate the commodities associated with all rules from the commodity pool by hour and day offline, and save all calculation results to a search engine for retrieval. The defects of this scheme are that: due to the existence of overlapping parts between many rules, it leads to large amount of calculation, which causes large storage waste to the search engine and resource waste.
[0004] At present, there is no effective solution to the problem of large amount of calculation, large storage waste to the search engine and resource waste in the related art. SUMMARY
[0005] A commodity selection method, device and computer device based on configuration are provided in the embodiment to solve the problem of large amount of calculation, large storage waste to the search engine and resource waste in the related art.
[0006] In a first aspect, a commodity selection method based on configuration is provided in the embodiment, comprising:
[0007] determining first commodity information associated with a preset basic rule, and importing the basic rule and the corresponding first commodity information into a search engine;
[0008] configuring a subset rule according to operation scene information and the basic rule;
[0009] obtaining a query statement corresponding to the subset rule, and querying first target commodity information from the search engine based on the query statement.
[0010] In some embodiments, the determination of the first commodity information associated with the preset basic rule and the import of the basic rule and the corresponding first commodity information into the search engine comprise:
[0011] based on an offline strategy, screening first commodity information associated with the basic rule from a commodity pool;
[0012] screening first commodity information associated with the basic rule from a commodity pool based on a real-time strategy;
[0013] importing the basic rule and the corresponding first commodity information into a search engine.
[0014] In some embodiments, the screening first commodity information associated with the basic rule from a commodity pool based on an offline strategy includes:
[0015] obtaining index data corresponding to the basic rule and all valid commodity basic data in the commodity pool, and generating a commodity wide table according to the index data and the commodity basic data;
[0016] calculating first commodity information associated with the basic rule according to the preset basic rule and the commodity wide table.
[0017] In some embodiments, the screening first commodity information associated with the basic rule from a commodity pool based on a real-time strategy includes:
[0018] listening to real-time change messages related to the preset basic rule, and screening commodity change messages related to valid stores in the commodity pool from the real-time change messages;
[0019] supplementing second commodity information corresponding to the basic rule according to the commodity change messages to obtain a commodity table;
[0020] calculating first commodity information associated with the basic rule according to the preset basic rule and the commodity table.
[0021] In some embodiments, the listening to real-time change messages related to the preset basic rule and screening commodity change messages related to valid stores in the commodity pool from the real-time change messages includes:
[0022] listening to real-time change messages related to the preset basic rule;
[0023] screening commodity change messages related to the valid stores from the real-time change messages based on identity information of the valid stores in the commodity pool.
[0024] In some embodiments, the obtaining a query statement corresponding to the subset rule and querying first target commodity information from the search engine based on the query statement includes:
[0025] assembling a query statement of the search engine based on the subset rule;
[0026] executing the query statement in the search engine to obtain first target commodity information.
[0027] In some embodiments, the method further comprises:
[0028] After obtaining the first target commodity information, acquiring commodity supplement information corresponding to the first commodity information;
[0029] Assembling the first commodity information and the commodity supplement information into second target commodity information.
[0030] In a second aspect, a commodity selection device based on configuration is provided in the embodiments, comprising a processing module, a configuration module and a query module;
[0031] The processing module is configured to determine first commodity information associated with a preset basic rule, and import the basic rule and the corresponding first commodity information into a search engine;
[0032] The configuration module is configured to configure a subset rule according to operation scenario information and the basic rule;
[0033] The query module is configured to acquire a query statement corresponding to the subset rule, and query first target commodity information from the search engine based on the query statement.
[0034] In a third aspect, a computer device is provided in the embodiments, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the commodity selection method based on configuration in the first aspect when executing the computer program.
[0035] In a fourth aspect, a storage medium is provided in the embodiments, and the storage medium stores a computer program, and the computer program is executable by a processor to implement the commodity selection method based on configuration in the first aspect.
[0036] Compared with related technologies, the commodity selection method, device and computer device based on configuration provided in the embodiments determine first commodity information associated with a preset basic rule, import the basic rule and the corresponding first commodity information into a search engine, configure a subset rule according to operation scenario information and the basic rule, acquire a query statement corresponding to the subset rule, and query first target commodity information from the search engine based on the query statement, thereby solving the problem of large calculation amount, large storage waste of the search engine and resource waste in related technologies, reducing the calculation amount, saving the storage space of the search engine, and improving the resource utilization rate.
[0037] The details of one or more embodiments of the present application are presented in the following drawings and description to make other features, objects and advantages of the present application more apparent. Attached Figure Description
[0038] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0039] Figure 1 This is a hardware structure block diagram of a terminal device based on a configurable product selection method provided in one embodiment of this application;
[0040] Figure 2 This is a flowchart of a configuration-based product selection method provided in an embodiment of this application;
[0041] Figure 3 yes Figure 2 Flowchart of step S210;
[0042] Figure 4 This is a structural block diagram of a configurable product selection device provided in one embodiment of this application.
[0043] In the diagram: 102, processor; 104, memory; 106, transmission device; 108, input / output device; 210, processing module; 220, configuration module; 230, query module. Detailed Implementation
[0044] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0045] Unless otherwise defined, technical terms or scientific terms used in the present application shall have the same meaning as those commonly understood by a person of ordinary skill in the art to which the present application belongs. The terms "one", "a", "an", "the", "these", and similar terms in the present application do not mean "only one" or "exactly one", but can mean "one or more". The terms "include", "contain", "have", and any variant thereof in the present application are intended to cover the non-exclusive inclusion; for example, a process, method, and system, product or device containing a series of steps or modules (units) are not limited to the listed steps or modules (units), but can include steps or modules (units) not listed, or can include other steps or modules (units) inherent to the process, method, product or device. The terms "connect", "connect", "couple" and the like in the present application are not limited to physical or mechanical connection, but can include electrical connection, whether direct or indirect. The term "multiple" in the present application means two or more. The term "and / or" describes the association between the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that A exists alone, A and B exist together, and B exists alone. Generally, the character " / " represents the relationship between the objects before and after the connection is "or". The terms "first", "second", "third" and the like in the present application are only used to distinguish similar objects, and do not represent a specific order of the objects.
[0046] The method embodiments provided in the present embodiment can be executed in a terminal, a computer or a similar computing device. For example, the method embodiments are executed on a terminal, Figure 1 is a hardware structure block diagram of the terminal based on the product selection method of the present embodiment. As shown in Figure 1 , the terminal can include one or more (only one is shown in Figure 1 ) processor 102 and memory 104 for storing data, wherein the processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA. The above terminal can also include transmission device 106 for communication function and input / output device 108. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the above terminal. For example, the terminal can include more or less components than Figure 1 shown, or have a different configuration from Figure 1 shown.
[0047] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as the computer program corresponding to the product selection method based on configuration in the embodiment. The processor 102 can execute various functional applications and data processing, i.e., implement the method described above, by running the computer program stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to the terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0048] The transmission device 106 is used to receive or send data via a network. The network described above includes a wireless network provided by a communication provider of the terminal. In an example, the transmission device 106 includes a network adapter (NIC) which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, the transmission device 106 can be a radio frequency (RF) module which is used to communicate with the Internet in a wireless manner.
[0049] In the embodiment, a product selection method based on configuration is provided, Figure 2 A flowchart of the product selection method based on configuration in the embodiment is shown in FIG. 2, which includes the following steps: Figure 2
[0050] In step S210, first product information associated with a preset basic rule is determined, and the basic rule and the corresponding first product information are imported into a search engine.
[0051] In step S220, a subset rule is configured according to operation scene information and the basic rule.
[0052] In step S230, a query statement corresponding to the subset rule is obtained, and first target product information is queried from the search engine based on the query statement.
[0053] Specifically, the basic rule is pre-set, mainly used for the access rule of the total commodity pool, and has the characteristics of universality and enumerability. Each commodity pool can have a basic rule, or the total commodity pool has a basic rule. Universality refers to the universal rule between different activities; for example: whether the commodity has inventory, whether the commodity is on the shelf, whether the commodity is deleted, prevention and control conditions (whether the shop is normally operated, whether it is a high-risk commodity), etc. Enumerability refers to the number of basic rules is limited, often containing dozens to hundreds. The commodity pool can have multiple, and the goods in each commodity pool must meet the basic rule to associate the basic rule with the first commodity information. It can also be considered that all the goods in the commodity pool that meet the basic rule are confirmed as the first commodity information by using the offline strategy and / or real-time strategy; and the goods that do not meet the basic rule are not associated with the basic rule; then the basic rule and the corresponding first commodity information are imported into the search engine waiting for subsequent query. The first commodity information includes the title, picture and other data of the commodity. Among them, the search engine can be ElasticSearch.
[0054] The operation scene information refers to some activity scenes, such as: school season, hot selling, and mom's selection scenes; the subset rule can be configured by combining the operation scene information with the basic rule; for example: the subset rule of the school season can be whether the commodity type is a book, whether the commodity type is a toy, whether the commodity has inventory, whether the commodity is on the shelf, whether the commodity is deleted, etc. The subset rule has the characteristics of non-universality and non-enumerability. Non-universal refers to the corresponding subset rule of each operation scene; and the subset rule can be combined and expanded.
[0055] The query statement corresponds to the search engine, and each search engine can be corresponded by a query statement; the corresponding result can be obtained by executing the query statement in the search engine. Since the query statement corresponds to the subset rule, the first target commodity information can be queried from the search engine by executing the query statement; the first target commodity information includes multiple first commodity information; each commodity information corresponds to the rule in the subset rule; so that the search engine does not need to store the commodity information corresponding to the subset rule, thereby reducing the calculation amount, saving the storage space of the search engine, and improving the resource utilization rate.
[0056] Through the above steps, the first commodity information associated with the pre-set basic rule is determined, and the basic rule and the corresponding first commodity information are imported into the search engine, so that only the first commodity information associated with the basic rule is stored in the search engine;
[0057] According to the operation scene information and the basic rule, a subset rule is configured; a query statement corresponding to the subset rule is acquired, and first target commodity information is queried from the search engine based on the query statement, so that only the first commodity information associated with the basic rule is stored in the search engine, and the commodity information corresponding to the subset rule does not need to be stored, thereby improving resource utilization; again, according to the operation scene information and the basic rule, a subset rule is configured; a query statement corresponding to the subset rule is acquired, and first target commodity information is queried from the search engine based on the query statement, thereby reducing the calculation amount of the first target commodity information of the subset rule and improving resource utilization; thereby solving the problem of large calculation amount in the related art, which causes relatively large storage waste of the search engine and resource waste.
[0058] The above steps are described in detail as follows:
[0059] In some embodiments, as shown in FIG. 2, the determination of the first commodity information associated with the preset basic rule in step S210 and the introduction of the basic rule and the corresponding first commodity information into the search engine include the following steps. Figure 3
[0060] Step S211, based on an offline strategy, filtering first commodity information associated with the basic rule from the commodity pool;
[0061] Step S212, based on a real-time strategy, filtering first commodity information associated with the basic rule from the commodity pool;
[0062] Step S213, introducing the basic rule and the corresponding first commodity information into the search engine.
[0063] Specifically, commodity information is always in real-time change, and the title, picture and other data of the commodity may change at any time. The change of the commodity information may affect whether these commodities still meet the rules of the commodity pool. The existing method calculates the commodities associated with all rules from the commodity pool by hour level and day level offline, and saves all calculation results to the search engine to provide retrieval. It needs to wait for a certain time (hour / day level) for operation, and the delay produced in this process will have a certain impact on the quality of the commodity pool, especially for some sensitive rules, such as risk control rules, which are particularly important. At the same time, it also needs to wait for a period of time from the proposal of the rules of the commodity pool to the output of a commodity pool. If the result does not meet the demand, this process needs to be performed again, which seriously affects the running efficiency.
[0064] In the embodiment, based on the offline strategy, the first commodity information associated with the basic rule is screened out from the commodity pool, the first commodity information associated with the basic rule in the offline part of the commodity pool can be calculated; combined with the real-time strategy, the first commodity information associated with the basic rule in the real-time change part of the commodity pool can be calculated, the influence of the change of the commodity information on the quality of the commodity pool is avoided; and the offline part can be independently operated and will not be disturbed, so as to improve the operation efficiency.
[0065] In some embodiments, the step S211 of screening the first commodity information associated with the basic rule from the commodity pool based on the offline strategy comprises the following steps:
[0066] Obtaining the index data corresponding to the basic rule and all valid commodity basic data in the commodity pool, and generating a commodity wide table according to the index data and the commodity basic data;
[0067] According to the preset basic rule and the commodity wide table, the first commodity information associated with the basic rule is calculated.
[0068] Specifically, the index data refers to specific parameters, and the index data of each store may be different; for example, the index data corresponding to the 30-day sales rule is 30; it means that the 30-day sales of the store has 30 commodities. For example, the index data corresponding to the store identity information rule is 1; it means that the store identity information of the store is number 1. Herein, it is not described one by one. The commodity basic data refers to store identity information, commodity identity information, commodity title and other data. Then, according to the index data and the commodity basic data, a commodity wide table is generated, and part of the information in the commodity wide table is shown in Table 1.
[0069] Table 1
[0070]
[0071] The running basic rule is parsed by the computing engine (Apache Spark), and whether the associated commodity in the commodity wide table belongs to a certain commodity pool is calculated. For example, the configured basic rule of the commodity pool a is that the commodity has been deleted, the price of the commodity is less than 1 yuan, the commodity title contains test, and the commodity has been taken off the shelf, etc. After operation, it is finally concluded that the commodity in Table 1 will not meet the basic rule of the commodity pool a, and the reason is that "the commodity has been deleted" does not meet the commodity pool a. The label of goods_pool_a=0 is given to the commodity (0: indicating that the basic rule of the commodity pool is not met, 1: indicating that the basic rule of the commodity pool is met). The above steps are repeatedly executed, so as to obtain the first commodity information.
[0072] The result of the calculation is stored to Hbase (Hadoop Database, distributed storage system). Since it is the result of offline calculation, a version number is generated when it is imported, and the value of the version number is the time at zero o'clock on the day. If the result of real-time strategy calculation is updated to the result of offline calculation, the version number of offline is less than that of real-time (the version number of the result of real-time strategy calculation is the time of commodity update), and the real-time data will not be overwritten. Finally, the data in Hbase is imported into the search engine. For example: import the first commodity information (commodity title, commodity image, etc.), the basic rules of the commodity pool. Then the commodity can be searched in the commodity pool. For example: a module of the platform uses the basic rules of commodity pool a, and when searching for "clothes" in the module, the corresponding search engine statement:
title CONTAIN "clothes" AND goods_pool_a = 1
[0073] In this embodiment, if there is a change in the basic rules, only the basic rule configuration needs to be modified, without the need to redevelop and reissue the code; in addition, if there is an additional commodity pool b with different basic rules, only the basic rules of commodity pool b need to be configured again, and the offline strategy will automatically mark the goods with goods_pool_b = 0 / 1.
[0074] The offline strategy processing process mainly processes rules that need to be statistically processed on a daily basis, such as 30-day sales and 30-day refund rate, and is a supplement to the real-time strategy processing process. Most scenarios require real-time calculation.
[0075] In some embodiments, the step S212 of filtering out the first commodity information associated with the basic rules from the commodity pool based on the real-time strategy includes the following steps:
[0076] Listening to real-time change messages related to the preset basic rules, and filtering out commodity change messages related to the valid stores in the commodity pool from the real-time change messages;
[0077] According to the commodity change messages, the second commodity information corresponding to the basic rules is supplemented to obtain a commodity table;
[0078] According to the preset basic rules and the commodity table, the first commodity information associated with the basic rules is calculated.
[0079] Specifically, all real-time data change messages of the goods involved in the basic rules are listened to, such as commodity title change messages, commodity detail change messages, commodity state change messages, and other real-time messages. Based on the identity information of the valid stores in the commodity pool, the commodity change messages related to the valid stores are filtered out from the real-time change messages, unnecessary messages are reduced, and processing efficiency is improved.
[0080] The commodity table is the complete data required for calculating the first commodity information associated with the basic rule, such as the commodity title, the deletion state, and the like. Some of such data are obtained from the real-time database, and some are obtained from the interface of other business modules. The basic rule is parsed and run by the computing engine (Apache Spark), and it is calculated whether the commodity associated in the commodity table belongs to a certain commodity pool. For example, the configured basic rule of the commodity pool a is that the commodity has been deleted, the commodity price is less than 1 yuan, the commodity title contains test, and the commodity has been taken off the shelf. After the operation, it is finally concluded that the commodity in Table 1 will not meet the basic rule of the commodity pool a, and the reason is that the “commodity has been deleted” does not meet the commodity pool a. The label of goods pool a = 0 / 1 is given to the commodity (0 / 0: indicating that the basic rule of the commodity pool is not met, 0 / 1: indicating that the basic rule of the commodity pool is met). The above steps are repeatedly executed, so as to obtain the first commodity information.
[0081] The result of the calculation is stored in Hbase (Hadoop Database, distributed storage system). Since it is the result of offline calculation, a version number is generated when it is imported, and the value of the version number is the time of commodity update. Finally, the data in the Hbase is imported into the search engine. For example: the first commodity information (commodity title, commodity image, etc.), the basic rule of the commodity pool are imported. Then the commodity pool can be searched for the commodity. For example: a certain module of the platform uses the basic rule of the commodity pool a, and when the module searches for “clothes”, the corresponding search engine statement:
title CONTAIN“clothes”ANDgoods_pool_a = 0 / 1
[0082] The subset rule is often simple, but the scene is rich, the number of subset rules is large, and it will be modified frequently. If the subset rule is also processed according to the offline strategy and the real-time strategy, then the commodity will be marked with numerous set labels: [goods_pool_a = 1, goods_pool_b = 0, goods_pool_c = 1, goods_pool_d = 0, …] and the like; it is also impossible to meet all the operation scenes.
[0083] In some embodiments, the obtaining, in step S230, the query statement corresponding to the subset rule and querying the first target commodity information from the search engine based on the query statement comprises the following steps:
[0084] Step S231, assembling the query statement of the search engine based on the subset rule;
[0085] Step S232, executing the query statement in the search engine to obtain the first target commodity information.
[0086] Specifically, the subset rule configuration is obtained as follows:
[0087] [{
[0088] "logic":"and","title":“Category ID",
[0089] "left":"category_id","op":"in"",
[0090] "right":[
[0091] 1001","1002","1003- ]
[0093] ),{
[0094] "logic":"and",
[0095] "title":"30-day sales"
[0096] "left":"sold_num_30d","op":"gte",
[0097] "right":500
[0098] ),
[0099] {
[0100] "logic":"and","title":"Basic Sets","left":"tag",
[0101] "op":"==”,
[0102] "right":"goods_pool_a=1"
[0103] )).
[0104] The reassembled search engine query is:
category_id IN (1001, 1002, 1003) AND sold_num_30d >= 500 AND tag = "goods_pool_a = 1"
[0105] In the embodiment, the first target commodity information corresponding to the subset rule does not need to be stored in the Hbase and the search engine, the storage amount of the search engine is reduced, and the query statement of the search engine is assembled; the query statement is executed in the search engine to obtain the first target commodity information; the first target commodity information corresponding to the subset rule can be quickly queried, the calculation efficiency is improved, and resource waste is reduced.
[0106] In some of the embodiments, the configured commodity selection method further includes the following steps:
[0107] After obtaining the first target commodity information, commodity supplement information corresponding to the first target commodity information is obtained;
[0108] The first target commodity information and the commodity supplement information are assembled into second target commodity information.
[0109] Specifically, the first target commodity information corresponding to the commodity supplement information is obtained from the Hbase or other business interface, the first target commodity information and the commodity supplement information are assembled into the second target commodity information, and finally returned to the user.
[0110] Through the above steps, a new subset rule is configured, various subset rules are configured according to the operation scene and the basic rule, and the target commodity information is obtained, without the need for a certain time of calculation. Also, there is no need to mark the subset on the commodity, which improves the efficiency and saves the storage.
[0111] It should be noted that the steps shown in the above process or the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
[0112] In the embodiment, a configured commodity selection device is also provided, which is used to implement the above embodiments and preferred embodiments, and will not be described again. The terms "module", "unit", "sub-unit" and the like used below can be a combination of software and / or hardware that can implement a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and is conceived.
[0113] Figure 4 is a structural block diagram of the configured commodity selection device of the embodiment, as Figure 4 shown, the device includes a processing module 210, a configuration module 220, and a query module 230;
[0114] The processing module 210 is configured to determine first commodity information associated with a preset basic rule, and import the basic rule and the corresponding first commodity information into a search engine.
[0115] The configuration module 220 is configured to configure a subset rule according to operation scene information and the basic rule.
[0116] The query module 230 is configured to obtain a query statement corresponding to the subset rule, and query first target commodity information from the search engine based on the query statement.
[0117] Through the above device, the problem of large calculation amount, large storage waste of the search engine, and resource waste in the related art is solved, and the calculation amount is reduced, the storage space of the search engine is saved, and the resource utilization is improved.
[0118] In some embodiments, the processing module 210 is further configured to filter, based on an offline strategy, first commodity information associated with the basic rule from a commodity pool;
[0119] filter, based on a real-time strategy, first commodity information associated with the basic rule from the commodity pool;
[0120] import the basic rule and the corresponding first commodity information into the search engine.
[0121] In some embodiments, the processing module 210 is further configured to obtain index data corresponding to the basic rule and all valid commodity basic data in the commodity pool, and generate a commodity wide table according to the index data and the commodity basic data;
[0122] According to the preset basic rule and the commodity wide table, the first commodity information associated with the basic rule is calculated.
[0123] In some embodiments, the processing module 210 is further configured to listen to a real-time change message related to the preset basic rule, and filter, from the real-time change message, a commodity change message related to a valid store in the commodity pool;
[0124] According to the commodity change message, the second commodity information corresponding to the basic rule is supplemented to obtain a commodity table;
[0125] According to the preset basic rule and the commodity table, the first commodity information associated with the basic rule is calculated.
[0126] In some embodiments, the processing module 210 is further configured to listen to a real-time change message related to the preset basic rule;
[0127] Based on identity information of a valid store in the commodity pool, a commodity change message related to the valid store is filtered from the real-time change message.
[0128] In some embodiments, the query module 230 is further configured to assemble a query statement of the search engine based on the subset rule.
[0129] The query statement is executed in the search engine to obtain first target commodity information.
[0130] In some embodiments, the query module 230 is further configured to obtain commodity supplement information corresponding to the first commodity information after obtaining the first target commodity information.
[0131] The first commodity information and the commodity supplement information are assembled into second target commodity information.
[0132] It should be noted that each of the above modules can be a functional module or a program module, and can be implemented by software or hardware. For the modules implemented by hardware, each of the above modules can be located in the same processor; or each of the above modules can also be located in different processors in any combination.
[0133] In this embodiment, a computer device is also provided, which includes a memory and a processor. The memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.
[0134] Optionally, the computer device can further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0135] Optionally, in this embodiment, the processor can be configured to execute the following steps through the computer program:
[0136] S1, determining first commodity information associated with a preset basic rule, and importing the basic rule and the corresponding first commodity information into a search engine;
[0137] S2, configuring a subset rule according to operation scene information and the basic rule;
[0138] S3, obtaining a query statement corresponding to the subset rule, and querying first target commodity information from the search engine based on the query statement.
[0139] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation manners, which will not be described herein again.
[0140] In addition, in combination with the configuration-based commodity selection method provided in the above-mentioned embodiments, a storage medium can also be provided in the present embodiment to implement the configuration-based commodity selection method. The storage medium has a computer program stored thereon. The computer program is executed by a processor to implement any one of the configuration-based commodity selection methods in the above-mentioned embodiments.
[0141] It should be understood that the specific embodiments described herein are merely exemplary and are not intended to limit the application. Any other embodiments obtained by those of ordinary skill in the art based on the embodiments provided in the present application without creative efforts are within the scope of the present application.
[0142] Obviously, the drawings are only some examples or embodiments of the present application, and can be applied to other similar situations without creative efforts for those of ordinary skill in the art according to the drawings. In addition, it can be understood that, although the work done in the development process can be complex and long, some design, manufacture or production changes according to the technical content disclosed in the present application are only routine technical means for those of ordinary skill in the art, and should not be regarded as insufficient disclosure of the present application.
[0143] The term "embodiment" in the present application means that the specific features, structures or characteristics described in combination with the embodiments can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean independence or alternatives to other embodiments. It can be clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in the present application can be combined with other embodiments without conflict.
[0144] The above-described embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of patent protection. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these are within the scope of protection of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.
Claims
1. A method for selecting products based on configuration, characterized by, The method comprises the following steps: determining first commodity information associated with a preset basic rule, and importing the basic rule and the corresponding first commodity information into a search engine; the basic rule is an access rule of a total commodity pool, and has general and enumerable characteristics; the general refers to general rules between different activities; the enumerable refers to a limited number of basic rules; configuring a subset rule according to operation scene information and the basic rule, the operation scene information refers to some specific activity scenes, and the subset rule has non-general and non-enumerable characteristics; obtaining a query statement corresponding to the subset rule, and querying first target commodity information from the search engine based on the query statement, which comprises: assembling the query statement of the search engine based on the subset rule; executing the query statement in the search engine to obtain the first target commodity information; after obtaining the first target commodity information, obtaining commodity supplement information corresponding to the first commodity information; assembling the first commodity information and the commodity supplement information into second target commodity information.
2. The configured-based merchandise selection method of claim 1, wherein, The method comprises the following steps: based on an offline strategy, screening first commodity information associated with the basic rule from a commodity pool; based on a real-time strategy, screening first commodity information associated with the basic rule from a commodity pool; importing the basic rule and the corresponding first commodity information into a search engine.
3. The configured-based merchandise selection method of claim 2, wherein, The method comprises the following steps: obtaining index data corresponding to the basic rule and all valid commodity basic data in the commodity pool, and generating a commodity wide table according to the index data and the commodity basic data; according to the preset basic rule and the commodity wide table, calculating the first commodity information associated with the basic rule.
4. The configured-based merchandise selection method of claim 2, wherein, The method comprises the following steps: listening to real-time change messages related to the preset basic rule, and screening commodity change messages related to valid stores in the commodity pool from the real-time change messages; supplementing second commodity information corresponding to the basic rule according to the commodity change messages to obtain a commodity table; according to the preset basic rule and the commodity table, calculating the first commodity information associated with the basic rule.
5. The configured-based merchandise selection method of claim 4, wherein, The method comprises the following steps: listening to real-time change messages related to the preset basic rule; based on the identity information of the valid stores in the commodity pool, screening commodity change messages related to the valid stores from the real-time change messages.
6. A product selection device based on configuration, characterized by, The method comprises the following steps: a processing module, a configuration module and a query module; The processing module is configured to determine first commodity information associated with a preset basic rule, and import the basic rule and the corresponding first commodity information into a search engine; the basic rule is an access rule of a total commodity pool, and has general and enumerable characteristics; the general refers to general rules among different activities; the enumerable refers to a limited number of the basic rules; The configuration module is configured to configure a subset rule according to operation scene information and the basic rule, the operation scene information refers to some specific activity scenes, and the subset rule has non-general and non-enumerable characteristics; The query module is configured to obtain a query statement corresponding to the subset rule, and query first target commodity information from the search engine based on the query statement, which includes: assembling the query statement of the search engine based on the subset rule; and executing the query statement in the search engine to obtain the first target commodity information; After obtaining the first target commodity information, commodity supplement information corresponding to the first commodity information is obtained; The first commodity information and the commodity supplement information are assembled into second target commodity information. 7.A computer device, comprising a memory and a processor, and characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to execute the steps of the commodity selection method based on configuration in any one of claims 1 to 5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the commodity selection method based on configuration in any one of claims 1 to 5.
Citation Information
Patent Citations
Web page retrieval method and device
CN103246664A
Price comparative analysis method
CN115471300A