Commodity parameter comparison method based on search link and related equipment thereof
By deserializing and comparing the inlet and exit parameters of the new and old function search links in the e-commerce search link, the problem of difficulty in troubleshooting the inlet and exit parameters of the PB protocol is solved, and efficient inspection of parameter differences after the release of the new function is achieved.
Patent Information
- Application Number
- CN202411736095.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the e-commerce search link, it is difficult to troubleshoot the binary entry and exit of the PB protocol, which makes it difficult to check the parameter differences after the new function is released.
By responding to the link comparison request of the target product based on the new function search link, calling the id of the old function search link, determining the incoming and outgoing parameters of each stage in the new and old function search link, and deserializing it from the data sequence of the Protocol Buffers protocol, and comparing it to obtain the difference results of the new and old function parameters.
It realizes efficient deserialization and comparison of incoming and outgoing parameters at each stage in the search link, which facilitates the detection or comparison of problems existing in new functions, and improves the efficiency of problem detection.
Smart Images

Figure CN119512903A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of e-commerce technology, and more specifically, to a method for comparing commodity parameters based on a search link and related equipment. Background Art
[0002] With the continuous development of e-commerce technology, e-commerce platforms seek to recommend product information that better meets user needs to provide users with a better online shopping experience. When users shop online, they search for the products they want to buy through search terms. The e-commerce system will input the search terms provided by the user into the search link. The search link will include multiple stages, such as intent recognition, product recall, correlation analysis, product filtering, rough sorting, fine sorting, re-sorting, etc. Each stage has input and output parameters (output parameters and input parameters). The current input and output parameters are PB (Protocol Buffers) protocol, which is an efficient serialization format with the advantages of cross-platform compatibility, scalability, and simple code generation. It is suitable for application scenarios with high performance requirements.
[0003] However, the input and output parameters of the PB protocol are binary and non-plaintext, and are transmitted in large quantities in the search link, making it difficult to troubleshoot problems after new functions are released in the search link.
[0004] Based on this, how to compare and check the parameters of products based on the search link is an issue that needs attention. Summary of the invention
[0005] In view of the above problems, the present application provides a method for comparing commodity parameters based on search links and related devices, so as to efficiently check the parameter differences between new and old function search links.
[0006] In order to achieve the above objectives, the specific plan is proposed as follows:
[0007] A method for comparing parameters of commodities based on a search link, comprising:
[0008] In response to a link comparison request based on a new function search link for a target product, an id of an old function search link to be compared with the new function search link is called;
[0009] According to the ID of the new function search link, determining the input and output parameters of the target product in each stage of the new function search link;
[0010] According to the ID of the old function search link, determine the input and output parameters of the target product in each stage of the old function search link;
[0011] For the input and output parameters of each stage in the new function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0012] For the input and output parameters of each stage in the old function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0013] The input and output parameter deserialization results of each stage of the new function search link are compared with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters of that stage.
[0014] Optionally, the stages included in the new function search link are the same as the stages included in the old function search link, and the new function search link includes intent recognition stage, recall details stage, filtering details stage, coarse sorting algorithm stage, fine sorting stage and re-sorting strategy stage.
[0015] Optionally, the method further includes:
[0016] Determine the input and output parameters of the target module of the target product in the new function search link, and the input and output parameters of the target module in the old function search link, wherein the target module includes a plurality of stages having an upstream and downstream relationship;
[0017] For each input and output parameter of the target module in the new function search link, deserialize the input and output parameter from the data sequence of the ProtocolBuffers protocol to obtain a deserialization result of the input and output parameter;
[0018] For each input and output parameter of the target module in the old function search link, deserialize the input and output parameter from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter;
[0019] The deserialization results of all input and output parameters of the target module of the new function search link are compared with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.
[0020] Optionally, the method further includes:
[0021] The deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of this stage in the new function search link are stored in Redis.
[0022] A parameter comparison device for commodities based on a search link, comprising:
[0023] An ID calling unit, configured to respond to a link comparison request of a target product based on a new function search link, and call an ID of an old function search link to be compared with the new function search link;
[0024] A first input and output parameter determination unit, configured to determine the input and output parameters of the target product at each stage in the new function search link according to the ID of the new function search link;
[0025] A second input and output parameter determination unit, configured to determine the input and output parameters of the target product at each stage in the old function search link according to the ID of the old function search link;
[0026] A first deserialization processing unit is used to deserialize the input and output parameters of each stage in the new function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage;
[0027] A second deserialization processing unit is used to deserialize the input and output parameters of each stage in the old function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage;
[0028] The deserialization result comparison unit is used to compare the input and output parameter deserialization results of each stage of the new function search link with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters at that stage.
[0029] Optionally, the stages included in the new function search link are the same as the stages included in the old function search link, and the new function search link includes intent recognition stage, recall details stage, filtering details stage, coarse sorting algorithm stage, fine sorting stage and re-sorting strategy stage.
[0030] Optionally, the device further comprises:
[0031] A module input and output parameter determination unit, used to determine the input and output parameters of the target module of the target product in the new function search link, and the input and output parameters of the target module in the old function search link, wherein the target module includes a plurality of stages having an upstream and downstream relationship;
[0032] A third deserialization processing unit is used to deserialize each input and output parameter of the target module in the new function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter;
[0033] a fourth deserialization processing unit, configured to deserialize each input and output parameter of the target module in the old function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter;
[0034] The module parameter comparison unit is used to compare the deserialization results of all input and output parameters of the target module of the new function search link with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.
[0035] Optionally, the device further comprises:
[0036] The Redis storage unit is used to store in Redis the deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of the stage in the new function search link.
[0037] A device for comparing parameters of commodities based on search links, comprising a memory and a processor;
[0038] The memory is used to store programs;
[0039] The processor is used to execute the program to implement the various steps of the parameter comparison method of commodities based on search links as described above.
[0040] A storage medium stores a computer program, which, when executed by a processor, implements the various steps of the method for comparing parameters of commodities based on search links as described above.
[0041] By means of the above technical solution, the present application responds to a link comparison request of a target product based on a new function search link, calls the id of an old function search link to be compared with the new function search link, determines the input and output parameters of the target product at each stage in the new function search link according to the id of the new function search link, determines the input and output parameters of the target product at each stage in the old function search link according to the id of the old function search link, deserializes the input and output parameters of each stage in the new function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage, deserializes the input and output parameters of each stage in the old function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage, compares the deserialization result of the input and output parameters of each stage of the new function search link with the deserialization result of the input and output parameters of the stage of the old function search link, and obtains a difference result of the new and old function parameters of the stage. It can be seen that the input and output parameters of each stage in the search link can be deserialized from the data sequence of the Protocol Buffers protocol and converted into more intuitive input and output parameter deserialization results, making it more convenient and easier to troubleshoot or compare problems with the new functions of the search link. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0043] Figure 1 A schematic diagram of a process for implementing parameter comparison of commodities based on search links provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a flow chart for implementing parameter comparison of a target module of a commodity based on a search link provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of the structure of a device for implementing parameter comparison of commodities based on search links provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of the structure of a device for implementing parameter comparison of commodities based on search links provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] The present application solution can be implemented based on a terminal with data processing capabilities, which can be a computer, server, cloud, etc.
[0049] Next, combine Figure 1 The method for comparing parameters of commodities based on search links of the present application may include the following steps:
[0050] Step S110 : responding to the link comparison request of the target product based on the new function search link, calling the id of the old function search link to be compared with the new function search link.
[0051] Specifically, the id of each search link is unique, and the new function search link also has its search link id, so the id of the new function search link is different from the id of the old function search link.
[0052] Step S120: Determine the input and output parameters of the target product at each stage in the new function search link according to the ID of the new function search link.
[0053] Specifically, the new function search link may include, in order of upstream and downstream, an intent recognition stage, a recall details stage, a filtering details stage, a coarse sorting algorithm stage, a fine sorting stage, and a re-sorting strategy stage.
[0054] Step S130: Determine the input and output parameters of the target product at each stage in the old function search link according to the ID of the old function search link.
[0055] Specifically, the stages included in the old function search link are the same as the stages included in the new function search link, and the upstream and downstream order of the stages in the old function search link is also the same as the upstream and downstream order of the stages in the new function search link.
[0056] Step S140: For the input and output parameters of each stage in the new function search link, the input and output parameters of the stage are deserialized from the data sequence of the PB protocol to obtain the deserialization result of the input and output parameters of the stage.
[0057] Among them, the PB protocol is the Protocol Buffers protocol.
[0058] It is understandable that the Protocol Buffers protocol uses a binary format for data serialization, which has higher efficiency and smaller data volume than text-based formats (such as XML and JSON). The data structure generated by the PB protocol can be converted between different programming languages and different platforms, making data exchange and communication more flexible and convenient. The PB protocol supports adding new fields to existing message types without destroying compatibility with old versions of data, making the evolution and upgrade of data structures easier. The PB protocol uses a simple IDL (Interface Definition Language) to describe the data structure, and can generate the corresponding data structure class through a specific compiler, so that developers do not need to manually write cumbersome serialization and deserialization code. The PB protocol uses a binary format for data serialization, so Protocol Buffers has high efficiency and performance in network transmission and storage.
[0059] Since the PB protocol of each service is customized, special deserialization processing is required to convert the input and output parameter data sequences into more intuitive input and output parameter deserialization results.
[0060] Step S150: For the input and output parameters of each stage in the old function search link, the input and output parameters of the stage are deserialized from the data sequence of the PB protocol to obtain the deserialization result of the input and output parameters of the stage.
[0061] Step S160: compare the input and output parameter deserialization results of each stage of the new function search link with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters at that stage.
[0062] It can be understood that the input and output parameter deserialization results are intuitive results. Therefore, the input and output parameter deserialization results of each stage of the new function search link can be directly compared with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference between the input and output parameters of the new and old functions in each stage to ensure whether the calling status of the entire search link meets expectations.
[0063] The method for comparing parameters of commodities based on search links provided in this embodiment responds to a link comparison request of a target commodity based on a new function search link, calls the ID of an old function search link to be compared with the new function search link, determines the input and output parameters of the target commodity at each stage in the new function search link according to the ID of the new function search link, determines the input and output parameters of the target commodity at each stage in the old function search link according to the ID of the old function search link, deserializes the input and output parameters of each stage in the new function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage, deserializes the input and output parameters of each stage in the old function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage, compares the deserialization result of the input and output parameters of each stage of the new function search link with the deserialization result of the input and output parameters of the stage of the old function search link, and obtains a difference result of the new and old function parameters of the stage. It can be seen that the input and output parameters of each stage in the search link can be deserialized from the data sequence of the Protocol Buffers protocol and converted into more intuitive input and output parameter deserialization results, making it more convenient and easier to troubleshoot or compare problems with the new functions of the search link.
[0064] Considering that when analyzing the differences in input and output parameters between the new and old function search links, it is possible to analyze not only a single stage, but also the modules composed of upstream and downstream stages can be analyzed together to more efficiently and intuitively analyze the differences between the new and old function search links. Based on this, combined with Figure 2 As shown, the parameter comparison method for commodities based on search links provided in this application may also include the following process:
[0065] Step S210: Determine the input and output parameters of the target module in the new function search link and the input and output parameters of the target module in the old function search link of the target product.
[0066] Among them, the target module may include multiple stages with upstream and downstream relationships.
[0067] Step S220: For each input and output parameter of the target module in the new function search link, deserialize the input and output parameter from the data sequence of the PB protocol to obtain a deserialization result of the input and output parameter.
[0068] Step S230: for each input and output parameter of the target module in the old function search link, deserialize the input and output parameter from the data sequence of the PB protocol to obtain a deserialization result of the input and output parameter.
[0069] Step S240: compare the deserialization results of all input and output parameters of the target module of the new function search link with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.
[0070] The commodity search link-based parameter comparison method provided in this embodiment determines the input and output parameters of the target module of the target commodity in the new function search link and the input and output parameters of the target module in the old function search link, deserializes the input and output parameters of the target module in the new and old function search links from the data sequence of the Protocol Buffers protocol, obtains the deserialization results of the input and output parameters, and finally compares the deserialization results of all the input and output parameters of the target modules of the new and old function search links, so as to analyze the differences between the new and old function search links more efficiently and intuitively.
[0071] In some embodiments of the present application, the storage process of the input and output parameter deserialization results mentioned in the aforementioned embodiments is introduced. Specifically, the input and output parameter deserialization results of each stage in the old function search link and the input and output parameter deserialization results of this stage in the new function search link can be stored in Redis.
[0072] The following is a description of an apparatus for implementing parameter comparison of products based on search links provided in an embodiment of the present application. The apparatus for implementing parameter comparison of products based on search links described below and the method for implementing parameter comparison of products based on search links described above can refer to each other.
[0073] See also Figure 3 , Figure 3 A schematic diagram of the structure of a device for implementing parameter comparison of commodities based on search links disclosed in an embodiment of the present application.
[0074] like Figure 3 As shown, the device may include:
[0075] An ID calling unit 11 is used to respond to a link comparison request of a target product based on a new function search link and call an ID of an old function search link to be compared with the new function search link;
[0076] A first input and output parameter determination unit 12, configured to determine the input and output parameters of the target product at each stage in the new function search link according to the ID of the new function search link;
[0077] A second input and output parameter determination unit 13, configured to determine the input and output parameters of the target product at each stage in the old function search link according to the ID of the old function search link;
[0078] The first deserialization processing unit 14 is used to deserialize the input and output parameters of each stage in the new function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0079] The second deserialization processing unit 15 is used for deserializing the input and output parameters of each stage in the old function search link from the data sequence of the Protocol Buffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0080] The deserialization result comparison unit 16 is used to compare the input and output parameter deserialization results of each stage of the new function search link with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters at that stage.
[0081] Optionally, the stages included in the new function search link are the same as the stages included in the old function search link, and the new function search link includes intent recognition stage, recall details stage, filtering details stage, coarse sorting algorithm stage, fine sorting stage and re-sorting strategy stage.
[0082] Optionally, the device further comprises:
[0083] A module input and output parameter determination unit, used to determine the input and output parameters of the target module of the target product in the new function search link, and the input and output parameters of the target module in the old function search link, wherein the target module includes a plurality of stages having an upstream and downstream relationship;
[0084] A third deserialization processing unit is used to deserialize each input and output parameter of the target module in the new function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter;
[0085] a fourth deserialization processing unit, configured to deserialize each input and output parameter of the target module in the old function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter;
[0086] The module parameter comparison unit is used to compare the deserialization results of all input and output parameters of the target module of the new function search link with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.
[0087] Optionally, the device further comprises:
[0088] The Redis storage unit is used to store in Redis the deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of the stage in the new function search link.
[0089] The device for comparing commodity parameters based on search links provided in the embodiment of the present application can be applied to xx devices, such as terminals: mobile phones, computers, etc. Optionally, Figure 4 The hardware structure diagram of the device for comparing parameters of commodities based on the search link is shown. Figure 4 ,The hardware structure of the device for comparing parameters of commodities based on search links may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
[0090] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;
[0091] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;
[0092] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., such as at least one disk memory;
[0093] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:
[0094] In response to a link comparison request based on a new function search link for a target product, an id of an old function search link to be compared with the new function search link is called;
[0095] According to the ID of the new function search link, determining the input and output parameters of the target product in each stage of the new function search link;
[0096] According to the ID of the old function search link, determine the input and output parameters of the target product in each stage of the old function search link;
[0097] For the input and output parameters of each stage in the new function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0098] For the input and output parameters of each stage in the old function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0099] The input and output parameter deserialization results of each stage of the new function search link are compared with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters of that stage.
[0100] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0101] The embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0102] In response to a link comparison request based on a new function search link for a target product, an id of an old function search link to be compared with the new function search link is called;
[0103] According to the ID of the new function search link, determining the input and output parameters of the target product in each stage of the new function search link;
[0104] According to the ID of the old function search link, determine the input and output parameters of the target product in each stage of the old function search link;
[0105] For the input and output parameters of each stage in the new function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0106] For the input and output parameters of each stage in the old function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage;
[0107] The input and output parameter deserialization results of each stage of the new function search link are compared with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters of that stage.
[0108] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0109] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0110] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0111] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for comparing commodity parameters based on search links, characterized in that: include: In response to a link comparison request based on a new function search link for a target product, an id of an old function search link to be compared with the new function search link is called; According to the ID of the new function search link, determining the input and output parameters of the target product in each stage of the new function search link; According to the ID of the old function search link, determine the input and output parameters of the target product in each stage of the old function search link; For the input and output parameters of each stage in the new function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage; For the input and output parameters of each stage in the old function search link, deserialize the input and output parameters of the stage from the data sequence of the ProtocolBuffers protocol to obtain the deserialization result of the input and output parameters of the stage; The input and output parameter deserialization results of each stage of the new function search link are compared with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters of that stage.
2. The method according to claim 1, characterized in that The stages included in the new function search link are the same as the stages included in the old function search link. The new function search link includes an intent recognition stage, a recall details stage, a filtering details stage, a coarse sorting algorithm stage, a fine sorting stage and a re-sorting strategy stage.
3. The method according to claim 2, characterized in that Also includes: Determine the input and output parameters of the target module of the target product in the new function search link, and the input and output parameters of the target module in the old function search link, wherein the target module includes a plurality of stages having an upstream and downstream relationship; For each input and output parameter of the target module in the new function search link, deserialize the input and output parameter from the data sequence of the ProtocolBuffers protocol to obtain a deserialization result of the input and output parameter; For each input and output parameter of the target module in the old function search link, deserialize the input and output parameter from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter; The deserialization results of all input and output parameters of the target module of the new function search link are compared with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.
4. The method according to any one of claims 1 to 3, characterized in that: Also includes: The deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of this stage in the new function search link are stored in Redis.
5. A parameter comparison device for commodities based on search links, characterized in that: include: An ID calling unit, configured to respond to a link comparison request of a target product based on a new function search link, and call an ID of an old function search link to be compared with the new function search link; A first input and output parameter determination unit, configured to determine the input and output parameters of the target product at each stage in the new function search link according to the ID of the new function search link; A second input and output parameter determination unit, configured to determine the input and output parameters of the target product at each stage in the old function search link according to the ID of the old function search link; A first deserialization processing unit is used to deserialize the input and output parameters of each stage in the new function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage; A second deserialization processing unit is used to deserialize the input and output parameters of each stage in the old function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameters of the stage; The deserialization result comparison unit is used to compare the input and output parameter deserialization results of each stage of the new function search link with the input and output parameter deserialization results of the old function search link at that stage to obtain the difference results of the new and old function parameters at that stage.
6. The device according to claim 5, characterized in that The stages included in the new function search link are the same as the stages included in the old function search link. The new function search link includes an intent recognition stage, a recall details stage, a filtering details stage, a coarse sorting algorithm stage, a fine sorting stage and a re-sorting strategy stage.
7. The device according to claim 5, characterized in that Also includes: A module input and output parameter determination unit, used to determine the input and output parameters of the target module of the target product in the new function search link, and the input and output parameters of the target module in the old function search link, wherein the target module includes a plurality of stages having an upstream and downstream relationship; A third deserialization processing unit is used to deserialize each input and output parameter of the target module in the new function search link from the data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter; a fourth deserialization processing unit, configured to deserialize each input and output parameter of the target module in the old function search link from a data sequence of the Protocol Buffers protocol to obtain a deserialization result of the input and output parameter; The module parameter comparison unit is used to compare the deserialization results of all input and output parameters of the target module of the new function search link with the deserialization results of all input and output parameters of the target module of the old function search link to obtain the difference results of the new and old function parameters of the target module.
8. The device according to any one of claims 5 to 7, characterized in that: Also includes: The Redis storage unit is used to store in Redis the deserialization results of the input and output parameters of each stage in the old function search link and the deserialization results of the input and output parameters of the stage in the new function search link.
9. A parameter comparison device for commodities based on search links, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the method for comparing parameters of commodities based on search links as described in any one of claims 1 to 4.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the method for comparing parameters of commodities based on search links as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Flow playback test method and device, computer equipment and storage medium
CN112491659A
Commodity recall index evaluation method and system, electronic equipment and storage medium
CN116304291A
Production work order problem checking method, device and equipment and storage medium
CN116775583A
Parameter comparison method and device, storage medium and computer equipment
CN117807446A
E-commerce search performance optimization method and computing device
CN118229378A