CN107977405B - Data sorting method, data sorting device, electronic equipment and readable storage medium - Google Patents

Data sorting method, data sorting device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN107977405B
CN107977405B CN201711137769.8A CN201711137769A CN107977405B CN 107977405 B CN107977405 B CN 107977405B CN 201711137769 A CN201711137769 A CN 201711137769A CN 107977405 B CN107977405 B CN 107977405B
Authority
CN
China
Prior art keywords
sorting
result
sequencing
search results
distance
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201711137769.8A
Other languages
Chinese (zh)
Other versions
CN107977405A (en
Inventor
尹访宇
郭瑞
朱涛
刘猛
刘铭
冯涛
李志敏
曾之肇
何吉元
刘金宝
陈武进
黄培浩
仙云森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201711137769.8A priority Critical patent/CN107977405B/en
Publication of CN107977405A publication Critical patent/CN107977405A/en
Application granted granted Critical
Publication of CN107977405B publication Critical patent/CN107977405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/903Querying
    • G06F16/90335Query processing
    • G06F16/90348Query processing by searching ordered data, e.g. alpha-numerically ordered data
    • 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/903Querying
    • G06F16/9038Presentation of query results

Abstract

The embodiment of the invention provides a data sorting method, a data sorting device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: obtaining a plurality of search results according to a user search request; sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result; and determining a target result meeting a preset condition from the first sequencing result according to a second sequencing rule, and adjusting the sequencing of the target result to obtain a second sequencing result. Therefore, the second sorting result not only can reflect the sorting requirement determined by the search request of the user, but also can display the target result meeting the preset condition in the second sorting result, so that the diversity of the sorting result is effectively improved, and the requirements of the user in different aspects are better met.

Description

Data sorting method, data sorting device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data sorting method, a data sorting apparatus, an electronic device, and a readable storage medium.
Background
With the continuous development of internet technology, smart terminals such as smart phones and tablet computers are widely changing life styles of people, for example, a user searches places such as restaurants, movie theaters and hotels by using an Application program (APP) in a smart phone, and the APP sorts search results and displays the sorted results to the user.
To facilitate user selection, the prior art typically ranks user search results in the following manner: the user selects a sort rule (such as closest distance, highest score, comprehensive sort, etc.) first, and then sorts each item in the search result according to the selected sort rule to obtain a sort result.
However, although the ranking attribute selected by the user (for example, the highest score) can be accurately represented by the ranking result obtained in the above-mentioned prior art, the ranking result is only related to the ranking attribute, so that the ranking result is very monotonous.
Disclosure of Invention
The present invention is directed to a data sorting method, a data sorting device, an electronic device and a readable storage medium, which overcome or at least partially solve the above problems.
In a first aspect, the present invention discloses a data sorting method, including:
obtaining a plurality of search results according to a user search request;
sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result;
and determining a target result meeting a preset condition from the first sequencing result according to a second sequencing rule, and adjusting the sequencing of the target result to obtain a second sequencing result.
In another aspect, the present invention discloses a data sorting apparatus, comprising:
the search module is used for acquiring a search result according to the search request of the user;
the first sequencing module is used for sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result;
and the second sequencing module is used for determining a target result meeting a preset condition from the first sequencing result according to a second sequencing rule and adjusting the sequencing of the target result to obtain a second sequencing result.
In another aspect, the present invention discloses an electronic device, comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, wherein the processor implements the data sorting method as described in any of the above when executing the program.
In another aspect, the present invention discloses a readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data sorting method according to any one of the above.
Compared with the prior art, the embodiment of the invention has the following advantages:
according to the embodiment of the invention, on the basis of user search sorting, the obtained first sorting result is corrected according to the second sorting rule and is sorted again to obtain the second sorting result, so that the second sorting result not only can embody the sorting result determined by the user search request, but also can display the target result meeting the preset condition in the second sorting result, therefore, the diversity of the sorting result is effectively improved, and the requirements of the user in different aspects are better met.
Drawings
FIG. 1 is a flow chart illustrating the steps of a first embodiment of a data sorting method of the present invention;
FIG. 2 is a flow chart showing the steps of a second embodiment of a data sorting method of the present invention;
FIG. 3 is a block diagram of a data sorting apparatus according to an embodiment of the present invention
Fig. 4 schematically shows a block diagram of an electronic device for performing the method according to the invention; and
fig. 5 schematically shows a computer-readable storage medium for holding or carrying a computer program implementing the method according to the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating a first step of a data sorting method according to a first embodiment of the present invention is shown, which may specifically include:
step 101, obtaining a plurality of search results according to a user search request;
wherein, the search request comprises a search keyword. Specifically, the search request may be generated after the user inputs a search keyword and clicks a query button, or may be generated by the user selecting a preset search condition; the search keyword may be a keyword input by a user, or may be determined by the user by selecting a keyword tag in a page, for example, tags such as 'food', 'movie theater', 'coffee room' and the like may be displayed in advance in the page for the user to select; in addition, the location information of the user or the business district name selected by the user may also be used as the search keyword, and the content and the generation mode of the search keyword are not particularly limited in the embodiment of the present invention.
In specific implementation, a plurality of search results can be retrieved from a preset database, an inverted index file or other data configuration files according to the search keywords. According to different types of search keywords of users, the embodiment of the invention can be applied to search sequencing of any types of data, such as restaurants, hotels, KTVs, tourist attractions and the like. Wherein each search result comprises at least one ranking attribute. In the embodiment of the present invention, the ranking attribute is used to rank the search results from different dimensions, and specifically, the ranking attribute may be preset in the search results, or may be calculated according to a certain rule. Preferably, the sorting attribute may include: distance dimension, search relevance dimension, user scoring dimension, comprehensive ranking dimension and other ranking attributes, and the content of the ranking attributes is not particularly limited in the embodiment of the present invention.
The distance dimension may specifically be a distance between a position of the search object and a current position of the user; the search relevance dimension is used for describing the degree of association between the search keyword and the search result, and is generally represented by a decimal number of 0-1, and if the degree is 1, the degree is 100% relevant. Further, different ranking attributes may be set according to the type of search object, for example, per-person consumption may be also used as a ranking attribute for a consumable object such as a restaurant or beauty.
The embodiment of the invention can be suitable for any intelligent terminal with an interactive function, and the terminal can be: smart phones, smart watches, tablet computers, notebooks, smart televisions, and the like. It is to be understood that the embodiments of the present invention are not limited to the specific form of the client. For convenience of description, the method embodiment of the present invention is described by taking a smart phone as an example, and other application scenarios may be referred to each other.
Step 102, sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result;
the first ordering rule may be selected and determined in the terminal interface by a user, or may be determined by a machine learning model according to a preset rule. During specific implementation, a plurality of first sequencing rules can be configured according to the content of the search keyword input by the user for the user to select and determine. For example, when a user searches for "food", the first ordering rule may be any one of the following rules: the distance is closest, the score is highest, the taste is best, the environment is best, and the average of people is lowest; when a user searches for "hotel," the first ordering rule may be any one of the following rules: highest score, closest distance, lowest price, etc.
And 103, determining a target result meeting a preset condition from the first sequencing result according to a second sequencing rule, and adjusting the sequencing of the target result to obtain a second sequencing result.
The second sorting rule describes according to what rule the first sorting result needs to be corrected and displayed to obtain a second sorting result when a user inputs a certain search keyword, so that the second sorting result meets the requirement of content diversity.
The following is an example of a correspondence relationship between a search keyword input by a user and a second ranking rule, the contents of which are shown in table 1:
TABLE 1
Search key word Second ordering rule
Food, chafing dish, Sichuan dish and roasted meat Rule A
Hotel, five-star, shortcut and business Rule B
Preferably, the step of determining a target result meeting a preset condition from the first sorting result according to a second sorting rule, and adjusting the sorting of the target result to obtain a second sorting result may specifically include the following sub-steps:
sub-step A1, determining statistical attributes for the first ranking result;
specifically, the step of determining a statistical attribute for the first sorting result may specifically include:
determining a statistical attribute for a preset number of search results in the first ranking result; the statistical attribute comprises at least one of the following information: average distance, average user score, average relevance score. In particular implementation, a person skilled in the art may also use other statistical attributes, and the embodiment of the present invention is not limited thereto. For example, the statistical attribute may also be a median, a quantile, and the like.
Substep A2, judging whether the value of the statistical attribute meets a second ordering starting constraint condition;
and the second sequencing rule starting constraint condition is used for judging whether the first sequencing result meets the condition of sequencing according to the second sequencing rule. It should be noted that, in the embodiment of the present invention, which second ranking rule and start constraint condition specifically correspond to different search keywords may be set by a person skilled in the art according to actual needs, and the embodiment of the present invention is not limited to this specifically.
And a substep a3, determining a target result meeting a preset condition from the first sorting result according to a second sorting rule if the value of the statistical attribute meets the second sorting starting constraint condition, and adjusting the sorting of the target result to obtain a second sorting result.
For a better understanding of the above process, the following is exemplified:
assuming that the first ranking result includes a user score dimension, the statistical attribute is an average user score, and the average user score of a preset number (e.g., the top n) of search results is E, assuming that the user score thresholds E1, E2, and E3 are, the specific processing of step 103 is shown in table 2:
TABLE 2
Figure BDA0001470832520000051
Figure BDA0001470832520000061
And obtaining a second sorting result after the position of the target result is readjusted or the target result is reordered according to the new user score. It should be noted that, the user score for increasing the target result in the first ranking result is only an exemplary processing method, and in particular, those skilled in the art may also use other processing methods to set the content of the constraint condition and the adjustment manner of the corresponding target result, for example, selecting several top displays from the determined target results, and the like.
In the above example, for the first sorting result, the second sorting rule a starts adjustment of the first sorting result when the average user score of the first n search results meets the preset condition, that is, the target result (the user score is greater than e2) at the back of the original sorting position is increased to the front of the queue, so that the target result that is difficult to be seen by the user has a chance to be viewed and used by the user, the original monotonous first sorting result is not monotonous any more, and the diversity of the sorting results is effectively improved.
In summary, in the prior art, data is sorted according to the sorting attribute pair selected by the user, although the sorting attribute selected by the user can be accurately represented (for example, the score is the highest), the sorting result is only related to the sorting attribute, and although the accuracy is high, the sorting result is very monotonous. According to the method and the device, the target results meeting the preset conditions are determined from the first sequencing results according to the second sequencing rule aiming at the first sequencing results, and the sequencing of the target results is adjusted to obtain the second sequencing results, so that the target results which are originally behind the sequencing positions can be displayed in front of the queue, the target results which are originally hard to be seen by a user have the opportunity of being viewed and used by the user, the originally monotonous first sequencing results are not monotonous any more, and the diversity of the sequencing results is effectively improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a second embodiment of a data sorting method according to the present invention is shown, where the method may specifically include:
step 201, obtaining a plurality of search results according to a user search request;
step 202, sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result;
step 203, determining statistical attributes according to a preset number of search results in the first sequencing result;
wherein the statistical attribute comprises at least one of the following information: average distance, average user score, average relevance score.
Step 204, judging whether the value of the statistical attribute meets a second sequencing starting constraint condition;
step 205, if the value of the statistical attribute satisfies the second sorting starting constraint condition, determining a target result satisfying a preset condition from the first sorting result according to a second sorting rule, and adjusting the sorting of the target result to obtain a second sorting result;
specifically, the steps 204 and 205 can be implemented at least by any one of the following manners:
the first method is as follows:
the step of judging whether the value of the statistical attribute meets a second sorting starting constraint condition comprises the following steps:
determining a plurality of search results meeting a preset distance demarcation point from the first sequencing result; the preset distance demarcation point is obtained according to a preset proportion of the ordering distance; when the first sequencing rule comprises the distance sequencing according to the current distance of the search results, and the average distance meets a first preset condition, or the number of results meeting a preset distance demarcation point meets a second preset condition, determining that the average distance meets a second sequencing starting constraint condition;
correspondingly, the step of determining a target result meeting a preset condition from the first sorting result according to the second sorting rule, and adjusting the sorting of the target result to obtain a second sorting result includes:
and determining the search results with the scores larger than the average user score in the plurality of search results meeting the preset distance demarcation points as target results, and promoting the ranking of the target results to obtain second ranking results.
The first preset condition may be any distance condition such as 500 meters or 1000 meters, the second preset condition may be any number such as 20 or 50, and the specific content of the first preset condition and the second preset condition is not limited in the embodiment of the present invention.
The second method comprises the following steps:
the step of judging whether the value of the statistical attribute satisfies the second sorting starting constraint condition includes:
when the first ordering rule comprises ordering according to user scores of search results and the average distance and/or average relevance score meets a third preset condition, determining that the average distance and/or average relevance score meets the second ordering starting constraint condition;
correspondingly, the step of determining a target result meeting a preset condition from the first sorting result according to the second sorting rule, and adjusting the sorting of the target result to obtain a second sorting result includes:
determining a result that the current distance and/or the correlation score in the first sequencing result meets a fourth preset condition as a target result, and improving the sequencing of the target result to obtain a second sequencing result.
Specifically, a distance threshold or a correlation score threshold may be determined according to actual needs, and then used as the third preset condition and the fourth preset condition, for example, the average distance is greater than 500 meters, or the average correlation score is greater than 0.5 as the third preset condition; and taking the current distance less than 1000 meters and the correlation score greater than 0.8 as a fourth preset condition. It is easy to know that the third/fourth preset conditions can be set by those skilled in the art according to actual needs, and the embodiment of the invention is not limited thereto.
The third method comprises the following steps:
the step of judging whether the value of the statistical attribute satisfies the second sorting starting constraint condition includes:
when the first ordering rule comprises ordering according to search relevance of search results and the average distance and/or the average user score meet a fifth preset condition, determining that the average distance and/or the average user score meet the second starting constraint condition;
correspondingly, the step of determining a target result meeting a preset condition from the first sorting result according to the second sorting rule, and adjusting the target result to obtain a second sorting result includes:
determining a result that the current distance and/or the user score in the first ranking result meet a sixth preset condition as a target result, and promoting the ranking of the target result to obtain a second ranking result.
Specifically, the fifth preset condition and the sixth preset condition may be set by those skilled in the art according to the actual requirements by referring to the above method, and the embodiment of the present invention is not limited thereto.
And step 206, displaying the target results meeting the preset conditions according to different display areas respectively.
Specifically, the display page may be provided as a plurality of display regions, for example, including a first display region and a second display region, where the second display region may be provided at the top of the first display region, or may be provided as a floating window.
For example, when a user searches for "Sichuan cuisine" and selects sorting according to the user score (first sorting rule), a first sorting result is obtained, and then merchants with a distance less than 800 meters are determined as a target result from the first sorting result and adjusted to obtain a second sorting result. At this point, the distance between the merchant and the current location of the user in the ranking results becomes very important, so that the first ranking results can be displayed in the first display area, and then the target results (i.e., merchants with distances less than 800 meters) can be displayed in the floating second display area.
In another optional embodiment of the present invention, the second sorting result may be further displayed in the first display area, and the target result may be displayed in the second display area; the first sorting result may also be displayed in the first display area and the second sorting result may be displayed in the second display area. The content displayed in different display areas is not particularly limited in the embodiments of the present invention.
For better understanding of the present invention, the following is described in further detail with reference to a specific example for the above steps 203 to 205:
assume that, of the top n (n is greater than 1) results sorted according to the first sorting rule selected by the user, the average distance of the statistical attribute is Dkm, the average quality score is E, and the average correlation score is F. Wherein, within 2km from the current position of the user, the result numbers of 2-3km and 3-6km are respectively A, B and C; wherein, 2km, 2-3km and 3-6km are respectively the dividing points of 80%, 90% and 95% of the lower unit proportion; the division point 2km of the order placing percentage 80% represents 80% within 2km of all the users who place orders and buy;
it should be noted that the value of the above-mentioned cut point can be selected and determined according to the specific implementation requirements, for example, if the relevance score is taken as the cut point, the cut points of the relevance scores of 80%, 90%, and 95% of the lower units are 0.8, 0.6, and 0.4;
if the currently determined second sort rule is rule a, examples of the second sort starting constraint condition and the corresponding target result adjustment mode are as follows:
Figure BDA0001470832520000091
Figure BDA0001470832520000101
it should be noted that the contents of the second ordering start constraint, for example, D >6km × 3 or a + B + C < 40% × 40, are only exemplary contents, and when the conditions are implemented specifically, the contents of the conditions may be set as needed.
In the above, how to adjust the sorting of the target result meeting the preset condition in the first sorting result according to the statistical attribute of the first sorting result to obtain the second sorting result is described through a specific example, when the second sorting result is specifically implemented, a person skilled in the art may determine the start constraint condition and the corresponding adjustment mode of the second sorting rule as needed, which is not limited in this embodiment of the present invention.
Device embodiment
Referring to fig. 3, a block diagram of a data sorting apparatus according to an embodiment of the present invention is shown, which may specifically include:
a search module 310, configured to obtain a search result according to a user search request;
a first sorting module 320, configured to sort the plurality of search results according to a first sorting rule to obtain a first sorting result;
the second sorting module 330 is configured to determine a target result meeting a preset condition from the first sorting result according to a second sorting rule, and adjust the sorting of the target result to obtain a second sorting result.
In an optional embodiment of the present invention, the second sorting module specifically includes:
a statistical attribute determination submodule for determining a statistical attribute for the first ordering result;
the second sequencing starting judgment submodule is used for judging whether the value of the statistical attribute meets a second sequencing starting constraint condition or not; when the value of the statistical attribute meets the second sorting starting constraint condition, processing through a second sorting processing submodule;
and the second sorting processing submodule is used for determining a target result meeting a preset condition from the first sorting result according to a second sorting rule and adjusting the sorting of the target result to obtain a second sorting result.
In an optional embodiment of the invention, the first ordering rule comprises:
sorting by distance of current distance of search results, and/or
Rank by search relevance of search results, and/or
And sorting according to the user scores of the search results.
In an optional embodiment of the present invention, the statistical attribute determining sub-module is specifically configured to: determining a statistical attribute for a preset number of search results in the first ranking result; the statistical attribute comprises at least one of the following information: average distance, average user score, average relevance score.
In an optional embodiment of the present invention, the second sequencing start determining sub-module is specifically configured to: determining a plurality of search results meeting a preset distance demarcation point from the first sequencing result; the preset distance demarcation point is obtained according to the preset proportion of the ordering distance; when the first sequencing rule comprises the distance sequencing according to the current distance of the search results, and the average distance meets a first preset condition, or the number of results meeting a preset distance demarcation point meets a second preset condition, determining that the average distance meets a second sequencing starting constraint condition;
the second sorting processing sub-module is specifically configured to determine, as a target result, a search result in which the score of the search results satisfying the preset distance demarcation point is greater than the average user score, and promote the sorting of the target result to obtain a second sorting result.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It should be noted that the various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of a data sequencing apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
Referring to fig. 4, fig. 4 shows an electronic device provided by an embodiment of the present invention, which includes a processor 410, a memory 420, and a computer program 431 stored on the memory and executable on the processor 410, wherein the processor 410 executes the computer program 431 to implement the steps according to any one of the methods of the present invention.
Referring to fig. 5, fig. 5 illustrates a computer-readable storage medium, on which a computer program 431' is stored, which, when executed by a processor, implements the steps of the method according to any one of the present invention.
Such as the electronic device shown in fig. 4. The memory 420 may be an electronic memory or a computer-readable storage medium such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 420 has a memory space 430 for program code 431 for performing any of the method steps of the above-described method. For example, the storage space 430 for the program code may include respective program codes 431 for respectively implementing various steps in the above method. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or stationary computer readable storage medium or storage unit as described with reference to fig. 5. The storage unit may have a memory segment, a memory space, etc. arranged similarly to the memory 420 in the terminal of fig. 4. The program code may be compressed, for example, in a suitable form. Typically, the memory unit comprises computer readable code 431', i.e. code that can be read by a processor, such as 410, for example, and which, when run by the electronic device, causes the terminal to perform the steps of the method described above.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of a dispatch task processing apparatus in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data sorting method, the data sorting device and the electronic device provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A method of data ordering, comprising:
obtaining a plurality of search results according to a user search request;
sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result;
determining a target result meeting a preset condition from the first sequencing result according to a second sequencing rule, and adjusting the sequencing of the target result to obtain a second sequencing result; the method comprises the following steps: determining a statistical attribute for the first ranking result; judging whether the value of the statistical attribute meets a second sequencing starting constraint condition or not; if the value of the statistical attribute meets the second sorting starting constraint condition, determining a target result meeting a preset condition from the first sorting result according to a second sorting rule, and adjusting the sorting of the target result to obtain a second sorting result; the statistical attribute comprises at least one of the following information: average distance, average user score, average relevance score;
the step of judging whether the value of the statistical attribute satisfies the second sorting starting constraint condition includes: determining a plurality of search results meeting a preset distance demarcation point from the first sequencing result; the preset distance demarcation point is obtained according to the preset proportion of the ordering distance;
when the first sequencing rule comprises the distance sequencing according to the current distance of the search results, and the average distance meets a first preset condition, or the number of results meeting a preset distance demarcation point meets a second preset condition, determining that the average distance meets a second sequencing starting constraint condition;
the step of determining a target result meeting a preset condition from the first sorting result according to the second sorting rule, and adjusting the sorting of the target result to obtain a second sorting result includes:
determining the search results with the scores larger than the average user score in the plurality of search results meeting the preset distance demarcation points as target results, and promoting the ranking of the target results to obtain second ranking results;
wherein the second ranking rule describes a rule for modifying the first ranking result when a user inputs a search keyword corresponding to the plurality of search results; the different search keywords correspond to different second ranking rules.
2. The method of claim 1, wherein the first ordering rule comprises:
sorting by distance of current distance of search results, and/or
Rank by search relevance of search results, and/or
And sorting according to the user scores of the search results.
3. The method of claim 1, wherein the step of determining a statistical attribute for the first ranking result comprises:
determining a statistical attribute for a preset number of search results in the first ranked result.
4. The method according to any one of claims 1 to 3, wherein after the second sorting result is obtained, the target results meeting the preset condition are displayed in different display areas respectively.
5. A data sorting apparatus, comprising:
the search module is used for acquiring a plurality of search results according to the search request of the user;
the first sequencing module is used for sequencing the plurality of search results according to a first sequencing rule to obtain a first sequencing result;
the second sorting module is used for determining a target result meeting a preset condition from the first sorting result according to a second sorting rule and adjusting the sorting of the target result to obtain a second sorting result; wherein the second ranking rule describes a rule for modifying the first ranking result when a user inputs a search keyword corresponding to the plurality of search results; different search keywords correspond to different second ordering rules;
the second sorting module specifically includes: a statistical attribute determination submodule for determining a statistical attribute for the first ordering result; the second sequencing starting judgment submodule is used for judging whether the value of the statistical attribute meets a second sequencing starting constraint condition or not; when the value of the statistical attribute meets the second sorting starting constraint condition, processing through a second sorting processing submodule; the second sorting processing submodule is used for determining a target result meeting a preset condition from the first sorting result according to a second sorting rule and adjusting the sorting of the target result to obtain a second sorting result; the statistical attribute comprises at least one of the following information: average distance, average user score, average relevance score;
the second sequencing start judgment sub-module is specifically configured to: determining a plurality of search results meeting a preset distance demarcation point from the first sequencing result; the preset distance demarcation point is obtained according to the preset proportion of the ordering distance; when the first sequencing rule comprises the distance sequencing according to the current distance of the search results, and the average distance meets a first preset condition, or the number of results meeting a preset distance demarcation point meets a second preset condition, determining that the average distance meets a second sequencing starting constraint condition;
the second sorting processing sub-module is specifically configured to determine, as a target result, a search result in which the score of the search results satisfying the preset distance demarcation point is greater than the average user score, and promote the sorting of the target result to obtain a second sorting result.
6. The apparatus of claim 5, wherein the first ordering rule comprises:
sorting by distance of current distance of search results, and/or
Rank by search relevance of search results, and/or
And sorting according to the user scores of the search results.
7. The apparatus of claim 5,
the statistical attribute determination submodule is specifically configured to: determining a statistical attribute for a preset number of search results in the first ranked result.
8. An electronic device, comprising:
processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the data ordering method according to any of claims 1-4 when executing the program.
9. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a data sorting method as claimed in any one of claims 1-4.
CN201711137769.8A 2017-11-16 2017-11-16 Data sorting method, data sorting device, electronic equipment and readable storage medium Active CN107977405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711137769.8A CN107977405B (en) 2017-11-16 2017-11-16 Data sorting method, data sorting device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711137769.8A CN107977405B (en) 2017-11-16 2017-11-16 Data sorting method, data sorting device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN107977405A CN107977405A (en) 2018-05-01
CN107977405B true CN107977405B (en) 2021-01-22

Family

ID=62013671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711137769.8A Active CN107977405B (en) 2017-11-16 2017-11-16 Data sorting method, data sorting device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN107977405B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11604661B2 (en) * 2018-06-03 2023-03-14 Apple Inc. Determining relevant information based on third party information and user interactions
CN110852818A (en) * 2018-08-20 2020-02-28 北京京东尚科信息技术有限公司 Commodity sorting method and device and computer-readable storage medium
CN109344327B (en) * 2018-09-21 2022-07-19 百度在线网络技术(北京)有限公司 Method and apparatus for generating information
CN109814923A (en) * 2018-12-28 2019-05-28 平安科技(深圳)有限公司 Data processing method, device, computer equipment and storage medium
CN110647674A (en) * 2018-12-29 2020-01-03 北京奇虎科技有限公司 Point of interest (POI) recommendation method and device
CN111723120A (en) * 2019-03-18 2020-09-29 北京京东尚科信息技术有限公司 Sorting method, apparatus, system, and medium
CN110288427A (en) * 2019-06-05 2019-09-27 达疆网络科技(上海)有限公司 A kind of sequence of O2O scene Xia Duo shops and method for folding
CN111028040B (en) * 2019-06-17 2020-11-06 拉扎斯网络科技(上海)有限公司 Object sorting method and device, readable storage medium and electronic equipment
CN110334269B (en) * 2019-07-11 2021-05-07 中国船舶工业综合技术经济研究院 Information retrieval method and system
CN111737563A (en) * 2019-07-15 2020-10-02 北京京东尚科信息技术有限公司 Data display, search and verification method, device, equipment, server and medium
CN110661913B (en) * 2019-08-30 2021-03-23 中国人民财产保险股份有限公司 User sorting method and device and electronic equipment
CN110851703A (en) * 2019-09-30 2020-02-28 口碑(上海)信息技术有限公司 Data processing method and device
CN110852700A (en) * 2019-10-16 2020-02-28 上海易点时空网络有限公司 Data sorting method and device for workflow system
CN111008341A (en) * 2019-11-05 2020-04-14 贝壳技术有限公司 Data search processing method and device, electronic equipment and storage medium
CN111428100A (en) * 2020-03-27 2020-07-17 京东方科技集团股份有限公司 Data retrieval method and device, electronic equipment and computer-readable storage medium
CN112988848B (en) * 2021-04-22 2021-08-03 北京沃东天骏信息技术有限公司 Data processing method, device, equipment and storage medium
CN113449145B (en) * 2021-06-29 2023-11-10 乐视云网络技术(北京)有限公司 Video search result ranking adjustment method, device, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006309484A (en) * 2005-04-28 2006-11-09 Navitime Japan Co Ltd Facility search system
CN102810117A (en) * 2012-06-29 2012-12-05 北京百度网讯科技有限公司 Method and equipment for supplying search result
CN103294677A (en) * 2012-02-22 2013-09-11 阿里巴巴集团控股有限公司 Searching method of electronic commerce search engine and electronic commerce search engine
CN103488654A (en) * 2012-06-14 2014-01-01 腾讯科技(深圳)有限公司 Search result processing method and device for searching information based on map
CN103793388A (en) * 2012-10-29 2014-05-14 阿里巴巴集团控股有限公司 Method and device for search result sorting
CN104778261A (en) * 2015-04-21 2015-07-15 无锡天脉聚源传媒科技有限公司 Searching and processing method and searching and processing device
CN106649647A (en) * 2016-12-09 2017-05-10 北京百度网讯科技有限公司 Ordering method and device for search results based on artificial intelligence

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320441A1 (en) * 2010-06-25 2011-12-29 Microsoft Corporation Adjusting search results based on user social profiles
CN103902597B (en) * 2012-12-27 2019-03-08 百度在线网络技术(北京)有限公司 The method and apparatus for determining relevance of searches classification corresponding to target keyword
CN104142999B (en) * 2014-08-01 2019-03-29 百度在线网络技术(北京)有限公司 Search result methods of exhibiting and device
CN105447149A (en) * 2015-11-26 2016-03-30 北京搜狗科技发展有限公司 Interaction method, apparatus and electronic device for network searching

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006309484A (en) * 2005-04-28 2006-11-09 Navitime Japan Co Ltd Facility search system
CN103294677A (en) * 2012-02-22 2013-09-11 阿里巴巴集团控股有限公司 Searching method of electronic commerce search engine and electronic commerce search engine
CN103488654A (en) * 2012-06-14 2014-01-01 腾讯科技(深圳)有限公司 Search result processing method and device for searching information based on map
CN102810117A (en) * 2012-06-29 2012-12-05 北京百度网讯科技有限公司 Method and equipment for supplying search result
CN103793388A (en) * 2012-10-29 2014-05-14 阿里巴巴集团控股有限公司 Method and device for search result sorting
CN104778261A (en) * 2015-04-21 2015-07-15 无锡天脉聚源传媒科技有限公司 Searching and processing method and searching and processing device
CN106649647A (en) * 2016-12-09 2017-05-10 北京百度网讯科技有限公司 Ordering method and device for search results based on artificial intelligence

Also Published As

Publication number Publication date
CN107977405A (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN107977405B (en) Data sorting method, data sorting device, electronic equipment and readable storage medium
JP4524709B2 (en) Information processing apparatus and method, and program
US8370319B1 (en) Determining search query specificity
US11429673B2 (en) Displaying sort results on a mobile computing device
US20170154116A1 (en) Method and system for recommending contents based on social network
CN105701108B (en) A kind of information recommendation method, device and server
WO2019056661A1 (en) Search term pushing method and device, and terminal
US20140074831A1 (en) Determination of category information using multiple stages
CN102298612A (en) Adjusting search results based on user social profiles
CN108648058B (en) Product sorting method and device, electronic equipment and storage medium
CN109635198B (en) Method, device, medium and electronic equipment for presenting user search results on commodity display platform
CN109829108B (en) Information recommendation method and device, electronic equipment and readable storage medium
US11205195B2 (en) Information processing device, information processing method, and information processing program
CN111400507B (en) Entity matching method and device
CN106233288B (en) Re-ranking search results for location refinement and diversity
US20150199777A1 (en) System and method for restaurant menuing
TWI662495B (en) Processing method, device and system for promotion information
US20150221023A1 (en) Information providing device, information providing method, information providing program, and computer-readable storage medium storing the program
JP2010009315A (en) Recommended store presentation system
CN102893280A (en) Data search device, data search method and program
CN111737473B (en) Text classification method, device and equipment
CN105589852A (en) Information recommendation method and device
CN110570271A (en) information recommendation method and device, electronic equipment and readable storage medium
CN113360790A (en) Information recommendation method and device and electronic equipment
WO2018149244A1 (en) Method and device for recommending applications associated with target application on basis of target application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant