CROSS REFERENCE TO RELATED APPLICATION 
       [0001]    This application claims priority to and benefits of Chinese Patent Application Serial No. 201510079816.2, titled with “method and device for recommending according to search result” and filed with the State Intellectual Property Office of P. R. China on Feb. 13, 2015 by Baidu Online Network Technology (Beijing) Co., Ltd., the entire content of which is incorporated herein by reference. 
       TECHNICAL FIELD 
       [0002]    The present disclosure generally relates to the field of Internet technology, and more particularly, to a method and a device for recommending according to a search result. 
       BACKGROUND 
       [0003]    Recommended contents can be displayed on a right side when a user is performing a search. In the related art, a title of the recommended contents displayed on the right side is a title of a fixed form or a fixed title. For example, the title of the fixed form includes: “related animals”, “related plants”, “related persons” or the like; and the fixed title is, for example, “others search for”. 
         [0004]    Generally, the user has a requirement of knowing why the recommended contents are recommended. However, his requirement of the user cannot be satisfied in the related art. 
       SUMMARY 
       [0005]    Embodiments of the present disclosure seek to solve at least one of the problems existing in the related art to at least some extent. 
         [0006]    Accordingly, an objective of the present disclosure is to provide a method for recommending according to a search result. The method may satisfy a user&#39;s requirement better. 
         [0007]    Another objective of the present disclosure is to provide a device for recommending according to a search result. 
         [0008]    In order to achieve the above objectives, the method for recommending according to a search result provided in embodiments of a first aspect of the present disclosure includes: receiving a query and acquiring recommended contents according to the query; creating a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents; and displaying the recommended contents and the title of the recommended contents. 
         [0009]    With the method provided in embodiments of the first aspect of the present disclosure, by creating the title of the recommended contents according to the query and the recommended contents, the title of the recommended contents may be created dynamically, thereby avoiding a title of a fixed form. Moreover, by including the information associated with the query to the title of the recommended contents, the user may know a reason for recommending the recommended contents, thereby satisfying the user&#39;s requirement, and ensuring that the user can understand a relationship between the recommended contents and the query input by the user better, or understand a relationship between the recommended contents and a search intention of the user better. 
         [0010]    In order to achieve the above objectives, the device for recommending according to a search result provided in embodiments of a second aspect of the present disclosure includes: an acquiring module, configured to receive a query and to acquire recommended contents according to the query; a creating module, configured to create a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents; and a displaying module, configured to display the recommended contents and the title of the recommended contents. 
         [0011]    With the device provided in embodiments of the second aspect of the present disclosure, by creating the title of the recommended contents according to the query and the recommended contents, the title of the recommended contents may be created dynamically, thereby avoiding a title of a fixed form. Moreover, by including the information associated with the query to the title of the recommended contents, the user may know a reason for recommending the recommended contents, thereby satisfying the user&#39;s requirement, and ensuring that the user can understand a relationship between the recommended contents and the query input by the user better, or understand a relationship between the recommended contents and a search intention of the user better. 
         [0012]    Embodiments of the present disclosure further provide an electronic device. The electronic device includes: one or more processors; a memory; and one or more programs, stored in the memory and configured to perform following operations when executed by the one or more processors: receiving a query and acquiring recommended contents according to the query; creating a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents; and displaying the recommended contents and the title of the recommended contents. 
         [0013]    Embodiments of the present disclosure further provide a non-transitory computer storage medium. The non-transitory computer storage medium has one or more modules stored therein and configured to perform following operations when executed: receiving a query and acquiring recommended contents according to the query; creating a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents; and displaying the recommended contents and the title of the recommended contents. 
         [0014]    Additional aspects and advantages of embodiments of present disclosure will be given in part in the following descriptions, become apparent in part from the following descriptions, or be learned from the practice of the embodiments of the present disclosure. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0015]    The above and/or additional aspects and advantages of embodiments of the present disclosure will become apparent and more readily appreciated from the following descriptions made with reference to the drawings, in which: 
           [0016]      FIG. 1  is a flow chart showing a method for recommending according to a search result provided in an embodiment of the present disclosure; 
           [0017]      FIG. 2  is a flow chart showing a method for creating a title of recommended contents in embodiments of the present disclosure; 
           [0018]      FIG. 3 a    is a schematic diagram illustrating a title of recommended contents corresponding to a kind of queries in the related art; 
           [0019]      FIG. 3 b    is a schematic diagram illustrating a title of recommended contents created in embodiments of the present disclosure corresponding to a kind of queries; 
           [0020]      FIG. 4 a    is a schematic diagram illustrating a title of recommended contents corresponding to another kind of queries in the related art; 
           [0021]      FIG. 4 b    is a schematic diagram illustrating a title of recommended contents created in embodiments of the present disclosure corresponding to another kind of queries; 
           [0022]      FIG. 5 a    is a schematic diagram illustrating a title of recommended contents corresponding to another kind of queries in the related art; 
           [0023]      FIG. 5 b    is a schematic diagram illustrating a title of recommended contents created in embodiments of the present disclosure corresponding to another kind of queries; 
           [0024]      FIG. 6  is a flow chart showing another method for creating a title of recommended contents in embodiments of the present disclosure; 
           [0025]      FIG. 7  is a flow chart showing another method for creating a title of recommended contents in embodiments of the present disclosure; 
           [0026]      FIG. 8  is a block diagram showing a device for recommending according to a search result provided in another embodiment of the present disclosure; 
           [0027]      FIG. 9  is a block diagram showing a device for recommending according to a search result provided in another embodiment of the present disclosure; 
           [0028]      FIG. 10  is a block diagram showing a device for recommending according to a search result provided in another embodiment of the present disclosure. 
       
    
    
     DETAILED DESCRIPTION 
       [0029]    Embodiments of the present disclosure will be described in detail and examples of embodiments are shown in the drawings. The same or similar elements and the elements having same or similar functions are denoted by like reference numerals throughout the descriptions. Embodiments described herein with reference to drawings are explanatory, serve to explain the present disclosure, and are not construed to limit embodiments of the present disclosure. Instead, the embodiments of the present disclosure comprise all the variants, modifications and their equivalents within the spirit and scope of the present disclosure as defined by the claims. 
         [0030]      FIG. 1  is a flow chart showing a method for recommending according to a search result provided in an embodiment of the present disclosure. The method includes followings. 
         [0031]    At S 11 , a query is received and recommended contents are acquired according to the query. 
         [0032]    A search engine may receive the query input by a user in a search bar. Also, the query may be called as a search term or a retrieval term. 
         [0033]    The search engine may acquire corresponding search results and corresponding recommended contents according to the query after receiving the query. 
         [0034]    For example, acquiring the recommended contents includes grading contents in a database according to a preset algorithm, and acquiring the recommended contents from the large amount of data according to the grading result. 
         [0035]    At S 12 , a title of the recommended contents is created according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents. 
         [0036]    Different from the related art, in the embodiment, the title of the recommended contents is created according to the query and the recommended contents. Since the query and/or the recommended contents may change, the title of the recommended contents is also variable. Thus, the title of the recommended contents may be created dynamically. Even the recommended contents keeps unchanged, a different title of the recommended contents may be created if there is a different query. 
         [0037]    Alternatively, the information associated with the query is characteristic information of the query, and the information associated with the recommended contents is common characteristic information of the recommended contents. Referring to  FIG. 2 , creating the title of the recommended contents according to the query and the recommended contents includes followings. 
         [0038]    At S 21 , the characteristic information of the query is acquired, in which the characteristic information includes a kernel term included in the query or a term representing a search intention of the query. 
         [0039]    At S 22 , the common characteristic information of the recommended contents is acquired. 
         [0040]    At S 23 , the characteristic information of the query and the common characteristic information of the recommended contents are included to the title of the recommended contents. 
         [0041]    For example, if the query is “Jun Jie”, referring to  FIG. 3 a   , which is a schematic diagram showing displaying the recommended contents in the related art, the title of the recommended contents is just a title of a fixed form, such as “related mammals” or “others search for”. 
         [0042]    However, in the embodiment, the title of the recommended contents is created dynamically according to the query and the recommended contents. 
         [0043]    For example, referring to  FIG. 3 b   , the title of the recommended contents  31  may specifically include: “cute pets as tiny as Jun Jie” and “famous star pets”. 
         [0044]    The title “cute pets as tiny as Jun Jie” includes the query “Jun Jie” and common characteristic information “cute pets” and “tiny” of the recommended contents. 
         [0045]    Furthermore, the system understands that “Jun Jie” is the name of a very famous cute pet online, which reflects the user&#39;s search intention of searching for famous cute pets online. Therefore, the title “famous star pets” may include the search intention “famous” and the common characteristic information “pets”. 
         [0046]    As another example, if the query is “What kinds of plants could be placed in the newly decorated living room”, referring to  FIG. 4 a   , which is a schematic diagram showing displaying the recommended contents in the related, the title of the recommended contents is just the title of the fixed form, such as “related plants” or “others search for”. 
         [0047]    However, in the embodiment, referring  FIG. 4 b   , the title of the recommended contents  41  is created dynamically according to the query and the recommended contents. 
         [0048]    As another example, if the query is “Bo Queen”, referring to  FIG. 5 a   , which is a schematic diagram showing displaying the recommended contents in the related art, the title of the recommended contents is just the title of the fixed form, such as “related persons” or “others search for”. 
         [0049]    However, in the embodiment, referring to  FIG. 5 b   , the title of the recommended contents  51  is created dynamically according to the query and the recommended contents. 
         [0050]    Alternatively, when the above searches are performed, including the characteristic information of the query and the common characteristic information of the recommended contents to the title of the recommended contents includes: 
         [0051]    including the characteristic information of the query and the common characteristic information of the recommended contents to the title of the recommended contents in a form of a network popular word. 
         [0052]    For example, referring to  FIG. 5 b   , the title of the recommended contents includes “women in the imperial harem of Han Dynasty” that is represented in the form of the network popular word. 
         [0053]    Alternatively, referring to  FIG. 6 , the method includes followings for creating the title of the recommended contents. 
         [0054]    At S 24 , the title of the recommended contents with predetermined contents is created if the characteristic information of the query or the common characteristic information of the recommended contents is unable to be included to the title. 
         [0055]    For example, taking  FIG. 3 b    as an example, titles (such as “better recommends”) may be created if the title shown in  FIG. 3 b    is unable to be acquired. 
         [0056]    Alternatively, referring to  FIG. 7 , the method further includes followings after creating the title of the recommended contents. 
         [0057]    At S 25 , the title of the recommended contents is updated. 
         [0058]    For example, the title of the recommended contents is updated at a preset frequency. Or, a trigger event is set in advance, and the title of the recommended contents is updated if the trigger event occurs. 
         [0059]    At S 13 , the recommended contents and the title of the recommended contents are displayed. 
         [0060]    The recommended contents and the title of the recommended contents are displayed correspondingly after the title of the recommended contents is created. 
         [0061]    Alternatively, displaying the recommended contents and the title of the recommended contents includes: 
         [0062]    sequencing the recommended contents according to the title of the recommended contents; and 
         [0063]    displaying the recommended contents sequenced corresponding to the title of the recommended contents. 
         [0064]    For example, as limited by displaying space, there are a few number of recommended contents displayed every time. For example, corresponding to one title, 4 recommended contents are generally displayed every time. Therefore, the recommended contents top ranked are displayed in priority according to an acquired result of sequencing the recommended contents. 
         [0065]    In the embodiment, the recommended contents may be sequenced in combination with the title. The recommended contents largely associated with the title are at the head of the sequenced recommended contents, thereby achieving optimizing the recommended contents and achieving sequencing cards in a global optimum way if the recommended contents are displayed in a form of the cards. 
         [0066]    Specifically, for example, the recommended contents of associated persons are acquired if a searching for a person is performed. After the recommended contents are acquired, the recommended contents having common characteristic information are selected therefrom, and the title is created according to the common characteristic information. Then, the recommended contents with the common characteristic information may be displayed in priority, corresponding to the title. 
         [0067]    For example, referring to  FIG. 5 b   , if the title is “legendary queens in history”, the corresponding recommended contents are queens, which are optimized contents of the persons shown in  FIG. 5   a.    
         [0068]    In the embodiment, by creating the title of the recommended contents according to the query and the recommended contents, it may realize creating the recommended contents dynamically, thereby avoiding the title of the fixed form. Moreover, by including the information associated with the query to the title of the recommended contents, the user may know a reason for recommending the recommended contents, thereby satisfying the user&#39;s requirement, and ensuring that the user can understand a relationship between the recommended contents and the query input by the user better, or understand a relationship between the recommended contents and a search intention of the user better. Furthermore, by optimizing the recommended contents according to the title, more suitable contents may be recommended; by analyzing the query and the recommended contents to create the title, an error of classifying may be avoided, for example, classifying animals as plants may be avoided, thereby improving the user experience; by updating the title, a baldness may be reduced, thereby avoiding perception fatigue and improving interest of the user; and by classifying the recommended contents to the corresponding title, disorganized contents may be avoided compared with coverall contents included in the title “others search for”. 
         [0069]      FIG. 8  is a block diagram showing a device for recommending according to a search result provided in another embodiment of the present disclosure. The device  80  includes an acquiring module  81 , a creating module  82  and a displaying module  83 . 
         [0070]    The acquiring module  81  is configured to receive a query and acquire recommended contents according to the query. 
         [0071]    A search engine may receive the query input by a user in a search bar. Also, the query may be called as a search term or a retrieval term. 
         [0072]    The search engine may acquire corresponding search results and corresponding recommended contents according to the query after receiving the query. 
         [0073]    For example, acquiring the recommended contents includes grading contents in a database according to a preset algorithm, and acquiring the recommended contents from a great amount of data according to the grading result. 
         [0074]    The creating module  82  is configured to create a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents. 
         [0075]    Different from the related art, in the embodiment, the title of the recommended contents is created according to the query and the recommended contents. Since the query and/or the recommended contents may change, the title of the recommended contents is also variable. Thus, the title of the recommended contents may be created dynamically. Even the recommended contents keeps unchanged, a different title of the recommended contents may be created if there is a different query. 
         [0076]    Alternatively, referring to  FIG. 9 , the information associated with the query is characteristic information of the query, and the information associated with the recommended contents is common characteristic information of the recommended contents. The creating module  82  includes a first unit  821 , a second unit  822  and a third unit  823 . 
         [0077]    The first unit  821  is configured to acquire the characteristic information of the query, in which the characteristic information includes a kernel term comprised in the query or a term representing a search intention of the query. 
         [0078]    The second unit  822  is configured to acquire the common characteristic information of the recommended contents. 
         [0079]    The third unit  823  is configured to include the characteristic information of the query and the common characteristic information of the recommended contents to the title of the recommended contents. 
         [0080]    For example, if the query is “Jun Jie”, referring to  FIG. 3 a   , which is a schematic diagram showing displaying the recommended contents in the related art, the title of the recommended contents is just a title of a fixed form, such as “related mammals” or “others search for”. 
         [0081]    However, in the embodiment, the title of the recommended contents is created dynamically according to the query and the recommended contents. 
         [0082]    For example, referring to  FIG. 3 b   , the title of the recommended contents  31  may specifically include: “cute pets as tiny as Jun Jie” and “famous star pets”. 
         [0083]    The title “cute pets as tiny as Jun Jie” includes the query “Jun Jie” and common characteristic information “cute pets” and “tiny” of the recommended contents. 
         [0084]    Furthermore, the system understands that “Jun Jie” is the name of a very famous cute pet online, which reflects the user&#39;s search intention of searching for famous cute pets online. Therefore, the title “those famous star pets” may include the search intention “famous” and the common characteristic information “pets”. 
         [0085]    As another example, if the query is “What kinds of plants should be selected in the newly decorated living room”, referring to  FIG. 4 a   , which is a schematic diagram showing displaying the recommended contents in the related art, the title of the recommended contents is just the title of the fixed form, such as “related plants” or “others search for”. 
         [0086]    However, in the embodiment, referring  FIG. 4 b   , the title of the recommended contents  41  is created dynamically according to the query and the recommended contents. 
         [0087]    As another example, if the query is “Bo Queen”, referring to  FIG. 5 a   , which is a schematic diagram showing displaying the recommended contents in the related art, the title of the recommended contents is just the title of the fixed form, such as “related persons” or “others search for”. 
         [0088]    However, in the embodiment, referring to  FIG. 5 b   , the title of the recommended contents  51  is created dynamically according to the query and the recommended contents. 
         [0089]    Alternatively, the third unit  823  is specifically configured to: 
         [0090]    include the characteristic information of the query and the common characteristic information of the recommended contents to the title of the recommended contents in a form of a network popular word. 
         [0091]    For example, referring to  FIG. 5 b   , the title of the recommended contents includes “women in imperial harem of Han Dynasty” that is represented in the form of the network popular word. 
         [0092]    Alternatively, referring to  FIG. 10 , the creating module  82  further includes a fourth unit  824 . 
         [0093]    The fourth unit  824  is configured to create the title of the recommended contents with predetermined contents if the characteristic information of the query or the common characteristic information of the recommended contents is unable to be included to the title. 
         [0094]    For example, taking  FIG. 3 b    as an example, titles (such as “better recommends”) may be created if the title shown in  FIG. 3 b    is unable to be acquired. 
         [0095]    Alternatively, referring to  FIG. 9 , the creating module  82  further includes an updating module  825 . 
         [0096]    The updating module  825  is configured to update the title of the recommended contents. 
         [0097]    For example, the title of the recommended contents is updated at a preset frequency. Or, a trigger event is set in advance, and the title of the recommended contents is updated if the trigger event occurs. 
         [0098]    The displaying module  83  is configured to display the recommended contents and the title of the recommended contents. 
         [0099]    The recommended contents and the title of the recommended contents are displayed correspondingly after the title of the recommended contents is created. 
         [0100]    Alternatively, the displaying module  83  is specifically configured to: 
         [0101]    sequence the recommended contents according to the title of the recommended contents; and 
         [0102]    display the recommended contents sequenced corresponding to the title of the recommended contents. 
         [0103]    For example, as limited by displaying space, there are a few number of recommended contents displayed every time. For example, corresponding to one title, 4 recommended contents are generally displayed every time. Therefore, the recommended contents top ranked are displayed in priority according to an acquired result of sequencing the recommended contents. 
         [0104]    In the embodiment, the recommended contents may be sequenced in combination with the title. The recommended contents largely associated with the title are at the head of the sequenced recommended contents, thereby achieving optimizing the recommended contents and achieving sequencing cards in a global optimum way if the recommended contents are displayed in a form of the cards. 
         [0105]    Specifically, for example, the recommended contents of associated persons are acquired if a searching for a person is performed. After the recommended contents are acquired, the recommended contents having common characteristic information are selected therefrom, and the title is created according to the common characteristic information. Then, the recommended contents with the common characteristic information may be displayed in priority, corresponding to the title. 
         [0106]    For example, referring to  FIG. 5 b   , if the title is “legendary queens in history”, the corresponding recommended contents are queens, which are optimized contents of the persons shown in  FIG. 5   a.    
         [0107]    In the embodiment, by creating the title of the recommended contents according to the query and the recommended contents, it may realize creating the recommended contents dynamically, thereby avoiding the title of the fixed form. Moreover, by including the information associated with the query to the title of the recommended contents, the user may know a reason for recommending the recommended contents, thereby satisfying the user&#39;s requirement, and ensuring that the user understand a relationship between the recommended contents and the query input by the user better, or understand a relationship between the recommended contents and a search intention of the user better. Furthermore, by optimizing the recommended contents according to the title, more suitable contents may be recommended; by analyzing the query and the recommended contents to create the title, an error of classifying may be avoided, for example, classifying animals as plants may be avoided, thereby improving the user experience; by updating the title, a baldness may be reduced, thereby avoiding perception fatigue and improving interest of the user; and by classifying the recommended contents to the corresponding title, disorganized contents may be avoided compared with coverall contents included in the title “others search for”. 
         [0108]    Embodiments of the present disclosure further provide an electronic device. The electronic device includes: one or more processors; a memory; and one or more programs, stored in the memory and configured to perform following operations when executed by the one or more processors: receiving a query and acquiring recommended contents according to the query; creating a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents; and displaying the recommended contents and the title of the recommended contents. 
         [0109]    Embodiments of the present disclosure further provide a non-transitory computer storage medium. The non-transitory computer storage medium has one or more modules stored therein and configured to perform following operations when executed: receiving a query and acquiring recommended contents according to the query; creating a title of the recommended contents according to the query and the recommended contents, in which the title of the recommended contents includes information associated with the query and information associated with the recommended contents; and displaying the recommended contents and the title of the recommended contents. 
         [0110]    It is to be illustrated that, terms such as “first” and “second” are used herein for purposes of description and are not intended to indicate or imply relative importance or significance. In addition, in the description of the present disclosure, “a plurality of” means two or more than two, unless specified otherwise. 
         [0111]    Any procedure or method described in the flow charts or described in any other way herein may be understood to comprise one or more modules, portions or parts for storing executable codes that realize particular logic functions or procedures. Moreover, advantageous embodiments of the present disclosure comprises other implementations in which the order of execution is different from that which is depicted or discussed, including executing functions in a substantially simultaneous manner or in an opposite order according to the related functions, which should be understood by those skilled in the art. 
         [0112]    It should be understood that each part of the present disclosure may be realized by the hardware, software, firmware or their combination. In the above embodiments, a plurality of steps or methods may be realized by the software or firmware stored in the memory and executed by the appropriate instruction execution system. For example, if it is realized by the hardware, likewise in another embodiment, the steps or methods may be realized by one or a combination of the following techniques known in the art: a discrete logic circuit having a logic gate circuit for realizing a logic function of a data signal, an application-specific integrated circuit having an appropriate combination logic gate circuit, a programmable gate array (PGA), a field programmable gate array (FPGA), etc. 
         [0113]    Those skilled in the art shall understand that all or parts of the steps in the above exemplifying method of the present disclosure may be achieved by commanding the related hardware with programs. The programs may be stored in a computer readable storage medium, and the programs comprise one or a combination of the steps in the method embodiments of the present disclosure when run on a computer. 
         [0114]    In addition, each function cell of the embodiments of the present disclosure may be integrated in a processing module, or these cells may be separate physical existence, or two or more cells are integrated in a processing module. The integrated module may be realized in a form of hardware or in a form of software function modules. When the integrated module is realized in a form of software function module and is sold or used as a standalone product, the integrated module may be stored in a computer readable storage medium. 
         [0115]    The storage medium mentioned above may be read-only memories, magnetic disks or CD, etc. 
         [0116]    Reference throughout this specification to “an embodiment,” “some embodiments,” “example,” “a specific example,” or “some examples,” means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In the specification, the terms mentioned above are not necessarily referring to the same embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples. 
         [0117]    Although explanatory embodiments have been shown and described, it would be appreciated by those skilled in the art that the above embodiments are exemplary and cannot be construed to limit the present disclosure, and changes, alternatives, and modifications can be made in the embodiments by those skilled in the art without departing from scope of the present disclosure.
A search recommendation method and device. The search recommendation method comprises: receiving a search term and acquiring recommended contents according to the search term (S 11); generating a title of the recommended contents according to the search term and the recommended contents, wherein the title contains information associated with the search term and information associated with the recommended contents (S 12); and displaying the recommended contents and the title of the recommended contents (S 13). The method can better satisfy a user's needs.