WO2008080309A1 - A method for sorting the search results and an information search system - Google Patents

A method for sorting the search results and an information search system Download PDF

Info

Publication number
WO2008080309A1
WO2008080309A1 PCT/CN2007/070328 CN2007070328W WO2008080309A1 WO 2008080309 A1 WO2008080309 A1 WO 2008080309A1 CN 2007070328 W CN2007070328 W CN 2007070328W WO 2008080309 A1 WO2008080309 A1 WO 2008080309A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
record
unit
priority value
interval
Prior art date
Application number
PCT/CN2007/070328
Other languages
French (fr)
Chinese (zh)
Inventor
Hongxi Liu
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to MX2009005662A priority Critical patent/MX2009005662A/en
Priority to BRPI0719366-1A priority patent/BRPI0719366A2/en
Publication of WO2008080309A1 publication Critical patent/WO2008080309A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Definitions

  • the present invention relates to computer technology, and in particular, to a query result sorting method and an information query system. Background technique
  • the search engine performs a query based on the keyword requested by the user, and provides the information of the unit registered as the corresponding keyword to the user to provide the value-added service for the registration unit.
  • the basic services based on query are more and more widely applied to telecommunication services.
  • the typical application is that the user dials the information desk to query the information content on the communication terminal side, and the phone is accessed.
  • the operator performs the manual service, and the user queries the information about some uncertain specific units through the operator.
  • the attendant inputs the query condition query information query system according to the user request, and the information inquiry system queries the information database according to the query condition to obtain the information that meets the user requirements.
  • the user information is preferentially selected to the user, and the user obtains the contact information of the unit according to the provided information, and can contact the related service according to the contact information.
  • the difference between the information inquiry system conducted by telephone voice and other inquiry systems is mainly as follows:
  • the information based on telephone voice query is provided to the inquirer by the operator selection, and the queryer cannot preview the result returned by the query that meets the query condition, and the attendant accelerates
  • the speed of the query generally provides the first information of the query result to the queryer, so the ordering of the displayed query results, especially the first order, is particularly important in the information query system conducted by telephone voice.
  • the registration unit registers the unit information
  • the priority value is simultaneously registered, so that the unit having the larger priority value is arranged in the first position of the query result.
  • the query result is generally displayed in a rolling arrangement based on the priority value.
  • the two units have registered a certain keyword (set to X), and the priority values of the two units are 2, 3, respectively, when the attendant should request the user.
  • the search engine obtains the unit that matches the keyword, ⁇ , and selects the unit record ranked in the first place according to the priority values 2 and 3 registered by the unit, ⁇ , in the first query, Arrange the unit ⁇ in the first place, and count the number of times the units A and B are ranked in the first position (1 time, 0 times); in the second query of the same keyword, continue the unit according to the statistical result and the priority value relationship.
  • A is ranked in the first place, and the number of times the statistical units A and B are ranked in the first place (2 times, 0 times); in the third query of the same keyword, the unit B is arranged in the first place, and the statistical units A and B are arranged in The number of first place (2 times, 1 time); In the fourth and fifth query of the same keyword, continue to rank unit B in the first place until the statistical units A and B are ranked in the first place (2 times, 3 times) ), then the same in the future When the keyword is queried, the unit A is ranked first, and so on. According to the statistics, the number of times the units are ranked in the first place determines which unit should be ranked first.
  • the user can predict the sorting rule of the query result of a certain keyword according to the result of multiple queries, and is easily vulnerable to malicious access.
  • both C and D units have registered a certain keyword (set to S, C, and D.
  • the priority values of the two units are 1 and 1. respectively.
  • the user searches for the keyword S.
  • the unit C is ranked in the first place, and the operator recommends the information of the unit C ranked in the first place to the user.
  • the user can contact the unit C according to the provided information, and the unit C can calculate the priority according to the priority value registered by the unit.
  • the unit ranked first in the query result will never be this unit. If the C unit increases the number of times it is recommended in order to combat the opponent unit D, then the C unit can be used as a normal user.
  • the access system queries the keyword S. Obviously, the system query result list will display the unit D in the first place, and the system automatically adds the queried record to the C unit; in the next real user query, the C unit information is again arranged. In the first place, the operator continues to recommend the C unit information to the user.
  • the technical solution for displaying the query result based on the rolling arrangement of the priority values determines that each time the unit in the first position of the query result is arranged, it needs to be determined according to the records of the previous statistics in the first place, and therefore, when the information is When the records of the units that register the same query conditions are queried in the system, the records of the newly added units cannot be effective in real time. Only after each new registration of one unit, the information inquiry system can follow the original registration unit and the newly added unit after zeroing the previous history of all the units with the same registration conditions as the newly added unit. The priority values are sorted so that the record of the newly added unit takes effect. Since each additional unit is added, it is necessary to zero the history of the first unit in a statistical unit, thereby causing inconvenience to the direct user (accommodator) of the inquiry system. Summary of the invention
  • the invention provides a method for sorting query results, realizing the query record, determining the record which will be arranged in the first place of the query result to be displayed according to the priority value of the record registration, and making the record which should be ranked first in the displayed query result. not predictable.
  • the present invention provides a method for sorting query results, which is characterized in that it comprises:
  • the invention also provides an information inquiry system, comprising:
  • An information storage unit for storing an information database
  • a query unit configured to query an information database stored by the information storage unit according to a user query condition, and determine a record that meets the query condition
  • a priority value determining unit configured to determine a priority value corresponding to the record determined by the query unit
  • a sorting unit configured to randomly determine a record ranked first in a query result to be displayed according to a priority value corresponding to the record determined by the priority value determining unit; and determine the query unit The sorted position of the other records determined in the query results to be displayed.
  • the record matching the keyword is determined according to the query condition query database, and the record ranked first in the displayed query result is randomly determined according to the priority value of each unit, so that the query currently arranged in the display is arranged.
  • the result of the first place is unpredictable.
  • the problem of unfairness caused by malicious queries due to the prediction of the query results by malicious users is avoided, which is conducive to enhancing the confidence of registered users in the quality of service provided by the information query system.
  • the records ranked in the first position of the displayed query result are randomly determined, and the query that should be currently arranged in the display is determined according to the statistics of the previous arrangement in the first place.
  • the result of the first record enables the newly registered user's records to be valid in real time, improving the business performance of the information query system and the experience of the direct users (operators) of the system.
  • FIG. 1 is a schematic flowchart of a method for a user to query information through a call terminal according to Embodiment 1;
  • FIG. 2 is a schematic diagram of a data organization structure of an information database used in the present invention;
  • FIG. 3 is a schematic diagram showing a flow of determining a query result sorting method according to a priority value provided in Embodiment 1;
  • FIG. 4 is a schematic diagram showing a mapping relationship between a priority value and a numerical interval of Embodiment 1;
  • FIG. 5 is a schematic flowchart of determining a method for sorting query results according to a priority value provided in Embodiment 2;
  • FIG. 6 is a schematic structural diagram of an information inquiry system in Embodiment 3.
  • FIG. 7 is a schematic structural diagram of an information inquiry system in Embodiment 4.
  • FIG. 8 is a schematic structural diagram of an information inquiry system in Embodiment 5. detailed description
  • the core of the embodiment of the present invention is that, after determining the record that meets the query condition according to the query condition query information database, the record ranked first in the query result is randomly determined according to the priority value corresponding to each record, so that the query cannot be based on the current query condition.
  • the result is predicted to be followed by the same query condition that the query will be ranked in the first place.
  • FIG. 1 is a schematic flowchart of a method for a user to query information through a call terminal according to the embodiment. As shown in the figure, the method includes:
  • Step 101 The user accesses the access device through the call terminal device.
  • the user dials the number of the telephone information inquiry system (such as: 114 directory system, 12580 information service center, etc.) through the fixed telephone, mobile phone, PHS, IPTV terminal, Internet terminal, etc., and accesses the corresponding query through the communication network.
  • System access device such as: 114 directory system, 12580 information service center, etc.
  • Step 102 The access device accesses the call request and receives the caller.
  • the access device After receiving the access of the user, the access device accesses the access call request to the attendant seat according to the predetermined access rule, and the attendant processes the query request of the user, and the specific access processing may be processed by using existing technical means. .
  • Step 103 The attendant determines the query request of the user to determine the query condition, and inputs the query condition query information database.
  • the attendant After the user picks up the caller, the attendant describes the query request, and the attendant determines the query condition according to the query requirement of the user and the search experience (the query condition is generally composed of the query keyword and the service category of the query), and inputs the query to the information query system.
  • the condition is to query the information database according to the query condition by the information query system.
  • the registered user information is stored in the information database, and the registered user information is stored in accordance with different business categories.
  • the unit information in the information database can use the data organization structure shown in FIG. 2, and the information of other types of registered users can be referred to FIG. 2 accordingly.
  • the structure of the description, the corresponding query method is the same as the corresponding query method of the registered user, as shown in Figure 2:
  • the unit information 20 is composed of three types of information: unit registrant information 21, unit extension information 22, and unit priority information 23, wherein the unit registrant information 21 includes the name of the unit, the unit contact telephone number, the location city, the business scope, the contact person, and the location Specific location, and specific unit basic information such as WEB or WAP address; Unit extension information 22 has different performance according to different industries and service types in which the unit is located, and generally includes business information of the unit and other classification reference information reflecting the unit business; In the priority information 23, the service category 231 in which the unit is located, the keyword 232 registered in the service category 231, the priority value 233 corresponding to the keyword 232, and the like are searched.
  • the corresponding keywords can be separately registered for different service categories, and the corresponding priority values are respectively registered for each keyword.
  • the use of this data organization structure is beneficial to the management and maintenance of the information database, and it is also beneficial to expand the information database in the future to provide diversified services for the registration unit.
  • the unit priority information 23 if the service category 231 field is empty, it indicates that the priority data is applicable to all service data.
  • Step 104 Perform a query according to the query condition, determine all information records that meet the query condition, and a priority value corresponding to each record.
  • the general query condition consists of service category information and keywords.
  • the operator enters the query keyword, set it to "XXXX", and the service category, after setting it to "business 1", the search engine of the query system is shown in the data structure shown in Figure 2.
  • the field matching is performed in the information database library. Specifically, the keyword "XXXX” is matched in the field of the keyword 232 of each unit record shown in FIG. 2, and the service category "Service 1" is matched in the field of the service category 231.
  • the set "and,, and operation, matching in the unit priority data all the unit records satisfying the requirements of the keyword and the business category are obtained.
  • the input task category information is empty, it means that the query is performed in all service categories, and the information of the service category does not need to be adapted when querying.
  • the priority values registered for the service category and the keyword are determined according to the information content of the corresponding field of each record. It is assumed that there are a total of n unit records satisfying the query condition, based on the unit name (the content of the field 211 in FIG. 2) in each record, and the service category 231, the keyword 232, and the priority value 205 held in the unit priority information 23.
  • the information content of the field forms a correspondence as shown in Table 1:
  • Step 105 Randomly determine the records ranked in the first position of the query result to be displayed according to the priority value corresponding to the record that meets the query condition, and determine the sorting position of the other records that meet the query condition in the query result to be displayed.
  • FIG. 3 is a schematic flowchart of a method for determining a query result according to a priority value according to the embodiment. As shown in the figure, the method includes:
  • Step 301 Determine the sum of the priority values corresponding to the records in the query result.
  • Step 302 Determine a proportional relationship between each priority value and the sum.
  • each priority value and the sum SumXn are respectively determined, and the proportional relationship between each priority value and the sum is determined, and each proportional value indicates that the record corresponding to each priority value may be ranked in the query result to be displayed. The chance of the first place.
  • Step 303 According to the proportional relationship, the relationship between each priority value and the sum is mapped to the relationship of the length of the numerical interval.
  • the sum is taken as a whole of a numerical interval, and the proportional relationship between each priority value and the interval is expressed as the numerical interval of the priority value in the overall numerical interval, and the priority values can be combined with the sum.
  • the relationship of the relationship to the size of the numerical interval is such that the priority values correspond to the numerical intervals they occupy.
  • the priority values corresponding to the records of the sorted query result are: 2, 3, 1, 4, and the sum of the priority values is: 10, so each priority value and the The proportional relationship of the sum is: 2/10, 3/10, 1/10, 4/10.
  • the sum (10) a value interval whose interval length is equal to the sum (10) is determined, as in the interval 5 in FIG. 4, the upper limit value of the numerical interval may be an arbitrary value, and only the numerical interval is required.
  • the length of the interval is equal to the sum of the priority values; according to the proportional relationship of the priority values in the sum, the length of the interval that each priority value should occupy in the numerical interval 5 is determined, and the priority value is 2
  • the length of the interval of the numerical interval occupied by the interval 5 is 2, and the lengths of the interval of the numerical interval which should be occupied by the interval 3, 1, and 4 respectively are 3, 1, and 4, respectively, and the value should be occupied according to each priority value.
  • the interval length of the interval determines the numerical interval occupied by each priority value in the interval 5, as shown in Fig. 4, the numerical intervals occupied by the priority values 2, 3, 1, and 4 are respectively: interval 1, interval 2, Interval 3, Interval 4.
  • Step 305 The record corresponding to the priority value corresponding to the numerical interval in which the random number X falls is placed in the next position of the position where the record having the largest sorting number of the sorting position is determined in the arrangement of the query result to be displayed.
  • the random number X certainly falls within the numerical interval 5 of the interval length as shown in the sum (10) shown in FIG. 4, and the probability of which numerical interval falls in the range equal to the ratio of the length of the interval of each numerical interval to the length of the interval of the numerical interval 5. Therefore, the probability that the random number falls on the numerical interval corresponding to the higher priority value is larger, and the probability that each record may be determined in the unit ranked first in the query result is equal to the priority value corresponding to the corresponding record and all the records satisfying the query condition.
  • the ratio of the sum of the priority values is optimally fulfilled with a commitment to the priority value registered by each registered user.
  • the record corresponding to the priority value corresponding to the numerical interval in which the random number falls is to be displayed.
  • the arrangement number of the record corresponding to the priority value corresponding to the interval in the arrangement of the query result to be displayed is: i+l.
  • the operator will use the record displayed in the first place of the query result as the recommendation record and recommend it to the query user. Therefore, determining the record ranked first in the query result to be displayed is the main result of determining the result ranking.
  • the task may even only need to determine the first record according to the priority value, and other records may be randomly arranged after the first record regardless of their priority value. Therefore, the first execution to this point, you can complete the record that determines the top position of all the query results that need to be displayed.
  • the probability that the record with the higher priority value is arranged in front of the arrangement is larger, and step 306 is continued.
  • Step 306 Determine whether there is only one record of the query result to be sorted, and if yes, execute step 308; otherwise, execute step 307.
  • step 307 is continued; otherwise, step 308 is performed.
  • Step 307 Step 305 is deleted from all the query results to determine the record of the sort position, and return to step 304 to continue sorting the records to be sorted.
  • step 304 determines the location of other records in the sort to be displayed.
  • Step 308 Place the record at the end of the sort.
  • Step 309 Sorting ends.
  • the display ordering of all the query results is completed, so that the order of each record is based on the size of the priority value, and the probability that the record with higher priority value is arranged in front of the arrangement is larger.
  • Step 106 Display the query result to the operator according to the determined order.
  • the query results are displayed to the operator in accordance with the order determined in step 105.
  • Step 107 The attendant recommends a query result to the querying user according to the query result.
  • the attendant will recommend the record in the first place as the recommended record to the user, or according to the user's request, continue to recommend the records ranked in the second and third places to the user for the user to select, as far as possible to meet the user's query needs. .
  • step 303 in step 105 the relationship between each priority value and the sum is mapped to the numerical interval according to the proportional relationship.
  • the numerical interval corresponding to the length of the interval is 1.
  • each priority value is respectively assigned to the small value interval in the numerical interval corresponding to the sum, specifically : the length of the interval occupied by each priority value in the numerical interval corresponding to the sum is equal to the ratio of each priority value to the sum Value; the other steps are unchanged.
  • the technical solution after the change can also obtain the same technical effects as those of the technical solutions shown in FIGS. 3 and 4.
  • step 301 in step 105 in this embodiment is changed to: determine the product of each priority weight, or directly take a fixed value greater than the sum of the priority values. And correspondingly in the subsequent steps 302 to 304, all the values involving the sum are changed to a product, or a fixed value greater than the sum of the priority values, and the basic flow of the method is unchanged, forming a further technical solution.
  • the modified technical solution can also complete the unit of determining the first position of the query result to be displayed according to the priority value to be achieved by the present invention, and the purpose of ordering the displayed query result is unpredictable, only the technical solution Only the probability that each record is determined to be ranked first in the query result is related to the priority value corresponding to the unit, rather than strictly equal to the ratio of each priority value to the sum.
  • the technical solution of the change is relative to the method shown in FIG. 3, and each time the record ranked first in the query result to be sorted is determined, it is possible that the selected random number does not fall under any priority value.
  • the determination fails, and another random number needs to be randomly selected to continue the comparison determination until the random number falls within the numerical interval corresponding to a certain priority value, so the technical effect obtained by the technical solution is not as shown in FIG.
  • the probability that each record may be determined by the unit ranked first in the query result is related to the priority value corresponding to the unit, and is in a proportional relationship, and the priority value corresponding to each registration unit is executed. committed to.
  • the method includes:
  • Step 501 Determine a sum SumXn of each priority value corresponding to each record of the undetermined sort position in the query result.
  • Step 502 Sort the unsorted records in the query result according to the corresponding priority values from large to small, and determine the sequence numbers of the records after the sorting.
  • Step 504 Take a random number RanX between 0 and 1 and calculate the product of RanX and SumXn RanX*SumXn consent
  • Step 505 Determine the size relationship between RanX*SumXn and each SumXi, which is greater than
  • the record represented by the smallest value in the set of SumXi of RanX*SumXn, the position of the record in the arrangement of the query result to be displayed is determined as the latter position of the record where the sorting number of the sorting position is the largest.
  • step 505 when the step 505 is performed for the first time, since the position of any record should be determined in the arrangement of the query results to be displayed, the priority value corresponding to the numerical range in which the random value falls corresponds to Recording the record as the first bit in the arrangement of the query results to be displayed; and after determining the position of the i records in the arrangement of the query results to be displayed, where i is a natural number greater than or equal to 1, the step determined in this step
  • the sequence number of the record corresponding to the priority value corresponding to the numerical interval in which the random number falls within the arrangement of the query result to be displayed is: i+l.
  • Step 506 Determine whether there is only one record of the query result to be sorted, and if yes, execute step 508; otherwise, execute step 507.
  • Step 507 Step 505 is deleted from all the query results to determine the record of the sort position, and return to step 501 to continue sorting the records to be sorted.
  • Step 508 Place the record at the end of the sort.
  • Step 509 Sorting ends.
  • FIG. 6 is a schematic structural diagram of an information query system according to the embodiment. As shown in the figure, the system includes:
  • the information storage unit 601 is configured to store an information database.
  • the information stored in the information storage unit 601 may use the data organization structure shown in FIG. 2.
  • the stored information is unit information
  • the stored information includes: a unit name, a contact information of the unit, and a service category of the unit. , keywords registered according to the business category and corresponding priority value information.
  • the query unit 602 is configured to query the information database stored by the information storage unit 601 according to the query condition of the user, determine the unit that meets the query condition, and the record corresponding to the unit.
  • the general query condition is composed of the service category information and the keyword, and the query unit 602 uses the service category information and the keyword to perform field matching on the information stored in the information library storage unit 601, assuming that the information uses the data organization structure shown in FIG. Then, specifically, the keyword "XXXX" is matched in the field of the keyword 232 registered in each unit shown in FIG. 2, and the service category "Service 1" is matched in the field of the service category 231. According to the query conditions, the collection "and,, operation, unit priority data matching all the records that meet the requirements of the keyword and business category.
  • the priority value determining unit 603 is configured to determine a priority value corresponding to the record determined by the query unit 602.
  • the sorting unit 604 is configured to determine, according to the priority value corresponding to the record determined by the priority value determining unit 603, from the record determined by the query unit 602, the record ranked first in the query result to be displayed, and determine the query unit The sorted position of the other records determined in the query results to be displayed. In order to cause the display terminal to display the query result to the operator according to the ranking determined by the sorting unit 604, the operator can recommend the information to the querying user according to the displayed query result.
  • the sorting unit 604 includes:
  • the first calculating unit 6041 is configured to obtain the priority value determining unit 603 for the undetermined display
  • the priority values determined by each record of the sort position in the query result are the sum of the priority values.
  • the priority value and interval relationship determining unit 6042 is configured to determine that the interval length is equal to the value interval acquired by the first calculating unit 6041, and establish a mapping relationship between the value obtained by the first calculating unit 6041 and the numerical interval, and according to the priority value. Determining, by the determining unit 603, the proportional relationship between the priority values determined by the first calculating unit 6041 and determining the length of each of the priority values in the numerical interval obtained by the first calculating unit 6041. Establish a mapping relationship between each priority value and a numerical interval. For the basic principle of the mapping relationship, refer to the description in step 303 in Embodiment 1, and details are not described herein.
  • the random number selection unit 6043 is configured to arbitrarily select a value within the numerical interval obtained by the priority value and interval relationship determining unit 6042 to be equal to the value range obtained by the first calculating unit 6041.
  • the first sorting order determining unit 6044 is configured to select, according to the numerical interval in which the value selected by the random number selecting unit 6043 is located, the probability that the random number belongs to the numerical interval corresponding to each priority value, and the corresponding unit of the priority value is ranked in the query.
  • the probability of the first position of the result), the priority value corresponding to the priority value and the value range corresponding to the value range, and the record corresponding to the priority value is placed in the record of the query result to be displayed, and the record with the largest sort number of the sorted position is determined. The next position in the location.
  • the specific working principle of the first sort order determining unit 6044 is as described in step 305 in Embodiment 1.
  • the information query system provided in this embodiment not only realizes the record ranked first in the query result according to the priority value, but makes the order of the query result unpredictable, and solves the problem that the malicious user predicts the query result and performs the malicious query.
  • the problem of unfairness also makes the probability that each record may be determined by the unit ranked first in the query result, which is equal to the ratio of the priority value corresponding to the corresponding record to the sum of the priority values of all the records satisfying the query condition.
  • the information inquiry system of the present invention makes the probability that the record having the higher priority value is arranged in the previous query result is larger, and the commitment of the priority value corresponding to each registration unit is optimized.
  • FIG. 7 is a schematic structural diagram of an information inquiry system according to an embodiment of the present invention.
  • the basic structure of the information inquiry system provided in this embodiment is the same as that in Embodiment 3, except that the ranking unit of the system of this embodiment is different.
  • the second calculating unit 6045 for obtaining the product of the respective priority values determined by the priority value determining unit 603 in 605 replaces the first calculating unit 6041 in the sorting unit 605 in the second embodiment.
  • the information query system provided in this embodiment can still accomplish the purpose of the present invention, so that the first place of the query result is unpredictable, and solves the problem that the malicious user predicts the query result and performs the malicious query.
  • each record may be determined by the first sorting order determining unit 6044 to determine the probability of ranking in the first place of the query result, which is related to the priority value corresponding to the unit, instead of Strictly equal to the ratio of each priority value to the sum.
  • the random number selected by the random number selection unit 6043 in the information query system of the embodiment may not fall within the numerical interval corresponding to any priority value, causing the first sort order determining unit 6044 to determine that the first record fails.
  • the random number selection unit 6043 needs to regenerate another random number, and continues to be determined by the first sort order determining unit 6044 until the random number falls within a numerical interval corresponding to a certain priority value, so the present embodiment provides The operation efficiency of the information inquiry system is slightly worse than that of the information inquiry system provided in Embodiment 3.
  • FIG. 8 is a schematic structural diagram of an information inquiry system according to the embodiment. As shown in the figure, the system includes:
  • the sorting unit 800 of the embodiment includes: a pre-sorting unit 801: for each record that does not determine the sorting position in the displayed query result, according to the corresponding priority The weights are sorted from large to small, and the sequence numbers of the records after sorting are determined.
  • the first summation unit 802 is configured to obtain a sum of priority values of the ranking positions that are not determined in the displayed query result, and set the sum to SumXn.
  • the random number generating unit 803 is configured to generate a random number smaller than the sum acquired by the first summation unit 802.
  • the second summation unit 804 is configured to determine, according to the order and the sequence number determined by the pre-sorting determining unit 801, the sum of the priority values corresponding to the records and the priority values corresponding to the records whose record numbers are smaller than the record number.
  • the second sorting order determining unit 805 is configured to select, in the value determined by the second summing unit 804, a set of values larger than the random number obtained by the random number generating unit 803, and select a minimum value representative from the set. Recording, placing the record in the arrangement of the query result to be displayed in the latter position of the position of the record having the largest sorting number of the sorted position.
  • the specific working principle of the first sort order determining unit 805 is as described in step 505 in Embodiment 2.
  • the probability that the second sort order determining unit 805 determines that the first record of the ranking of the query result to be sorted is placed is larger. It is guaranteed to be sorted according to the priority value.
  • the record represented by the smallest value in the set of SumXi larger than RanX*SumXn is also uncertain in the user's view, and the user cannot predict the ordering of the displayed query results, thereby avoiding the The problem of the unfairness caused by the malicious query by the malicious user predicting the ranking of the query results, and the information query system provided in this embodiment is the same as the system described in Embodiment 3, and the record with the higher priority value is also The greater the probability of being ranked in the actual query results, the more optimal the commitment to the priority values registered by each registration unit.
  • each unit or step in the above embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple of these units or steps are made in a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.

