CN102385605B - Method and system for searching microblog messages and microblog server - Google Patents

Method and system for searching microblog messages and microblog server Download PDF

Info

Publication number
CN102385605B
CN102385605B CN 201010273892 CN201010273892A CN102385605B CN 102385605 B CN102385605 B CN 102385605B CN 201010273892 CN201010273892 CN 201010273892 CN 201010273892 A CN201010273892 A CN 201010273892A CN 102385605 B CN102385605 B CN 102385605B
Authority
CN
China
Prior art keywords
topic
message
user terminal
sign
label
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
Application number
CN 201010273892
Other languages
Chinese (zh)
Other versions
CN102385605A (en
Inventor
王春鹏
张丽
刘红杰
袁清
章建桂
李斌
熊琦楠
欧阳峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN 201010273892 priority Critical patent/CN102385605B/en
Publication of CN102385605A publication Critical patent/CN102385605A/en
Application granted granted Critical
Publication of CN102385605B publication Critical patent/CN102385605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a system for searching microblog messages and a microblog server. The method comprises the following steps: receiving the microblog messages from a user terminal, distributing one unique message identification for each microblog message, and performing correspondence on the message identifications to the microblog messages; analyzing topic labels in the microblog messages, generating one unique topic identification for each topic label, and adding the message identifications of the microblog messages to topic attributes which correspond to the topic identifications to perform association with the topic identifications; receiving topic searching messages which are from the user terminal and contain the topic labels or the topic identifications, providing the corresponding topic attributes to the user terminal according to the topic searching messages for the user terminal to pull the corresponding microblog messages according to all the message identifications in the topic attributes. The technical scheme disclosed by the invention is capable of enabling users to rapidly position the microblog messages of interested topics.

Description

Twitter message lookup method, system and microblogging server
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of Twitter message lookup method, system and microblogging server.
Background technology
Network instant communication (IM, Instant Massager) instrument develops into today, is accepted by the most network user, and becomes one of requisite Software tool of the network user, not only use in amusement and recreation at ordinary times, and also obtained being widely used in user's work.In IM software, main what realize is man-to-man good friend chat and the group of a pair of N or the message chat pattern of discussion group separately.Along with the development of internet, applications, the similar microblogging that pushes away spy (twitter) is used and is also grown at development.
Microblogging is the abbreviation of miniature blog, and its form of expression is between IM and blog (Blog).IM is conversational, and interactive mode is the most original, and is also the most natural.But efficient is low, usually needs a lot of dialogues could represent a complete meaning.Blog is the formula of document, there is no clear and definite object, can a guy's style or location but write the people of Blog, and hint expression is relatively complete, but the threshold of writing Blog is higher.Microblogging is also short message, also there is no clear and definite object, and the user can express oneself by a word of 140 words left and right, look like relatively complete, and it is very low to write the threshold of microblogging, can be a word, can be also that a phonoreception is sighed.So than IM and Blog, the micro-blog information transmission efficiency is higher, and threshold is lower.Can carry out very fast propagation and the transmission of information by microblog users, realize user message chat pattern from one to one, a pair of N is to a pair of infinite a kind of leap.
This a pair of infinite pattern means that a people can carry out transmission of news to infinite a plurality of people, and a people also can listen to the message of the user more than ten thousand grades simultaneously, yet the application of this large user amount must bring the Twitter message retrieval of big data quantity.In prior art, in the face of content is brief, relate to theme extensively and the Twitter message of enormous amount, the user mainly searches the Twitter message of self topic of interest by the mode of keyword search.But mode is searched in this search, and the number of the Search Results that obtains on the one hand is too much, and the user need to do secondary filtration in Search Results.Between the message of Search Results, the relevance power is indefinite on the other hand, sometimes between message and message relevance a little less than.
As seen, still there is no a kind of Twitter message lookup method of locating fast topic of interest for the user in prior art.
Summary of the invention
In view of this, provide a kind of Twitter message lookup method on the one hand in the present invention, provide on the other hand a kind of Twitter message seeking system, in order to make the user locate fast the Twitter message of topic of interest.
Twitter message lookup method provided by the present invention comprises:
Reception for described Twitter message distributes a unique message identifier (ID), is carried out corresponding with described Twitter message described message id from the Twitter message that contains at least one topic label of user terminal; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message added in the topic attribute of corresponding described topic ID and carry out related with described topic ID;
Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic ID, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; According to described topic ID, the topic attribute of correspondence is offered described user terminal, pull corresponding Twitter message for described user terminal according to each message id in described topic attribute.
The method further comprises: receive and listen to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic sign, perhaps receives from the user ID that contains of user terminal and listens to request with the topic of the topic sign of obtaining; When having described topic sign in determining the incidence relation of topic attribute and topic sign, described topic is identified in the topic identification list that adds to described user ID corresponding stored.
Twitter message seeking system provided by the present invention comprises: user terminal and microblogging server, wherein,
Described user terminal is used for adding at least one topic label at Twitter message to be sent, and the Twitter message that will contain the topic label sends to described microblogging server; Message searched in the topic that sends the topic ID that contains the topic label or obtain to described microblogging server, and each message id in the topic attribute that returns according to described microblogging server pulls corresponding Twitter message;
Described microblogging server is used for receiving the Twitter message that contains at least one topic label from user terminal, for described Twitter message distributes a unique message id, carries out corresponding with described Twitter message described message id; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message added in the topic attribute of corresponding described topic ID and carry out related with described topic ID; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic ID, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; According to described topic ID, the topic attribute of correspondence is offered described user terminal.
Described user terminal is further used for sending to described microblogging server the topic that contains user ID and topic label and listens to request; Or send to described microblogging server the topic that contains user ID and topic sign and listen to request;
Request listened in the topic that contains user ID and topic label that described microblogging server is further used for receiving from user terminal, the topic label of listening in request according to described topic generates corresponding topic sign, perhaps receives from the user ID that contains of user terminal and listens to request with the topic of the topic sign of obtaining; When having described topic sign in determining the incidence relation of topic attribute and topic sign, described topic is identified in the topic identification list that adds to described user ID corresponding stored.
Microblogging server provided by the present invention comprises: message parse unit, data storage cell and topic processing unit, wherein,
Described message parse unit be used for to receive the Twitter message that contains at least one topic label from user terminal, is that described Twitter message distributes a unique message id, with described message id and described Twitter message corresponding stored at data storage cell; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message is added in the topic attribute of corresponding described topic ID and with described topic ID association store at the topic processing unit;
Described data storage cell is used for the described Twitter message of corresponding stored and message id thereof;
Described topic processing unit is used for the described topic ID of corresponding stored and corresponding topic attribute; Reception is searched message from the topic that contains the topic label of user terminal, the topic label of searching in message according to described topic generates corresponding topic ID according to the method identical with the message parse unit, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; According to described topic ID, the topic attribute of correspondence is offered described user terminal.
This microblogging server further comprises: the relationship safeguard unit, be used for receiving and listen to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic sign according to the method identical with the message parse unit, perhaps receives the topic that the topic that contains user ID and obtain from user terminal identifies and listens to request; When having described topic sign in definite topic processing unit, described topic sign is added in self maintained and topic identification list described user ID corresponding stored.
Can find out from such scheme, pass through in the present invention to add corresponding one or more topic labels for every Twitter message, and be that each topic label generates unique topic ID, make Twitter message from different user as long as the topic label is the same, corresponding topic ID is just the same; Then utilize this topic ID will all Twitter messages that should topic ID be associated together, the topic ID that makes user terminal can utilize the topic label or obtain finds the Twitter message with same topic fast from described microblogging server, improved user's experience.
Description of drawings
Fig. 1 is the exemplary process diagram of Twitter message lookup method in the embodiment of the present invention one;
Fig. 2 is the exemplary process diagram of Twitter message lookup method in the embodiment of the present invention two.
Embodiment
In the embodiment of the present invention, in order to make the user can locate fast the Twitter message of topic of interest, can be added by user terminal at least one corresponding topic label in Twitter message to be sent, and reception is from the Twitter message that contains at least one topic label of user terminal, for described Twitter message distributes a unique message identifier (ID), carry out corresponding with described Twitter message described message id; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message added in the topic attribute of corresponding described topic ID and carry out related with described topic ID.
When the user need to watch the Twitter message of topic of interest, can send the topic that contains topic label or topic ID by user terminal and search message, search message at the topic that contains the topic label that receives from user terminal, the topic label of searching in message according to described topic generates corresponding topic ID, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; According to described topic ID, the topic attribute of correspondence is offered described user terminal afterwards, pull corresponding Twitter message for described user terminal according to each message id in described topic attribute.
Wherein, described message id and described Twitter message are carried out at once, can only set up the corresponding relation of described message id and Twitter message address information, the message body of Twitter message can be stored in user terminal or special storage entity.Perhaps also can be with described message id and Twitter message entity corresponding stored in same entity, as be stored in this locality or other application-specific entities.Or can adopt other corresponded manner, will not enumerate herein.
In addition, the message id of described Twitter message added in the topic attribute of corresponding described topic ID and carry out topic ID and topic Attribute Association to be stored in this locality or other specific store entities when related with described topic ID.Perhaps also can adopt other interrelational form, will not enumerate herein.
During specific implementation, said method can be applicable to comprise in the system of user terminal and microblogging server.At this moment, the microblogging server is used for receiving the Twitter message that contains at least one topic label from user terminal, for described Twitter message distributes a unique message id, carries out corresponding with described Twitter message described message id; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message added in the topic attribute of corresponding described topic ID and carry out related with described topic ID; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic ID, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; According to described topic ID, the topic attribute of correspondence is offered described user terminal.
Similarly, the microblogging server can only be set up the corresponding relation of described message id and Twitter message address information, and the message body of Twitter message can be stored in user terminal or special storage entity.Perhaps the microblogging server also can be with described message id and Twitter message entity corresponding stored in local or other application-specific entities.Or can adopt other corresponded manner, will not enumerate herein.
In addition, the microblogging server can be stored in topic ID and topic Attribute Association in this locality or other specific store entities.Perhaps also can adopt other interrelational form, will not enumerate herein.
In practical application, the user may relatively pay close attention to some topic within a period of time, and after a period of time, may can relatively pay close attention to other topics again.Therefore, can further safeguard the corresponding relation of a user ID and topic ID list in the present embodiment, correspondingly, the user can by user terminal to this topic ID list add, delete and check.Correspondingly, can receive from the topic that contains user ID and topic label (or topic ID) of user terminal and listen to request, according to the request of listening to of described topic, the topic ID of correspondence be added in topic ID list with described user ID corresponding stored.Reception is cancelled request from the topic that contains user ID and topic label (or topic ID) of user terminal, cancels according to described topic the topic ID that asks correspondence and is removed from described topic ID list.Reception is checked request from the list that contains user ID of user terminal, checks user ID in request according to described list, and the topic ID list of the described user ID of correspondence is offered described user terminal.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
Embodiment one, and the method in the present embodiment is applied to comprise in the system of user terminal and microblogging server, and take the microblogging server, corresponding relation and incidence relation is stored in situation in the microblogging server as example.Fig. 1 is the exemplary process diagram of Twitter message lookup method in the embodiment of the present invention one.As shown in Figure 1, this flow process comprises the steps:
Step 101 ~ step 102, each microblog users are added at least one topic label in Twitter message to be sent by user terminal, the Twitter message that will contain the topic label sends to the microblogging server.User terminal in this step is made a general reference the user terminal of each microblog users.
Generally, a Twitter message may only relate to a topic, but sometimes, a Twitter message may relate to two or more topics simultaneously.Therefore can add one or more corresponding topic labels in this step in Twitter message.
Wherein, the implementation of interpolation topic label can have multiple.For example, can be in advance and the concrete topic label addition manner of microblogging server commitment.Be the topic label as the word that can arrange between two " # " number, or to arrange two words between " title " be topic label etc.Perhaps, user terminal also can be notified concrete addition manner to the microblogging server after adding the topic label.Concrete which kind of implementation that adopts can be determined according to actual needs.
Step 103, the microblogging server receives the Twitter message from user terminal, for each Twitter message that receives distributes a unique message id, carries out corresponding with described Twitter message described message id; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message is added to carry out related with described topic ID in the topic attribute of described topic ID.
In this step, the message id of described Twitter message is added in the topic attribute of described topic ID with described topic ID and carry out when related, if there is no corresponding topic ID in the microblogging server, set up the index entry of New Topics ID and topic attribute, the message id of described Twitter message is added in the topic attribute of described topic ID; If there has been corresponding topic ID in the microblogging server, directly the message id of described Twitter message is added in the topic attribute of corresponding described topic ID to getting final product.
In the present embodiment, the topic attribute comprises the message id to all Twitter messages that should topic.In addition, can also comprise other topic relevant informations in the topic attribute, as topic content, topic ID, to information such as message sum that should topic.
Wherein, if the topic attribute comprise message sum information that should topic, in this step, after adding to message id in corresponding topic attribute, also need synchronous this message sum information of upgrading.
In addition, for prior art in not comprise the Twitter message of topic label compatible, the microblogging server in the present embodiment also can receive the Twitter message that does not comprise the topic label from user terminal.Correspondingly, before carrying out the step of the topic label in the described Twitter message of described parsing, can further comprise: whether contain the topic label in the Twitter message that the judgement of microblogging server receives, when judgement contains the topic label, carry out the topic label in described parsing Twitter message.
In the present embodiment, after carrying out this step, can be further that described Twitter message is corresponding topic ID offers corresponding user terminal.
Step 104, certain microblog users sends to the microblogging server topic that contains topic label or topic ID by user terminal and searches message.
In this step, if got the topic ID of some topic before user terminal, and want to check the Twitter message relevant to this topic, can utilize this topic ID to carry out topic and search, namely send the topic that contains topic ID and search message; Perhaps still can utilize the topic label to carry out topic searches.If user terminal does not have relevant topic id information, utilize topic content itself to carry out topic and search, namely send the topic that contains the topic label and search message.
Step 105 ~ step 106, the microblogging server is determined corresponding topic attribute according to search message from the described topic of described user terminal, and determined topic attribute is offered described user terminal.
In this step, comprise the topic label in message if topic is searched, generate corresponding topic ID according to described topic label, when determining to have described topic ID in the incidence relation of topic attribute and topic ID, determine the topic attribute of correspondence according to described topic ID; Comprise topic ID in message if topic is searched, when having described topic ID in the incidence relation of definite topic attribute and topic ID, directly determine corresponding topic attribute according to described topic ID.
Step 107 ~ step 108, described user terminal pulls corresponding Twitter message according to each message id in described topic attribute from the microblogging server.
In this step, user terminal pulls in described Twitter message, resolves the topic label in described Twitter message, and described topic label and message text are differently shown.For example, can utilize different colors to be differently shown.Correspondingly, if also have interested other topics of user in this topic label, the user also can by click the operation of corresponding topic label performing step 104, namely send to the microblogging server topic that contains the topic label and search message.
In the present embodiment, user terminal also can pull Twitter message according to existing mode.Correspondingly, after user terminal pulls Twitter message, can the topic label in carrying out described parsing Twitter message before, judge whether comprise the topic label in Twitter message, as comprise, carry out the topic label in described parsing Twitter message; Otherwise, can directly show the Twitter message that pulls by existing mode.
Can be further in the present embodiment the corresponding relation of the corresponding topic ID of the topic list that maintenance customer ID and this user listen in the microblogging server.
Correspondingly, can further comprise step 109 shown in Figure 1 ~ step 114 in the present embodiment.
Step 109, certain microblog users sends to the microblogging server topic that contains user ID and topic label (or topic ID) by user terminal and listens to request.
In this step, if got the topic ID of some topic before user terminal, and want to listen to the Twitter message relevant to this topic, can utilize this topic ID to carry out topic and listen to request, namely send the topic that contains topic ID and user ID and listen to request; Perhaps still can utilize the topic label to carry out topic and listen to request.If user terminal does not have relevant topic id information, utilize topic content itself to carry out topic and listen to request, namely send the topic that contains topic label and user ID and listen to request.
Step 110, microblogging server be when topic ID corresponding to existence in the incidence relation of topic attribute and topic ID determined in the request of listening to according to described topic, and the topic ID that this is corresponding adds in topic ID list with described user ID corresponding stored.
In this step, be the topic label if topic is listened to what comprise in request, generate corresponding topic ID according to described topic label.When having described topic ID in the incidence relation of determining topic attribute and topic ID, described topic ID is added in topic ID list with described user ID corresponding stored.And further, can return to described user terminal and add the success message (not shown).In addition, if do not have described topic ID in the incidence relation of definite topic attribute and topic ID, can return to the interpolation failed message to described user terminal.
Step 111, certain microblog users send to the microblogging server topic that contains user ID and topic label (or topic ID) by user terminal and cancel request.
In this step, if listened to the topic of some concerns before user terminal, and want now to cancel certain topic, can utilize the topic label of this topic or topic ID to carry out topic and cancel request, namely send and contain topic ID(or topic label) and the topic of user ID cancel and asking.
Step 112, microblogging server are cancelled according to described topic when having described topic ID in the topic ID list of asking definite and described user ID corresponding stored, and described topic ID is removed from described topic ID list.
In this step, be the topic label if topic is cancelled what comprise in request, generate corresponding topic ID according to described topic label.When having described topic ID in the topic ID list of definite and user ID corresponding stored, described topic ID is removed from described topic ID list.And further, can return to described user terminal and cancel the success message (not shown).In addition, if determine not have described topic ID in described topic ID list, can return to described user terminal and cancel invalid message or non-return messages.
Step 113, user terminal sends to the microblogging server list that contains user ID and checks request.
Step 114, the microblogging server is checked user ID in request according to described list, and the topic ID list of the described user ID of correspondence is offered described user terminal.
Described user terminal can be checked the Twitter message of corresponding topic according to described topic ID list from the microblogging server, namely carry out the operation of described step 104 ~ step 108.
Further, can comprise also in the topic attribute in the present embodiment that topic listens to number; Step 110 and step 112 further comprise: when definite described topic identification list changed, number listened in the topic that synchronously upgrades in corresponding topic attribute.
When it will be understood by those skilled in the art that specific implementation, step 109 in Fig. 1 ~ step 110, step 111 ~ step 112, and there is no strict sequencing between step 113 ~ step 114 three, the three is exchange sequence or the execution that mutually interts mutually.In addition, there is no strict sequencing between step 109 ~ step 114 and step 104 ~ step 108, both same commutative order or the execution that interts side by side yet.Sequence number in figure does not represent execution sequence each other only for convenience of description.
Corresponding with method shown in Figure 1, the Twitter message seeking system in the embodiment of the present invention comprises: user terminal and microblogging server.
Wherein, user terminal is used for adding at least one topic label at Twitter message to be sent, and the Twitter message that will contain the topic label sends to described microblogging server; Message searched in the topic that sends the topic ID that contains the topic label or obtain to described microblogging server, and each message id in the topic attribute that returns according to described microblogging server pulls corresponding Twitter message from described microblogging server.
The microblogging server is used for receiving the Twitter message that contains at least one topic label from user terminal, for described Twitter message distributes a unique message id, described message id and described Twitter message is carried out corresponding stored; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message added in the topic attribute of corresponding described topic ID and carry out association store with described topic ID; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic ID, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; When determining according to described topic ID to have described topic ID in the incidence relation of topic attribute and topic ID, the topic attribute of correspondence is offered described user terminal.
In addition, the further maintenance customer ID and to the corresponding relation of topic ID list that should user ID of microblogging server.
At this moment, user terminal can be further used for sending to described microblogging server the topic that contains user ID and topic label and listen to request; Or listen to request to the topic that described microblogging server transmission contains user ID and topic ID.Correspondingly, described microblogging server is further used for according to the described topic request of listening to when determining topic ID corresponding to existence in the incidence relation of topic attribute and topic ID, and described topic ID is added in topic ID list with described user ID corresponding stored.And further, can return to the interpolation success message to described user terminal.In addition, if do not have described topic ID in the incidence relation of definite topic attribute and topic ID, can return to the interpolation failed message to described user terminal.
Further, described user terminal also is used for sending to described microblogging server the topic cancellation request that contains user ID and topic label; Or cancel request to the topic that described microblogging server transmission contains user ID and topic ID.Correspondingly, when described microblogging server is further used for cancelling request and determining to have described topic ID in topic ID list with described user ID corresponding stored according to described topic, described topic ID is removed from described topic ID list.And further, can return to the cancellation success message to described user terminal.In addition, if determine not have described topic ID in described topic ID list, can return to described user terminal and cancel invalid message or non-return messages.
Further, described user terminal sends to described microblogging server the list that contains user ID and checks request, and the Twitter message of corresponding topic is checked in the topic ID list of the corresponding described user ID of returning according to described microblogging server from the microblogging server.Correspondingly, the microblogging server is further used for receiving described list and checks request, checks user ID in request according to described list, and the topic ID list of the described user ID of correspondence is offered described user terminal.
When the topic attribute comprised that number listened in topic, described microblogging server was further used for when described topic identification list changes, and number listened in the topic that synchronously upgrades in corresponding topic attribute.
During specific implementation, the microblogging server can be a single entity, can be also the combination of a plurality of entities.Correspondingly, the function of above-mentioned microblogging server can realize in an entity, also can realize in a plurality of entities.
The below enumerates a kind of concrete form of implementation of microblogging server.Fig. 2 is the exemplary process diagram of Twitter message lookup method in the embodiment of the present invention two.As shown in Figure 2, the microblogging server in the present embodiment two comprises message parse unit, data storage cell and topic processing unit.
Wherein, the message parse unit is used for receiving the Twitter message that contains at least one topic label from user terminal, is that described Twitter message distributes a unique message id, with described message id and described Twitter message corresponding stored at data storage cell; Resolve the topic label in described Twitter message, be that each topic label that parses generates a unique topic ID, the message id of described Twitter message is added in the topic attribute of corresponding described topic ID and with described topic ID association store at the topic processing unit.Wherein, if the topic attribute comprise message sum information that should topic, after message id being added in corresponding topic attribute, also need synchronous this message sum information of upgrading.
Data storage cell is used for the described Twitter message of corresponding stored and message identifier thereof.
The topic processing unit is used for the described topic ID of corresponding stored and corresponding topic attribute; Reception is searched message from the topic that contains the topic label of user terminal, the topic label of searching in message according to described topic generates corresponding topic ID according to the method identical with the message parse unit, and message searched in the topic that perhaps receives the topic ID that obtains to some extent from containing of user terminal; According to described topic ID, the topic attribute of correspondence is offered described user terminal.
Further, this microblogging server also can comprise the relationship safeguard unit, be used for receiving and listen to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic ID according to the method identical with the message parse unit, perhaps receives from the user ID that contains of user terminal and listens to request with the topic of the topic ID that obtains; When having described topic ID in definite topic processing unit, described topic ID is added in topic ID list self maintained and described user ID corresponding stored.And further, can return to the interpolation success message to described user terminal.In addition, if determine not have described topic ID in the topic processing unit, can return to the interpolation failed message to described user terminal.
In addition, request cancelled in the topic that contains user ID and topic label that the relationship safeguard unit is further used for receiving from user terminal, the topic label of cancelling in request according to described topic generates corresponding topic ID according to the method identical with the message parse unit, perhaps receives to cancel from the topic of the topic ID that contains user ID and obtain of user terminal to ask; When having described topic ID in determining self maintained and topic ID list described user ID corresponding stored, described topic ID is removed from described topic identification list.And further, can return to the cancellation success message to described user terminal.In addition, if determine not have described topic ID in described topic ID list, can return to described user terminal and cancel invalid message or non-return messages.
When the user need to check topic ID list, described relationship safeguard unit further receives and checks request from the list that contains user ID of user terminal, check user ID in request according to described list, the topic ID list of the corresponding described user ID of self maintained is offered described user terminal.
If described topic attribute comprises topic and listen to number, described relationship safeguard unit is further used for when described topic ID list changes, and number listened in the topic of notifying described topic processing unit synchronously to upgrade in corresponding topic attribute.
During specific implementation, message parse unit, data storage cell, topic processing unit and relationship safeguard unit can be separately positioned in different entities, for example, the message parse unit is arranged in message server, data storage cell is arranged on data storage center, the topic processing unit is arranged in the topic server, and the relationship safeguard unit is arranged on and concerns that server is medium.In addition, also can comprise two or more above-mentioned functions unit at certain entity, for example, message parse unit and data storage cell are arranged in the message parse server, and it is medium that topic processing unit and relationship safeguard unit are arranged on the topic server.
As shown in Figure 2, the method flow in the embodiment of the present invention comprises the steps:
Step 201 ~ step 202, each microblog users are added at least one topic label in Twitter message to be sent by user terminal, the Twitter message that will contain the topic label sends to the message parse unit.
Step 203, the message parse unit receives the Twitter message from user terminal, is that each Twitter message that receives distributes unique message identifier (ID), with described message id and described Twitter message corresponding stored in data storage cell; Resolve the topic label in described Twitter message, be that each topic label that parses generates unique topic sign (ID), the message id of described Twitter message added in the topic attribute of described topic ID with described topic ID association store in the topic processing unit.
In the present embodiment, the topic attribute comprises the message id to all Twitter messages that should topic.In addition, can also comprise other topic relevant informations in the topic attribute, as topic content, topic ID, to information such as message sum that should topic.
Wherein, if the topic attribute comprise message sum information that should topic, in this step, after adding to message id in corresponding topic attribute, also need synchronous this message sum information of upgrading.
Step 204, certain microblog users sends to the topic processing unit topic that contains topic label or topic ID by user terminal and searches message.
Step 205 ~ step 206, the topic processing unit is determined corresponding topic attribute according to search message from the described topic of described user terminal, and determined topic attribute is offered described user terminal.
Wherein, comprise the topic label in message if topic is searched, the topic label searched in message according to described topic of topic processing unit generates corresponding topic ID according to the method identical with the message analysis unit.
Step 207 ~ step 208, described user terminal pulls corresponding Twitter message according to each message id in described topic attribute from data storage cell.
Further, also can comprise step 209 ~ step 214 in the present embodiment.
Step 209, certain microblog users is listened to request by user terminal to the topic that relationship safeguard unit transmission contains user ID and topic label (or topic ID).
Step 210, relationship safeguard unit be when the request of listening to is determined to have corresponding topic ID in the topic processing unit according to described topic, and the topic ID that this is corresponding adds in topic ID list with described user ID corresponding stored.And further, can return to described user terminal and add the success message (not shown).In addition, if determine not have described topic ID in the topic processing unit, can return to the interpolation failed message to described user terminal.
In this step, be the topic label if topic is listened to what comprise in request, generate corresponding topic ID according to described topic label according to the method identical with the message analysis unit.
Step 211, certain microblog users is cancelled request by user terminal to the topic that relationship safeguard unit transmission contains user ID and topic label (or topic ID).
When step 212, relationship safeguard unit are cancelled request and determined to have described topic ID in topic ID list with described user ID corresponding stored according to described topic, described topic ID is removed from described topic ID list.And further, can return to described user terminal and cancel the success message (not shown).In addition, if determine not have described topic ID in described topic ID list, can return to described user terminal and cancel invalid message or non-return messages.
In this step, be the topic label if topic is cancelled what comprise in request, generate corresponding topic ID according to described topic label.
Step 213, user terminal is checked request to the list that relationship safeguard unit transmission contains user ID.
Step 214, user ID in request is checked according to described list in the relationship safeguard unit, and the topic ID list of the described user ID of correspondence is offered described user terminal.
Described user terminal can be checked the Twitter message of corresponding topic according to described topic ID list, namely carry out the operation of described step 204 ~ step 208.
Further, can comprise also in the topic attribute in the present embodiment that topic listens to number; Can further comprise in step 210 and step 212: the relationship safeguard unit synchronously upgrades in the topic processing unit topic in corresponding topic attribute and listens to number when definite described topic identification list changes.
Same, the sequence number in Fig. 2 does not represent execution sequence each other only for convenience of description.
" reception " word in the embodiment of the present invention can be understood as and initiatively obtains from other modules can be also to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
Part steps in the embodiment of the present invention can utilize software to realize, corresponding software program can be stored in the storage medium that can read, as CD or hard disk etc.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above is only preferred embodiment of the present invention; be not for limiting protection scope of the present invention; within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (16)

1. a Twitter message lookup method, is characterized in that, the method comprises:
Reception for described Twitter message distributes a unique message identifier, is carried out corresponding with described Twitter message described message identifier from the Twitter message that contains at least one topic label of user terminal; Resolve the topic label in described Twitter message, be that each topic label that parses generates unique topic sign, the message identifier of described Twitter message added in the topic attribute of corresponding described topic sign and carry out related with described topic sign;
Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic sign, and message searched in the topic that perhaps receives the topic sign of obtaining to some extent from containing of user terminal; The topic attribute that identifies correspondence according to described topic offers described user terminal, pulls corresponding Twitter message for described user terminal according to each message identifier in described topic attribute;
The method further comprises:
Reception is listened to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic sign, perhaps receives from the user ID that contains of user terminal and listens to request with the topic of the topic sign of obtaining; When having described topic sign in determining the incidence relation of topic attribute and topic sign, described topic is identified in the topic identification list that adds to described user ID corresponding stored.
2. the method for claim 1, is characterized in that, the method further comprises:
Reception is cancelled request from the topic that contains user ID and topic label of user terminal, topic corresponding to topic label generation of cancelling in request according to described topic identifies, and perhaps receives the topic cancellation request from the topic sign that contains user ID and obtain of user terminal; When having described topic sign in the topic identification list of definite and described user ID corresponding stored, described topic sign is removed from described topic identification list.
3. method as claimed in claim 1 or 2, is characterized in that, the method further comprises:
Reception is checked request from the list that contains user ID of user terminal, check user ID in request according to described list, the topic identification list of the described user ID of correspondence is offered described user terminal, check the Twitter message of corresponding topic according to described topic identification list for described user terminal.
4. method as claimed in claim 1 or 2, is characterized in that, described topic attribute further comprises: number listened in topic;
The method further comprises: when described topic identification list changed, number listened in the topic that synchronously upgrades in corresponding topic attribute.
5. the method for claim 1, it is characterized in that, described reception for described Twitter message distributes a unique message identifier, is carried out corresponding with described Twitter message described message identifier from the Twitter message that contains at least one topic label of user terminal; Resolve the topic label in described Twitter message, be that each topic label that parses generates unique topic sign, the message identifier of described Twitter message added in the topic attribute of corresponding described topic sign and carry out related comprising with described topic sign:
The message parse unit receives the Twitter message that contains at least one topic label from user terminal, is that described Twitter message distributes a unique message identifier, with described message identifier and described Twitter message corresponding stored at data storage cell; Resolve the topic label in described Twitter message, be that each topic label that parses generates unique topic sign, the message identifier of described Twitter message is added in the topic attribute of corresponding described topic sign and with described topic sign association store at the topic processing unit;
Described reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic sign, and message searched in the topic that perhaps receives the topic sign of obtaining to some extent from containing of user terminal; The topic attribute that identifies correspondence according to described topic offers described user terminal, pulls corresponding Twitter message for described user terminal according to each message identifier in described topic attribute and comprises:
The topic processing unit receives and searches message from the topic that contains the topic label of user terminal, the topic label of searching in message according to described topic generates corresponding topic sign according to the method identical with the message analysis unit, perhaps receives the topic that the topic that obtains to some extent from containing of user terminal identifies and searches message; The topic attribute that identifies correspondence according to described topic offers described user terminal, pulls corresponding Twitter message for described user terminal according to each message identifier in described topic attribute from data storage cell.
6. method as claimed in claim 5, it is characterized in that, described reception is listened to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic sign, perhaps receives from the user ID that contains of user terminal and listens to request with the topic of the topic sign of obtaining; When having described topic sign in the incidence relation of determining topic attribute and topic sign, described topic is identified the topic identification list that adds to described user ID corresponding stored comprises:
The relationship safeguard unit receives and listens to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic sign according to the method identical with described message parse unit, perhaps receives the topic that the topic that contains user ID and obtain from user terminal identifies and listens to request; When having described topic sign in definite topic processing unit, described topic sign is added in self maintained and topic identification list described user ID corresponding stored.
7. method as claimed in claim 6, is characterized in that, the method further comprises:
The relationship safeguard unit receives from the topic that contains user ID and topic label of user terminal cancels request, the topic label of cancelling in request according to described topic generates corresponding topic sign according to the method identical with described message parse unit, perhaps receives to cancel from the topic of the topic sign that contains user ID and obtain of user terminal to ask; When having described topic sign in determining self maintained and topic identification list described user ID corresponding stored, described topic sign is removed from the described topic identification list of self maintained.
8. method as described in claim 6 or 7, is characterized in that, the method further comprises:
The relationship safeguard unit receives and checks request from the list that contains user ID of user terminal, check user ID in request according to described list, the topic identification list of the corresponding described user ID of self maintained is offered described user terminal, check corresponding topic attribute for described user terminal according to described topic identification list from the topic processing unit.
9. method as described in claim 6 or 7, is characterized in that, described topic attribute further comprises: number listened in topic;
The method further comprises: described relationship safeguard unit is when definite topic identification list changes, and notice topic processing unit synchronously upgrades in the topic processing unit topic in corresponding topic attribute and listens to number.
10. a Twitter message seeking system, is characterized in that, this system comprises: user terminal and microblogging server, wherein,
Described user terminal is used for adding at least one topic label at Twitter message to be sent, and the Twitter message that will contain the topic label sends to described microblogging server; Message searched in the topic that sends the topic sign that contains the topic label or obtain to described microblogging server, and each message identifier in the topic attribute that returns according to described microblogging server pulls corresponding Twitter message;
Described microblogging server is used for receiving the Twitter message that contains at least one topic label from user terminal, for described Twitter message distributes a unique message identifier, carries out corresponding with described Twitter message described message identifier; Resolve the topic label in described Twitter message, be that each topic label that parses generates unique topic sign, the message identifier of described Twitter message added in the topic attribute of corresponding described topic sign and carry out related with described topic sign; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in message according to described topic generates corresponding topic sign, and message searched in the topic that perhaps receives the topic sign of obtaining to some extent from containing of user terminal; The topic attribute that identifies correspondence according to described topic offers described user terminal;
Described user terminal is further used for sending to described microblogging server the topic that contains user ID and topic label and listens to request; Or send to described microblogging server the topic that contains user ID and topic sign and listen to request;
Request listened in the topic that contains user ID and topic label that described microblogging server is further used for receiving from user terminal, the topic label of listening in request according to described topic generates corresponding topic sign, perhaps receives from the user ID that contains of user terminal and listens to request with the topic of the topic sign of obtaining; When having described topic sign in determining the incidence relation of topic attribute and topic sign, described topic is identified in the topic identification list that adds to described user ID corresponding stored.
11. system as claimed in claim 10 is characterized in that, described user terminal is further used for sending to described microblogging server the topic that contains user ID and topic label and cancels request; Or send to described microblogging server the topic that contains user ID and topic sign and cancel request;
Request cancelled in the topic that contains user ID and topic label that described microblogging server is further used for receiving from user terminal, topic corresponding to topic label generation of cancelling in request according to described topic identifies, and perhaps receives the topic cancellation request from the topic sign that contains user ID and obtain of user terminal; When having described topic sign in the topic identification list of definite and described user ID corresponding stored, described topic sign is removed from described topic identification list.
12. system as described in claim 10 or 11, it is characterized in that, described user terminal is further used for sending to described microblogging server the list that contains user ID and checks request, the topic identification list of the corresponding described user ID of returning according to described microblogging server is checked the Twitter message of corresponding topic;
Request is checked in the list that contains user ID that the microblogging server is further used for receiving from user terminal, checks user ID in request according to described list, and the topic identification list of the described user ID of correspondence is offered described user terminal.
13. system as described in claim 10 or 11 is characterized in that, described topic attribute further comprises: number listened in topic;
Described microblogging server is further used for when described topic identification list changes, and number listened in the topic that synchronously upgrades in corresponding topic attribute.
14. a microblogging server is characterized in that, this microblogging server comprises: message parse unit, data storage cell and topic processing unit, wherein,
Described message parse unit be used for to receive the Twitter message that contains at least one topic label from user terminal, is that described Twitter message distributes a unique message identifier, with described message identifier and described Twitter message corresponding stored at data storage cell; Resolve the topic label in described Twitter message, be that each topic label that parses generates unique topic sign, the message identifier of described Twitter message is added in the topic attribute of corresponding described topic sign and with described topic sign association store at the topic processing unit;
Described data storage cell is used for the described Twitter message of corresponding stored and message identifier thereof;
Described topic processing unit is used for the described topic sign of corresponding stored and corresponding topic attribute; Reception is searched message from the topic that contains the topic label of user terminal, the topic label of searching in message according to described topic generates corresponding topic sign according to the method identical with the message parse unit, perhaps receives the topic that the topic that obtains to some extent from containing of user terminal identifies and searches message; The topic attribute that identifies correspondence according to described topic offers described user terminal;
This microblogging server further comprises: the relationship safeguard unit, be used for receiving and listen to request from the topic that contains user ID and topic label of user terminal, the topic label of listening in request according to described topic generates corresponding topic sign according to the method identical with the message parse unit, perhaps receives the topic that the topic that contains user ID and obtain from user terminal identifies and listens to request; When having described topic sign in definite topic processing unit, described topic sign is added in self maintained and topic identification list described user ID corresponding stored.
15. microblogging server as claimed in claim 14, it is characterized in that, request cancelled in the topic that contains user ID and topic label that described relationship safeguard unit is further used for receiving from user terminal, the topic label of cancelling in request according to described topic generates corresponding topic sign according to the method identical with the message parse unit, perhaps receives to cancel from the topic of the topic sign that contains user ID and obtain of user terminal to ask; When having described topic sign in determining self maintained and topic identification list described user ID corresponding stored, described topic sign is removed from described topic identification list.
16. microblogging server as described in claims 14 or 15, it is characterized in that, request is checked in the list that contains user ID that described relationship safeguard unit is further used for receiving from user terminal, check user ID in request according to described list, the topic identification list of the corresponding described user ID of self maintained is offered described user terminal.
CN 201010273892 2010-08-31 2010-08-31 Method and system for searching microblog messages and microblog server Active CN102385605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010273892 CN102385605B (en) 2010-08-31 2010-08-31 Method and system for searching microblog messages and microblog server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010273892 CN102385605B (en) 2010-08-31 2010-08-31 Method and system for searching microblog messages and microblog server

Publications (2)

Publication Number Publication Date
CN102385605A CN102385605A (en) 2012-03-21
CN102385605B true CN102385605B (en) 2013-05-08

Family

ID=45825024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010273892 Active CN102385605B (en) 2010-08-31 2010-08-31 Method and system for searching microblog messages and microblog server

Country Status (1)

Country Link
CN (1) CN102385605B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693241A (en) * 2011-03-25 2012-09-26 腾讯科技(深圳)有限公司 Method and device for gathering microblog subject
CN103425389A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Microblog message interactive display method and microblog client side
CN103532991B (en) * 2012-07-03 2015-09-09 腾讯科技(深圳)有限公司 The method of display microblog topic and mobile terminal
CN102801657A (en) * 2012-09-03 2012-11-28 鲁赤兵 Composite microblog system and method
CN102882975B (en) * 2012-10-15 2016-05-04 东莞宇龙通信科技有限公司 Display methods, mobile terminal and the GSM of micro-blog information
CN103634319B (en) * 2013-12-02 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of realization method and system of the multi-threaded campaign item management of WeChat wall
CN104731806B (en) * 2013-12-20 2018-10-19 腾讯科技(深圳)有限公司 A kind of method and terminal for quickly searching user information in social networks
CN106775268B (en) * 2016-11-28 2020-10-30 浙江翼信科技有限公司 Message display method and device
CN113407792B (en) * 2021-07-06 2024-03-26 亿览在线网络技术(北京)有限公司 Topic-based text input method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262494A (en) * 2008-01-23 2008-09-10 华为技术有限公司 Method, client, server and system for processing distributed information
CN101576887A (en) * 2008-05-05 2009-11-11 广达电脑股份有限公司 Electronic device capable of automatically generating label, label generating method and label generating system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262494A (en) * 2008-01-23 2008-09-10 华为技术有限公司 Method, client, server and system for processing distributed information
CN101576887A (en) * 2008-05-05 2009-11-11 广达电脑股份有限公司 Electronic device capable of automatically generating label, label generating method and label generating system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Towards tagging and categorization for micro-blogs》;Garcia Esparze et al;《21st National Conference on artificial Intelligence and Cognitive Science》;20100830;全文 *
Garcia Esparze et al.《Towards tagging and categorization for micro-blogs》.《21st National Conference on artificial Intelligence and Cognitive Science》.2010,全文.

Also Published As

Publication number Publication date
CN102385605A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
CN102385605B (en) Method and system for searching microblog messages and microblog server
CN107220352B (en) Method and device for constructing comment map based on artificial intelligence
CN102521733B (en) Mark dialogue and message in the e-mail system based on dialogue
US20190340296A1 (en) Cognitive summarization and retrieval of archived communications
KR101863981B1 (en) Using text messages to interact with spreadsheets
CN108920675B (en) Information processing method and device, computer storage medium and terminal
CN102421062B (en) Method and system for pushing application information
US11087414B2 (en) Distance-based social message pruning
SG193537A1 (en) Synchronizing digital content
US10558655B2 (en) Data query method supporting natural language, open platform, and user terminal
CN103716339A (en) Multimedia sharing method, system and device
CN102769640B (en) The update method of user profile, server and system
KR20150096294A (en) Method for classifying question and answer, and computer-readable recording medium storing program for performing the method
US8489626B2 (en) Method and apparatus for recommending a short message recipient
CN102939774A (en) Method and apparatus for context-indexed network resource sections
US20180357303A1 (en) Determining feature scores for message features
CN105279159B (en) The reminding method and device of contact person
CN112307318B (en) Content publishing method, system and device
US9288244B2 (en) Managing a collaborative space
CN111125332B (en) Method, device, equipment and storage medium for calculating TF-IDF value of word
CN102404292B (en) Account automatic matching method and system
CN101094436A (en) Information inter-transferring intelligent platform
CN110598009B (en) Method and device for searching works, electronic equipment and storage medium
CN114363836A (en) Information publishing method based on 5G message
CN113988954A (en) Financing product marketing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant