Search method, device, electronic device and medium
By monitoring the user's search time and space characteristics, combined with historical click information, updating and clustering the ranking of candidate prompt information, the problem of candidate prompt information confusion caused by search terms associated with multiple fields in the existing technology is solved, and the search results are improved. Relevance and user experience.
Patent Information
- Application Number
- CN202010054929.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-01-17
AI Technical Summary
Existing search methods cannot effectively guide users to search, especially when the search terms are related to multiple search fields, resulting in chaotic and mixed arrangement of candidate prompt information, affecting the user experience.
By monitoring the user's search time characteristics and search space characteristics, the ranking of candidate prompt information is updated, combined with the user's historical click information, the search field and demand characteristics are identified, and the candidate prompt information is displayed in clusters.
The candidate prompt information that is closest to the user's current search time and space scene is sorted first, which improves the relevance of the search results and the user experience. The candidate prompt information displayed is more tidy and meets the user's needs.
Smart Images

Figure CN113139103B
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, specifically to artificial intelligence technology, and in particular to a search method, device, electronic device and medium. Background Art
[0002] When the user enters the search term in the input box, the server will provide one or more optional prompt information below the input box in real time according to the user's input. For example, if the user enters "Beijing Hyundai" in the input box, the prompt information below the input box may include "Beijing Hyundai 4S Store", "Beijing Hyundai Corporate Headquarters", "Beijing Hyundai Music Research Institute", etc.
[0003] For a search term like "Beijing Hyundai" that has multiple optional prompt information, the server currently mainly sorts and displays multiple prompt information to users according to a unified sorting method, such as the relevance of the search term and the prompt information, the popularity of the prompt information, and the click rate. However, the prompt information displayed in this way cannot guide users to search well. Summary of the invention
[0004] The embodiments of the present application provide a search method, device, electronic device and medium to better guide users to search.
[0005] In a first aspect, an embodiment of the present application discloses a search method, the method comprising:
[0006] Determine at least two candidate prompt information according to the user's search term;
[0007] When a spatiotemporal feature determination event is detected, determining a user's search time feature and search space feature;
[0008] updating the ranking of the at least two candidate prompt information according to the search time feature and / or the search space feature;
[0009] The at least two candidate prompt information are displayed according to the updated sorting result.
[0010] One embodiment of the above application has the following advantages or beneficial effects: by introducing the user's search time characteristics and search space characteristics, and adjusting the sorting of at least two candidate prompt information determined according to the user's search terms based on at least one of the search time characteristics and the search space characteristics, the candidate prompt information closest to the user's current search time and space scene can be sorted first; then the adjusted and sorted candidate prompt information is displayed to the user so as to better guide the user to search.
[0011] Optionally, the above method further includes:
[0012] Identify the search domain of the search term according to at least one of the type distribution, click distribution, spatial distribution of the at least two candidate prompt information and the distance between the candidate prompt information;
[0013] If the search term is associated with at least two types of search fields, the spatiotemporal feature determination event is generated.
[0014] The above optional method has the following advantages or beneficial effects: by introducing limiting conditions of the search field, the operation of determining the search spatiotemporal characteristics is realized.
[0015] Optionally, updating the ranking of the at least two candidate prompt information according to the search time feature and / or the search space feature includes:
[0016] Determining the user's demand characteristics based on the search time characteristics and / or the search space characteristics, and the historical prompt information that the user has clicked;
[0017] The ranking of the at least two candidate prompt information is updated according to the distance between the user's demand feature and the candidate prompt information.
[0018] The above optional method has the following advantages or beneficial effects: by combining the search time characteristics, search space characteristics and historical prompt information clicked by the user, the order of at least two candidate prompt information determined according to the user's search terms is adjusted, so that the candidate prompt information displayed to the user can further better satisfy the user.
[0019] Optionally, determining the user's demand characteristics based on the search time characteristics and / or the search space characteristics, and historical prompt information that the user has clicked, includes:
[0020] Determine the user's first interest based on the frequency of historical prompt information that the user has clicked;
[0021] Determine the user's second interest based on the time of the historical prompt information that the user has clicked;
[0022] Determine the user's demand characteristics based on the search time characteristics and / or the search space characteristics, the first interest, and the second interest.
[0023] The above optional method has the following advantages or beneficial effects: by combining at least one of the search time characteristics and the search space characteristics, as well as the frequency and time of the historical prompt information clicked by the user, the user's demand characteristics can be accurately determined, laying the foundation for subsequent adjustment of the ranking of at least two candidate prompt information.
[0024] Optionally, displaying the at least two candidate prompt information according to the updated sorting result includes:
[0025] Clustering the at least two candidate prompt information according to the distance between the candidate prompt information;
[0026] The at least two candidate prompt information are displayed according to the clustering result and the updated sorting result.
[0027] The above optional method has the following advantages or beneficial effects: on the basis of adjusting the sorting of at least two candidate prompt information, a clustering process of at least two candidate prompt information is added, so that the candidate prompt information displayed to the user is more tidy while ensuring that the candidate prompt information displayed to the user can better satisfy the user.
[0028] In a second aspect, an embodiment of the present application discloses a search device, the device comprising:
[0029] A candidate prompt information determination module, used to determine at least two candidate prompt information according to the user's search term;
[0030] A spatiotemporal feature determination module, used to determine the user's search time feature and search space feature when a spatiotemporal feature determination event is detected;
[0031] A ranking update module, used for updating the ranking of the at least two candidate prompt information according to the search time feature and / or the search space feature;
[0032] The candidate prompt information display module is used to display the at least two candidate prompt information according to the updated sorting result.
[0033] In a third aspect, an embodiment of the present application further discloses an electronic device, including:
[0034] at least one processor; and
[0035] a memory communicatively connected to the at least one processor; wherein,
[0036] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the search method as described in any embodiment of the present application.
[0037] In a fourth aspect, an embodiment of the present application further discloses a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the search method as described in any embodiment of the present application.
[0038] One embodiment of the above application has the following advantages or beneficial effects: by introducing the user's search time characteristics and search space characteristics, and adjusting the sorting of at least two candidate prompt information determined according to the user's search terms according to at least one of the search time characteristics and the search space characteristics, the candidate prompt information closest to the user's current search time and space scene can be sorted first; then the adjusted and sorted candidate prompt information is displayed to the user so as to guide the user better and more efficiently.
[0039] Other effects of the above optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0041] Figure 1 is a flowchart of a search method provided according to the first embodiment of the present application;
[0042] Figure 2 is a flowchart of a search method provided according to the second embodiment of the present application;
[0043] Figure 3 is a structural schematic diagram of a search device provided according to the third embodiment of the present application;
[0044] Figure 4 It is a block diagram of an electronic device used to implement the search method of an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0046] First embodiment
[0047] Figure 1 This is a flowchart of a search method provided according to the first embodiment of the present application. This embodiment can be applied to how to display search prompt information to users based on their search terms so as to better guide users to search. The method can be executed by a search device, which can be implemented in software and / or hardware and can be integrated on a computing device that carries the search function, such as a server device. Figure 1 As shown, the search method provided in this embodiment may include:
[0048] S110: Determine at least two candidate prompt information according to the user's search term.
[0049] In this embodiment, the search term entered by the user in the input box of an application with a search engine function (such as a map application) may be an incomplete search requirement (i.e., a query), that is, the search term entered by the user that has been obtained is only a partial character. For example, if the user wants to go to "Beijing Modern Music Institute", the search term "Beijing Modern" entered by the user in the input box of the map application is an incomplete query. Optionally, the incomplete query may be caused by the user not having entered all the characters, or by the user only remembering a partial character of the complete query or other factors.
[0050] Candidate prompt information is a search suggestion that completely or partially hits the search term that the user has entered, and is used to guide the user's search. Optionally, all prompt information obtained according to the user's search term can be sorted in a unified sorting method, such as using an LTR (Learning To Rank) model, and then all prompt information with a certain order can be used as candidate prompt information. In the case of a large amount of prompt information, since the correlation between the prompt information ranked later and the search term is smaller, and in order to quickly respond to the user, this embodiment can preferably select a preset number of prompt information ranked first, such as 10, as candidate prompt information.
[0051] S120: When a spatiotemporal feature determination event is monitored, determine the user's search time feature and search space feature.
[0052] It is understandable that if the search term input by the user is a complete query, there may be only one candidate prompt information, and the problem of sorting multiple candidate prompt information will not be involved. Therefore, this embodiment is preferably aimed at the case where the search term input by the user is an incomplete query. If the search term input by the user is a complete query, but the candidate prompt information is not unique, the method of this embodiment can also be used.
[0053] In addition, if the multiple candidate prompt information determined are all the same search field (for example, the candidate prompt information is "Beijing Hyundai 4S A Street Branch", "Beijing Hyundai 4S B Street Branch", and "Beijing Hyundai 4S C Street Branch"), it can be determined that the user's search intention is clear, and there is no need to reorder the multiple candidate prompt information. Furthermore, this embodiment is preferably aimed at the situation where the user's search intention cannot be accurately determined based on the search terms. In other words, multiple candidate prompt information involves multiple types of search fields, that is, the search terms are associated with multiple types of search fields. For example, the candidate prompt information includes "Beijing Hyundai 4S store" and "Beijing Hyundai Music Training Institute".
[0054] In this embodiment, when a spatiotemporal feature determination event is monitored, an operation of determining the user's search time features and search space features is performed. Among them, the spatiotemporal feature determination event can be a trigger notification, which can be specifically triggered based on the candidate prompt information. For example, if it is identified that the user's search term is associated with two or more search fields based on at least two candidate prompt information, a spatiotemporal feature determination event is triggered. Furthermore, the search field of the search term can be identified based on at least one of the type distribution, click distribution, spatial distribution of at least two candidate prompt information, and the distance between the candidate prompt information; if the search term is associated with at least two search fields, a spatiotemporal feature determination event is generated.
[0055] In this embodiment, type distribution, click distribution and spatial distribution are all used to describe the overall situation of all candidate prompt information. Optionally, the type, click rate, and spatial information of each candidate prompt information can be extracted; based on the type, click rate, and spatial information of each extracted candidate prompt information, the type distribution, click distribution and spatial distribution of all candidate prompt information are determined. Among them, the spatial information may include coordinate information, and the spatial distribution can characterize the focus of the positions between multiple candidate prompt information; the click rate is the frequency of users clicking on the candidate prompt information to enter the search, and the click distribution of all candidate prompt information can be described by a histogram or a fan chart.
[0056] Since the types of candidate prompt information are different, the search fields are different, for example, "4S store" and "music training college" are different types, and the search field of the search term can be identified by the type distribution of the candidate prompt information. Optionally, when at least two candidate prompt information are identified as two or more types, a spatiotemporal feature determination event can be directly triggered.
[0057] Alternatively, the search domain of the search term can be identified based on the distance between the candidate prompt information. The distance between the candidate prompt information can be represented by the cosine similarity between the two candidate prompt information. Optionally, if the cosine similarity between the two candidate prompt information is less than a set threshold, it is determined that the two candidate prompt information are irrelevant, and in this case, it can be determined that the two candidate prompt information involve two types of search domains.
[0058] Alternatively, the search domain of the search term may be identified based on the spatial distribution of all candidate prompt information. Optionally, if it is identified that all candidate prompt information is focused on one position based on the spatial distribution of all candidate prompt information, the search term may be considered to be associated with one type of search domain; otherwise, the search term may be considered to be associated with two or more types of search domains.
[0059] Alternatively, the search domain of the search term may be identified by the click distribution of all candidate prompt information. Optionally, if the click distribution of all candidate prompt information is relatively even, the search term may be considered to be associated with two or more search domains; otherwise, the search term may be considered to be associated with one search domain.
[0060] In order to ensure the accuracy of search field identification, any two or more of type distribution, click distribution, spatial distribution, and the distance between candidate prompt information can be combined to identify the search field. For example, type distribution, click distribution, spatial distribution, and the distance between candidate prompt information can be input into a pre-trained diversity recognition model, and the model will output 1 or 0; if the output is 0, it means that the search term is associated with one type of search field; if the output is 1, it means that the search term is associated with two or more types of search fields.
[0061] Specifically, when the spatiotemporal feature determination event is monitored, the user's search time feature and search space feature can be determined. Among them, the spatiotemporal scene when the user searches (that is, the time when the user searches and the location when the user searches) can be described by search time features and search space features. Optionally, the search time feature and search space feature can be obtained by binarizing and encoding the time and space division grids respectively. Take the determination of the search time feature as an example to illustrate. For example, a week can be divided into 24*7 grids according to hours and binarized. The user's search time is a time point on the divided grid. The grid that hits the time point is encoded as 1, and the grid that does not hit is encoded as 0. The resulting encoding result is the search time feature.
[0062] S130: Update the ranking of at least two pieces of candidate prompt information according to the search time feature and / or the search space feature.
[0063] Optionally, after determining the user's search time characteristics and search space characteristics, the user's demand characteristics can be determined based on the search time characteristics and / or search space characteristics; the cosine similarity between each candidate prompt information and the user's demand characteristics is calculated, and then the multiple candidate prompt information is re-sorted according to the cosine similarity. Among them, the user's demand characteristics can be used to characterize the user's search intention in the current time and space scenario, and can be represented by a vector. Optionally, the existing text vector method can be used to vectorize the search terms to obtain the search term vector, and then at least one of the user's search time characteristics and search space characteristics, as well as the search term vector, can be input into a pre-trained deep neural network model (such as a convolutional neural network CNN, a recurrent neural network RNN, or a long short-term memory neural network LSTM) to obtain the user's demand characteristics.
[0064] S140: Display at least two candidate prompt information according to the updated sorting result.
[0065] Specifically, after re-ranking the plurality of candidate prompt information, that is, updating the ranking of the plurality of candidate prompt information, the plurality of candidate prompt information can be displayed in a prompt box according to the updated ranking so that the user can view it intuitively. The prompt box can be located below the input box.
[0066] Further, after displaying at least two candidate prompt information according to the updated sorting result, if it is detected that the user clicks on any candidate prompt information displayed in the prompt box, the candidate prompt information is searched as a target search term, and the search result is displayed to the user.
[0067] The technical solution provided in the embodiment of the present application introduces the user's search time characteristics and search space characteristics, and adjusts the sorting of at least two candidate prompt information determined according to the user's search terms based on at least one of the search time characteristics and the search space characteristics, so that the candidate prompt information closest to the user's current search time and space scene is sorted first; then the adjusted and sorted candidate prompt information is displayed to the user so as to better guide the user in searching.
[0068] It should be noted that, when a search term is associated with multiple search fields, the unified sorting method adopted by the prior art has the phenomenon that candidate prompt information of different search fields is mixed and arranged in a disordered manner, which leads to a poor user experience. For this reason, the present application introduces a clustering method. Optionally, displaying at least two candidate prompt information according to the updated sorting result may include: clustering at least two candidate prompt information according to the distance between the candidate prompt information; and displaying at least two candidate prompt information according to the clustering result and the updated sorting result.
[0069] Specifically, the K-means clustering algorithm can be used to cluster multiple candidate prompt information according to the cosine similarity between the candidate prompt information; then, the updated sorting result can be adjusted according to the clustering result, so that the candidate prompt information in the same search field is ranked adjacently; finally, the multiple candidate prompt information can be displayed in the prompt box according to the re-adjusted sorting.
[0070] On the basis of adjusting the sorting of at least two candidate prompt information, the present application adds a clustering process for at least two candidate prompt information, so as to make the candidate prompt information displayed to the user more neat while ensuring that the candidate prompt information displayed to the user can better satisfy the user, thereby improving the user's satisfaction.
[0071] Second embodiment
[0072] Figure 21 is a flowchart of a search method provided according to the second embodiment of the present application. Based on the above embodiment, this embodiment further explains how to update the ranking of at least two candidate prompt information according to the search time feature and / or the search space feature. Figure 2 As shown, the search method provided in this embodiment may include:
[0073] S210: Determine at least two candidate prompt information according to the user's search term.
[0074] S220: When a spatiotemporal feature determination event is monitored, determine the user's search time feature and search space feature.
[0075] S230: Determine the user's demand characteristics based on the search time characteristics and / or search space characteristics, and the historical prompt information that the user has clicked.
[0076] Different users may have different search intentions for the same search term, and the same user may have different search intentions for the same search term in different time and space scenarios. In this embodiment, by introducing search time features and search space features, and combining historical prompt information that the user has clicked, the user's search intention can be accurately identified, laying the foundation for subsequent adjustment of the ranking of at least two candidate prompt information. Among them, the historical prompt information that the user has clicked can be used to characterize the user's personalized characteristics.
[0077] Optionally, the existing text vector method can be used to vectorize the search terms to obtain the search term vector, and to vectorize the historical prompt information to obtain the historical information vector; then, at least one of the user's search time features and search space features, the historical information vector, and the search term vector can be input into a pre-trained deep neural network model to obtain the user's demand features.
[0078] Furthermore, the personalized characteristics of the user can be further divided into the user's long-term interests and the user's short-term interests. Among them, the user's long-term interests and the user's short-term interests can be represented by the prompt information clicked by the user in a historical period of time. Specifically, the user's long-term interests can be determined based on the frequency of the historical prompt information clicked by the user. For example, the historical prompt information can be sorted by frequency, and a preset number of historical prompt information (such as 10) ranked in the front are used to represent the user's long-term interests; the user's short-term interests can be determined based on the time of the historical prompt information clicked by the user. For example, the historical prompt information can be sorted by time, and a preset number of historical prompt information (such as 10) ranked in the front are used to represent the user's short-term interests.
[0079] Optionally, determining the user's demand characteristics based on the search time characteristics and / or search space characteristics, and the historical prompt information that the user has clicked may include: determining the user's first interest based on the frequency of the historical prompt information that the user has clicked; determining the user's second interest based on the time of the historical prompt information that the user has clicked; determining the user's demand characteristics based on the search time characteristics and / or search space characteristics, the first interest, and the second interest. The user's first interest is the user's long-term interest, and the user's second interest is the user's short-term interest.
[0080] For example, the existing text vector method can be used to vectorize the 10 historical prompt information used to represent the first interest, and then the average of the 10 vectors obtained after the vectorization process is used as the vector of the first interest; similarly, the existing text vector method can be used to vectorize the 10 historical prompt information used to represent the second interest, and then the average of the 10 vectors obtained after the vectorization process is used as the vector of the second interest.
[0081] At the same time, the existing text vector method can be used to vectorize the search terms to obtain the search term vector; then at least one of the user's search time features and search space features, the vector of the first interest, the vector of the second interest, and the search term vector can be input into a pre-trained deep neural network model to obtain the user's demand characteristics.
[0082] S240: Update the ranking of at least two pieces of candidate prompt information according to the distance between the user's demand feature and the candidate prompt information.
[0083] Specifically, after determining the user's demand characteristics, the cosine similarity between each candidate prompt information and the user's demand characteristics may be calculated, and then the plurality of candidate prompt information may be re-ranked according to the cosine similarity, that is, the ranking of the plurality of candidate prompt information may be updated.
[0084] S250: Display at least two candidate prompt information according to the updated sorting result.
[0085] The technical solution provided in the embodiment of the present application adjusts the order of at least two candidate prompt information determined according to the user's search terms by combining search time characteristics, search space characteristics and historical prompt information that the user has clicked, thereby further enabling the candidate prompt information displayed to the user to better satisfy the user.
[0086] Third embodiment
[0087] Figure 3: is a schematic diagram of the structure of a search device provided in the third embodiment of the present application. The device can be configured on a computing device that carries a search function. The device can execute the search method provided in any embodiment of the present application and has the corresponding functional modules and beneficial effects of the execution method. Figure 3 As shown, the device may include:
[0088] A candidate prompt information determination module 310 is used to determine at least two candidate prompt information according to the user's search term;
[0089] The spatiotemporal feature determination module 320 is used to determine the user's search time feature and search space feature when the spatiotemporal feature determination event is monitored;
[0090] A ranking update module 330, used to update the ranking of at least two candidate prompt information according to the search time feature and / or the search space feature;
[0091] The candidate prompt information display module 340 is used to display at least two candidate prompt information according to the updated sorting result.
[0092] The technical solution provided in the embodiment of the present application introduces the user's search time characteristics and search space characteristics, and adjusts the sorting of at least two candidate prompt information determined according to the user's search terms based on at least one of the search time characteristics and the search space characteristics, so that the candidate prompt information closest to the user's current search time and space scene is sorted first; then the adjusted and sorted candidate prompt information is displayed to the user so as to better guide the user in searching.
[0093] Exemplarily, the above device may further include:
[0094] A search domain identification module, used to identify the search domain of the search term based on at least one of the type distribution, click distribution, spatial distribution of at least two candidate prompt information and the distance between the candidate prompt information;
[0095] The spatiotemporal feature determination module 320 is further configured to generate a spatiotemporal feature determination event if the search term is associated with at least two types of search fields.
[0096] Exemplarily, the sorting update module 330 may include:
[0097] A demand feature determination unit, used to determine the user's demand features based on search time features and / or search space features, and historical prompt information that the user has clicked;
[0098] The ranking updating unit is used to update the ranking of at least two candidate prompt information according to the distance between the user's demand characteristics and the candidate prompt information.
[0099] Exemplarily, the demand feature determination unit may be specifically used for:
[0100] Determine the user's first interest based on the frequency of historical prompt information that the user has clicked;
[0101] Determine the user's second interest based on the time of the historical prompt information that the user has clicked;
[0102] The user's demand characteristics are determined according to the search time characteristics and / or the search space characteristics, the first interest, and the second interest.
[0103] Exemplarily, the candidate prompt information display module 340 may be specifically used for:
[0104] Clustering at least two candidate prompt information according to the distance between the candidate prompt information;
[0105] At least two candidate prompt information are displayed according to the clustering result and the updated sorting result.
[0106] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0107] like Figure 4 , is a block diagram of an electronic device according to a search method according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0108] like Figure 4As shown, the electronic device includes: one or more processors 401, a memory 402, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of a graphical user interface (GUI) on an external input / output device, such as a display device coupled to the interface. In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations, for example, as a server array, a group of blade servers, or a multi-processor system. Figure 4 A processor 401 is taken as an example.
[0109] The memory 402 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the search method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the search method provided in the present application.
[0110] The memory 402 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the search method in the embodiment of the present application, for example, Figure 3 The candidate prompt information determination module 310, the spatiotemporal feature determination module 320, the ranking update module 330 and the candidate prompt information display module 340 are shown. The processor 401 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 402, that is, the search method in the above method embodiment is implemented.
[0111] The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of an electronic device used to implement the search method, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the electronic device used to implement the search method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a blockchain network, a local area network, a mobile communication network, and combinations thereof.
[0112] The electronic device used to implement the search method may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0113] The input device 403 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device used to implement the search method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 404 may include a display device, an auxiliary lighting device and a tactile feedback device, wherein the auxiliary lighting device is such as a light emitting diode (LED), and the tactile feedback device is such as a vibration motor. The display device may include, but is not limited to, a liquid crystal display (LCD), an LED display and a plasma display. In some embodiments, the display device may be a touch screen.
[0114] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, application specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0115] These computer programs, also referred to as programs, software, software applications, or codes, include machine instructions for programmable processors, and may be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus for providing machine instructions and / or data to a programmable processor, such as a disk, an optical disk, a memory, a programmable logic device (PLD), including a machine-readable medium that receives machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user, such as a cathode ray tube (CRT) or an LCD monitor; and a keyboard and a pointing device, such as a mouse or a trackball, through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic input, voice input, or tactile input.
[0117] The systems and techniques described herein may be implemented in a computing system including backend components, for example, as a data server; or in a computing system including middleware components, for example, an application server; or in a computing system including frontend components, for example, a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein, or in a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication, for example, a communication network. Examples of communication networks include: a Local Area Network (LAN), a Wide Area Network (WAN), a blockchain network, and the Internet.
[0118] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0119] According to the technical solution of the embodiment of the present application, by introducing the user's search time characteristics and search space characteristics, and adjusting the sorting of at least two candidate prompt information determined according to the user's search terms according to at least one of the search time characteristics and the search space characteristics, the candidate prompt information closest to the user's current search time and space scene can be sorted first; then the adjusted and sorted candidate prompt information is displayed to the user so as to better guide the user to search.
[0120] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0121] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A search method, characterized in that: include: Determine at least two candidate prompt information according to the user's search term; wherein the candidate prompt information is a search suggestion that completely or partially hits the user's search term; According to the type, click rate, and spatial information of each candidate prompt information, determine the type distribution, click distribution, and spatial distribution of each candidate prompt information; wherein the click rate is the frequency of the user clicking on the candidate prompt information to enter the search; according to the cosine similarity between each two candidate prompt information, determine the distance between each candidate prompt information; According to the type distribution, click distribution, spatial distribution of the at least two candidate prompt information and the distance between the candidate prompt information, the search field of the search term is identified; if the search term is associated with at least two types of search fields, a spatiotemporal feature determination event is generated; When the spatiotemporal feature determination event is monitored, determining the user's search time feature and search space feature; wherein the spatiotemporal feature determination event is a trigger notification when the candidate prompt information involves multiple search fields; Determining the user's demand characteristics according to the search time characteristics and / or the search space characteristics; Calculating the cosine similarity between each candidate prompt information and the user's demand feature, and updating the ranking of the at least two candidate prompt information according to the cosine similarity; The at least two candidate prompt information are displayed according to the updated sorting result.
2. The method according to claim 1, characterized in that: Determining the user's demand characteristics according to the search time characteristics and / or the search space characteristics includes: The user's demand characteristics are determined based on the search time characteristics and / or the search space characteristics, and the historical prompt information that the user has clicked.
3. The method according to claim 2, characterized in that Determining the user's demand characteristics based on the search time characteristics and / or the search space characteristics, and the historical prompt information that the user has clicked, includes: Determine the user's first interest based on the frequency of historical prompt information that the user has clicked; Determine the user's second interest based on the time of the historical prompt information that the user has clicked; Determine the user's demand characteristics based on the search time characteristics and / or the search space characteristics, the first interest, and the second interest.
4. The method according to claim 1, characterized in that: Displaying the at least two candidate prompt information according to the updated sorting result includes: Clustering the at least two candidate prompt information according to the distance between the candidate prompt information; The at least two candidate prompt information are displayed according to the clustering result and the updated sorting result.
5. A search device, characterized in that: include: A candidate prompt information determination module, used to determine at least two candidate prompt information according to the user's search term; wherein the candidate prompt information is a search suggestion that completely or partially hits the user's search term; A search domain identification module is used to determine the type distribution, click distribution and spatial distribution of each candidate prompt information according to the type, click rate and spatial information of each candidate prompt information; wherein the click rate is the frequency of the user clicking on the candidate prompt information to enter the search; determine the distance between each candidate prompt information according to the cosine similarity between each two candidate prompt information; identify the search domain of the search term according to the type distribution, click distribution, spatial distribution and distance between the at least two candidate prompt information; An event generation module, configured to generate a spatiotemporal feature determination event if the search term is associated with at least two types of search fields; A spatiotemporal feature determination module, used to determine the user's search time feature and search space feature when the spatiotemporal feature determination event is monitored; wherein the spatiotemporal feature determination event is a trigger notification when the candidate prompt information involves multiple search fields; A ranking update module, configured to determine the user's demand characteristics according to the search time characteristics and / or the search space characteristics; calculate the cosine similarity between each candidate prompt information and the user's demand characteristics, and update the ranking of the at least two candidate prompt information according to the cosine similarity; The candidate prompt information display module is used to display the at least two candidate prompt information according to the updated sorting result.
6. The device according to claim 5, characterized in that The sorting update module comprises: A demand feature determination unit, configured to determine the demand feature of the user based on the search time feature and / or the search space feature, and the historical prompt information that the user has clicked; The ranking updating unit is used to update the ranking of the at least two candidate prompt information according to the cosine similarity between the user's demand feature and the candidate prompt information.
7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the search method according to any one of claims 1 to 4.
8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the search method according to any one of claims 1 to 4.
