A method and device for determining the order of search results
By calculating the quality value and distribution model of historical search results, the interval and index value of new data are determined, which solves the problem of determining index values in chronological order in the existing technology, and improves the quality of search results and user experience.
Patent Information
- Application Number
- CN202010402232.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-13
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-05-13
AI Technical Summary
In the existing technology, the index values of search results are usually determined in chronological order. As a result, in systems with a large amount of data, search results with lower data quality are returned first, which reduces the user's browsing experience.
By obtaining the quality value of historical search results, calculating the average and standard deviation, constructing interval information based on the distribution model, determining the quality value of new data and its corresponding interval and index value, and then determining the order of search results.
It improves the data quality of data search results, improves the user's browsing experience, and ensures that high-quality search results are returned first.
Smart Images

Figure CN113672791B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining a search result sequence. Background Art
[0002] With the development of Internet technology, the amount of information has expanded rapidly, and information search has become the core function of the Internet. In order to improve the efficiency of finding data, search engines usually create indexes, and generally divide the index of search results into two parts: full index and incremental index. Among them, incremental index refers to index data that is updated in real time. Once there is incremental data, it will be updated to the search engine in real time. Full index refers to all index data within a period of time. Usually, the full index is updated based on all index data at regular intervals.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] Usually, existing index identifiers are accumulated in chronological order to determine the incremental index of the newly added data. For systems with relatively large data volumes, such as product data in an e-commerce mall, for the sake of user browsing experience, an upper limit on the number of search results returned can be set during the search process, and the data with index values at the back can be truncated. Therefore, the later the incremental index is arranged, the smaller the probability that its associated data will be returned. Search results with index values at the front will still be returned to the user first even if their data quality is relatively low, which reduces the data quality of the search results and affects the user's browsing experience. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for determining the order of search results, which can construct intervals based on quality values according to the search results and distribution model of historical data, determine the interval to which the newly added data belongs by calculating the quality value of the newly added data, and determine the index value of the newly added data according to the information of the interval, thereby solving the problem of determining the index value of the newly added data in chronological order without considering the data quality, thereby improving the data quality of the data search results and enhancing the user's browsing experience.
[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for determining the order of search results is provided, characterized in that it includes: obtaining quality values of historical search results within a predefined time period, and calculating the average value and standard deviation of the quality values based on multiple quality values, wherein the quality value is calculated based on the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on a distribution model, determining the interval information corresponding to the quality values of the historical search results and the index value of the historical search results; obtaining newly added data, and calculating the quality value of the newly added data based on the values of one or more quality factors of the newly added data; determining the interval and index value corresponding to the newly added data based on the quality value of the newly added data; and determining the order of returning the search results of the newly added data based on the index value.
[0007] Optionally, the method for determining the order of search results is characterized by:
[0008] The interval information includes a range of quality values corresponding to the interval and an upper limit on the number of search results contained in the interval.
[0009] Optionally, the method for determining the order of search results is characterized by:
[0010] Calculating the quality value of the newly added data according to the value of the quality factor includes:
[0011] The quality value of the newly added data is calculated based on the value of the quality factor and the weight value of the quality factor.
[0012] Optionally, the method for determining the order of search results is characterized by:
[0013] Determining, according to the quality value of the newly added data, an interval and an index value corresponding to the newly added data, including:
[0014] When the number of newly added data included in the determined interval is less than the upper limit of the number of search results, the maximum index value of the newly added data included in the interval is incremented to determine the index value of the newly added data.
[0015] Optionally, the method for determining the order of search results is characterized by:
[0016] Determining, according to the quality value of the newly added data, an interval and an index value corresponding to the newly added data, including:
[0017] When the number of newly added data included in the determined interval is not less than the upper limit of the number of search results, the upper limit values of the number of search results of each of the intervals are accumulated to determine the index value of the newly added data.
[0018] Optionally, the method for determining the order of search results is characterized by:
[0019] When the newly added data is indicated as updated data of the historical search results, the index value of the historical search results is determined to be the index value of the newly added data.
[0020] Optionally, the method for determining the order of search results is characterized by:
[0021] Determining interval information corresponding to the quality value of the historical search results based on a distribution model using the mean value and the standard deviation includes:
[0022] The distribution model is a normal distribution model.
[0023] To achieve the above object, according to a second aspect of an embodiment of the present invention, there is provided a device for determining the order of search results, characterized in that it comprises: a generation interval module, a quality calculation module and a determination identification module; wherein,
[0024] The interval generation module is used to obtain the quality value of each historical search result within a predefined time period, and calculate the average value and standard deviation of the quality value according to a plurality of the quality values, wherein the quality value is calculated according to the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on a distribution model, determine the interval information corresponding to the quality value of the historical search result, and the index value of the historical search result;
[0025] The quality calculation module is used to obtain the newly added data and calculate the quality value of the newly added data according to the values of one or more quality factors of the newly added data;
[0026] The order determination module is used to determine the interval and index value corresponding to the new data according to the quality value of the new data; and determine the order of returning the search results of the new data according to the index value.
[0027] Optionally, the device for determining the order of search results is characterized by:
[0028] The interval information includes a range of quality values corresponding to the interval and an upper limit on the number of search results contained in the interval.
[0029] Optionally, the device for determining the order of search results is characterized by:
[0030] Calculating the quality value of the newly added data according to the value of the quality factor includes:
[0031] The quality value of the newly added data is calculated based on the value of the quality factor and the weight value of the quality factor.
[0032] Optionally, the device for determining the order of search results is characterized by:
[0033] Determining, according to the quality value of the newly added data, an interval and an index value corresponding to the newly added data, including:
[0034] When the number of newly added data included in the determined interval is less than the upper limit of the number of search results, the maximum index value of the newly added data included in the interval is incremented to determine the index value of the newly added data.
[0035] Optionally, the device for determining the order of search results is characterized by:
[0036] Determining, according to the quality value of the newly added data, an interval and an index value corresponding to the newly added data, including:
[0037] When the number of newly added data included in the determined interval is not less than the upper limit of the number of search results, the upper limit values of the number of search results of each of the intervals are accumulated to determine the index value of the newly added data.
[0038] Optionally, the device for determining the order of search results is characterized by:
[0039] When the newly added data is indicated as updated data of the historical search results, the index value of the historical search results is determined to be the index value of the newly added data.
[0040] Optionally, the device for determining the order of search results is characterized by:
[0041] Determining interval information corresponding to the quality value of the historical search results based on a distribution model using the mean value and the standard deviation includes:
[0042] The distribution model is a normal distribution model.
[0043] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, there is provided an electronic device for determining the order of search results, characterized in that it includes: 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 any of the methods described above for determining the order of search results.
[0044] To achieve the above-mentioned purpose, according to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method as described above in the method for determining the order of search results is implemented.
[0045] An embodiment of the above invention has the following advantages or beneficial effects: it is able to construct intervals based on quality values according to the search results and distribution model of historical data, determine the interval to which the new data belongs by calculating the quality value of the new data, and determine the index value of the new data according to the interval information, thereby solving the problem of determining the index value of the new data in chronological order without considering the data quality, thereby improving the data quality of the data search results and enhancing the user's browsing experience.
[0046] 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
[0047] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0048] Figure 1 is a flow chart of a method for determining a search result order provided by a first embodiment of the present invention;
[0049] Figure 2 is a schematic diagram of a data quality value distribution provided by an embodiment of the present invention;
[0050] Figure 3 is a flow chart of a method for determining a search result order provided by a second embodiment of the present invention;
[0051] Figure 4 is a schematic diagram of determining a search result order provided by a second embodiment of the present invention;
[0052] Figure 5 is a schematic diagram of the structure of a system for determining the order of search results provided by an embodiment of the present invention;
[0053] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0054] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0055] 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.
[0056] like Figure 1 As shown, an embodiment of the present invention provides a method for determining the order of search results, which may include the following steps:
[0057] Step S101: obtaining quality values of historical search results within a predefined time period, and calculating an average value and a standard deviation of the quality values according to a plurality of the quality values, wherein the quality value is calculated according to the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on a distribution model, determining interval information corresponding to the quality values of the historical search results, and an index value of the historical search results;
[0058] Specifically, the quality values of historical search results within a predefined time period are obtained, and each search result within the predefined time period contains the same quality factor. Taking commodity information data as an example, it contains quality factors such as commodity name, commodity price, commodity sales volume, etc.; and the newly added data contains the same quality factor as the historical search results;
[0059] The quality value is calculated based on the factors included in a certain data; in data input, the newly added data is usually sorted in chronological order, and after being updated after a predefined time, historical data is formed.
[0060] When the database contains too much data, in order to ensure user experience, the search results returned to the user are often truncated according to a predefined number threshold, and the order of returning the search results is also based on the index. In the prior art, a predefined number of search results are usually intercepted based on time order.
[0061] In order to ensure the validity of search results and user experience, compared with the method of intercepting a predefined number of search results in chronological order and establishing an index, this embodiment adopts a method of intercepting and establishing an index by sorting the search results by quality value. Furthermore, according to experience, the quality scores of historical search results show the characteristics of normal distribution;
[0062] That is, the mean value and the standard deviation are used to determine the interval information corresponding to the quality value of the historical search results based on a distribution model. Furthermore, the distribution model is a normal distribution model.
[0063] Furthermore, historical search results within a predefined time period are obtained, for example, product search results within the past month, and the average and standard deviation of the quality values of the product search results data for this month are calculated based on the quality values of each existing product data. Preferably, the interval information under the normal distribution model is further determined. That is, the quality values of historical search results within a predefined time period are obtained, and the average and standard deviation of the quality values are calculated based on multiple quality values, wherein the quality value is calculated based on the values of one or more quality factors of the historical search results; the interval information corresponding to the quality values of the historical search results and the index value of the historical search results are determined based on the distribution model using the average and standard deviation;
[0064] Figure 2 An example graph of a normal distribution is shown;
[0065] Further, the target interval model includes one or more intervals, and the interval indicates the upper limit of the number of search results and the numerical range of the quality value; it can be understood that the quality values corresponding to the intervals are sorted from large to small;
[0066] like Figure 2 As shown in the example graph of the normal distribution, from left to right, it is divided into three intervals. The leftmost interval 1 corresponds to the largest quality value (i.e., search results with higher quality), but the number of search results it involves (e.g., product information) is not the largest; the middle interval 2 involves the largest number of search results (e.g., product information), but the corresponding quality value is not the largest; the rightmost interval 3 corresponds to the smallest quality value (i.e., new data with lower quality), but the number of search results it involves (e.g., product information) is not the largest either.
[0067] That is, the interval information includes a range of quality values corresponding to the interval and an upper limit on the number of search results included in the interval.
[0068] The present invention does not limit the specific content of the historical data, the values of the quality factors included, the specific model of the normal distribution of the quality values, and the interval division.
[0069] Step S102: acquiring newly added data, and calculating a quality value of the newly added data according to the values of one or more quality factors of the newly added data;
[0070] Specifically, newly added data is obtained. The newly added data comes from a third party or other data input methods. The time interval may be one second, one minute, etc. For example, newly added product information, where the newly added data is one piece of data, that is, the quality value of each newly added data input is calculated in real time;
[0071] The newly added data includes one or more quality factors; and according to the values of the quality factors, the quality values of the newly added data are calculated;
[0072] Specifically, the quality factor in the newly added data is an option in the data used to judge and calculate the quality value, for example, one or more quality factors such as sales volume, number of positive reviews, price, etc. in the product information data. The quality value of the newly added data is calculated according to the value of the quality factor;
[0073] Further, calculating the quality value of the newly added data according to the value of the quality factor includes: calculating the quality value of the newly added data based on the value of the quality factor and the weight value of the quality factor.
[0074] Specifically, still taking the commodity information data as an example, obtain the numerical value of commodity sales volume, and use the function of commodity sales volume to calculate the quality numerical value of commodity sales volume; similarly, obtain the numerical value of commodity price, and use the function of commodity price to calculate the quality numerical value of commodity price; obtain the numerical value of the number of commodity positive reviews, and use the function of the number of commodity positive reviews to calculate the quality numerical value of the number of commodity positive reviews; based on the quality numerical value of commodity sales volume, the quality numerical value of commodity price, the quality numerical value of the number of commodity positive reviews, etc., set the weight value for each of the above options respectively, and obtain the sum of the product of each weight value and each numerical value respectively, to obtain the quality numerical value of the newly added data.
[0075] For example, a sample formula to calculate the mass value is as follows:
[0076] Q=w1*f(x1)+w2*f(x2)+w3*f(x3)+……w n *f(x n ) (1)
[0077] Where Q is the mass value, w1-w n is the weight value corresponding to each quality factor, f(x1)-f(x n ) is a function used by each quality factor to calculate its quality value, and the function may be a predefined calculation formula; it is understandable that the results calculated by the various functions are in the same numerical range, for example, the numerical range is 0-100; different predefined calculation formulas are defined according to different application scenarios; for example: the predefined calculation formula related to commodity prices is to calculate the difference between the commodity price of the newly added data and the average value based on the average value of the historical commodity prices of this type of commodity, and attach a corresponding score between 0-100;
[0078] That is, calculating the quality value of the newly added data according to the value of the quality factor, including: calculating the quality value of the newly added data based on the value of the quality factor and the weight value of the quality factor;
[0079] Furthermore, when the newly added data is indicated as updated data of the historical search results, the index value of the historical search results is determined to be the index value of the newly added data. Specifically, when the acquired newly added data is indicated as updated data of an existing historical search result, that is, the newly added data updates one or more information of a certain historical data, the index value of the existing historical search results is used as the index value of the newly added data, that is, the index value of the historical search results is determined to be the index value of the newly added data;
[0080] The present invention does not limit the setting of the predefined calculation formula and weight value, and the specific formula for calculating the quality value.
[0081] Step S103: determining the interval and index value corresponding to the newly added data according to the quality value of the newly added data; and determining the order of returning the search results of the newly added data according to the index value.
[0082] Specifically, the step of calculating the quality value is as described in S102, and the interval and index value corresponding to the newly added data are determined according to the quality value of the newly added data; further, the index value can be stored in a different manner and position from the newly added data, and it is ensured that the newly added data associated with it can be searched through the index value; the present invention does not limit the storage method of the newly added data and the storage method of the index value;
[0083] Furthermore, based on the quality value of the newly added data, the interval and index value corresponding to the newly added data are determined, including: when the number of newly added data included in the determined interval is less than the upper limit of the number of search results, the maximum index value of the newly added data included in the interval is incremented to determine the index value of the newly added data.
[0084] The following still uses product information data as an example to illustrate the above steps:
[0085] Assume that after calculation in step S102, the quality value of the newly added product information 1 is 99; according to the predefined interval information, assume that the upper limit of the number of search results in interval 1 is 500, and the range of the quality value is: 85-100; it can be seen that the newly added product information 1 can be determined as corresponding to interval 1 according to its quality value, and the number of new data already included in the interval is checked. For example, if there are already 50, the index value of the newly added product information 1 is increased incrementally and set to include 51 related identifiers; that is, when the number of new data included in the determined interval is less than the upper limit of the number of search results, the maximum index value of the new data already included in the interval is increased to determine the index value of the new data.
[0086] It can be understood that, preferably, in order to ensure data continuity, the index value of the newly added data is related to the maximum index value of the full data. For example, assuming that the maximum index value of the full data is doc100000, the starting index value of interval 1 is set to: doc100001, so the index value of the newly added product information 1 is doc100052, wherein each newly added product information includes a flag indicating that the product information is newly added product information, that is, the number of newly added data in the interval can be determined according to the newly added flag; it can be understood that usually after a period of time, the newly added data will be merged into the full data, and after the merger, the flag indicating whether it is newly added data will also change accordingly;
[0087] like Figure 3 As shown, an embodiment of the present invention provides a method for determining the order of search results, which may include the following steps:
[0088] Step S301: obtaining quality values of historical search results within a predefined time period, and calculating an average value and a standard deviation of the quality values according to a plurality of the quality values, wherein the quality value is calculated according to the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on a distribution model, determining interval information corresponding to the quality values of the historical search results, and an index value of the historical search results;
[0089] The description of determining the interval information corresponding to the quality value of the historical search results within a predefined time period and the index value of the historical search results is consistent with step S101 and will not be repeated here.
[0090] Step S302: acquiring newly added data, and calculating a quality value of the newly added data according to the values of one or more quality factors of the newly added data;
[0091] The description of calculating the quality value of the newly added data is consistent with step S102 and will not be repeated here.
[0092] Step S303: Determine the interval and index value corresponding to the newly added data according to the quality value of the newly added data; including: when the number of newly added data included in the determined interval is not less than the upper limit of the number of search results, accumulate the upper limit values of the number of search results of each of the intervals to determine the index value of the newly added data. Determine the order of returning the search results of the newly added data according to the index value.
[0093] Specifically, the step of calculating the quality value is as described in S302, and the interval and index value corresponding to the newly added data are determined according to the quality value of the newly added data;
[0094] Further, when the number of newly added data included in the determined interval is not less than the upper limit of the number of search results, the upper limit values of the number of search results of each of the intervals are accumulated to determine the index value of the newly added data;
[0095] The following still uses product information data as an example to illustrate the above steps:
[0096] Assume that after calculation, the quality value of the newly added product information 1 is 99; the upper limit value of the number of search results in interval 1 is 500, and the range of the quality value of interval 1 is: 85-100; it can be seen that the newly added product information 1 checks the number of new data included in the interval according to its data quality corresponding to the position in interval 1, and assumes that there are already 500 items, and 500 is the upper limit of the number of search results in interval 1. Therefore, the index value of the newly added product information 1 is determined by accumulating the upper limit values of the number of search results in each of the intervals to determine the index value of the newly added data; specifically, when the number of new data included in the interval is greater than or equal to the upper limit of the number of search results, the index value of the newly added data is set outside the range of each of the intervals, for example, at the end of all intervals, that is, the upper limit values of the number of search results in each of the intervals are accumulated to determine the index value of the newly added data; further, preferably, its index value is consistent with the number of full indexes and the search results defined in each interval of the newly added data. The number of the upper limit of the number is related to the number of the total data. For example, according to the number of the full data, the maximum index value of the full data is doc100000. The sum of the upper limits of the number of search results based on the number of new data in each new data interval is 5000, and the cumulative total is 100000+5000=105000. Assuming that the newly added product information 1 is the first unique identifier set at the end, the index value of the newly added product information 1 is doc1005001. It can be understood that when the number of new data included in the determined interval is not less than the upper limit of the number of search results, the index value of each new data under the above conditions, no matter which interval it belongs to, is cumulatively set based on the index value at the end. This operation is to ensure that under the normal distribution model, the new data with high quality values meets the upper limit of the expected number of search results as much as possible, which helps to improve the data quality of the search results. After meeting the upper limit of the number of search results, the newly entered new data is arranged at the end in chronological order.
[0097] Each newly added product information includes a flag indicating that the product information is newly added product information, that is, whether the data is newly added data can be determined based on the newly added flag; it is understandable that usually after a period of time, the newly added data will be merged into the full amount of data, and after the merger, the flag indicating whether it is newly added data will also change accordingly;
[0098] Figure 4 is a schematic diagram of step S303, such as Figure 4 As shown,
[0099] "2 Incremental" indicates the index range within each interval. Assuming that the upper limit of the number of search results accumulated in each interval is 5000, the index value range of the incremental part is doc100001-doc105000. "1 Full" is represented by a dotted line, indicating existing data and allocated index values. Assuming that there are 100,000 index values, the incremental index based on the accumulation of the full index starts from doc100001.
[0100] The range indicated by "3 increments" is the index value outside each interval, and its index value range starts from doc105001, that is, when the number of newly added data included in the determined interval is not less than the upper limit of the number of search results, the upper limit values of the number of search results in each of the intervals are accumulated to determine the index value of the newly added data.
[0101] Furthermore, the order of returning the search results of the newly added data is determined according to the index value.
[0102] like Figure 5 As shown, the embodiment of the present invention provides a device 500 for determining the order of search results, including: a generation interval module 501, a quality calculation module 502 and a sequence determination module 503; wherein,
[0103] The interval model module 501 is used to obtain the quality value of each historical search result within a predefined time period, and calculate the average value and standard deviation of the quality value according to multiple quality values, wherein the quality value is calculated according to the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on the distribution model, determine the interval information corresponding to the quality value of the historical search result and the index value of the historical search result;
[0104] The quality calculation module 502 is used to obtain the newly added data and calculate the quality value of the newly added data according to the values of one or more quality factors of the newly added data;
[0105] The determining order module 503 is used to determine the interval and index value corresponding to the newly added data according to the quality value of the newly added data; and determine the order of returning the search results of the newly added data according to the index value.
[0106] Optionally, the interval model module 501 includes the interval information including a range of quality values corresponding to the interval and an upper limit on the number of search results contained in the interval.
[0107] Optionally, the quality calculation module 502 is used to calculate the quality value of the newly added data according to the value of the quality factor, including:
[0108] The quality value of the newly added data is calculated based on the value of the quality factor and the weight value of the quality factor.
[0109] Optionally, the quality calculation module 502 is used to determine the interval and index value corresponding to the new data according to the quality value of the new data, including:
[0110] When the number of newly added data included in the determined interval is less than the upper limit of the number of search results, the maximum index value of the newly added data included in the interval is incremented to determine the index value of the newly added data.
[0111] Optionally, the determining order module 503 is used to determine the interval and index value corresponding to the newly added data according to the quality value of the newly added data, including:
[0112] When the number of newly added data included in the determined interval is not less than the upper limit of the number of search results, the upper limit values of the number of search results of each of the intervals are accumulated to determine the index value of the newly added data.
[0113] Optionally, the determining order module 503 is configured to determine, when the newly added data is indicated as updated data of the historical search results, that the index value of the historical search results is the index value of the newly added data.
[0114] Optionally, the interval model module 501 is used to determine the interval information corresponding to the quality value of the historical search result based on a distribution model using the mean value and the standard deviation, including: the distribution model is a normal distribution model.
[0115] An embodiment of the present invention also provides an electronic device for determining the order of search results, comprising: 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 provided in any of the above embodiments.
[0116] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in any of the above embodiments is implemented.
[0117] Figure 6 An exemplary system architecture 600 is shown to which the method for determining the order of search results or the apparatus for determining the order of search results according to the embodiments of the present invention can be applied.
[0118] like Figure 6As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0119] Users can use terminal devices 601, 602, 603 to interact with server 605 through network 604 to receive or send messages, etc. Various client applications can be installed on terminal devices 601, 602, 603, such as electronic shopping mall clients, web browser applications, search applications, instant messaging tools, and email clients.
[0120] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0121] The server 605 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 601, 602, and 603. The background management server may process the newly added commodity information data, determine the index value of the data, determine the order of search results according to the search request, and feed back to the terminal device.
[0122] It should be noted that the method for determining the order of search results provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for determining the order of search results is generally set in the server 605 .
[0123] It should be understood that Figure 6 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.
[0124] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device 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.
[0125] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0126] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0127] 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 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0128] 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.
[0129] 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 module, a program segment, or a part of a code, and the above-mentioned module, 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.
[0130] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be arranged in a processor, for example, they may be described as: a processor including a model generation module, a quality calculation module, and an identification determination module, wherein the names of these modules do not constitute a limitation on the modules themselves in certain cases, for example, the identification determination module may also be described as "a module for determining the unique identification of the data according to the quality value of the newly added data".
[0131] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be 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 includes: obtaining the quality value of the historical search results within a predefined time period, and calculating the average value and standard deviation of the quality value according to multiple quality values, wherein the quality value is calculated according to the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on the distribution model, determining the interval information corresponding to the quality value of the historical search results, and the index value of the historical search results; obtaining the newly added data, and calculating the quality value of the newly added data according to the values of one or more quality factors of the newly added data; determining the interval and index value corresponding to the newly added data according to the quality value of the newly added data; and determining the order of returning the search results of the newly added data according to the index value.
[0132] According to the technical solution of the embodiment of the present invention, it is possible to construct intervals based on quality values based on the search results and distribution model of historical data, determine the interval to which the new data belongs by calculating the quality value of the new data, and determine the index value of the new data based on the information of the interval, thereby solving the problem of determining the index value of the new data in chronological order without considering the data quality, thereby improving the data quality of the data search results and enhancing the user's browsing experience.
[0133] 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 determining the order of search results, characterized in that: include: Obtaining quality values of historical search results within a predefined time period, and calculating an average value and a standard deviation of the quality values based on a plurality of the quality values; wherein a quality factor is an option in the data used to determine and calculate a quality value, and the quality value is calculated based on the values of one or more quality factors of the historical search results; Determine, by using the mean value and the standard deviation, based on a distribution model, interval information corresponding to the quality value of the historical search results and an index value of the historical search results; Acquire the newly added data, and calculate the quality value of the newly added data according to the values of one or more quality factors of the newly added data; Determining, according to the quality value of the newly added data, an interval and an index value to which the quality value corresponding to the newly added data belongs, including: when the number of newly added data included in the determined interval is less than the upper limit of the number of search results included in the interval, incrementing the maximum index value of the data already existing in the interval, and using the index value obtained by incrementing the maximum index value as the index value of the newly added data; When the number of newly added data included in the determined interval is not less than the upper limit of the number of search results included in the interval, accumulating the upper limit values of the number of search results in each interval to determine the index value of the newly added data; The order of returning the search results of the newly added data is determined according to the index value.
2. The method according to claim 1, characterized in that The interval information includes a range of quality values corresponding to the interval and an upper limit on the number of search results contained in the interval.
3. The method according to claim 1, characterized in that Calculating the quality value of the newly added data according to the value of the quality factor includes: The quality value of the newly added data is calculated based on the value of the quality factor and the weight value of the quality factor.
4. The method according to claim 1, characterized in that: When the newly added data is indicated as updated data of the historical search results, the index value of the historical search results is determined to be the index value of the newly added data.
5. The method according to claim 1, characterized in that Determining interval information corresponding to the quality value of the historical search results based on a distribution model using the mean value and the standard deviation includes: The distribution model is a normal distribution model.
6. A device for determining the order of search results, characterized in that: include: Generate interval module, calculate quality module and determine sequence module; among them, The interval generation module is used to obtain the quality values of each historical search result within a predefined time period, and calculate the average value and standard deviation of the quality values according to the multiple quality values; wherein the quality factor is an option in the data used to judge and calculate the quality value, and the quality value is calculated according to the values of one or more quality factors of the historical search results; using the average value and the standard deviation, based on the distribution model, determine the interval information corresponding to the quality value of the historical search result, and the index value of the historical search result; The quality calculation module is used to obtain the newly added data and calculate the quality value of the newly added data according to the values of one or more quality factors of the newly added data; The order determination module is used to determine the interval and index value to which the quality value corresponding to the newly added data belongs based on the quality value of the newly added data, including: when the number of newly added data included in the determined interval is less than the upper limit of the number of search results contained in the interval, increasing the maximum index value of the data already existing in the interval, and using the index value obtained by increasing the maximum index value as the index value of the newly added data; when the number of newly added data included in the determined interval is not less than the upper limit of the number of search results contained in the interval, accumulating the upper limit values of the number of search results of each interval to determine the index value of the newly added data; and determining the order of returning the search results of the newly added data based on the index value.
7. 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 5.
8. 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 5 is implemented.