Abstract

A method for sorting the search results and an information search system are disclosed which relate to the computer technique field. The method for sorting the search results includes: searching the search information database according to the search condition to determine the records meeting the search condition; randomly determining the record which is in the first location of the displayed search results according to the corresponding priorities of the records meeting the search condition and determining the sort locations of other records meeting the search condition in the displayed search results. The present invention realizes determining the record which is in the first location in the displayed search results according to the registered priorities of the records and making the record which will be displayed in the first location of the search results unpredictable.

Description

查询结果排序方法以及信息查询系统 本申请要求于 2006 年 11 月 30 日提交中国专利局、 申请号为 200610160844.8、 发明名称为"查询结果排序方法以及信息查询系统"的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Query result sorting method and information query system The application claims the priority of the Chinese patent application filed on November 30, 2006, the Chinese Patent Office, the application number is 200610160844.8, and the invention name is "query result sorting method and information query system". The entire contents are incorporated herein by reference. Technical field
本发明涉及计算机技术, 特别的涉及一种查询结果排序方法以及信息 查询系统。 背景技术  The present invention relates to computer technology, and in particular, to a query result sorting method and an information query system. Background technique
随着计算机信息技术的发展,基于查询的基础服务的应用越来越广泛。 比如: 号码查询、 便民服务查询、 web 网站地址查询等查询。 在用户不能 准确提供要求单位名称的情况下, 搜索引擎根据用户要求的关键字进行查 询, 将已登记为相应关键字的单位的信息提供给用户, 为登记单位提供增 值服务。  With the development of computer information technology, the application of query-based basic services is more and more extensive. For example: number inquiry, convenience service inquiry, web website address inquiry and so on. In the case where the user cannot accurately provide the requested unit name, the search engine performs a query based on the keyword requested by the user, and provides the information of the unit registered as the corresponding keyword to the user to provide the value-added service for the registration unit.
随着电信业务和计算机信息技术的结合, 基于查询的基础服务越来越 广泛的被应用到电信业务中, 其典型的应用是, 用户在通信终端侧拨打信 息台查询信息内容, 电话被接入话务员进行人工服务, 用户通过话务员查 询关于某些不确定具体单位的信息, 话务员根据用户要求输入查询条件查 询信息查询系统, 由信息查询系统根据查询条件在信息数据库中查询, 获 取符合用户要求的信息并优先选择某单位信息给用户, 用户根据所提供的 信息得到该单位的联系方式, 并可以根据联系方式与之联系取得相关的服 务。  With the combination of telecommunication services and computer information technology, the basic services based on query are more and more widely applied to telecommunication services. The typical application is that the user dials the information desk to query the information content on the communication terminal side, and the phone is accessed. The operator performs the manual service, and the user queries the information about some uncertain specific units through the operator. The attendant inputs the query condition query information query system according to the user request, and the information inquiry system queries the information database according to the query condition to obtain the information that meets the user requirements. The user information is preferentially selected to the user, and the user obtains the contact information of the unit according to the provided information, and can contact the related service according to the contact information.
通过电话语音进行的信息查询系统和其他的查询系统的区别主要是: 基于电话语音查询的信息是通过话务员 选提供给查询者的, 查询者无法 预览到符合查询条件的查询返回结果, 话务员为了加快查询的速度一般将 查询结果的第一条信息提供给查询者, 因此显示的查询结果的排序, 特别 是首位的排序, 在通过电话语音进行的信息查询系统中尤为重要。 在信息 查询系统中, 在登记单位注册单位信息时同时登记优先权值, 使得优先权 值越大的单位, 排列在查询结果的首位的次数越多。 在现有技术中,一般釆用基于优先权值滚动排列的方式显示查询结果。 该技术方案具体是, 例如: 有 Α、 Β两单位均登记了某个关键字(设为 X ), Α、 Β两单位登记的优先权值分别为 2、 3 , 当话务员应用户要求就该关键 字 X进行查询时, 搜索引擎获取到符合该关键字的单位 、 Β, 根据 Α、 Β 单位登记的优先权值 2、 3 , 选择排列在首位的单位记录, 假设在第一次查 询时, 将单位 Α排列在首位, 并统计单位 A、 B排列在首位的次数( 1次、 0次); 在第二次相同关键字的查询时,根据统计结果、以及优先权值关系, 继续将单位 A排列在首位, 并统计单位 A、 B排列在首位的次数(2次、 0 次);在第三次相同关键字的查询时,将单位 B排列在首位,并统计单位 A、 B排列在首位的次数(2次、 1次); 在第四、 第五次相同关键字的查询时, 继续将单位 B排列在首位, 直到统计单位 A、 B排列在首位的次数( 2次、 3次), 再在以后相同关键字的查询时, 将单位 A排列在首位, 如此反复类 推, 根据统计的各单位排列在首位的历史次数, 确定当前应该将哪个单位 排列在首位。 The difference between the information inquiry system conducted by telephone voice and other inquiry systems is mainly as follows: The information based on telephone voice query is provided to the inquirer by the operator selection, and the queryer cannot preview the result returned by the query that meets the query condition, and the attendant accelerates The speed of the query generally provides the first information of the query result to the queryer, so the ordering of the displayed query results, especially the first order, is particularly important in the information query system conducted by telephone voice. In the information inquiry system, when the registration unit registers the unit information, the priority value is simultaneously registered, so that the unit having the larger priority value is arranged in the first position of the query result. In the prior art, the query result is generally displayed in a rolling arrangement based on the priority value. Specifically, for example, the two units have registered a certain keyword (set to X), and the priority values of the two units are 2, 3, respectively, when the attendant should request the user. When the keyword X is queried, the search engine obtains the unit that matches the keyword, Β, and selects the unit record ranked in the first place according to the priority values 2 and 3 registered by the unit, 假设, in the first query, Arrange the unit Α in the first place, and count the number of times the units A and B are ranked in the first position (1 time, 0 times); in the second query of the same keyword, continue the unit according to the statistical result and the priority value relationship. A is ranked in the first place, and the number of times the statistical units A and B are ranked in the first place (2 times, 0 times); in the third query of the same keyword, the unit B is arranged in the first place, and the statistical units A and B are arranged in The number of first place (2 times, 1 time); In the fourth and fifth query of the same keyword, continue to rank unit B in the first place until the statistical units A and B are ranked in the first place (2 times, 3 times) ), then the same in the future When the keyword is queried, the unit A is ranked first, and so on. According to the statistics, the number of times the units are ranked in the first place determines which unit should be ranked first.
由上可见,该基于优先权值滚动排列的方式显示查询结果的技术方案, 用户可以根据多次查询的结果, 预测某关键字查询结果的排序规律, 容易 被恶意访问钻空子。 最简单一个例子, 假设的 C、 D两单位均登记了某个 关键字 (设为 S, C、 D两单位登记的优先权值分别为 1和 1。 假设, 在一 次用户查询该关键字 S后, 单位 C排列在首位, 话务员将排在首位的单位 C的信息推荐给用户, 用户根据所提供的信息联系单位 C, C单位便能根 据本单位登记的优先权值, 预测的排序规律, 预测到当下一次就关键字 S 查询发生时, 排在查询结果首位的单位决不会是本单位。 如果 C单位为了 打击对手单位 D, 使得自己被推荐的次数增加, 那么 C单位可以作为普通 用户接入系统查询该关键字 S , 显然, 系统的查询结果列表会显示单位 D 在首位, 并且系统自动给 C单位增加一次被查询的记录; 在下一次真正的 用户查询时, C单位的信息又排在了首位, 话务员继续将 C单位信息推荐 给用户。  It can be seen from the above that the technical scheme of displaying the query result based on the rolling arrangement of the priority values, the user can predict the sorting rule of the query result of a certain keyword according to the result of multiple queries, and is easily vulnerable to malicious access. In the simplest example, assume that both C and D units have registered a certain keyword (set to S, C, and D. The priority values of the two units are 1 and 1. respectively. Suppose, the user searches for the keyword S. After that, the unit C is ranked in the first place, and the operator recommends the information of the unit C ranked in the first place to the user. The user can contact the unit C according to the provided information, and the unit C can calculate the priority according to the priority value registered by the unit. It is predicted that the next time the keyword S query occurs, the unit ranked first in the query result will never be this unit. If the C unit increases the number of times it is recommended in order to combat the opponent unit D, then the C unit can be used as a normal user. The access system queries the keyword S. Obviously, the system query result list will display the unit D in the first place, and the system automatically adds the queried record to the C unit; in the next real user query, the C unit information is again arranged. In the first place, the operator continues to recommend the C unit information to the user.
由上可见, 由于 C单位根据预测的排序规律进行恶意查询, 使得本单 位被真正用户查询到的次数大大增加, 而对手单位 D被真正用户查询到次 数大大减少, 甚至不能被真正用户查询到。 因此该方案存在漏洞, 在有恶 意查询的情况(是否为恶意查询, 话务员以及信息查询系统是难以得知或 阻止的) 下提供的服务显失公平。 It can be seen from the above that since the C unit performs malicious query according to the predicted sorting rule, the number of times the unit is queried by the real user is greatly increased, and the opponent unit D is queried by the real user. The number is greatly reduced, and it cannot even be queried by real users. Therefore, there is a loophole in the scheme, and the service provided under the condition of malicious inquiry (whether it is a malicious inquiry, the operator and the information inquiry system is difficult to know or block) is unfair.
另外的, 该基于优先权值滚动排列的方式显示查询结果的技术方案在 确定每次排列在查询结果首位的单位时, 需要根据之前统计的各单位排列 在首位的记录确定, 因此, 当在信息查询系统中登记同样查询条件的单位 的记录时, 该新增单位的记录不能做到实时生效。 而只有在每新登记一单 位后, 将之前的与该新增加单位登记的查询条件相同的所有单位的排列在 首位的历史次数归零后, 信息查询系统才能按照原登记单位以及新增单位 的优先权值进行排序, 使得该新增加单位的记录生效。 由于每增加一个新 增单位, 均需要对一统计的单位排列在首位的历史次数进行一次归零, 从 而给查询系统的直接使用者(话务员)造成不便。 发明内容  In addition, the technical solution for displaying the query result based on the rolling arrangement of the priority values determines that each time the unit in the first position of the query result is arranged, it needs to be determined according to the records of the previous statistics in the first place, and therefore, when the information is When the records of the units that register the same query conditions are queried in the system, the records of the newly added units cannot be effective in real time. Only after each new registration of one unit, the information inquiry system can follow the original registration unit and the newly added unit after zeroing the previous history of all the units with the same registration conditions as the newly added unit. The priority values are sorted so that the record of the newly added unit takes effect. Since each additional unit is added, it is necessary to zero the history of the first unit in a statistical unit, thereby causing inconvenience to the direct user (accommodator) of the inquiry system. Summary of the invention
本发明提供一种查询结果排序方法, 实现对查询记录, 按照记录登记 的优先权值, 确定将排列在待显示的查询结果的首位的记录, 并且使得当 前应排列在显示的查询结果首位的记录不可预测。  The invention provides a method for sorting query results, realizing the query record, determining the record which will be arranged in the first place of the query result to be displayed according to the priority value of the record registration, and making the record which should be ranked first in the displayed query result. not predictable.
本发明提供一种查询结果排序方法, 其特征在于, 包括:  The present invention provides a method for sorting query results, which is characterized in that it comprises:
根据查询条件查询信息数据库, 确定符合查询条件的记录;  Query the information database according to the query conditions to determine the records that meet the query conditions;
根据所确定的记录对应的优先权值, 随机确定排列在待显示的查询结 果首位的记录;  Determining, according to the determined priority value corresponding to the record, a record ranked first in the query result to be displayed;
确定其他符合查询条件的记录在待显示的查询结果中的排序位置。 本发明还提供一种信息查询系统, 包括:  Determine the sort position of other records that match the query criteria in the query results to be displayed. The invention also provides an information inquiry system, comprising:
信息库存储单元, 用于存储信息数据库;  An information storage unit for storing an information database;
查询单元, 用于根据用户查询条件, 查询所述信息库存储单元存储的 信息数据库, 确定符合查询条件的记录;  a query unit, configured to query an information database stored by the information storage unit according to a user query condition, and determine a record that meets the query condition;
优先权值确定单元, 用于确定所述查询单元所确定的记录对应的优先 权值;  a priority value determining unit, configured to determine a priority value corresponding to the record determined by the query unit;
排序单元, 用于根据所述优先权值确定单元确定的记录对应的优先权 值, 随机确定排列在待显示的查询结果首位的记录; 并确定所述查询单元 确定的其他记录在待显示的查询结果中的排序位置。 a sorting unit, configured to randomly determine a record ranked first in a query result to be displayed according to a priority value corresponding to the record determined by the priority value determining unit; and determine the query unit The sorted position of the other records determined in the query results to be displayed.
本发明提供的技术方案中, 在根据查询条件查询信息数据库确定符合 关键字的记录, 根据各单位的优先权值, 随机确定排列在显示的查询结果 首位的记录, 使得当前应排列在显示的查询结果首位的记录不可预测。 避 免了由于恶意用户预测查询结果排序而进行恶意查询导致的显失公平的问 题, 有利于增强登记用户对信息查询系统提供的服务质量的信心。 另外, 本发明提供的技术方案中, 根据各单位的优先权值, 随机确定排列在显示 的查询结果首位的记录, 而不需依据之前的排列在首位的统计次数确定当 前应该排列在显示的查询结果首位的记录, 使得新登记的用户的记录能够 实时生效, 提高了信息查询系统的业务性能, 以及系统的直接使用者(话 务员) 的使用感受。 附图说明  In the technical solution provided by the present invention, the record matching the keyword is determined according to the query condition query database, and the record ranked first in the displayed query result is randomly determined according to the priority value of each unit, so that the query currently arranged in the display is arranged. The result of the first place is unpredictable. The problem of unfairness caused by malicious queries due to the prediction of the query results by malicious users is avoided, which is conducive to enhancing the confidence of registered users in the quality of service provided by the information query system. In addition, in the technical solution provided by the present invention, according to the priority value of each unit, the records ranked in the first position of the displayed query result are randomly determined, and the query that should be currently arranged in the display is determined according to the statistics of the previous arrangement in the first place. The result of the first record enables the newly registered user's records to be valid in real time, improving the business performance of the information query system and the experience of the direct users (operators) of the system. DRAWINGS
图 1为实施例 1的用户通过通话终端查询信息的方法流程示意图; 图 2为本发明中的信息数据库釆用的数据组织结构示意图;  1 is a schematic flowchart of a method for a user to query information through a call terminal according to Embodiment 1; FIG. 2 is a schematic diagram of a data organization structure of an information database used in the present invention;
图 3为实施例 1中提供的根据优先权值确定查询结果排序方法的流程 示意图;  3 is a schematic diagram showing a flow of determining a query result sorting method according to a priority value provided in Embodiment 1;
图 4为实施例 1的优先权值与数值区间的映射关系示意图;  4 is a schematic diagram showing a mapping relationship between a priority value and a numerical interval of Embodiment 1;
图 5为实施例 2中提供的根据优先权值确定查询结果排序方法的流程 示意图;  5 is a schematic flowchart of determining a method for sorting query results according to a priority value provided in Embodiment 2;
图 6为实施例 3中的信息查询系统结构示意图;  6 is a schematic structural diagram of an information inquiry system in Embodiment 3;
图 7为实施例 4中的信息查询系统结构示意图;  7 is a schematic structural diagram of an information inquiry system in Embodiment 4;
图 8为实施例 5中的信息查询系统结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of an information inquiry system in Embodiment 5. detailed description
本发明实施例的核心是, 在根据查询条件查询信息数据库确定符合查 询条件的记录后, 根据各记录对应的优先权值, 随机确定排列在查询结果 首位的记录, 使得不能根据当前查询条件的查询结果预测后续就相同查询 条件查询将排列在首位的具体记录。  The core of the embodiment of the present invention is that, after determining the record that meets the query condition according to the query condition query information database, the record ranked first in the query result is randomly determined according to the priority value corresponding to each record, so that the query cannot be based on the current query condition. The result is predicted to be followed by the same query condition that the query will be ranked in the first place.
为了使本领域的技术人员更好的理解本发明内容, 以下结合附图以及 具体实施例对本发明内容进行详细的说明。 实施例 1 : In order to make the content of the present invention better understood by those skilled in the art, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. Example 1:
图 1是本实施例的用户通过通话终端查询信息的方法流程示意图,如图 示, 方法包括:  1 is a schematic flowchart of a method for a user to query information through a call terminal according to the embodiment. As shown in the figure, the method includes:
步骤 101: 用户通过通话终端设备接入到接入设备。  Step 101: The user accesses the access device through the call terminal device.
用户通过固定电话、 手机、 小灵通、 IPTV终端、 Internet终端等作为通 话终端, 拨打电话信息查询系统(比如: 114查号系统、 12580信息服务中 心等) 的号码, 通过通信网络接入到相应查询系统的接入设备。  The user dials the number of the telephone information inquiry system (such as: 114 directory system, 12580 information service center, etc.) through the fixed telephone, mobile phone, PHS, IPTV terminal, Internet terminal, etc., and accesses the corresponding query through the communication network. System access device.
步骤 102: 接入设备接入通话请求, 接通话务员。  Step 102: The access device accesses the call request and receives the caller.
接入设备接收到用户的接入后, 根据预定的接入规则, 将接入通话请 求接入到话务员坐席, 由话务员处理用户的查询请求, 具体接入处理可以 釆用现有技术手段进行处理。  After receiving the access of the user, the access device accesses the access call request to the attendant seat according to the predetermined access rule, and the attendant processes the query request of the user, and the specific access processing may be processed by using existing technical means. .
步骤 103:话务员确定用户的查询请求确定查询条件, 并输入查询条件 查询信息数据库。  Step 103: The attendant determines the query request of the user to determine the query condition, and inputs the query condition query information database.
用户接通话务员后, 向话务员描述查询需求, 话务员根据用户的查询 需求, 结合的检索经验, 确定查询条件 (查询条件一般由查询关键字、 以 及查询的业务类别构成) 向信息查询系统输入该查询条件, 以由信息查询 系统根据该查询条件查询信息数据库。  After the user picks up the caller, the attendant describes the query request, and the attendant determines the query condition according to the query requirement of the user and the search experience (the query condition is generally composed of the query keyword and the service category of the query), and inputs the query to the information query system. The condition is to query the information database according to the query condition by the information query system.
在信息数据库中保存了登记的用户信息, 登记的用户信息按照不同业 务类别进行保存。 为了便于信息数据库的管理维护方便, 以登记用户为用 户为例,在信息数据库中的单位信息可以釆用图 2所示的数据组织结构,其 他的类型的登记用户的信息可以相应参考图 2所示的结构,其相应的查询的 方法同登记用户为单位的相应查询方法, 如图 2示:  The registered user information is stored in the information database, and the registered user information is stored in accordance with different business categories. In order to facilitate the management and maintenance of the information database, taking the registered user as the user as an example, the unit information in the information database can use the data organization structure shown in FIG. 2, and the information of other types of registered users can be referred to FIG. 2 accordingly. The structure of the description, the corresponding query method is the same as the corresponding query method of the registered user, as shown in Figure 2:
单位信息 20由单位注册人信息 21、 单位扩展信息 22、 以及单位优先信 息 23三类信息组成, 其中单位注册人信息 21包括单位的名称、 单位联系电 话、 所在地市、 经营范围、 联系人、 所在具体位置、 以及 WEB或 WAP地址 等具体的单位基本信息; 单位扩展信息 22按照单位所在的不同行业和业务 类型有不同的表现, 一般包括单位的业务信息等反映该单位业务的分类参 考信息; 单位优先信息 23中登记了该单位就所在的业务类别 231、就该业务 类别 231所登记的关键字 232、 以及该关键字 232对应的优先权值 233等与搜 索有关的信息; 对于需要注册登记多种业务类别的单位, 可以针对不同的 业务类别分别注册相应的关键字, 并且就各关键字分别登记相应的优先权 值。 釆用该数据组织结构既有利于信息数据库的管理维护, 还有利于以后 扩展信息数据库以为登记单位提供多样化的服务。 在单位优先信息 23中, 如果业务类别 231字段为空, 则表示该优先数据适用于全部业务数据。 The unit information 20 is composed of three types of information: unit registrant information 21, unit extension information 22, and unit priority information 23, wherein the unit registrant information 21 includes the name of the unit, the unit contact telephone number, the location city, the business scope, the contact person, and the location Specific location, and specific unit basic information such as WEB or WAP address; Unit extension information 22 has different performance according to different industries and service types in which the unit is located, and generally includes business information of the unit and other classification reference information reflecting the unit business; In the priority information 23, the service category 231 in which the unit is located, the keyword 232 registered in the service category 231, the priority value 233 corresponding to the keyword 232, and the like are searched. Relevant information; For units that need to register multiple service categories, the corresponding keywords can be separately registered for different service categories, and the corresponding priority values are respectively registered for each keyword. The use of this data organization structure is beneficial to the management and maintenance of the information database, and it is also beneficial to expand the information database in the future to provide diversified services for the registration unit. In the unit priority information 23, if the service category 231 field is empty, it indicates that the priority data is applicable to all service data.
步骤 104:根据查询条件进行查询,确定符合查询条件的所有信息记录, 以及各记录对应的优先权值。  Step 104: Perform a query according to the query condition, determine all information records that meet the query condition, and a priority value corresponding to each record.
一般的查询条件由业务类别信息和关键字组成, 话务员输入查询关键 字, 设为" XXXX", 和业务类别, 设为"业务 1"后, 查询系统的搜索引擎在 图 2所示的数据结构的信息数据库库中进行字段匹配, 具体是在图 2所示的 各单位记录的关键字 232的字段中匹配关键字" XXXX", 在业务类别 231的 字段中匹配业务类别 "业务 1"。 根据查询条件进行集合"与,,运算, 在单位优 先数据中匹配得到了满足关键字、 业务类别要求的所有单位记录。  The general query condition consists of service category information and keywords. The operator enters the query keyword, set it to "XXXX", and the service category, after setting it to "business 1", the search engine of the query system is shown in the data structure shown in Figure 2. The field matching is performed in the information database library. Specifically, the keyword "XXXX" is matched in the field of the keyword 232 of each unit record shown in FIG. 2, and the service category "Service 1" is matched in the field of the service category 231. According to the query conditions, the set "and,, and operation, matching in the unit priority data, all the unit records satisfying the requirements of the keyword and the business category are obtained.
如果输入的任务类别信息为空, 则表示在所有业务类别中进行查询, 查询时不需要适配业务类别的信息。  If the input task category information is empty, it means that the query is performed in all service categories, and the information of the service category does not need to be adapted when querying.
根据各记录相应字段的信息内容确定各就该业务类别、 关键字登记的 优先权值。假设满足查询条件的单位记录共有 n条,根据各记录中的单位名 称(图 2中的字段 211的内容) 以及在单位优先权信息 23中保存的业务类别 231、 关键字 232以及优先权值 205字段的信息内容,形成如表一所示的对应 关系:  The priority values registered for the service category and the keyword are determined according to the information content of the corresponding field of each record. It is assumed that there are a total of n unit records satisfying the query condition, based on the unit name (the content of the field 211 in FIG. 2) in each record, and the service category 231, the keyword 232, and the priority value 205 held in the unit priority information 23. The information content of the field forms a correspondence as shown in Table 1:
表一: 各记录的单位名称与优先信息内同对应关系  Table 1: Correspondence between unit name and priority information of each record
Figure imgf000008_0001
表一表示了基于当前查询的关键字、 业务类别查询获取的单位记录的 各优先信息。 步骤 105:根据符合查询条件的记录对应的优先权值, 随机确定排列在 待显示的查询结果首位的记录, 并确定其他符合查询条件的记录在待显示 的查询结果中的排序位置。
Figure imgf000008_0001
Table 1 shows the priority information of the unit records obtained based on the keywords of the current query and the business category query. Step 105: Randomly determine the records ranked in the first position of the query result to be displayed according to the priority value corresponding to the record that meets the query condition, and determine the sorting position of the other records that meet the query condition in the query result to be displayed.
图 3为本实施例提供的一种根据优先权值确定查询结果排序方法的流 程示意图, 如图示, 该方法包括:  FIG. 3 is a schematic flowchart of a method for determining a query result according to a priority value according to the embodiment. As shown in the figure, the method includes:
步骤 301: 确定查询结果中的各记录对应的各优先权值的总和。  Step 301: Determine the sum of the priority values corresponding to the records in the query result.
将各记录对应的优先权值求和,将该优先权值的总和标记为: SumXn。 步骤 302: 确定各优先权值与该总和的比例关系。  The priority values corresponding to the records are summed, and the sum of the priority values is marked as: SumXn. Step 302: Determine a proportional relationship between each priority value and the sum.
分别取各优先权值与该总和 SumXn的正比, 确定各优先权值与该总和 的比例关系即比例值, 各比例值分别表示了各优先权值对应的记录可能被 排在将显示的查询结果的首位的几率。  The proportional value of each priority value and the sum SumXn are respectively determined, and the proportional relationship between each priority value and the sum is determined, and each proportional value indicates that the record corresponding to each priority value may be ranked in the query result to be displayed. The chance of the first place.
步骤 303 :根据该比例关系,将各优先权值与该总和的关系映射到数值 区间长度的关系。  Step 303: According to the proportional relationship, the relationship between each priority value and the sum is mapped to the relationship of the length of the numerical interval.
将总和作为一个数值区间整体, 各优先权值与该区间的比例关系表示 为该优先权值在该综合的数值区间整体上所占的数值区间大小, 便可将各 优先权值与该总和的关系映射到数值区间大小的关系, 使得个优先权值分 别与其所占的数值区间相对应。  The sum is taken as a whole of a numerical interval, and the proportional relationship between each priority value and the interval is expressed as the numerical interval of the priority value in the overall numerical interval, and the priority values can be combined with the sum. The relationship of the relationship to the size of the numerical interval is such that the priority values correspond to the numerical intervals they occupy.
为了更具体地说明本步骤, 假设该带排序的查询结果的各记录对应的 优先权值分别为: 2、 3、 1、 4, 优先权值的总和为: 10 , 因此各优先权值 与该总和的比例关系分别为: 2/10、 3/10、 1/10、 4/10。 如图 4所示, 根据 总和(10 )确定一区间长度等于该总和(10 )的数值区间, 如图 4中的区间 5 ,该数值区间的上限数值可以是任意数值,只要求该数值区间的区间长度 等于各优先权值总和即可; 根据各优先权值于该总和的比例关系, 确定各 优先权值应在该数值区间 5上占据的区间长度, 可得, 优先权值为 2应在区 间 5上占据的数值区间的区间长度为 2 , 同理 3、 1、 4分别应在区间 5上占据 的数值区间的区间长度分别为 3、 1、 4, 根据各优先权值应占据的数值区间 的区间长度,确定各优先权值分别在区间 5上占据的数值区间,如图 4所示, 优先权值 2、 3、 1、 4分别占据的数值区间分别是: 区间 1、 区间 2、 区间 3、 区间 4。 步骤 304:在步骤 303所确定的各优先权值之总和所对应的数值区间内 , 随机产生一数值。 In order to explain this step more specifically, it is assumed that the priority values corresponding to the records of the sorted query result are: 2, 3, 1, 4, and the sum of the priority values is: 10, so each priority value and the The proportional relationship of the sum is: 2/10, 3/10, 1/10, 4/10. As shown in FIG. 4, according to the sum (10), a value interval whose interval length is equal to the sum (10) is determined, as in the interval 5 in FIG. 4, the upper limit value of the numerical interval may be an arbitrary value, and only the numerical interval is required. The length of the interval is equal to the sum of the priority values; according to the proportional relationship of the priority values in the sum, the length of the interval that each priority value should occupy in the numerical interval 5 is determined, and the priority value is 2 The length of the interval of the numerical interval occupied by the interval 5 is 2, and the lengths of the interval of the numerical interval which should be occupied by the interval 3, 1, and 4 respectively are 3, 1, and 4, respectively, and the value should be occupied according to each priority value. The interval length of the interval determines the numerical interval occupied by each priority value in the interval 5, as shown in Fig. 4, the numerical intervals occupied by the priority values 2, 3, 1, and 4 are respectively: interval 1, interval 2, Interval 3, Interval 4. Step 304: Randomly generate a value in the numerical interval corresponding to the sum of the priority values determined in step 303.
在步骤 303所确定的各优先权值之总和所对应的数值区间内 (如图 4中 的区间 5 )任意选取一数值, 设该随机数为 X。  In the numerical interval corresponding to the sum of the priority values determined in step 303 (such as interval 5 in Fig. 4), a value is arbitrarily selected, and the random number is X.
步骤 305: 将该随机数值 X落在的数值区间对应的优先权值所对应的记 录置于待显示的查询结果的排列中已确定排序位置的排序序号最大的记录 所在位置的后一位置。  Step 305: The record corresponding to the priority value corresponding to the numerical interval in which the random number X falls is placed in the next position of the position where the record having the largest sorting number of the sorting position is determined in the arrangement of the query result to be displayed.
随机数 X肯定落在图 4所示的总和(10 )作为区间长度的数值区间 5内, 具体落在哪个数值区间的几率等于各数值区间的区间长度与数值区间 5的 区间长度的比例值, 因此该随机数落在越高优先权值对应的数值区间上的 几率越大, 各记录可能被确定排在查询结果首位的单位的几率, 等于相应 记录对应的优先权值与所有符合查询条件的记录的各优先权值的总和的比 值, 最优化的执行了对各登记用户所登记的优先权值的承诺。  The random number X certainly falls within the numerical interval 5 of the interval length as shown in the sum (10) shown in FIG. 4, and the probability of which numerical interval falls in the range equal to the ratio of the length of the interval of each numerical interval to the length of the interval of the numerical interval 5. Therefore, the probability that the random number falls on the numerical interval corresponding to the higher priority value is larger, and the probability that each record may be determined in the unit ranked first in the query result is equal to the priority value corresponding to the corresponding record and all the records satisfying the query condition. The ratio of the sum of the priority values is optimally fulfilled with a commitment to the priority value registered by each registered user.
确定该随机数落在的具体数值区间(区间 1、区间 2、区间 3、或区间 4 ) , 将该随机数所在的数值区间对应的优先权值对应的记录置于待显示的查询 结果的排列中已确定排序位置的排序序号最大的记录所在位置的后一位 置。  Determining a specific numerical interval (interval 1, interval 2, interval 3, or interval 4) in which the random number falls, and placing a record corresponding to the priority value corresponding to the numerical interval in which the random number is located in the arrangement of the query result to be displayed The next position of the position where the sorting number with the largest sorting position is determined is determined.
在第一次执行步骤 305时,由于未确定任何一记录应在待显示的查询结 果的排列中的位置, 故该随机数值落在的数值区间对应的优先权值对应的 记录将作为待显示的查询结果的排列中的首位的记录; 而在确定了 i个记录 在待显示的查询结果的排列中的位置以后, 其中 i为大于等于 1的自然数, 本步骤确定的该随机数值落在的数值区间对应的优先权值对应的记录在待 显示的查询结果的排列中的排列序号为: i+l。  When the step 305 is performed for the first time, since the position of any one of the records to be displayed in the arrangement of the query results is not determined, the record corresponding to the priority value corresponding to the numerical interval in which the random number falls is to be displayed. The first record in the arrangement of the query results; and after determining the position of the i records in the arrangement of the query results to be displayed, where i is a natural number greater than or equal to 1, the numerical value determined by the random value determined in this step falls The arrangement number of the record corresponding to the priority value corresponding to the interval in the arrangement of the query result to be displayed is: i+l.
基于电话的查询业务系统的应用的特性, 话务员将把显示在查询结果 首位的记录作为推荐记录, 推荐给查询用户, 因此, 确定排列在待显示的 查询结果的首位的记录是确定结果排序的主要任务, 甚至可以只需要根据 优先权值确定该首位记录, 而对于其他的记录则不管其优先权值而将其随 机排列在该首位记录后面即可。 因此, 第一次执行至此, 即可完成了确定 排在需要显示的所有查询结果首位的记录。 但是为了使得所有的记录的排序均根据优先权值的大小, 使得优先优 先权值越高的记录排列在排列前面的几率越大, 继续执行步骤 306。 Based on the characteristics of the application of the telephone-based query service system, the operator will use the record displayed in the first place of the query result as the recommendation record and recommend it to the query user. Therefore, determining the record ranked first in the query result to be displayed is the main result of determining the result ranking. The task may even only need to determine the first record according to the priority value, and other records may be randomly arranged after the first record regardless of their priority value. Therefore, the first execution to this point, you can complete the record that determines the top position of all the query results that need to be displayed. However, in order to make the order of all the records according to the size of the priority value, the probability that the record with the higher priority value is arranged in front of the arrangement is larger, and step 306 is continued.
步骤 306: 判断待排序的查询结果的记录是否只剩一个, 如果是, 则执 行步骤 308; 否则, 执行步骤 307。  Step 306: Determine whether there is only one record of the query result to be sorted, and if yes, execute step 308; otherwise, execute step 307.
如果未确定排序的查询结果的记录不止一个, 则继续执行步骤 307 ; 否 则, 执行步骤 308。  If it is not determined that there are more than one record of the sorted query result, then step 307 is continued; otherwise, step 308 is performed.
步骤 307: 从所有查询结果中去掉步骤 305确定排序位置的记录, 并返 回步骤 304 , 继续对待排序的记录进行排序。  Step 307: Step 305 is deleted from all the query results to determine the record of the sort position, and return to step 304 to continue sorting the records to be sorted.
本步骤目的是确定未确定排序的记录的集合, 在所有查询结果中除去 已确定排序的记录便是未确定排序的记录的集合。返回步骤 304 ,继续确定 其他记录在待显示的排序中的位置。  The purpose of this step is to determine the set of records for which the sort is not determined, and the records that have been determined to be sorted out of all query results are a collection of records that are not determined to be sorted. Returning to step 304, continue to determine the location of other records in the sort to be displayed.
步骤 308: 将记录放在排序的末位。  Step 308: Place the record at the end of the sort.
将最后剩下的一个未确定排序的记录放置在排序的最末位。  Place the last remaining undetermined sorted record at the last bit of the sort.
步骤 309: 排序结束。  Step 309: Sorting ends.
至此, 完成所有查询结果的显示排序, 使得各记录的排序均根据优先 权值的大小, 保证优先权值越高的记录排列在排列前面的几率越大。  At this point, the display ordering of all the query results is completed, so that the order of each record is based on the size of the priority value, and the probability that the record with higher priority value is arranged in front of the arrangement is larger.
步骤 106: 按照确定的排序将查询结果显示给话务员。  Step 106: Display the query result to the operator according to the determined order.
将查询结果按照步骤 105确定的排序, 显示给话务员。  The query results are displayed to the operator in accordance with the order determined in step 105.
步骤 107: 话务员才艮据查询结果向查询用户推荐某查询结果。  Step 107: The attendant recommends a query result to the querying user according to the query result.
一般的, 话务员将显示在排序首位的记录作为推荐记录推荐给用户, 或者根据用户要求, 继续将排列在第 2、 3位的记录推荐给用户, 供用户选 择, 尽可能的满足用户的查询需求。  Generally, the attendant will recommend the record in the first place as the recommended record to the user, or according to the user's request, continue to recommend the records ranked in the second and third places to the user for the user to select, as far as possible to meet the user's query needs. .
值得说明的是, 由上述的技术方案的核心出发, 还可以将技术方案进 行以下的变更: 在步骤 105中的步骤 303中根据该比例关系将各优先权值与 该总和的关系映射到数值区间大小的关系时 ,将总和对应区间长度为 1的数 值区间, 根据各优先权值与该总和的比例关系, 将各优先权值分别对应到 该总和对应的数值区间内的小数值区间, 具体是: 使各优先权值在该总和 对应的数值区间内占据的区间长度分别等于各优先权值与该总和的比例 值; 其他的步骤不变。 该变更后的技术方案同样能够取得与图 3、 图 4所示 的技术方案相同的技术效果。 It should be noted that, according to the core of the above technical solution, the following modifications can be made to the technical solution: In step 303 in step 105, the relationship between each priority value and the sum is mapped to the numerical interval according to the proportional relationship. In the case of the relationship between the sizes and the values, the numerical interval corresponding to the length of the interval is 1. According to the proportional relationship between the priority values and the sum, each priority value is respectively assigned to the small value interval in the numerical interval corresponding to the sum, specifically : the length of the interval occupied by each priority value in the numerical interval corresponding to the sum is equal to the ratio of each priority value to the sum Value; the other steps are unchanged. The technical solution after the change can also obtain the same technical effects as those of the technical solutions shown in FIGS. 3 and 4.
另外, 如果将本实施例中的在步骤 105中的步骤 301更改为: 确定各优 先权值的乘积, 或者直接取一大于各优先权值总和的固定数值。 并且相应 的在后续的步骤 302至步骤 304中所有涉及总和的数值相应更改为乘积、 或 者该大于各优先权值总和的固定数值, 方法的基本流程不变, 形成一个另 一技术方案。 该更改后的技术方案同样能够完成本发明所要达到的根据优 先权值确定排列在待显示的查询结果的首位的单位, 并且使得显示的查询 结果排序的规律不可预测的目的, 只是该技术方案的只使得各记录被确定 排在查询结果首位的几率, 与该单位对应的优先权值相关, 而不是严格等 于各优先权值与该总和的比例值而已。 另外的, 该更改的技术方案相对于 图 3所示的方法而言, 在每次确定排列在待排序的查询结果首位的纪录时, 有可能选取的随机数不落在任一优先权值所对应的数值区间内, 造成确定 失败, 需要重新随机选取另一随机数继续对比确定, 直到该随机数落在某 优先权值所对应的数值区间内为止, 因此该技术方案取得的技术效果不如 图 3所示的技术方案,但是,各记录可能被确定排在查询结果首位的单位的 几率, 与该单位对应的优先权值相关, 并成正比例关系, 执行了对各登记 单位所对应的优先权值的承诺。  In addition, if the step 301 in step 105 in this embodiment is changed to: determine the product of each priority weight, or directly take a fixed value greater than the sum of the priority values. And correspondingly in the subsequent steps 302 to 304, all the values involving the sum are changed to a product, or a fixed value greater than the sum of the priority values, and the basic flow of the method is unchanged, forming a further technical solution. The modified technical solution can also complete the unit of determining the first position of the query result to be displayed according to the priority value to be achieved by the present invention, and the purpose of ordering the displayed query result is unpredictable, only the technical solution Only the probability that each record is determined to be ranked first in the query result is related to the priority value corresponding to the unit, rather than strictly equal to the ratio of each priority value to the sum. In addition, the technical solution of the change is relative to the method shown in FIG. 3, and each time the record ranked first in the query result to be sorted is determined, it is possible that the selected random number does not fall under any priority value. In the numerical interval, the determination fails, and another random number needs to be randomly selected to continue the comparison determination until the random number falls within the numerical interval corresponding to a certain priority value, so the technical effect obtained by the technical solution is not as shown in FIG. The technical solution shown, however, the probability that each record may be determined by the unit ranked first in the query result is related to the priority value corresponding to the unit, and is in a proportional relationship, and the priority value corresponding to each registration unit is executed. committed to.
实施例 2:  Example 2:
本实施例提供的另一种根据优先权值确定查询结果排序方法, 如图 5 示, 该方法包括:  Another method for determining the query result according to the priority value is provided in this embodiment. As shown in FIG. 5, the method includes:
步骤 501:确定查询结果中未确定排序位置的各记录对应的各优先权值 的总和 SumXn。  Step 501: Determine a sum SumXn of each priority value corresponding to each record of the undetermined sort position in the query result.
步骤 502:将查询结果中的未排序的记录按照对应的优先权值由大到小 进行排序, 并确定排序后各记录的序号。  Step 502: Sort the unsorted records in the query result according to the corresponding priority values from large to small, and determine the sequence numbers of the records after the sorting.
设符合查询条件的记录有 n条,按照优先权值的大小,各记录对应的序 号分别是: 1、 2、 3...n。  There are n records that meet the query conditions. According to the size of the priority value, the corresponding numbers of the records are: 1, 2, 3...n.
步骤 503 :针对各记录,计算每序号对应的优先权值与所有小于该序号 的所有序号对应的优先权值之和 SumXi, 其中 i为 1、 2、 3... n中的任意。 设记录序号分别是: 1、 2、 3...n的记录对应的优先权值分别是: XI、 X2、 X3— .Xn, ^ Xl>=X2>=X3>=...Xn„ Step 503: For each record, calculate a sum SumXi of the priority value corresponding to each serial number and all the priority values corresponding to all the serial numbers smaller than the serial number, where i is any of 1, 2, 3...n. Let the record numbers be: 1, 2, 3...n The corresponding priority values are: XI, X2, X3—.Xn, ^ Xl>=X2>=X3>=...Xn„
各序号对应的优先权值与所有小于该序号的所有序号对应的优先权值 之和可以表示为: SumXi= Xl+X2+...+Xi, 其中 i属于 {1、 2、 3...n}, 即对 于序号为 1的记录, 其对应的 SumXl=Xl ; 对于序号为 2的记录, 其对应的 SumX2=Xl+X2; 对于序号为 3的记录, 其对应的 SumX2=Xl+X2+X3 ,依此 类推。  The sum of the priority values corresponding to the serial numbers and all the priority values corresponding to all the serial numbers smaller than the serial number can be expressed as: SumXi= Xl+X2+...+Xi, where i belongs to {1, 2, 3...n }, that is, for the record with sequence number 1, the corresponding SumXl=Xl; for the record with sequence number 2, the corresponding SumX2=Xl+X2; for the record with sequence number 3, the corresponding SumX2=Xl+X2+X3 ,So on and so forth.
步骤 504: 取 0到 1之间的随机数 RanX , 计算 RanX与 SumXn的乘积 RanX*SumXn„  Step 504: Take a random number RanX between 0 and 1 and calculate the product of RanX and SumXn RanX*SumXn„
步骤 505: 判断 RanX*SumXn与各 SumXi的大小关系, 取大于 Step 505: Determine the size relationship between RanX*SumXn and each SumXi, which is greater than
RanX*SumXn的 SumXi的集合中最小的数值代表的记录, 将该记录在待显 示的查询结果的排列中的位置, 确定为已确定排序位置的排序序号最大的 记录所在位置的后一位置。 The record represented by the smallest value in the set of SumXi of RanX*SumXn, the position of the record in the arrangement of the query result to be displayed is determined as the latter position of the record where the sorting number of the sorting position is the largest.
与步骤 305同理, 在第一次执行步骤 505时, 由于未确定任何一记录应 在待显示的查询结果的排列中的位置, 故该随机数值落在的数值区间对应 的优先权值对应的记录将作为待显示的查询结果的排列中的首位的记录; 而在确定了 i个记录在待显示的查询结果的排列中的位置以后,其中 i为大于 等于 1的自然数,本步骤确定的该随机数值落在的数值区间对应的优先权值 对应的记录在待显示的查询结果的排列中的排列序号为: i+l。  In the same manner as step 305, when the step 505 is performed for the first time, since the position of any record should be determined in the arrangement of the query results to be displayed, the priority value corresponding to the numerical range in which the random value falls corresponds to Recording the record as the first bit in the arrangement of the query results to be displayed; and after determining the position of the i records in the arrangement of the query results to be displayed, where i is a natural number greater than or equal to 1, the step determined in this step The sequence number of the record corresponding to the priority value corresponding to the numerical interval in which the random number falls within the arrangement of the query result to be displayed is: i+l.
由于优先权值越高对应的 SumXi越大, 大于 RanX*SumXn的几率越大, 因此被确定为置于待排序的查询结果的排序的首位记录的几率也越大, 保 证了根据优先权值排序。 而由于随机数 RanX的不确定性, 因此大于 RanX*SumXn的 SumXi的集合中最小的数值代表的记录在用户看来也具有 不确定性, 用户无法预测显示的查询结果的排序规律, 从而避免了由于恶 意用户预测查询结果排序而进行恶意查询导致的显失公平的问题。  Since the higher the priority value is, the larger the SumXi is, the larger the probability is greater than RanX*SumXn, so the probability of being determined as the first record of the sorted result of the query result to be sorted is larger, and the order is sorted according to the priority value. . Due to the uncertainty of the random number RanX, the record represented by the smallest value in the set of SumXi larger than RanX*SumXn is also uncertain in the user's view, and the user cannot predict the ordering of the displayed query results, thereby avoiding the The problem of unfairness caused by malicious queries due to malicious users predicting the ranking of query results.
步骤 506: 判断待排序的查询结果的记录是否只剩一个, 如果是, 则执 行步骤 508; 否则, 执行步骤 507。  Step 506: Determine whether there is only one record of the query result to be sorted, and if yes, execute step 508; otherwise, execute step 507.
步骤 507: 从所有查询结果中去掉步骤 505确定排序位置的记录, 并返 回步骤 501 , 继续对待排序的记录进行排序。 步骤 508: 将记录放在排序的末位。 Step 507: Step 505 is deleted from all the query results to determine the record of the sort position, and return to step 501 to continue sorting the records to be sorted. Step 508: Place the record at the end of the sort.
步骤 509: 排序结束。  Step 509: Sorting ends.
实施例 3:  Example 3:
图 6所示为本实施例提供的信息查询系统结构示意图,如图示,本系统 包括:  FIG. 6 is a schematic structural diagram of an information query system according to the embodiment. As shown in the figure, the system includes:
信息库存储单元 601 , 用于存储信息数据库。  The information storage unit 601 is configured to store an information database.
信息库存储单元 601存储的信息可以釆用图 2所示的数据组织结构, 当存储的信息为单位信息时, 存储的信息包括: 单位名称、 所述单位的联 系方式、 所述单位的业务类别、 根据业务类别登记的关键字以及相应的优 先权值信息。  The information stored in the information storage unit 601 may use the data organization structure shown in FIG. 2. When the stored information is unit information, the stored information includes: a unit name, a contact information of the unit, and a service category of the unit. , keywords registered according to the business category and corresponding priority value information.
查询单元 602, 用于根据用户的查询条件, 查询信息库存储单元 601 存储的信息数据库,确定符合查询条件的单位、以及所述单位对应的记录。  The query unit 602 is configured to query the information database stored by the information storage unit 601 according to the query condition of the user, determine the unit that meets the query condition, and the record corresponding to the unit.
一般的查询条件由业务类别信息和关键字组成, 查询单元 602使用业 务类别信息和关键字, 在信息库存储单元 601存储的信息进行字段匹配, 假设该信息釆用图 2所示的数据组织结构, 那么, 具体是在图 2所示的各 单位登记的关键字 232的字段中匹配关键字 "XXXX", 在业务类别 231的 字段中匹配业务类别 "业务 1"。根据查询条件进行集合"与,,运算,单位优先 数据中匹配得到了满足关键字、 业务类别要求的所有记录。  The general query condition is composed of the service category information and the keyword, and the query unit 602 uses the service category information and the keyword to perform field matching on the information stored in the information library storage unit 601, assuming that the information uses the data organization structure shown in FIG. Then, specifically, the keyword "XXXX" is matched in the field of the keyword 232 registered in each unit shown in FIG. 2, and the service category "Service 1" is matched in the field of the service category 231. According to the query conditions, the collection "and,, operation, unit priority data matching all the records that meet the requirements of the keyword and business category.
如果输入的任务类别信息为空, 则表示在所有业务类别中进行查询, 查询单元 602不需要对业务类别的信息进行适配。  If the input task category information is empty, it means that the query is performed in all service categories, and the query unit 602 does not need to adapt the information of the service category.
优先权值确定单元 603 , 用于确定查询单元 602所确定的记录所对应 的优先权值。  The priority value determining unit 603 is configured to determine a priority value corresponding to the record determined by the query unit 602.
排序单元 604, 用于根据优先权值确定单元 603确定的记录对应的优 先权值, 从对查询单元 602确定的记录中, 确定排列在待显示的查询结果 首位的记录, 并确定所述查询单元确定的其他记录在待显示的查询结果中 的排序位置。 以使显示终端根据排序单元 604确定的排序, 将查询结果显 示给话务员, 由话务员才艮据显示的查询结果向查询用户推荐信息。  The sorting unit 604 is configured to determine, according to the priority value corresponding to the record determined by the priority value determining unit 603, from the record determined by the query unit 602, the record ranked first in the query result to be displayed, and determine the query unit The sorted position of the other records determined in the query results to be displayed. In order to cause the display terminal to display the query result to the operator according to the ranking determined by the sorting unit 604, the operator can recommend the information to the querying user according to the displayed query result.
排序单元 604包括:  The sorting unit 604 includes:
第一计算单元 6041 , 用于获取优先权值确定单元 603对未确定在显示 的查询结果中的排序位置的各记录所确定的各优先权值, 求优先权值的总 和。 The first calculating unit 6041 is configured to obtain the priority value determining unit 603 for the undetermined display The priority values determined by each record of the sort position in the query result are the sum of the priority values.
优先权值与区间关系确定单元 6042 , 用于确定区间长度等于第一计算 单元 6041获取的数值区间, 建立所述第一计算单元 6041获取的数值与数 值区间的映射关系, 并且, 根据优先权值确定单元 603确定的各优先权值 与第一计算单元 6041获取的数值的比例关系,确定各优先权值在区间长度 等于第一计算单元 6041获取的数值区间内, 占据的数值区间的区间长度, 建立各优先权值与数值区间的映射关系。 各映射关系获取的基本原理参见 实施例 1中的步骤 303中的描述, 在此不作赘述。  The priority value and interval relationship determining unit 6042 is configured to determine that the interval length is equal to the value interval acquired by the first calculating unit 6041, and establish a mapping relationship between the value obtained by the first calculating unit 6041 and the numerical interval, and according to the priority value. Determining, by the determining unit 603, the proportional relationship between the priority values determined by the first calculating unit 6041 and determining the length of each of the priority values in the numerical interval obtained by the first calculating unit 6041. Establish a mapping relationship between each priority value and a numerical interval. For the basic principle of the mapping relationship, refer to the description in step 303 in Embodiment 1, and details are not described herein.
随机数选取单元 6043 , 用于在优先权值与区间关系确定单元 6042确 定的区间长度等于第一计算单元 6041 获取的数值区间内, 任意选取一数 值。  The random number selection unit 6043 is configured to arbitrarily select a value within the numerical interval obtained by the priority value and interval relationship determining unit 6042 to be equal to the value range obtained by the first calculating unit 6041.
第一排序顺序确定单元 6044, 用于根据随机数选取单元 6043所选取的 数值所在的数值区间 (该随机数属于各优先权值对应的数值区间的几率, 等于该优先权值对应单位排在查询结果的首位的几率) , 对照优先权值与 在的数值区间对应的优先权值, 将该优先权值对应的记录置于待显示的查 询结果的排列中已确定排序位置的排序序号最大的记录所在位置的后一位 置。  The first sorting order determining unit 6044 is configured to select, according to the numerical interval in which the value selected by the random number selecting unit 6043 is located, the probability that the random number belongs to the numerical interval corresponding to each priority value, and the corresponding unit of the priority value is ranked in the query. The probability of the first position of the result), the priority value corresponding to the priority value and the value range corresponding to the value range, and the record corresponding to the priority value is placed in the record of the query result to be displayed, and the record with the largest sort number of the sorted position is determined. The next position in the location.
第一排序顺序确定单元 6044的具体工作原理参见实施例 1中的步骤 305 中的描述。  The specific working principle of the first sort order determining unit 6044 is as described in step 305 in Embodiment 1.
由上可见, 本实施例提供的信息查询系统既实现了根据优先权值确定 排列在查询结果首位的记录, 使得查询结果的排序不可预测, 解决了恶意 用户预测查询结果排序而进行恶意查询导致的显失公平的问题, 还使得各 记录可能被确定排在查询结果首位的单位的几率, 等于相应记录对应的优 先权值与所有符合查询条件的记录的各优先权值的总和的比值。 并且, 本 发明的信息查询系统使得优先权值越高的记录被排列在现实的查询结果中 的前面的几率越大,最优化的实现对各登记单位所对应的优先权值的承诺。  It can be seen that the information query system provided in this embodiment not only realizes the record ranked first in the query result according to the priority value, but makes the order of the query result unpredictable, and solves the problem that the malicious user predicts the query result and performs the malicious query. The problem of unfairness also makes the probability that each record may be determined by the unit ranked first in the query result, which is equal to the ratio of the priority value corresponding to the corresponding record to the sum of the priority values of all the records satisfying the query condition. Further, the information inquiry system of the present invention makes the probability that the record having the higher priority value is arranged in the previous query result is larger, and the commitment of the priority value corresponding to each registration unit is optimized.
实施例 4: 图 7为本实施例的信息查询系统的结构示意图, 如图 7示, 本实施例 所提供的信息查询系统的基本结构与实施例 3中的相同, 所不同的是本实 施例系统的排序单元 605中用于获取优先权值确定单元 603确定的各优先 权值的乘积的第二计算单元 6045 ,替换了实施例 2中的排序单元 605中的 第一计算单元 6041。 Example 4: FIG. 7 is a schematic structural diagram of an information inquiry system according to an embodiment of the present invention. As shown in FIG. 7, the basic structure of the information inquiry system provided in this embodiment is the same as that in Embodiment 3, except that the ranking unit of the system of this embodiment is different. The second calculating unit 6045 for obtaining the product of the respective priority values determined by the priority value determining unit 603 in 605 replaces the first calculating unit 6041 in the sorting unit 605 in the second embodiment.
本实施例提供的信息查询系统仍然能够完成本发明目的, 使得查询结 果的排序的首位不可预测, 解决了恶意用户预测查询结果排序而进行恶意 查询导致的显失公平的问题。  The information query system provided in this embodiment can still accomplish the purpose of the present invention, so that the first place of the query result is unpredictable, and solves the problem that the malicious user predicts the query result and performs the malicious query.
与实施例 3所不同的是, 由于第二计算单元 6045的替换,各记录可能被 第一排序顺序确定单元 6044确定排在查询结果首位的几率, 与该单位对应 的优先权值相关, 而不是严格等于各优先权值与该总和的比例值而已。  Different from Embodiment 3, due to the replacement of the second calculating unit 6045, each record may be determined by the first sorting order determining unit 6044 to determine the probability of ranking in the first place of the query result, which is related to the priority value corresponding to the unit, instead of Strictly equal to the ratio of each priority value to the sum.
另外的, 本实施例的信息查询系统中的随机数选取单元 6043选取的随 机数有可能不落在任一优先权值所对应的数值区间内, 造成第一排序顺序 确定单元 6044确定首位记录失败, 而需要由随机数选取单元 6043重新生成 另一随机数, 继续由第一排序顺序确定单元 6044对比确定, 直到该随机数 落在某优先权值所对应的数值区间内为止, 因此本实施例提供的信息查询 系统的运行效率略差于实施例 3所提供的信息查询系统。  In addition, the random number selected by the random number selection unit 6043 in the information query system of the embodiment may not fall within the numerical interval corresponding to any priority value, causing the first sort order determining unit 6044 to determine that the first record fails. In addition, the random number selection unit 6043 needs to regenerate another random number, and continues to be determined by the first sort order determining unit 6044 until the random number falls within a numerical interval corresponding to a certain priority value, so the present embodiment provides The operation efficiency of the information inquiry system is slightly worse than that of the information inquiry system provided in Embodiment 3.
实施例 5:  Example 5
图 8所示为本实施例提供的信息查询系统结构示意图,如图示,本系统 包括:  FIG. 8 is a schematic structural diagram of an information inquiry system according to the embodiment. As shown in the figure, the system includes:
本实施例与实施例 3、 4所不同的是, 本实施例的排序单元 800包括: 预排序单元 801 :用于对未确定在显示的查询结果中的排序位置的各记 录,按照对应的优先权值由大到小进行排序, 并确定排序后各记录的序号。  The difference between the embodiment and the embodiments 3 and 4 is that the sorting unit 800 of the embodiment includes: a pre-sorting unit 801: for each record that does not determine the sorting position in the displayed query result, according to the corresponding priority The weights are sorted from large to small, and the sequence numbers of the records after sorting are determined.
设符合查询条件的未确定排序位置的记录有 n条, 按照优先权值的大 小, 各记录对应的序号分别是: 1、 2、 3 ...n。  There are n records of undetermined sorting positions that meet the query conditions. According to the size of the priority value, the corresponding serial numbers of each record are: 1, 2, 3 ... n.
第一求和单元 802 , 用于获取未确定在显示的查询结果中的排序位置 的各优先权值的总和, 设该总和为 SumXn。  The first summation unit 802 is configured to obtain a sum of priority values of the ranking positions that are not determined in the displayed query result, and set the sum to SumXn.
随机数产生单元 803 , 用于产生一小于第一求和单元 802所获取的总 和的随机数。 第二求和单元 804 , 用于根据预排序确定单元 801确定的排序以及序 号, 确定各记录对应的优先权值与记录序号小于所述记录序号的记录对应 的各优先权值之和。 The random number generating unit 803 is configured to generate a random number smaller than the sum acquired by the first summation unit 802. The second summation unit 804 is configured to determine, according to the order and the sequence number determined by the pre-sorting determining unit 801, the sum of the priority values corresponding to the records and the priority values corresponding to the records whose record numbers are smaller than the record number.
第二排序顺序确定单元 805 ,用于在第二求和单元 804所确定的数值中, 选取大于随机数产生单元 803获取的随机数的数值集合,并从所述集合中选 取最小的数值代表的记录, 将所述记录置于待显示的查询结果的排列中已 确定排序位置的排序序号最大的记录所在位置的后一位置。  The second sorting order determining unit 805 is configured to select, in the value determined by the second summing unit 804, a set of values larger than the random number obtained by the random number generating unit 803, and select a minimum value representative from the set. Recording, placing the record in the arrangement of the query result to be displayed in the latter position of the position of the record having the largest sorting number of the sorted position.
第一排序顺序确定单元 805的具体工作原理参见实施例 2中的步骤 505 中的描述。  The specific working principle of the first sort order determining unit 805 is as described in step 505 in Embodiment 2.
由于优先权值越高对应的 SumXi越大, 大于 RanX*SumXn的几率越大, 因此被第二排序顺序确定单元 805确定为置于待排序的查询结果的排序的 首位记录的几率也越大, 保证了根据优先权值排序。 而由于随机数 RanX的 不确定性, 因此大于 RanX*SumXn的 SumXi的集合中最小的数值代表的记 录在用户看来也具有不确定性,用户无法预测显示的查询结果的排序规律, 从而避免了由于恶意用户预测查询结果排序而进行恶意查询导致的显失公 平的问题,并且,本实施例提供的信息查询系统与实施例 3中所述的系统一 样, 同样使得优先权值越高的记录被排列在现实的查询结果中的前面的几 率越大, 最优化的实现对各登记单位所登记的优先权值的承诺。  Since the higher the priority value is, the larger the SumXi is, the larger the probability is greater than RanX*SumXn, so the probability that the second sort order determining unit 805 determines that the first record of the ranking of the query result to be sorted is placed is larger. It is guaranteed to be sorted according to the priority value. Due to the uncertainty of the random number RanX, the record represented by the smallest value in the set of SumXi larger than RanX*SumXn is also uncertain in the user's view, and the user cannot predict the ordering of the displayed query results, thereby avoiding the The problem of the unfairness caused by the malicious query by the malicious user predicting the ranking of the query results, and the information query system provided in this embodiment is the same as the system described in Embodiment 3, and the record with the higher priority value is also The greater the probability of being ranked in the actual query results, the more optimal the commitment to the priority values registered by each registration unit.
显然, 本领域的技术人员应该明白, 上述本发明实施例中的各单元或 各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置 可执行的程序代码来实现, 从而, 可以将它们存储在存储装置中由计算装 置来执行, 或者将它们分别制作成各个集成电路模块, 或者将它们中的多 个单元或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。  Obviously, those skilled in the art should understand that each unit or step in the above embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple of these units or steps are made in a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上对本发明实施例所提供的一种查询结果排序方法以及信息查询系 行了阐述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心思 想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施 方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为 对本发明的限制。 The method for sorting query results and the information query system provided by the embodiments of the present invention are described above. The description of the above embodiments is only for helping to understand the method and core idea of the present invention; meanwhile, it is for those skilled in the art. According to the idea of the present invention, in the specific implementation There is a change in the scope of the invention and the scope of the application, and the contents of the specification are not to be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种查询结果排序方法, 其特征在于, 包括: A method for sorting query results, which is characterized by comprising:
根据查询条件查询信息数据库, 确定符合查询条件的记录;  Query the information database according to the query conditions to determine the records that meet the query conditions;
根据所确定的记录对应的优先权值, 随机确定排列在待显示的查询结 果首位的记录;  Determining, according to the determined priority value corresponding to the record, a record ranked first in the query result to be displayed;
并确定其他符合查询条件的记录在待显示的查询结果中的排序位置。 And determine the sort position of other records that meet the query criteria in the query results to be displayed.
2、 根据权利要求 1 所述的排序方法, 其特征在于, 根据所述优先权 值, 随机确定排列在待显示的查询结果首位的记录, 具体包括: The method according to claim 1, wherein the recording of the first position of the query result to be displayed is randomly determined according to the priority value, and specifically includes:
确定符合查询条件的各记录对应的优先权值;  Determining the priority value corresponding to each record that meets the query condition;
获取所述各优先权值的总和,创建区间长度等于所述总和的数值区间, 建立所述总和与数值区间的映射关系;  Obtaining a sum of the priority values, creating a numerical interval whose interval length is equal to the sum, and establishing a mapping relationship between the sum and the numerical interval;
根据所述各优先权值与所述总和的比例关系, 确定各优先权值在所述 区间长度等于所述总和的数值区间内占据的区间长度以及数值区间, 建立 各优先权值与数值区间的映射关系;  Determining, according to the proportional relationship between the priority values and the sum, the length of the interval occupied by each priority value in the numerical interval in which the interval length is equal to the sum, and the numerical interval, establishing each priority value and the numerical interval Mapping relations;
在所述区间长度等于所述总和的数值区间内, 任意选取一数值; 确定所选取的数值所属的数值区间对应的优先权值, 将所述优先权值 对应的记录置于待显示的查询结果首位。  Setting a value in the numerical interval in which the interval length is equal to the sum; determining a priority value corresponding to the numerical interval to which the selected value belongs, and placing the record corresponding to the priority value in the query result to be displayed first place.
3、 根据权利要求 1 所述的排序方法, 其特征在于, 根据所述优先权 值, 随机确定排列在待显示的查询结果首位的记录, 具体包括:  The sorting method according to claim 1, wherein the record of the first position of the query result to be displayed is randomly determined according to the priority value, and specifically includes:
确定符合查询条件的各记录对应的优先权值;  Determining the priority value corresponding to each record that meets the query condition;
获取所述各优先权值的乘积,创建区间长度等于所述乘积的数值区间 , 建立所述乘积与数值区间的映射关系;  Obtaining a product of the priority values, creating a numerical interval whose interval length is equal to the product, and establishing a mapping relationship between the product and the numerical interval;
根据所述各优先权值与所述乘积的比例关系, 确定各优先权值在所述 各优先权值与数值区间的映射关系;  Determining, according to the proportional relationship between the priority values and the product, a mapping relationship between each priority value and the value interval;
在所述区间长度等于所述乘积的数值区间内, 任意选取一数值; 确定所选取的数值所属的数值区间对应的优先权值, 将所述优先权值 对应的记录置于待显示的查询结果首位。  In the numerical interval in which the length of the interval is equal to the product, a value is arbitrarily selected; a priority value corresponding to the numerical interval to which the selected value belongs is determined, and the record corresponding to the priority value is placed in the query result to be displayed. first place.
4、根据权利要求 1所述的排序方法,其特征在于,根据所述优先权值, 随机确定排列在待显示的查询结果首位的记录, 包括: The sorting method according to claim 1, wherein, according to the priority value, Randomly determine the records ranked in the first place of the query result to be displayed, including:
确定符合查询条件的各记录对应的优先权值, 并根据按照对应的优先 权值由大到小对各记录排序, 并确定排序后各记录的序号;  Determining a priority value corresponding to each record that meets the query condition, and sorting the records according to the corresponding priority value from large to small, and determining the sequence number of each record after sorting;
确定所述各优先权值的总和, 并选取一小于所述总和的随机数; 确定各记录对应的优先权值与记录序号小于所述记录序号的记录对应 的各优先权值之和;  Determining a sum of the priority values, and selecting a random number smaller than the sum; determining a sum of a priority value corresponding to each record and a priority value corresponding to a record whose record number is smaller than the record number;
在所确定的记录序号小于所述记录序号的记录对应的各优先权值之和 数值中, 选取大于所述小于各优先权值的总和的随机数的数值组成集合, 并从所述集合中选取最小的数值代表的记录, 将所述记录置于待显示的查 询结果首位。  And selecting, in the sum of the priority values corresponding to the record whose record number is smaller than the record number, selecting a set of values larger than the random number less than the sum of the priority values, and selecting from the set The smallest value represents the record, placing the record in the first place of the query result to be displayed.
5、根据权利要求 1所述的排序方法, 其特征是在于, 所述信息数据库 包括:  The sorting method according to claim 1, wherein the information database comprises:
单位名称、 单位的联系方式、 业务类别信息或所述单位登记的关键字 信息;  Unit name, contact information of the unit, business category information or keyword information registered by the unit;
所述根据查询条件查询信息数据库, 确定符合查询条件的各记录具体 疋:  The querying the information database according to the query condition to determine the specific records that meet the query conditions:
根据关键字、 业务类别查询信息数据库;  Query information database according to keywords and business categories;
将业务类别、 关键字均匹配的记录作为符合查询条件的记录。  A record that matches both the business category and the keyword is used as a record that meets the query criteria.
6、 一种信息查询系统, 其特征在于, 包括:  6. An information query system, comprising:
信息库存储单元, 用于存储信息数据库;  An information storage unit for storing an information database;
查询单元, 用于根据用户查询条件, 查询所述信息库存储单元存储的 信息数据库, 确定符合查询条件的记录;  a query unit, configured to query an information database stored by the information storage unit according to a user query condition, and determine a record that meets the query condition;
优先权值确定单元, 用于确定所述查询单元所确定的记录对应的优先 权值;  a priority value determining unit, configured to determine a priority value corresponding to the record determined by the query unit;
排序单元, 用于根据所述优先权值确定单元确定的记录对应的优先权 值, 随机确定排列在待显示的查询结果首位的记录; 并确定所述查询单元 确定的其他记录在待显示的查询结果中的排序位置。  a sorting unit, configured to randomly determine a record ranked first in the query result to be displayed according to the priority value corresponding to the record determined by the priority value determining unit; and determine another query determined by the query unit in the query to be displayed The sort position in the result.
7、根据权利要求 6所述的信息查询系统, 其特征在于, 所述信息库存 储单元存储的信息包括: 单位名称、 单位的联系方式、 单位的业务类别、 所述单位为所述业务 类别所登记的关键字以及优先权值信息。 The information query system according to claim 6, wherein the information stored by the information storage unit comprises: Unit name, contact information of the unit, business type of the unit, the unit is the keyword registered in the service category, and the priority value information.
8、根据权利要求 6或 7所述的信息查询系统, 其特征在于, 所述排序 单元包括:  The information query system according to claim 6 or 7, wherein the sorting unit comprises:
计算单元, 用于获取所述优先权值确定单元对未确定在显示的查询结 果中的排序位置的各记录所对应的各优先权值, 求优先权值的总和;  a calculating unit, configured to obtain, by the priority value determining unit, a priority value of each priority value corresponding to each record that does not determine a sorting position in the displayed query result, and obtain a sum of priority values;
优先权值与区间关系确定单元, 用于确定区间长度等于所述计算单元 获取的总和的数值区间, 建立所述计算单元获取的总和与数值区间的映射 比例关系, 确定各优先权值在所述区间长度等于所述总和的数值区间内占 据的数值区间, 建立各优先权值与数值区间的映射关系;  a priority value and interval relationship determining unit, configured to determine a value interval whose interval length is equal to a sum obtained by the calculating unit, establish a mapping ratio relationship between a sum obtained by the calculating unit and a numerical interval, and determine each priority value in the The interval length is equal to the numerical interval occupied in the numerical interval of the sum, and the mapping relationship between each priority value and the numerical interval is established;
随机数选取单元, 用于在区间长度等于所述计算单元获取的总和的数 值区间内, 任意选取一数值;  a random number selecting unit, configured to arbitrarily select a value within a range of values in which the interval length is equal to the sum obtained by the calculating unit;
第一排序顺序确定单元, 用于将所述随机数选取单元所选取的数值所 属的数值区间对应的优先权值对应的记录在待显示的查询结果的排列位 置, 确定为已确定排序位置的排序序号最大的记录所在位置的后一位置。  a first sorting order determining unit, configured to record, in the arrangement position of the query result to be displayed, corresponding to the priority value corresponding to the numerical interval to which the value selected by the random number selecting unit belongs, determine the sorting of the determined sorting position The last position of the location where the largest record is located.
9、根据权利要求 6或 7所述的信息查询系统, 其特征在于, 所述排序 单元包括: 优先权值与区间关系确定单元, 用于确定区间长度等于所述计算单元 获取的乘积的数值区间, 建立所述计算单元获取的乘积与数值区间的映射 比例关系, 确定各优先权值在所述区间长度等于所述乘积的数值区间内占 据的数值区间, 建立各优先权值与数值区间的映射关系;  The information query system according to claim 6 or 7, wherein the sorting unit comprises: a priority value and an interval relationship determining unit, configured to determine a value interval in which the interval length is equal to the product obtained by the calculating unit Establishing a mapping relationship between the product and the numerical interval obtained by the calculating unit, determining a numerical interval occupied by each priority value in a numerical interval in which the interval length is equal to the product, and establishing a mapping between each priority value and a numerical interval Relationship
随机数选取单元, 用于在区间长度等于所述计算单元获取的乘积的数 值区间内, 任意选取一数值;  a random number selecting unit, configured to arbitrarily select a value within a range of values in which the interval length is equal to the product obtained by the calculating unit;
第一排序顺序确定单元, 用于将所述随机数选取单元所选取的数值所 属的数值区间对应的优先权值对应的记录在待显示的查询结果的排列位 置, 确定为已确定排序位置的排序序号最大的记录所在位置的后一位置。 a first sorting order determining unit, configured to record, in the arrangement position of the query result to be displayed, corresponding to the priority value corresponding to the numerical interval to which the value selected by the random number selecting unit belongs, determine the sorting of the determined sorting position The last position of the location where the largest record is located.
10、 根据权利要求 6或 7所述的信息查询系统, 其特征在于, 所述排 序单元包括: The information query system according to claim 6 or 7, wherein the ordering unit comprises:
预排序单元,用于对未确定在显示的查询结果中的排序位置的各记录, 按照各记录对应的优先权值由大到小进行排序, 并确定排序后各记录的序 号;  a pre-sorting unit for sorting the records of the sorting positions in the displayed query results, sorting the priority values corresponding to the records from large to small, and determining the serial numbers of the records after sorting;
第一求和单元, 用于获取未确定在显示的查询结果中的排序位置的各 优先权值的总和;  a first summation unit, configured to obtain a sum of priority values of the sort position that are not determined in the displayed query result;
随机数产生单元, 用于产生一小于所述第一求和单元获取的总和的随 机数; 确定各记录对应的优先权值与记录序号小于所述记录序号的记录对应的各 优先权值之和;  a random number generating unit, configured to generate a random number smaller than a sum obtained by the first summation unit; determining a sum of a priority value corresponding to each record and a priority value corresponding to a record whose recording sequence number is smaller than the record serial number ;
第二排序顺序确定单元,用于将在所述第二求和单元所确定的数值中, 大于所述随机数产生单元获取的随机数的数值集合中最小的数值代表的记 录在待显示的查询结果的排列位置, 确定为已确定排序位置的排序序号最 大的记录所在位置的后一位置。  a second sorting order determining unit, configured to record, in the value determined by the second summation unit, a record smaller than a minimum value in the set of values of the random number obtained by the random number generating unit in the query to be displayed The arrangement position of the result is determined as the latter position of the position where the record with the largest sort number of the sort position has been determined.
PCT/CN2007/070328 2006-11-30 2007-07-25 A method for sorting the search results and an information search system WO2008080309A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
MX2009005662A MX2009005662A (en) 2006-11-30 2007-07-25 A method for sorting the search results and an information search system.
BRPI0719366-1A BRPI0719366A2 (en) 2006-11-30 2007-07-25 RESEARCH RESULT CLASSIFICATION METHOD AND INFORMATION RESEARCH SYSTEM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610160844.8 2006-11-30
CNA2006101608448A CN1964403A (en) 2006-11-30 2006-11-30 Sequencing method for poll result and information inquiring system

Publications (1)

Publication Number Publication Date
WO2008080309A1 true WO2008080309A1 (en) 2008-07-10

Family

ID=38083271

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070328 WO2008080309A1 (en) 2006-11-30 2007-07-25 A method for sorting the search results and an information search system

Country Status (4)

Country Link
CN (1) CN1964403A (en)
BR (1) BRPI0719366A2 (en)
MX (1) MX2009005662A (en)
WO (1) WO2008080309A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046305A (en) * 2019-12-03 2020-04-21 深圳证券交易所 Data processing method, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208474A1 (en) * 1999-05-28 2003-11-06 Goto.Com, Inc. System and method for influencing a position on a search result list generated by a computer network search engine
US20040267735A1 (en) * 2003-05-21 2004-12-30 Melham Michael Anthony Method of equalizing opportunity for exposure in search results and system for same
KR20060012066A (en) * 2004-08-02 2006-02-07 이팔진 A method of advertisement using aging and fair augmentation(afa)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208474A1 (en) * 1999-05-28 2003-11-06 Goto.Com, Inc. System and method for influencing a position on a search result list generated by a computer network search engine
US20040267735A1 (en) * 2003-05-21 2004-12-30 Melham Michael Anthony Method of equalizing opportunity for exposure in search results and system for same
KR20060012066A (en) * 2004-08-02 2006-02-07 이팔진 A method of advertisement using aging and fair augmentation(afa)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046305A (en) * 2019-12-03 2020-04-21 深圳证券交易所 Data processing method, server and storage medium
CN111046305B (en) * 2019-12-03 2023-09-26 深圳证券交易所 Data processing method, server and storage medium

Also Published As

Publication number Publication date
BRPI0719366A2 (en) 2014-02-11
CN1964403A (en) 2007-05-16
MX2009005662A (en) 2009-12-15

Similar Documents

Publication Publication Date Title
CN105701216B (en) A kind of information-pushing method and device
US6745177B2 (en) Method and system for retrieving data from multiple data sources using a search routing database
US8209317B2 (en) Method and apparatus for reconstructing a search query
CN102906736B (en) System and method and the synonym group organizer that wherein uses for matching entities
CN107728874A (en) The method, apparatus and equipment of user prompt operation are provided
US20110145234A1 (en) Search method and system
CN110489447A (en) Data query method, apparatus, computer equipment and storage medium
KR20080028574A (en) Integrated search service system and method
WO2008116366A1 (en) Method of displaying related keyword and system as the same
US20110113201A1 (en) Garbage collection in a cache with reduced complexity
JP5668007B2 (en) Interest analysis method, apparatus and program
CN110012364A (en) Main broadcaster's recommended method, device and storage medium
CN1869977A (en) Retrieval system and method
CN109885729B (en) Method, device and system for displaying data
CN110909266B (en) Deep paging method and device and server
Balke et al. On real-time top k querying for mobile services
WO2008080309A1 (en) A method for sorting the search results and an information search system
JP3730878B2 (en) Information search distribution system, information search method, and program
CN112988907B (en) Information adjusting method, system, electronic equipment and storage medium
JP2010004229A (en) Telephone directory management system, telephone directory management method, and telephone directory management server
CN111178965B (en) Resource release method and server
JP2002157270A (en) System and method for distributing interesting article
CN113326258A (en) Hash connection method, device and system, electronic equipment and computer storage medium
Ahmed et al. Selection of web services by using diversified service rank
CN111815276A (en) Enterprise information processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07764255

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: MX/A/2009/005662

Country of ref document: MX

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07764255

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: PI0719366

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20090529