Summary of the invention
The method of a kind of associating search and instant communication that the embodiment of the invention provides and device are used to improve the user experience that problem is concerned about in user search.
The method of a kind of associating search and instant communication that the embodiment of the invention provides comprises:
The information of instant communication server record instant messaging discussion group;
The user is by browser client inputted search keyword search information;
Search server is according to described keyword, returns the Word message that search engine is associated and returns the instant messaging discussion group information that is associated;
The user clicks the super connection of discussion group's information, participates in this discussion group's chat.
The device of a kind of associating search and instant communication that the embodiment of the invention provides comprises:
Search server is used for search and webpage information, compiles instant messaging opinion group subject information, and the result is returned to client;
Instant communication server is used to provide the instant messaging service, the discussion theme of record discussion group and the number of participating in discussion;
Browser client is used for the typing searching key word, shows the information that searches, and shows with the relevant discussion group name of keyword also to show the number of participating in discussion;
Instant communication client is used for discussion group's instant messaging chat, and the user can join chat discussion group by the related hyperlink of search results pages.
A kind of search server that the embodiment of the invention provides comprises:
Search module is used for receiving user's keyword and goes inquiry to index module, compiles instant messaging opinion group subject information;
The information index module is used for setting up the keyword index related with information by participle.
A kind of instant communication client that the embodiment of the invention provides comprises:
The terminal registration module is used for User login, or when adding discussion group by search-engine results info web hyperlink to server registers;
The message sink module is used to receive message;
Message transmission module is used to send message;
Other necessary module is used for the modular unit of instant chat system running client necessity.
The embodiment of the invention shows relevant instant messaging discussion group by being presented on the result of page searching, search easy to use is concerned about that the user of search for can join the discussion group of this related subject.
Embodiment
The embodiment of the invention provides a kind of method and apparatus of associating search and instant communication, is used for showing on result of page searching relevant instant messaging discussion group, and search easy to use is concerned about that the user of search for can join the discussion group of this related subject.
The info web that search engine searches is come out is a literal, static content, and in order to make result's content abundanter, in order to address the above problem, present embodiment has adopted some technological means:
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
Referring to Fig. 1, the embodiment of the invention comprises search server module 10, instant communication server module 11, browser client module 12, instant communication client module 13.
Search server module 10 also comprisessearch module 101,information index module 102.
Search module 101 is to receive user's keyword to inquire about in index module, and the result is returned to client.
Information index module 102 is to set up the keyword index related with information by participle.
Server module 11 also comprisesstatistical module 111, and terminaluser management module 112 is discussedSubject Manager module 113,Message forwarding module 114,database module 115, othernecessary module 116.
Statistical module 111 is used to add up each discussion group and participates in number, adds up the most popular discussion theme, adds up discussion theme largest in the number of people;
Terminaluser management module 112 is used for the endpoint registration account number, lands, and nullifies;
Subject Manager module 113 is discussed, is used for record subject is discussed, subject key words, restriction contains the discussion theme of illegal pornographic reaction;
Message forwarding module 114, the A terminal, B terminal and C terminal are discussed a topic simultaneously, and the message that the A terminal is sent is to be forwarded to B terminal and C terminal through servermessage transit module 114;
Database module 115 is used for recording data information;
Itsnecessary module 116 is used for the modular unit of instant chat system runtime server necessity, such as password retrieval function unit.
Browser client module 12 also comprisesdisplay module 121.
Display module 121 is used for the typing searching key word, shows the information that searches, and shows with the relevant discussion group name of keyword also to show the number of participating in discussion.
Instant communication client module 13 also comprisesterminal registration module 131,message sink module 132,message transmission module 133, othernecessary module 134.
Terminal registration module 131, user terminal is reported for work to server terminaluser management module 112, and terminaluser management module 112 signs are reached the standard grade.When also being used for adding discussion group by search-engine results info web hyperlink to server registers.
Message sink module 132 is used to receive message.
Message transmission module 133 is used to send message.
The A terminal is amessage transmission module 133 to the use of B terminal transmission message, transmits through servermessage transit module 114, and B terminalmessage receiver module 132 just can be received message.
Othernecessary module 134 is used for the modular unit of instant chat system running client necessity.
In at present popular application, with good grounds keyword search discussion group, with good grounds keyword search webpage.If in the time of the user search webpage, also can show the discussion group of colony that is concerned about same theme with the user, the user colony that participates in discussion is discussed jointly, have better user experience, in order to address the above problem, present embodiment has adopted some technological means, as shown in Figure 2:
Search engine display result module 201 is web results data that the user search keyword obtains.Instant communication group is chatted the statistics that topic module 202 is instant messaging discussion group themes.In order to make this two blocks of data relevant, introduced keyword data module 203, i.e. the discussion group of associative key, it is related each other that present embodiment is thought.
In order to allow the data presentation that is associated arrive together, module 204 is introduced in this enforcement, is used in the search information result, if there is the relevant discussion group of this information, shows this discussion group name and shows the number of participating in discussion.
204 modules provide the hyperlink of relating subject, and the Webpage searching group that the user can carry out similar qq group adds group's operation, clicks the connection of participating in discussion, and participate in this discussion group's chat.
The user participates in chatting and can producing new statistics, will be recorded in instant communication group and chat topic module 202, and system so circulates.
The keyword that present embodiment is submitted to by user search, so associating web pages data and instant chat discussion group theme, referring to shown in Figure 3, the main method flow process is as follows:
Step 301: the user imports keyword in client, being submitted to server lookup has multiple client mode, as mode one: open browser IE, input system device search engine network address on the internet computer, browser can show search engine input frame interface, as Baidu's search homepage.The user imports the keyword that desire is paid close attention in the input frame of interface, the some submit button, and promptly with server interaction, and a result who feeds back to is presented on the interface.
As mode two: write the desktop application client at input frame interface, after the user imported keyword, carriage return promptly with server interaction, and was presented at a result who feeds back on the interface.
Step 302: search engine server receives keyword, and search word is carried out word segmentation processing, determines the participle of search word correspondence.For example, " scalp pruritus often loses hair " carried out obtaining behind the participle " scalp ", " itching " and " hair " perhaps obtains " scalp pruritus ", " often " and " losing hair ".
Step 303: according to the search word of input and corresponding participle removal search in the web database index, such as, the web page contents that the web database quilt will be inquired about is set up index, use the like of sql statement to inquire about then.
Step 304: the paging of sorting is handled to the web content data that searches, such as more with the keyword coupling, fully coupling come the front, less with the keyword coupling, the part coupling come the back.
Step 313 a: task of carrying out simultaneously with step 303.The instant messaging subject data base is to derive from, and instant communication server is discussed theme to the statistics of theme is discussed as which is arranged at present, participates in how many people that have that these discuss theme.According to the search word of input and corresponding participle removal search in the subject data base index, such as, the subject content that the subject data base quilt will be inquired about is set up index, use the like of sql statement to inquire about then.
Step 314: obtain to search the associating instant telecommunication subject data, get access to the topic discussion group according to subject data again and participate in number, the id of discussion group generates the user and can click the super connection that adds discussion group from the interface.
Step 305: to 2 piece of data that step 304 and step 314 obtain, doing occurs simultaneously handles.The webpage of asking the keyword association if follow through has comprised to follow through askes keyword associating instant telecommunication theme literal, and then sign is come out, and increases the super connection that can join discussion group.
After the data assembling is finished, be shown on the client,, revise keyword, inquire about again, walk the 301-305 step again if the user is dissatisfied to result displayed.
If the user is satisfied to data, and interested in the discussion group that shows, click the hyperlink that identifies out, then enterstep 306.
Step 306: the user clicks and adds the chat hyperlink, and the instant communication client startup also participates in this topic discussion group.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.