CN104965842B - Method and apparatus are recommended in search - Google Patents
Method and apparatus are recommended in search Download PDFInfo
- Publication number
- CN104965842B CN104965842B CN201410699005.8A CN201410699005A CN104965842B CN 104965842 B CN104965842 B CN 104965842B CN 201410699005 A CN201410699005 A CN 201410699005A CN 104965842 B CN104965842 B CN 104965842B
- Authority
- CN
- China
- Prior art keywords
- recommended search
- search
- recommended
- type
- search word
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000001514 detection method Methods 0.000 claims abstract description 6
- 230000001960 triggered effect Effects 0.000 claims description 38
- 238000007667 floating Methods 0.000 claims description 30
- 238000004458 analytical method Methods 0.000 claims description 3
- 230000002093 peripheral effect Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 20
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Recommend method and apparatus the invention discloses one kind search, belong to field of computer technology.Methods described includes:The application interface for including search column is provided;Whether detection search column gets cursor focus;If search column gets cursor focus, N number of recommendation search term is shown to user based on search column;N number of recommendation search term for recommending search term and at least one Second Type for recommending search term to include at least one first kind, the recommendation search term of the first kind refers to the recommendation search term being pre-configured with according to operation demand, and the recommendation search term of Second Type refers to the recommendation search term obtained according to search hot statistics.The present invention solve correlation technique in search column without input information when, it is impossible to provide recommend search word problem;When having reached in search column without input information, the effect for recommending search term still can be provided, the effect for recommending different types of hot word to user is also achieved, be easy to user to obtain the information that importance is higher at present, attention rate is higher.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a search recommendation method and device.
Background
Some clients or search engines with search functions generally recommend some search terms for users when the users search for relevant information using the search functions.
Taking the client as an example, the client acquires input information input by a user in a search bar, then queries at least one recommended search term associated with the input information, and displays the recommended search term obtained by the query. For example, when the input information entered in the search field by the user is "liu XX", the client provides the recommended search words such as "liu XX concert", "liu XX movie corpus", and "liu XX song" to the user according to the input information.
In the process of implementing the invention, the inventor finds that the technology at least has the following problems: the client or search engine relies on the input information entered by the user in the search bar when providing the recommended search terms. For some users who lack the purpose in searching, if the user does not input information in the search bar, the recommended search word cannot be provided.
Disclosure of Invention
In order to solve the problem that the recommended search word cannot be provided when no input information exists in a search bar in the prior art, the embodiment of the invention provides a search recommendation method and a search recommendation device. The technical scheme is as follows:
in a first aspect, a search recommendation method is provided, where the method includes:
providing an application interface containing a search bar;
detecting whether the search bar obtains a cursor focus or not;
if the search bar obtains the cursor focus, displaying N recommended search terms to a user based on the search bar; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
In a second aspect, a search recommendation method is provided, the method comprising:
providing an application interface containing a search bar;
acquiring a cursor focus event triggered by the user in the search bar;
if the search bar obtains the cursor focus event triggered by the user, displaying N recommended search terms to the user based on the search bar; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
In a third aspect, a search recommendation apparatus is provided, the apparatus comprising:
the interface providing module is used for providing an application interface containing a search bar;
the cursor detection module is used for detecting whether the search bar obtains a cursor focus or not;
the search word display module is used for displaying N recommended search words to a user based on the search bar if the search bar obtains the cursor focus; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
In a fourth aspect, there is provided a search recommendation apparatus, the apparatus comprising:
the interface providing module is used for providing an application interface containing a search bar;
the acquisition event module is used for acquiring a cursor focus event triggered by the user in the search bar;
a search word display module, configured to display N recommended search words to the user based on the search bar if the search bar obtains the cursor focus event triggered by the user; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
displaying N recommended search terms when the search bar is detected to acquire a cursor focus; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a method of search recommendation provided by one embodiment of the present invention;
FIG. 2A is a flowchart of a method of search recommendation provided by another embodiment of the present invention;
FIG. 2B is a schematic view of an interface according to an embodiment of the present invention;
FIG. 2C is a schematic view of another interface according to an embodiment of the present invention;
FIG. 2D is a schematic illustration of yet another interface according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for search recommendation according to another embodiment of the present invention;
FIG. 4 is a flowchart of a method of search recommendation provided by another embodiment of the present invention;
fig. 5 is a block diagram showing the structure of a search recommendation apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram showing a configuration of a search recommendation apparatus according to another embodiment of the present invention;
fig. 7 is a block diagram showing a configuration of a search recommendation apparatus according to another embodiment of the present invention;
fig. 8 is a block diagram showing the structure of a search recommendation apparatus according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for a search recommendation method according to an embodiment of the present invention is shown, where the method is exemplified by being applied to an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, and the like. The search recommendation method can comprise the following steps:
step 102, providing an application interface including a search bar.
A client or a search engine having a search function may be operated in the electronic device. The application interface provided by the client or the search engine comprises a search bar for the user to input content.
And 104, detecting whether the search bar acquires the cursor focus or not.
The electronic equipment detects whether the search bar obtains the cursor focus in real time. When the user needs to use the search function, the search bar may be clicked. Accordingly, the electronic device may display a cursor in the search bar to prompt the user to enter content. At this point, the cursor focus is within the search bar.
And 106, if the search bar obtains the cursor focus, displaying N recommended search words to the user based on the search bar, wherein N is more than or equal to 2 and is an integer.
When the electronic equipment detects that the search bar obtains the cursor focus, the N recommended search terms can be triggered and displayed. The N recommended search terms comprise at least one first type recommended search term and at least one second type recommended search term. The first type of recommended search terms refers to recommended search terms which are pre-configured according to operation requirements, and the second type of recommended search terms refers to recommended search terms which are obtained according to search heat statistics. It should be noted that: in the embodiment of the invention, when the user clicks the search bar, the electronic equipment displays the recommended search words, and the user does not need to input any content in the search bar in the process.
In summary, in the search recommendation method provided in this embodiment, when it is detected that the search bar obtains the cursor focus, N recommended search terms are displayed; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
Referring to fig. 2A, a flowchart of a method for search recommendation according to another embodiment of the present invention is shown, where the present embodiment is illustrated in an application of the search recommendation method to an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, and the like. The search recommendation method can comprise the following steps:
step 201, an application interface including a search bar is provided.
A client or a search engine having a search function may be operated in the electronic device. The application interface provided by the client or the search engine comprises a search bar for the user to input content.
Step 202, selecting a first type of recommended search word meeting a first predetermined condition from the first recommended search word bank.
The first recommended search word bank comprises at least one first type of recommended search word. The first type of recommended search term refers to a recommended search term that is pre-configured according to operation requirements. The recommended search words in the first recommended search word bank are usually configured in advance by an operator according to operation requirements. For example, the operator may configure recommended search words corresponding to information with higher current importance in the first recommended search word bank, or configure recommended search words corresponding to information to be promoted in the first recommended search word bank, or configure recommended search words corresponding to information with current popularity in the first recommended search word bank, or the like.
In addition, the first predetermined condition means that the selected recommended search term of the first type is different from the recommended search term of the first type which has been displayed in the first predetermined period of time corresponding to the current time. The first predetermined time period is a preset empirical value, for example, the first predetermined time period is 0 to 24 points per day. In order to avoid providing repeated recommended search terms to the user within a period of time, when selecting the recommended search terms of the first type to be displayed, it is necessary to ensure that the selected recommended search terms of the first type meet a first predetermined condition. Specifically, the present step may include the following two possible embodiments:
in a first possible implementation manner, p recommended search words of a first type are randomly selected from a first recommended search word library; removing the displayed first type recommended search words in the first preset time period from the p first type recommended search words to obtain i first type recommended search words meeting a first preset condition, wherein p is greater than or equal to i and greater than or equal to 1, and p and i are integers.
Taking the client as an example, the client may record a correspondence between the user identifier and the recommended search term of the first type that has been displayed within the first predetermined period of time. The user identifier is typically a user account for logging in to the client. After the user logs in the client, the client can inquire and acquire the first type of recommended search terms displayed to the user in the first preset time period according to the user identification and the corresponding relation. And then, the client removes the first type recommended search words displayed to the user from the randomly selected plurality of first type recommended search words, and the remaining plurality of first type recommended search words are the first type recommended search words meeting the first preset condition.
For example, for any user, after the user logs in the client by using the user account, the client queries and acquires the first type of recommended search terms, such as recommended search term 1, recommended search term 2, and recommended search term 3, that have been displayed to the user in a period from 0 to 24 points of the day according to the user account and the correspondence. In addition, assume that the 3 first type recommended search terms randomly selected by the client are recommended search term 1, recommended search term 4, and recommended search term 5. At this time, the client removes the displayed recommended search term 1 to obtain 2 recommended search terms of the first type, namely the recommended search term 4 and the recommended search term 5, which meet the first predetermined condition.
In addition, when different users cannot be distinguished by the user identification, the different users can be distinguished by the device identification of the electronic device, so that the first type of recommended search terms are prevented from being repeatedly provided to the users using the same electronic device.
In a second possible embodiment, at least one recommended search term of the first type meeting a first predetermined condition is selected from the first library of recommended search terms according to a first predetermined order.
The recommended search terms of the first type in the first library of recommended search terms may be ordered in a first predetermined sequence, and the first predetermined sequence may remain unchanged for a first predetermined period of time. For example, the sequence of the first type of recommended search word in the first recommended search word bank is: recommended search term 1, recommended search term 2, recommended search term 3 … …. When the recommended search terms of the first type are selected, the recommended search terms can be selected according to a preset first preset sequence, so that repeated selection is avoided.
For example, the 1 st to 3 rd recommended search terms of the first type are selected for the first time, that is, the recommended search term 1, the recommended search term 2, and the recommended search term 3; selecting the 4 th to 6 th recommended search words of the first type for the second time, namely the recommended search word 4, the recommended search word 5 and the recommended search word 6; and so on.
Of course, in other possible embodiments, the first predetermined sequence may also be from the end to the front of the first predetermined sequence. The number of the recommended search terms of the first type selected each time may be the same or different. The selection mode can be sequential continuous selection, interval selection, and the like. The above different embodiments are easily thought by those skilled in the art based on the present embodiment, and are not described herein again.
And step 203, selecting a second type of recommended search word which meets a second preset condition from a second recommended search word library.
And the second recommended search word library comprises at least one recommended search word of a second type. The second type of recommended search term refers to a recommended search term obtained according to search heat statistics. The recommended search words in the second recommended search word bank may be obtained by selecting a plurality of search words with the highest search times according to statistics of the search times of all the search words in a certain time period. Or, the recommended search words in the second recommended search word bank may also be obtained by selecting a plurality of search words with the highest search ratio according to statistics of the search ratios of all search words in a certain time period. Or, the recommended search words in the second recommended search word bank may be obtained by selecting a plurality of search words with the highest number of search words according to statistics of the number of search people for all search words in a certain time period, and so on. The second type of recommended search terms generally corresponds to popular information that is highly focused on by the user.
In addition, the second predetermined condition means that the selected recommended search term of the second type is different from the recommended search term of the second type that has been displayed within a second predetermined period of time corresponding to the current time. The second predetermined period of time is a preset empirical value, for example, the second predetermined period of time is 0 to 24 points per day. In order to avoid providing the user with repeated recommended search terms of the second type within a period of time, when selecting the recommended search terms of the second type to be displayed, it is necessary to ensure that the selected recommended search terms of the second type meet a second predetermined condition. Specifically, the present step may include the following two possible embodiments:
in a first possible implementation manner, q recommended search words of a second type are randomly selected from a second recommended search word library; and removing the displayed recommended search words of the second type in a second preset time period from the q recommended search words of the second type to obtain j recommended search words of the second type meeting a second preset condition, wherein j is greater than or equal to 1, and q and j are integers.
In a second possible implementation, at least one second type of recommended search word meeting a second predetermined condition is selected from a second recommended search word library according to a second predetermined order.
The two possible implementation manners are similar to the two possible implementation manners when the first type of recommended search term is selected, and specific reference is made to the description and the explanation when the first type of recommended search term is selected, which is not described again in this embodiment.
And step 204, detecting whether the search bar acquires the cursor focus.
After the electronic equipment provides an application interface containing the search bar, whether the search bar obtains the cursor focus or not is detected in real time. When the user needs to use the search function, the search bar may be clicked. Accordingly, the electronic device may display a cursor in the search bar to prompt the user to enter content. At this point, the cursor focus is within the search bar.
In step 205, if the search bar obtains the cursor focus, N recommended search terms are displayed to the user based on the search bar.
When the electronic equipment detects that the search bar obtains the cursor focus, the N recommended search terms can be triggered and displayed. Wherein, the N recommended search terms include at least one recommended search term of the first type and at least one recommended search term of the second type, that is, the recommended search terms selected in the above step 202 and step 203.
In addition, the electronic device may display the recommended search terms in several ways:
1. n recommended search terms are displayed to the user in a list form below the search bar, each recommended search term corresponding to a list item.
When the electronic equipment acquires a cursor focus corresponding to the search bar, a list is displayed in a pull-down mode below the search bar, the list comprises a plurality of list items, and the number of the list items contained in the list is larger than or equal to the number of the recommended search words needing to be displayed. And correspondingly displaying a recommended search word in each list item.
As shown in fig. 2B, which shows a schematic diagram of a possible interface involved in the present embodiment. Taking the example of application to a music-class client, when the user clicks on the search bar 21, the electronic device displays a first type of recommended search word 22, such as "XX good sound XX team albums" in fig. 2B, and a second type of recommended search word 23, such as "zhang XX", "xiao-orange", and "liu XX" in fig. 2B, in a list form under the search bar 21. Each recommended search term corresponds to a listing.
2. N recommended search terms are displayed to the user in a list above the search bar, each recommended search term corresponding to a list item.
When the electronic equipment acquires a cursor focus corresponding to the search bar, a list is displayed in a pull-up mode above the search bar, the list comprises a plurality of list items, and the number of the list items contained in the list is larger than or equal to the number of the recommended search words required to be displayed. And correspondingly displaying a recommended search word in each list item.
3. N recommended search terms are displayed to the user in a floating window around the search bar, and each recommended search term corresponds to one floating window.
The electronic device may also display the recommended search terms in a floating window. As shown in fig. 2C, another possible interface diagram related to the present embodiment is shown. Still taking the example of application to a music-like client, when the user clicks on the search bar 21, the electronic device displays a number of floating windows around the search bar 21, such as the first floating window 24 and the second floating window 25 in fig. 2C. Wherein, the first floating window 24 displays the first type of recommended search word, such as "XX good sound XX team album" in fig. 2C; the second floating window 25 displays therein the recommended search words of the second type, such as "zhang XX", "xiao orange", and "liu XX" in fig. 2C. Each recommended search term corresponds to a floating window.
Preferably, the first type of recommended search word and the second type of recommended search word may be displayed in different display forms to distinguish them. For example, the recommended search terms of the first type are displayed in bold, and the recommended search terms of the second type are not displayed in bold. As another example, recommended search terms of the first type are displayed above the search bar, and recommended search terms of the second type are displayed below the search bar. Of course, the display forms can be distinguished in various forms such as fonts, colors, positions, sizes, and the like, which is a content that can be easily thought by those skilled in the art on the basis of the present embodiment, and thus, the description thereof is omitted.
Optionally, the electronic device may also display a prompt character in the search bar and/or a prompt icon in the search bar. The prompting characters are used for prompting the user to input the range of the content in the search bar; the prompt icon is used to prompt the user as to the manner in which the content is entered in the search bar. As shown in fig. 2B or fig. 2C, still taking the client as a music-type client as an example, the prompt character 26 may be "singer, album, MV, or song list", so as to prompt the user to input the name of the singer, the name of the album, the name of the MV, or the name of the song list as a search word in the search field for searching related information. The content of the prompt characters may be configured according to information that can be provided by the client or the search engine. In addition, as shown in fig. 2B or fig. 2C, the prompt icon 27 may be a microphone icon, so as to prompt the user that the search bar supports a voice input mode, and the user can directly input voice information for searching. The prompt icon may be configured according to the input mode that the client or search engine can support. For example, when a text input mode is supported, a keyboard icon is displayed; displaying a microphone icon when a voice input mode is supported; when the image input mode is supported, a camera icon is displayed, and the like.
The points to be explained are: the step 202 may be performed before the step 203, after the step 203, or simultaneously with the step 203, which is not specifically limited in this embodiment. In addition, the step 202 and the step 203 may be performed before the cursor focus is detected and obtained, for example, the step 202 and the step 203 are performed when the user logs in the client or opens the search interface including the search bar, so that it is ensured that the recommended search word is displayed subsequently, efficiently and quickly; alternatively, the step 202 and the step 203 may be performed after the cursor focus is detected and acquired, so that unnecessary data processing and data communication may be avoided, and computational resources and communication resources may be saved. In practical applications, a reasonable implementation manner may be selected according to practical situations, and this embodiment is not particularly limited in this respect.
What needs to be further explained is that: when the electronic equipment provides the recommended search terms for the user, the user only needs to click the search bar, and the recommended search terms can be triggered and displayed. In this process, the user is not required to enter anything in the search bar. Therefore, for some users lacking in purpose during searching, better recommended search terms can be provided for the users, and user experience is fully improved.
In addition, the search recommendation method provided in this embodiment may further include the following steps 206 to 209:
at step 206, a selection signal corresponding to any one of the recommended search terms is obtained.
When a user needs to check information corresponding to any one recommended search word, a selection signal can be triggered by clicking, touching and the like. Accordingly, the electronic device acquires a selection signal corresponding to any one of the recommended search terms.
Step 207, analyzing the selected recommended search terms and determining the corresponding page type.
For any one recommended search term, the recommended search term may correspond to pages of different page types, and the page includes different information corresponding to the recommended search term, that is, different search results. In this regard, the electronic device may obtain the page type corresponding to the selected recommended search term according to the statistical record of the historical search behavior of the user.
In a possible implementation manner, when the search recommendation method provided in this embodiment is applied to a Music client, the page types generally include a song list detail page, an album detail page, a singer detail page, a leaderboard detail page, a category detail page, an MV (Music Video) detail page, and the like.
And step 208, acquiring the page link matched with the selected recommended search word from the page link library matched with the page type.
Each page type can be correspondingly matched with a page link library, and the page link library comprises at least one page link corresponding to different pages of the same page type. For example, the page link library matched with the album detail page may include different page links corresponding to different albums. The electronic equipment firstly determines a page link library matched with the page type, and then inquires and acquires the page link matched with the selected recommended search word from the page link library. Wherein, the page link is usually URL (Uniform Resource Locator)
And step 209, displaying the corresponding page according to the page link.
And after the electronic equipment acquires the page link, displaying the corresponding page according to the page link. And when the page link is the URL, displaying the corresponding webpage.
For example, with reference to fig. 2B, 2C, and 2D, when the selected recommended search term is "sheet XX", the electronic device determines that the corresponding page type is the singer detail page according to the record statistics of the historical search behavior of the user corresponding to "sheet XX". Thereafter, the electronic device obtains the page link corresponding to "page XX" from the page link library matched with the singer's detail page, and displays the corresponding singer's detail page according to the page link, as shown by page 28 in fig. 2D.
The points to be explained are: in order to ensure the real-time performance of the recommended search words in the recommended search word bank, the recommended search words which are changed and conform to the hot spots at the moment are provided for the user, and the recommended search words of the first type in the first recommended search word bank can be updated at intervals of a first preset time interval. Similarly, the second type of recommended search word in the second recommended search word bank may be updated at second predetermined time intervals. Wherein the first predetermined time interval and the second predetermined time interval are preset empirical values, such as 1 day.
What needs to be further explained is that: the above steps 201 to 209 may be performed by the electronic device alone. For example, the electronic device stores a first recommended search word bank and a second recommended search word bank in advance, and then provides recommended search words to the user through the steps. Alternatively, the above steps 201 to 209 may also be performed by an electronic device and a server interactively. For example, a first recommended search word bank and a second recommended search word bank are stored in the server in advance; the electronic equipment sends a search word acquisition request carrying a user identifier or an equipment identifier to a server; the server selects a first type of recommended search word and a second type of recommended search word from the first recommended search word bank and the second recommended search word bank respectively according to the search word acquisition request, and feeds the selected recommended search word back to the electronic equipment; and after the electronic equipment acquires the input instruction acting on the search bar, displaying the recommended search words fed back by the server. In practical applications, the steps may be distributed to different devices for execution according to practical situations, and this embodiment is not particularly limited.
In summary, in the search recommendation method provided in this embodiment, when it is detected that the search bar obtains the cursor focus, N recommended search terms are displayed; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
In addition, according to the search recommendation method provided by the embodiment, the repeated recommended search terms are prevented from being provided for the user within a period of time by selecting the recommended search terms of the first type meeting the first predetermined condition and/or selecting the recommended search terms of the second type meeting the second predetermined condition, and the user experience is fully improved.
In addition, the search recommendation method provided by this embodiment also realizes that the pages of different page types are displayed for different recommended search terms by setting the pages of different page types, and improves the pertinence and accuracy of the fed back search results.
Referring to fig. 3, a flowchart of a method for search recommendation according to another embodiment of the present invention is shown, where the method for search recommendation is exemplified by being applied to an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, and the like. The search recommendation method can comprise the following steps:
step 302, an application interface including a search bar is provided.
The electronic device provides the user with an application interface, which may be a client with search functionality or a related interface of a search engine. In addition, the application interface comprises a search bar for the user to input the content.
Step 304, acquiring a cursor focus event triggered by the user in the search bar.
The user may click on the search bar to trigger a cursor focus event while using the search function. Accordingly, a cursor will be displayed in the search bar to prompt the user to enter content.
And step 306, if the search bar obtains a cursor focus event triggered by the user, displaying N recommended search terms to the user based on the search bar, wherein N is greater than or equal to 2 and is an integer.
When the search bar obtains a cursor focus event triggered by a user, the electronic device can trigger and display the N recommended search terms. The N recommended search terms comprise at least one first type recommended search term and at least one second type recommended search term. The first type of recommended search terms refers to recommended search terms which are pre-configured according to operation requirements, and the second type of recommended search terms refers to recommended search terms which are obtained according to search heat statistics. It should be noted that: in the embodiment of the invention, when the user clicks the search bar, the electronic equipment displays the recommended search words, and the user does not need to input any content in the search bar in the process.
In summary, in the search recommendation method provided in this embodiment, when a cursor focus event triggered by a user in a search bar is acquired, N recommended search terms are displayed; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
Referring to fig. 4, a flowchart of a method for search recommendation according to another embodiment of the present invention is shown, where the present embodiment is illustrated in an application of the search recommendation method to an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, and the like. The search recommendation method can comprise the following steps:
step 401, an application interface including a search bar is provided.
The electronic device provides the user with an application interface, which may be a client with search functionality or a related interface of a search engine. In addition, the application interface comprises a search bar for the user to input the content.
Step 402, acquiring a cursor focus event triggered by a user in a search bar.
The user may click on the search bar to trigger a cursor focus event while using the search function. Accordingly, a cursor will be displayed in the search bar to prompt the user to enter content.
Step 403, if the search bar obtains a cursor focus event triggered by the user, displaying N recommended search terms to the user based on the search bar, where N is greater than or equal to 2 and N is an integer.
When the search bar obtains a cursor focus event triggered by a user, the electronic device can trigger and display the N recommended search terms. The N recommended search terms comprise at least one first type recommended search term and at least one second type recommended search term. The first type of recommended search terms refers to recommended search terms which are pre-configured according to operation requirements, and the second type of recommended search terms refers to recommended search terms which are obtained according to search heat statistics. It should be noted that: in the embodiment of the invention, when the user clicks the search bar, the electronic equipment displays the recommended search words, and the user does not need to input any content in the search bar in the process. Therefore, for some users lacking in purpose during searching, better recommended search terms can be provided for the users, and user experience is fully improved.
In addition, the electronic device may display the recommended search terms in several ways:
1. n recommended search terms are displayed to the user in a list form below the search bar, each recommended search term corresponding to a list item.
When the search bar obtains a cursor focus event triggered by a user, the electronic device displays a list in a pull-down mode below the search bar, the list comprises a plurality of list items, and the number of the list items contained in the list is larger than or equal to the number of the recommended search terms needing to be displayed. And correspondingly displaying a recommended search word in each list item.
Referring to fig. 2B in combination, for example, as applied to a music-based client, when the user clicks the search bar 21, the electronic device displays a first type of recommended search word 22, such as "XX good sound XX team albums" in fig. 2B, and a second type of recommended search word 23, such as "zhang XX", "xiao orange", and "liu XX" in fig. 2B, in a list form under the search bar 21. Each recommended search term corresponds to a listing.
2. N recommended search terms are displayed to the user in a list above the search bar, each recommended search term corresponding to a list item.
When the search bar obtains a cursor focus event triggered by a user, the electronic device displays a list above the search bar in a pull-up mode, wherein the list comprises a plurality of list items, and the number of the list items contained in the list is larger than or equal to the number of the recommended search terms required to be displayed. And correspondingly displaying a recommended search word in each list item.
3. N recommended search terms are displayed to the user in a floating window around the search bar, and each recommended search term corresponds to one floating window.
The electronic device may also display the recommended search terms in a floating window. Referring to fig. 2C in conjunction, and still taking the example of application to a music-like client, when the user clicks on the search bar 21, the electronic device displays a number of floating windows around the search bar 21, such as the first floating window 24 and the second floating window 25 in fig. 2C. Wherein, the first floating window 24 displays the first type of recommended search word, such as "XX good sound XX team album" in fig. 2C; the second floating window 25 displays therein the recommended search words of the second type, such as "zhang XX", "xiao orange", and "liu XX" in fig. 2C. Each recommended search term corresponds to a floating window.
Preferably, the first type of recommended search word and the second type of recommended search word may be displayed in different display forms to distinguish them. For example, the recommended search terms of the first type are displayed in bold, and the recommended search terms of the second type are not displayed in bold. As another example, recommended search terms of the first type are displayed above the search bar, and recommended search terms of the second type are displayed below the search bar. Of course, the display forms can be distinguished in various forms such as fonts, colors, positions, sizes, and the like, which is a content that can be easily thought by those skilled in the art on the basis of the present embodiment, and thus, the description thereof is omitted.
Optionally, the electronic device may also display a prompt character in the search bar and/or a prompt icon in the search bar. The prompting characters are used for prompting the user to input the range of the content in the search bar; the prompt icon is used to prompt the user as to the manner in which the content is entered in the search bar. As shown in fig. 2B or fig. 2C, still taking the client as a music-type client as an example, the prompt character 26 may be "singer, album, MV, or song list", so as to prompt the user to input the name of the singer, the name of the album, the name of the MV, or the name of the song list as a search word in the search field for searching related information. The content of the prompt characters may be configured according to information that can be provided by the client or the search engine. In addition, as shown in fig. 2B or fig. 2C, the prompt icon 27 may be a microphone icon, so as to prompt the user that the search bar supports a voice input mode, and the user can directly input voice information for searching. The prompt icon may be configured according to the input mode that the client or search engine can support. For example, when a text input mode is supported, a keyboard icon is displayed; displaying a microphone icon when a voice input mode is supported; when the image input mode is supported, a camera icon is displayed, and the like.
In addition, the search recommendation method provided in this embodiment may further include the following steps 404 and 405:
step 404, acquiring a click event triggered by the user in any recommended search term.
When a user needs to check information corresponding to any one recommended search term, a click event can be triggered through operations such as clicking and touching. Correspondingly, the electronic equipment acquires a click event triggered by any recommended search term.
Step 405, if a click event triggered by the user is acquired, displaying a page corresponding to the clicked recommended search term to the user.
Different recommended search terms correspond to different pages. And the electronic equipment displays the page corresponding to the clicked recommended search term according to the corresponding relation between different recommended search terms and different pages.
In a possible implementation manner, when the search recommendation method provided by this embodiment is applied to a music client, the page type of the page is any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page, and a music video MV detail page.
For example, referring to fig. 2B, 2C and 2D in combination, when the clicked recommended search term is "sheet XX", the electronic device displays a singer detail page corresponding to "sheet XX", as shown by page 28 in fig. 2D.
In summary, in the search recommendation method provided in this embodiment, when a cursor focus event triggered by a user in a search bar is acquired, N recommended search terms are displayed; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
In addition, the search recommendation method provided by the embodiment also realizes that the pages of different page types are displayed according to different recommended search terms, and improves the pertinence and the accuracy of the fed-back search results.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 5, a block diagram of a search recommendation apparatus according to an embodiment of the present invention is shown, where the search recommendation apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. The search recommendation apparatus may include: an interface providing module 510, a cursor detecting module 520, and a search term displaying module 530.
An interface providing module 510 for providing an application interface including a search bar.
And a cursor detection module 520, configured to detect whether the search bar obtains a cursor focus.
A search term display module 530, configured to display N recommended search terms to a user based on the search bar if the search bar obtains the cursor focus; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word which is configured in advance according to operation requirements, the second type recommended search word refers to a recommended search word which is obtained according to search heat statistics, N is larger than or equal to 2, and N is an integer.
In summary, the search recommendation apparatus provided in this embodiment displays N recommended search terms when it is detected that the search bar obtains the cursor focus; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
Referring to fig. 6, a block diagram of a search recommendation apparatus according to another embodiment of the present invention is shown, where the search recommendation apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. The search recommendation apparatus may include: an interface providing module 510, a cursor detecting module 520, and a search term displaying module 530.
An interface providing module 510 for providing an application interface including a search bar.
And a cursor detection module 520, configured to detect whether the search bar obtains a cursor focus.
A search term display module 530, configured to display N recommended search terms to a user based on the search bar if the search bar obtains the cursor focus; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word which is configured in advance according to operation requirements, the second type recommended search word refers to a recommended search word which is obtained according to search heat statistics, N is larger than or equal to 2, and N is an integer.
Optionally, the search term display module 530 includes:
a first display unit, configured to display the N recommended search terms to the user in a list form below the search bar, where each recommended search term corresponds to a list item; or,
a second display unit, configured to display the N recommended search terms to the user in a list form above the search bar, where each recommended search term corresponds to a list item; or,
a third display unit, configured to display the N recommended search terms to the user in a floating window around the search bar, where each recommended search term corresponds to one floating window.
Optionally, the apparatus further comprises: a first selection module 512; and/or a second selection module 514.
The first selecting module 512 is configured to select, from the first recommended search word library, the recommended search word of the first type meeting a first predetermined condition, where the first predetermined condition is that the selected recommended search word of the first type is different from the recommended search word of the first type that has been displayed in a first predetermined period of time corresponding to the current time.
The first selecting module 512 includes: a first random access unit 512a and a first removal unit 512 b.
A first random selecting unit 512a, configured to randomly select p recommended search terms of a first type from the first recommended search term library; the first removing unit 512b is configured to remove the recommended search terms of the first type that have been displayed within the first predetermined period from the p recommended search terms of the first type, to obtain i recommended search terms of the first type that meet the first predetermined condition, where p is greater than or equal to i is greater than or equal to 1, and p and i are integers.
Alternatively, the first selecting module 512 includes: a first order selection unit 512 c.
The first order selecting unit 512c is configured to select, according to a first predetermined order, the at least one first type of recommended search word that meets the first predetermined condition from the first recommended search word bank.
The second selecting module 514 is configured to select, from a second recommended search word library, the recommended search word of the second type meeting a second predetermined condition, where the second predetermined condition is that the selected recommended search word of the second type is different from the recommended search word of the second type that has been displayed in a second predetermined period of time corresponding to the current time.
The second selecting module 514 includes: a second random selection unit 514a and a second removal unit 514 b.
A second random selecting unit 514a, configured to randomly select q recommended search terms of the second type from the second recommended search term library; the second removing unit 514b is configured to remove the recommended search terms of the second type that have been displayed within the second predetermined period from the q recommended search terms of the second type to obtain j recommended search terms of the second type that meet the second predetermined condition, where q is greater than or equal to j is greater than or equal to 1, and q and j are integers.
Alternatively, the second selecting module 514 includes: the second order picking unit 514 c.
The second order selecting unit 514c is configured to select, according to a second predetermined order, the at least one second type of recommended search term from the second recommended search term library, where the at least one second type of recommended search term meets the second predetermined condition.
Optionally, the apparatus further comprises: a signal acquisition module 540, a search term analysis module 550, a link acquisition module 560, and a page display module 570.
A signal obtaining module 540, configured to obtain a selection signal corresponding to any one of the recommended search terms.
A search term analysis module 550, configured to analyze the selected recommended search term and determine a corresponding page type; the page type comprises any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page and a music video MV detail page.
And a link obtaining module 560, configured to obtain a page link matching the selected recommended search term from a page link library matching the page type.
And the page display module 570 is configured to display a corresponding page according to the page link.
In summary, the search recommendation apparatus provided in this embodiment displays N recommended search terms when it is detected that the search bar obtains the cursor focus; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
In addition, the search recommendation device provided in this embodiment also selects the first recommended search term meeting the first predetermined condition and/or selects the second recommended search term meeting the second predetermined condition, thereby avoiding providing repeated recommended search terms to the user within a period of time, and sufficiently improving user experience.
In addition, the search recommendation device provided by this embodiment also realizes that the pages of different page types are displayed for different recommended search terms by setting the pages of different page types, and improves the pertinence and accuracy of the fed back search results.
Referring to fig. 7, a block diagram of a search recommendation apparatus according to another embodiment of the present invention is shown, where the search recommendation apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. The search recommendation apparatus may include: an interface providing module 710, a get events module 720, and a display search terms module 730.
An interface module 710 is provided for providing an application interface including a search bar.
An obtaining event module 720, configured to obtain a cursor focus event triggered by the user in the search bar.
A search word display module 730, configured to display N recommended search words to the user based on the search bar if the search bar obtains the cursor focus event triggered by the user; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word which is configured in advance according to operation requirements, the second type recommended search word refers to a recommended search word which is obtained according to search heat statistics, N is larger than or equal to 2, and N is an integer.
In summary, the search recommendation apparatus provided in this embodiment displays N recommended search terms when acquiring a cursor focus event triggered by a user in a search bar; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
Referring to fig. 8, a block diagram of a search recommendation apparatus according to another embodiment of the present invention is shown, where the search recommendation apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. The search recommendation apparatus may include: an interface providing module 710, a get events module 720, and a display search terms module 730.
An interface module 710 is provided for providing an application interface including a search bar.
An obtaining event module 720, configured to obtain a cursor focus event triggered by the user in the search bar.
A search word display module 730, configured to display N recommended search words to the user based on the search bar if the search bar obtains the cursor focus event triggered by the user; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word which is configured in advance according to operation requirements, the second type recommended search word refers to a recommended search word which is obtained according to search heat statistics, N is larger than or equal to 2, and N is an integer.
Wherein the search term display module 730 includes:
a lower display unit 730a, configured to display the N recommended search terms to the user in a list form below the search bar, where each recommended search term corresponds to a list item. Or,
an upper display unit 730b, configured to display the N recommended search terms to the user in a list form above the search bar, where each recommended search term corresponds to a list item. Or,
a surrounding display unit 730c, configured to display the N recommended search terms to the user in a floating window form around the search bar, where each recommended search term corresponds to one floating window.
Optionally, the apparatus further comprises: get click module 740 and display page module 750
The click obtaining module 740 is configured to obtain a click event triggered by any recommended search term by the user.
A page display module 750, configured to display a page corresponding to the clicked recommended search term to the user if the click event triggered by the user is obtained; the page type of the page is any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page and a music video MV detail page.
In summary, the search recommendation apparatus provided in this embodiment displays N recommended search terms when acquiring a cursor focus event triggered by a user in a search bar; the problem that the recommended search words cannot be provided when no input information exists in the search bar in the related art is solved; the effect of recommending the search terms can be achieved when no input information exists in the search bar. In addition, the N recommended search terms are the recommended search terms which are pre-configured according to the operation requirements and the recommended search terms which are obtained according to the search heat statistics, so that the effect of recommending different types of hot terms to the user is achieved, and the user can conveniently obtain information with high importance and high attention at present.
In addition, the search recommendation device provided by the embodiment also realizes that the pages of different page types are displayed according to different recommended search terms, and improves the pertinence and the accuracy of the fed-back search results.
It should be noted that: in the search recommendation apparatus provided in the foregoing embodiment, when providing the recommended search term, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the search recommendation device and the method embodiment of the search recommendation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Referring to fig. 9, a schematic structural diagram of an electronic device according to an embodiment of the invention is shown. The electronic device is used for implementing the search recommendation method provided in the above embodiment. Specifically, the method comprises the following steps:
electronic device 900 may include RF (Radio Frequency) circuitry 910, memory 920 including one or more computer-readable storage media, input unit 930, display unit 940, sensor 950, audio circuitry 960, WiFi (wireless fidelity) module 970, processor 980 including one or more processing cores, and power supply 990, among other components. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 910 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 980; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 920 may be used to store software programs and modules, and the processor 980 performs various functional applications and data processing by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic apparatus 900, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 920 may also include a memory controller to provide the processor 980 and the input unit 930 with access to the memory 920.
The input unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 930 may include an image input device 931 and other input devices 932. The image input device 931 may be a camera or a photoelectric scanning device. The input unit 930 may include other input devices 932 in addition to the image input device 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
The electronic device 900 may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 941 and/or a backlight when the electronic device 900 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device 900, detailed descriptions thereof are omitted.
The audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and the electronic device 900. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; microphone 962, on the other hand, converts collected sound signals into electrical signals, which are received by audio circuit 960 and converted into audio data, which are processed by audio data output processor 980, either through RF circuit 910 for transmission to another electronic device, for example, or output to memory 920 for further processing. The audio circuit 960 may also include an earbud jack to provide communication of a peripheral headset with the electronic device 900.
WiFi belongs to short-range wireless transmission technology, and the electronic device 900 can help the user send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 970, which provides the user with wireless broadband internet access. Although fig. 9 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the electronic device 900 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the electronic device 900, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 900 and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the cellular phone. Optionally, processor 980 may include one or more processing cores; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The electronic device 900 also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may be logically connected to the processor 980 via a power management system, for managing charging, discharging, and power consumption via the power management system. Power supply 990 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 900 may further include a bluetooth module or the like, which is not described herein.
Specifically, in this embodiment, the electronic device 900 further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors to perform the search recommendation method according to the above-described method embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (18)
1. A search recommendation method, the method comprising:
providing an application interface containing a search bar;
detecting whether the search bar obtains a cursor focus or not;
if the search bar obtains the cursor focus, displaying N recommended search terms to a user based on the search bar; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
2. The method of claim 1, wherein displaying N recommended search terms to a user based on the search bar comprises:
displaying the N recommended search terms to the user in a list form below the search bar, each recommended search term corresponding to a list item; or,
displaying the N recommended search terms to the user in a list form above the search bar, each recommended search term corresponding to a list item; or,
displaying the N recommended search terms to the user in a floating window form around the search bar, each recommended search term corresponding to a floating window.
3. The method of claim 1, wherein prior to displaying the N recommended search terms to the user based on the search bar, further comprising:
selecting the recommended search words of the first type which accord with a first preset condition from the first recommended search word bank, wherein the first preset condition means that the selected recommended search words of the first type are different from the recommended search words of the first type which are displayed in a first preset period corresponding to the current time;
and/or the presence of a gas in the gas,
and selecting the recommended search words of the second type meeting a second preset condition from the second recommended search word library, wherein the second preset condition means that the selected recommended search words of the second type are different from the recommended search words of the second type which are displayed in a second preset time period corresponding to the current time.
4. The method of claim 3, wherein said selecting the recommended search term of the first type meeting a first predetermined condition from the first recommended search term library comprises:
randomly selecting p recommended search words of a first type from the first recommended search word bank; removing the displayed recommended search words of the first type in a first preset time period corresponding to the current time from the p recommended search words of the first type to obtain i recommended search words of the first type meeting the first preset condition, wherein p is not less than i and not less than 1, and p and i are integers;
or,
and selecting the at least one first type of recommended search word meeting the first preset condition from the first recommended search word bank according to a first preset sequence.
5. The method of claim 3, wherein said selecting the recommended search term of the second type meeting a second predetermined condition from the second recommended search term library comprises:
randomly selecting q recommended search words of a second type from the second recommended search word bank; removing the displayed recommended search words of the second type in a second preset time period corresponding to the current time from the q recommended search words of the second type to obtain j recommended search words of the second type meeting the second preset condition, wherein j is greater than or equal to 1, and q and j are integers;
or,
and selecting the at least one second type recommended search word meeting the second preset condition from the second recommended search word bank according to a second preset sequence.
6. The method of any of claims 1 to 5, wherein after displaying the N recommended search terms to the user based on the search bar, further comprising:
acquiring a selection signal corresponding to any one recommended search word;
analyzing the selected recommended search terms to determine corresponding page types; the page type is any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page and a music video MV detail page;
acquiring a page link matched with the selected recommended search word from a page link library matched with the page type;
and displaying the corresponding page according to the page link.
7. A search recommendation method, the method comprising:
providing an application interface containing a search bar;
acquiring a cursor focus event triggered by the user in the search bar;
if the search bar obtains the cursor focus event triggered by the user, displaying N recommended search terms to the user based on the search bar; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
8. The method of claim 7, wherein the displaying N recommended search terms to the user based on the search bar comprises:
displaying the N recommended search terms to the user in a list form below the search bar, each recommended search term corresponding to a list item; or,
displaying the N recommended search terms to the user in a list form above the search bar, each recommended search term corresponding to a list item; or,
displaying the N recommended search terms to the user in a floating window form around the search bar, each recommended search term corresponding to a floating window.
9. The method of claim 7 or 8, wherein after displaying the N recommended search terms to the user based on the search bar, further comprising:
acquiring a click event triggered by any recommended search word by the user;
if the click event triggered by the user is obtained, displaying a page corresponding to the clicked recommended search word to the user; the page type of the page is any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page and a music video MV detail page.
10. A search recommendation apparatus, characterized in that the apparatus comprises:
the interface providing module is used for providing an application interface containing a search bar;
the cursor detection module is used for detecting whether the search bar obtains a cursor focus or not;
the search word display module is used for displaying N recommended search words to a user based on the search bar if the search bar obtains the cursor focus; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
11. The apparatus of claim 10, wherein the search term display module comprises:
a first display unit, configured to display the N recommended search terms to the user in a list form below the search bar, where each recommended search term corresponds to a list item; or,
a second display unit, configured to display the N recommended search terms to the user in a list form above the search bar, where each recommended search term corresponds to a list item; or,
a third display unit, configured to display the N recommended search terms to the user in a floating window around the search bar, where each recommended search term corresponds to one floating window.
12. The apparatus of claim 10, further comprising:
the first selection module is used for selecting the recommended search words of the first type which accord with a first preset condition from the first recommended search word library, wherein the first preset condition means that the selected recommended search words of the first type are different from the recommended search words of the first type which are displayed in a first preset time period corresponding to the current time;
and/or the presence of a gas in the gas,
the second selecting module is configured to select, from the second recommended search word library, the recommended search word of the second type meeting a second predetermined condition, where the second predetermined condition is that the selected recommended search word of the second type is different from the recommended search word of the second type that has been displayed within a second predetermined period of time corresponding to the current time.
13. The apparatus of claim 12, wherein the first selecting module comprises:
the first random selection unit is used for randomly selecting p recommended search words of a first type from the first recommended search word bank; the first removing unit is used for removing the displayed recommended search words of the first type in a first preset time period corresponding to the current time from the p recommended search words of the first type to obtain i recommended search words of the first type meeting the first preset condition, wherein p is not less than i and not less than 1, and p and i are integers;
or,
and the first sequence selection unit is used for selecting the at least one first type of recommended search word meeting the first preset condition from the first recommended search word bank according to a first preset sequence.
14. The apparatus of claim 12, wherein the second selecting module comprises:
the second random selection unit is used for randomly selecting q recommended search words of a second type from the second recommended search word bank; the second removing unit is used for removing the displayed recommended search words of the second type in a second preset time period corresponding to the current time from the q recommended search words of the second type to obtain j recommended search words of the second type meeting the second preset condition, wherein q is greater than or equal to j and is greater than or equal to 1, and q and j are integers;
or,
and the second sequence selection unit is used for selecting the at least one second type of recommended search word which meets the second preset condition from the second recommended search word library according to a second preset sequence.
15. The apparatus of any one of claims 10 to 14, further comprising:
the signal acquisition module is used for acquiring a selection signal corresponding to any one recommended search word;
the search term analysis module is used for analyzing the selected recommended search terms and determining the corresponding page types; the page type comprises any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page and a music video MV detail page;
the link acquisition module is used for acquiring a page link matched with the selected recommended search word from a page link library matched with the page type;
and the page display module is used for displaying the corresponding page according to the page link.
16. A search recommendation apparatus, characterized in that the apparatus comprises:
the interface providing module is used for providing an application interface containing a search bar;
the acquisition event module is used for acquiring a cursor focus event triggered by the user in the search bar;
a search word display module, configured to display N recommended search words to the user based on the search bar if the search bar obtains the cursor focus event triggered by the user; the N recommended search words comprise at least one first type recommended search word and at least one second type recommended search word, the first type recommended search word refers to a recommended search word configured in advance according to operation requirements, the first type recommended search word is selected from a first recommended search word bank, the second type recommended search word refers to a recommended search word obtained according to search heat statistics, the second type recommended search word is selected from a second recommended search word bank, N is larger than or equal to 2, and N is an integer.
17. The apparatus of claim 16, wherein the means for displaying search terms comprises:
a lower display unit for displaying the N recommended search terms to the user in a list form under the search bar, each recommended search term corresponding to a list item; or,
the upper display unit is used for displaying the N recommended search terms to the user in a list form above the search bar, wherein each recommended search term corresponds to a list item; or,
a peripheral display unit for displaying the N recommended search terms to the user in a floating window form around the search bar, each recommended search term corresponding to one floating window.
18. The apparatus of claim 16 or 17, further comprising:
the acquisition and click module is used for acquiring a click event triggered by any recommended search word by the user;
the page display module is used for displaying a page corresponding to the clicked recommended search term to the user if the click event triggered by the user is acquired; the page type of the page is any one of a song list detail page, an album detail page, a singer detail page, a ranking list detail page, a classification detail page and a music video MV detail page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410699005.8A CN104965842B (en) | 2014-11-27 | 2014-11-27 | Method and apparatus are recommended in search |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410699005.8A CN104965842B (en) | 2014-11-27 | 2014-11-27 | Method and apparatus are recommended in search |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104965842A CN104965842A (en) | 2015-10-07 |
CN104965842B true CN104965842B (en) | 2017-10-10 |
Family
ID=54219878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410699005.8A Active CN104965842B (en) | 2014-11-27 | 2014-11-27 | Method and apparatus are recommended in search |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104965842B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975492A (en) * | 2016-04-26 | 2016-09-28 | 乐视控股(北京)有限公司 | Search term prompt method and device |
CN106919693B (en) * | 2017-03-07 | 2020-12-01 | 阿里巴巴(中国)有限公司 | Method and device for improving hot word exposure coverage rate |
CN106960022A (en) * | 2017-03-14 | 2017-07-18 | 北京小米移动软件有限公司 | Application program recommends method and device |
CN107798066A (en) * | 2017-09-25 | 2018-03-13 | 北京小度信息科技有限公司 | A kind of search term method for pushing, device and terminal |
CN107832332A (en) * | 2017-09-29 | 2018-03-23 | 北京奇虎科技有限公司 | The method, apparatus and electronic equipment for recommending word are generated in navigating search frame |
CN108874975A (en) * | 2018-06-08 | 2018-11-23 | Oppo(重庆)智能科技有限公司 | Search for content recommendation method, device, terminal device and storage medium |
CN110889030A (en) * | 2018-09-06 | 2020-03-17 | 北京奇元科技有限公司 | Method and device for recommending content |
CN111368025B (en) * | 2020-02-24 | 2023-12-22 | 百度在线网络技术(北京)有限公司 | Hot word recommendation method and equipment for intelligent voice equipment and storage medium |
CN111768274A (en) * | 2020-06-24 | 2020-10-13 | 中国地质大学(武汉) | A data classification storage system based on artificial intelligence |
CN112883225B (en) * | 2021-02-02 | 2022-10-11 | 聚好看科技股份有限公司 | Media resource searching and displaying method and equipment |
CN113806567B (en) * | 2021-09-17 | 2024-01-02 | 北京达佳互联信息技术有限公司 | Recommendation method and device for search terms |
CN113918801A (en) * | 2021-10-28 | 2022-01-11 | 北京字跳网络技术有限公司 | Information recommendation method and equipment |
CN114579842B (en) * | 2022-02-15 | 2024-07-02 | 北京字节跳动网络技术有限公司 | Method for providing associated word on search interface and related equipment |
CN117369686A (en) * | 2023-08-05 | 2024-01-09 | 越读(浙江)数字科技有限公司 | Document data classification method, system, terminal and medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8190724B2 (en) * | 2006-10-13 | 2012-05-29 | Yahoo! Inc. | Systems and methods for establishing or maintaining a personalized trusted social network |
CN103136224A (en) * | 2011-11-24 | 2013-06-05 | 百度时代网络技术(北京)有限公司 | Recommendation method and device for keywords |
KR101593720B1 (en) * | 2011-12-27 | 2016-02-17 | 한국전자통신연구원 | Contents search recommendation apparatus and method based on semantic network |
CN103198072B (en) * | 2012-01-06 | 2018-11-13 | 深圳市世纪光速信息技术有限公司 | Method and device is recommended in a kind of excavation of popular search word |
CN103440084B (en) * | 2013-09-04 | 2017-04-05 | 五八同城信息技术有限公司 | User option optimization method and device |
CN104063433A (en) * | 2014-06-10 | 2014-09-24 | 百度在线网络技术(北京)有限公司 | Method and device for displaying recommended contents |
-
2014
- 2014-11-27 CN CN201410699005.8A patent/CN104965842B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104965842A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104965842B (en) | Method and apparatus are recommended in search | |
US10643021B2 (en) | Method and device for processing web page content | |
CN108156508B (en) | Barrage information processing method and device, mobile terminal, server and system | |
CN105740263B (en) | Page display method and device | |
JP6915074B2 (en) | Message notification method and terminal | |
CN103501485B (en) | Push the method, apparatus and terminal device of application | |
US20150128033A1 (en) | Method and apparatus for webpage browsing | |
CN104066009A (en) | Method, device, terminal, server and system for program identification | |
CN106936699A (en) | A kind of information sharing method, device and system | |
CN113434075B (en) | Information display method and device and electronic equipment | |
CN108399232A (en) | A kind of information-pushing method, device and electronic equipment | |
CN109948090A (en) | Webpage loading method and device | |
CN105095161B (en) | Method and device for displaying rich text information | |
CN108388629A (en) | A kind of multimedia information push method, device and electronic equipment | |
CN110020293A (en) | Multi-medium data methods of exhibiting, device and storage medium | |
CN103607377B (en) | Information sharing method, Apparatus and system | |
WO2014146450A1 (en) | Method, device and system for data searching | |
CN105227598A (en) | A kind of resource sharing method, device and system stored based on cloud | |
CN106657281B (en) | File sharing method and device | |
CN108958854B (en) | Window display method and device and terminal | |
CN108932243B (en) | Method and device for refreshing webpage | |
CN106034065B (en) | Information display method and device | |
WO2017008613A1 (en) | Recommendation content pushing method and apparatus, and terminal, server and system therefor | |
CN106227829A (en) | A kind of method and apparatus generating wallpaper image | |
CN110381341B (en) | Data processing method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20151007 Assignee: Ocean interactive (Beijing) Information Technology Co., Ltd. Assignor: Shenzhen Tencent Computer System Co., Ltd. Contract record no.: 2016990000421 Denomination of invention: Search recommendation method and device License type: Common License Record date: 20161009 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model | ||
GR01 | Patent grant | ||
GR01 | Patent grant |