Summary of the invention
In order to solve the problem of prior art, the embodiment of the invention provides information search method and device.Described technical scheme is as follows:
A kind of information search method, described method comprises:
Carry out page search according to described key word and obtain the first search data, and call application interface and then acquisition second search data corresponding with described application of the application that described user opens;
Integrate described first, second search data to the through district of the page and send to described client and show.
Further, the information that described the first search data obtains for carry out page search in internet data according to described key word comprises and described corresponding chained address and the promotion message of described application used at least;
Described the second data are for characterizing described user to the use status information of described application.
Further, described search information also comprises described user's identity information;
Correspondingly, described reception user further comprises by the search information that client sends:
Receive identity information and key word that described user sends by described client, and finish logging in of described user according to described identity information.
Further, the described application interface that calls the application that described user opens and then acquisition are used the second corresponding search data with described, comprising:
Judge the title that whether comprises the application that described user opens in the described key word;
When comprising the title of the application that described user opens in the described key word, the application interface that calls described application obtains second search data corresponding with described application.
Further, describedly judge the title that whether comprises the application that described user opens in the described key word, comprising:
Judge described key word whether with the dictionary of this locality storage in the title of the application of recording be complementary;
When the name-matches of the application of recording in the dictionary of described key word and local storage, judge whether described user has opened described application.
A kind of device for information search, described device comprises:
Information receiving module is used for receiving the user by the search information that client sends, and comprises at least key word in the described search information;
Data acquisition module is used for carrying out page search according to described key word and obtains the first search data, and calls application interface and then acquisition second search data corresponding with described application of the application that described user opens;
Integrate module is used for integrating described first, second search data to the through district of the page and sending to described client showing.
Further, the information that described the first search data obtains for carry out page search in internet data according to described key word comprises and described corresponding chained address and the promotion message of described application used at least;
Described the second data are for characterizing described user to the use status information of described application.
Further, described search information also comprises described user's identity information;
Correspondingly, described information receiving module comprises:
Information receiving unit is used for receiving identity information and the key word that described user sends by described client;
Authentication ' unit is used for finishing logging in of described user according to described identity information.
Further, described data acquisition module comprises:
The first acquiring unit carries out page search according to described key word and obtains the first search data;
Judging unit is used for judging whether described key word comprises the title of the application that described user opens;
Second acquisition unit is used for when described judgment unit judges draws described key word and comprises the title of the application that described user opens, and the application interface that calls described application obtains second search data corresponding with described application.
Further, described judging unit, concrete be used for judging that the title of the application whether described key word records with the dictionary of this locality storage is complementary, when the name-matches of the application of recording in the dictionary of described key word and local storage, judge whether described user has opened described application.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is: when the user uses key word to search for, can search the second search data that obtains the application that the user corresponding with this key word open, and join in the through district and be presented in the Search Results, can strengthen the interaction between community website and the user search, so that Search Results has the Extraordinary result for the user, can provide simultaneously the liveness of the application that the community website provides.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment one
As shown in Figure 1, present embodiment provides a kind of information search method, can realize by the server at search engine, specifically comprises the steps:
101, receive the search information that the user sends by client;
Wherein, comprise at least key word in the search information;
102, carry out page search according to key word and obtain the first search data, and the application interface of the invoke user application of opening and then obtain second search data corresponding with application;
103, integrate first, second search data to the through district of the page and send to client and show.
Wherein, the first search data is for carrying out the information that page search obtains in internet data according to key word, comprises at least and uses corresponding chained address and the promotion message of application;
The second data are for characterizing the use status information of user to using.
Present embodiment provides a kind of information search method, when the user uses key word to search for, can search the second search data that obtains the application that the user corresponding with this key word open, and join in the through district and be presented in the Search Results, can strengthen the interaction between community website and the user search, so that Search Results has the Extraordinary result for the user, can provide simultaneously the liveness of the application that the community website provides.
Embodiment two
Present embodiment provides a kind of information search method, is the improvement of carrying out on the basis of embodiment 1, and this method can realize by the server that changes search engine.
Need to prove that for convenience of explanation, the present invention describes take the community website as example, this community website can provide the information search function, and this community website provides web game or other big games to use simultaneously.This community website provides the user login feature, and the user can activate the game that this community website provides, and play after obtaining the account of this website in application.
The below describes a kind of information search method that present embodiment provides in detail, as shown in Figure 2, comprises the steps:
201, the user is by the input of the browser in client identity information, login community website;
Need to prove, in the present embodiment, identity information can comprise user's account and password, can also comprise further dynamic password, password protection problem etc., this identity information is used for whether the server authentication user is the registered user, and if so, then execution instep 202, if not, then adopt the searching request that has the mode completing user now.
202, the user opens the search engine interface of community website in browser, and the input key word;
203, server receives the key word of user's input, searches the key word that whether exists the user to input in the dictionary of this locality storage, if so, and execution instep 204, if not, execution instep 208;
Wherein, dictionary is to set up in advance, is used for the title that the record current site can offer all or part of application of user's use.
The title of using can comprise the full name, abbreviation, English full name of this application, English word or the word that can identify this application such as be called for short.Such as: " passing through live wire ", " CF " etc.
In the present embodiment, dictionary can record the game name of whole game of user that current community website offers.
Further, after server received the key word of user's transmission, this step also comprised:
In internet data, carry out page search according to key word and obtain the first search data, wherein, the first search data is the elite data in the information that obtains according to existing way of search search, for example, can comprise and described corresponding chained address and the promotion message of described application used.
In the present embodiment, promotion message can be the renewal progress of game, the new game plot that adds, the purchase discounting message of game money etc.
204, judge whether the user has opened this game, if so, execution instep 205, if not, execution instep 208;
Particularly, server can go to search this user according to user's user name and whether activate this game in this plays corresponding game server, or searches this user according to the interface that this corresponding game server of playing provides and whether activated this game.
205, the interface that provides by this game obtains the second search data;
In the present embodiment, the second search data is the status data of user in this game;
Further, in the application that the community website provides, each server of using the place provides application interface (API), can search by user's account and obtain this user for the use state of using.
Status data is the user for the use state of this application, and for example, in the present embodiment, status data can be for the role of user in game, role's rank, buddy list, equipment attribute, obtained the information such as virtual coin quantity.
206, the first search data and the second search data are incorporated in the through district;
The Search Results that 207, will comprise through district sends to client browser and shows;
Wherein, comprise through district and generic search in the Search Results, the obtain manner of generic search is same as the prior art, repeats no more here.
208, adopt existing way of search to finish search, and send Search Results to client browser.
Present embodiment provides a kind of information search method, when the user uses key word to search for, can search the second search data that obtains the application that the user corresponding with this key word open, and join in the through district and be presented in the Search Results, can strengthen the interaction between community website and the user search, so that Search Results has the Extraordinary result for the user, can provide simultaneously the liveness of the application that the community website provides.
Embodiment three
As shown in Figure 3, the embodiment of the invention provides a kind of device for information search, and this device comprises:
Information receiving module 301 is used for receiving the user by the search information that client sends, and comprises at least key word in the search information;
Data acquisition module 302 is used for carrying out page search according to key word and obtains the first search data, and the application interface of the invoke user application of opening and then obtain second search data corresponding with application;
Integratemodule 303 is used for first, second search data of integration to the through district of the page and sends to client showing.
Further, the first search data is for carrying out the information that page search obtains in internet data according to key word, comprises at least and uses corresponding chained address and the promotion message of application;
The second data are for characterizing the use status information of user to using.
Further, above-mentioned search information also comprises user's identity information;
Correspondingly, as shown in Figure 4,information receiving module 301 comprises:
Information receiving unit 3011 is used for receiving identity information and the key word that the user sends by client;
Authentication 'unit 3012 is used for logging in according to the identity information completing user.
Further, as shown in Figure 5, acquisition ofinformation module 302 comprises:
The first acquiringunit 3021 is used for carrying out page search according to key word and obtains the first search data;
Judgingunit 3022 is used for judging whether key word comprises the title of the application that the user opens;
Second acquisition unit 3023 is used for when judgingunit 3022 judgements draw key word and comprise the title of the application that the user opens, and the application interface that calls application obtains and uses the second corresponding search data.
Further, judgingunit 3022 concrete is used for judging that the title of the application whether key word records with the dictionary of this locality storage is complementary, and when the name-matches of the application of recording in key word and the local dictionary of storing, judges whether the user has opened application.
The embodiment of the invention provides a kind of device for information search, when the user uses key word to search for, can search the second search data that obtains the application that the user corresponding with this key word open, and join in the through district and be presented in the Search Results, can strengthen the interaction between community website and the user search, so that Search Results has the Extraordinary result for the user, can provide simultaneously the liveness of the application that the community website provides.
Need to prove: the device that is used for information search that above-described embodiment provides, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure that is about to device is divided into different functional modules, to finish all or part of function described above.In addition, the information search method embodiment that above-described embodiment provides belongs to same design, and its specific implementation process sees embodiment of the method for details, repeats no more here.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.