CN102385605A - 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
CN102385605A
CN102385605A CN2010102738924A CN201010273892A CN102385605A CN 102385605 A CN102385605 A CN 102385605A CN 2010102738924 A CN2010102738924 A CN 2010102738924A CN 201010273892 A CN201010273892 A CN 201010273892A CN 102385605 A CN102385605 A CN 102385605A
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.)
Granted
Application number
CN2010102738924A
Other languages
Chinese (zh)
Other versions
CN102385605B (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 in amusement and recreation at ordinary times, use, and in user's work, also obtained being widely used.In IM software, main what realize is man-to-man good friend chat and the crowd of a pair of N or the message chat pattern of discussion group separately.Along with the continuous development of internet, applications, the similar spy's of pushing away (twitter) microblogging is used and is also constantly being developed.
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, needs a lot of dialogues could represent a complete meaning usually.Blog is the formula of document, does not have clear and definite object, can a guy's style or the location but write the people of Blog, and hint expression is relatively complete, but the threshold of writing Blog is than higher.Microblogging also is a short message, does not also have clear and definite object, and the user can express oneself through a word about 140 words, and it is complete relatively to look like, and it is very low to write the threshold of microblogging, can be in short, also can be that a phonoreception is sighed.So than IM and Blog, the microblogging information transfer efficiency is higher, and threshold is lower.Can carry out the propagation and the transmission of information very fast through the microblogging user, 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 user's more than ten thousand grades message simultaneously, yet the application of this large user amount must bring the Twitter message retrieval of big data quantity.In the 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 through 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 do secondary filtration in Search Results.The relevance power is indefinite between the message of Search Results on the other hand, sometimes between message and the message relevance a little less than.
Thus it is clear that, still do not have a kind of user of confession to locate the Twitter message lookup method of topic of interest fast in the prior art.
Summary of the invention
In view of this, on the one hand a kind of Twitter message lookup method is provided among the present invention, provides a kind of Twitter message to search system on the other hand, so that make the user locate the Twitter message of topic of interest fast.
Twitter message lookup method provided by the present invention comprises:
Reception for said Twitter message distributes a unique message identifier (ID), is carried out corresponding with said Twitter message said message id from the Twitter message that contains at least one topic label of user terminal; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and carry out related with said topic ID;
Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said 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 said topic ID the corresponding topic attribute is offered said user terminal, supply said user terminal to pull corresponding Twitter message according to each message id in the said topic attribute.
Twitter message provided by the present invention is searched system, comprising: user terminal and microblogging server, wherein,
Said 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 said microblogging server; Send the topic of the topic ID that contains the topic label or obtained to said microblogging server and search message, each message id in the topic attribute that returns according to said microblogging server pulls corresponding Twitter message;
Said microblogging server is used to receive the Twitter message that contains at least one topic label from user terminal, for said Twitter message distributes a unique message id, carries out corresponding with said Twitter message said message id; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and carry out related with said topic ID; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said 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 said topic ID the corresponding topic attribute is offered said user terminal.
Microblogging server provided by the present invention comprises: message parse unit, data storage cell and topic processing unit, wherein,
Said message parse unit is used to receive the Twitter message that contains at least one topic label from user terminal, is that said Twitter message distributes a unique message id, with said message id and said Twitter message corresponding stored at data storage cell; Resolve the topic label in the said Twitter message; Be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and with said topic ID association store at the topic processing unit;
Said data storage cell is used for said Twitter message of corresponding stored and message id thereof;
Said topic processing unit is used for said 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 the message according to said 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 said topic ID the corresponding topic attribute is offered said user terminal.
Can find out from such scheme; Pass through among 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; Utilize this topic ID will all Twitter messages that should topic ID be associated in together then; The topic ID that makes user terminal can utilize the topic label or obtain finds the Twitter message with same topic fast from said 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 invention one;
Fig. 2 is the exemplary process diagram of Twitter message lookup method in the embodiment of the invention two.
Embodiment
In the embodiment of the invention; In order to make the user can locate the Twitter message of topic of interest fast; Can in Twitter message to be sent, add at least one corresponding topic label by user terminal; And receive the Twitter message that contains at least one topic label from user terminal, for said Twitter message distributes a unique message identifier (ID), carry out corresponding with said Twitter message said message id; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and carry out related with said topic ID.
When the user need watch the Twitter message of topic of interest; Can send the topic that contains topic label or topic ID through user terminal and search message; Message searched in the topic that contains the topic label receiving from user terminal; The topic label of searching in the message according to said 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 said topic ID the corresponding topic attribute is offered said user terminal afterwards, supply said user terminal to pull corresponding Twitter message according to each message id in the said topic attribute.
Wherein, said message id and said Twitter message are carried out at once, can only set up the corresponding relation of said message id and Twitter message address information, the message body of Twitter message can be stored in user terminal or the special storage entity.Perhaps also can be in same entity with said message id and Twitter message entity corresponding stored, as be stored in this locality or other application-specific entities.Or can adopt other corresponded manner, enumerate no longer one by one here.
In addition, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and carry out can topic ID and topic Attribute Association being stored in this locality or other specific store entities when related with said topic ID.Perhaps also can adopt other interrelational form, enumerate no longer one by one here.
During concrete the realization, said method can be applicable to comprise in the system of user terminal and microblogging server.At this moment, the microblogging server is used to receive the Twitter message that contains at least one topic label from user terminal, for said Twitter message distributes a unique message id, carries out corresponding with said Twitter message said message id; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and carry out related with said topic ID; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said 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 said topic ID the corresponding topic attribute is offered said user terminal.
Likewise, the microblogging server can only be set up the corresponding relation of said message id and Twitter message address information, and the message body of Twitter message can be stored in user terminal or the special storage entity.Perhaps the microblogging server also can be with said message id and Twitter message entity corresponding stored in local or other application-specific entities.Or can adopt other corresponded manner, enumerate no longer one by one here.
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, enumerate no longer one by one here.
In the practical application, the user possibly relatively pay close attention to some topic in a period of time, and after a period of time, possibly can relatively pay close attention to other topics again.Therefore, can further safeguard the corresponding relation of an ID and topic ID tabulation in the present embodiment, correspondingly, the user can tabulate to this topic ID through user terminal and add, deletes and check.Correspondingly, can receive from the topic that contains ID and topic label (or topic ID) of user terminal and listen to request, according to said topic listen to request with corresponding topic ID add to the topic ID of said ID corresponding stored tabulation in.Reception is removed corresponding topic ID according to said topic cancellation request from the topic cancellation request that contains ID and topic label (or topic ID) of user terminal from said topic ID tabulation.Reception is checked request from the tabulation that contains ID of user terminal, checks the ID in the request according to said tabulation, and the topic ID of the said ID of correspondence tabulation is offered said user terminal.
For making the object of the invention, technical scheme and advantage clearer, below in conjunction with embodiment and accompanying drawing, to further explain of the present invention.
Embodiment one, and the method in the present embodiment is applied to comprise in the system of user terminal and microblogging server, and is example with the microblogging server with the situation that corresponding relation and incidence relation are stored in the microblogging server.Fig. 1 is the exemplary process diagram of Twitter message lookup method in the embodiment of the invention one.As shown in Figure 1, this flow process comprises the steps:
Step 101~step 102, each microblogging user adds at least one topic label through user terminal in Twitter message to be sent, and the Twitter message that will contain the topic label sends to the microblogging server.Each microblogging user's of user terminal general reference in this step user terminal.
Generally, a Twitter message possibly only relate to a topic, but sometimes, a Twitter message possibly relate to two or more topics simultaneously.Therefore can in Twitter message, add one or more corresponding topic labels in this step.
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.As the literal that can arrange between two " # " number is the topic label, or to arrange two literal 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 confirmed according to actual needs.
Step 103, the microblogging server receives the Twitter message from user terminal, for the Twitter message that each received distributes a unique message id, carries out corresponding with said Twitter message said message id; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added to carry out related with said topic ID in the topic attribute of said topic ID.
In this step; The message id of said Twitter message is added in the topic attribute of said topic ID with said topic ID and carry out when related; If do not have corresponding topic ID in the microblogging server; Then set up new topic ID and topic property index item, the message id of said Twitter message is added in the topic attribute of said topic ID; If had corresponding topic ID in the microblogging server, then directly the message id of said Twitter message is added in the topic attribute of corresponding said topic ID to getting final product.
In the present embodiment, comprise message id in the topic attribute to all Twitter messages that should topic.In addition, can also comprise other topic relevant informations in the topic attribute, like topic content, topic ID, to information such as message sum that should topic.
Wherein, if comprise in the topic attribute to message sum information that should topic, then in this step, add to message id in the corresponding topic attribute after, also need to upgrade synchronously this message sum information.
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; Carry out before the step of the topic label in the said Twitter message of said parsing; Can further comprise: the microblogging server judges in the Twitter message that is received whether contain the topic label, when judgement contains the topic label, carries out the topic label in the said parsing Twitter message.
In the present embodiment, carry out after this step, can further said Twitter message corresponding topic ID be offered corresponding user terminal.
Step 104, certain microblogging user sends the topic that contains topic label or topic ID through user terminal to the microblogging server and searches message.
In this step, if got access to the topic ID of some topic before the user terminal, and want to check the Twitter message relevant with this topic, this topic ID then capable of using carries out topic and searches, and promptly sends the topic that contains topic ID and searches message; Topic label perhaps still capable of using carries out topic and searches.If user terminal does not have relevant topic id information, then utilize topic content itself to carry out topic and search, promptly send the topic that contains the topic label and search message.
Step 105~step 106, the microblogging server is confirmed the corresponding topic attribute according to searching message from the said topic of said user terminal, and determined topic attribute is offered said user terminal.
In this step,, then generate corresponding topic ID, when confirming to exist in the incidence relation of topic attribute and topic ID said topic ID, confirm the corresponding topic attribute according to said topic ID according to said topic label if topic is searched and comprised the topic label in the message; If topic is searched and comprised topic ID in the message, when then confirming to exist in the incidence relation of topic attribute and topic ID said topic ID, directly confirm the corresponding topic attribute according to said topic ID.
Step 107~step 108, said user terminal pulls corresponding Twitter message according to each message id in the said topic attribute from the microblogging server.
In this step, user terminal pulls in the said Twitter message, resolves the topic label in the said Twitter message, and said topic label and message text are differently shown.For example, various colors capable of using is differently shown.Correspondingly, if also have other topics of user's interest in this topic label, then the user also can promptly send the topic that contains the topic label to the microblogging server and search message through clicking the operation of corresponding topic label performing step 104.
In the present embodiment, user terminal also can pull Twitter message according to existing mode.Correspondingly, after user terminal pulls Twitter message, can before the topic label in carrying out said parsing Twitter message, judge whether comprise the topic label in the Twitter message, as comprise, then carry out the topic label in the said parsing Twitter message; Otherwise, can directly show the Twitter message that pulls by existing mode.
Can be further in the present embodiment corresponding relation of the pairing topic ID tabulation of topic 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 microblogging user sends the topic that contains ID and topic label (or topic ID) through user terminal to the microblogging server and listens to request.
In this step, if got access to the topic ID of some topic before the user terminal, and want to listen to the Twitter message relevant with this topic, this topic ID then capable of using carries out topic and listens to request, promptly sends the topic that contains topic ID and ID and listens to request; Topic label perhaps still capable of using carries out topic and listens to request.If user terminal does not have relevant topic id information, then utilize topic content itself to carry out topic and listen to request, promptly send the topic that contains topic label and ID and listen to request.
Step 110, microblogging server be when the request of listening to is confirmed to have corresponding topic ID in the incidence relation of topic attribute and topic ID according to said topic, and this corresponding topic ID is added to during topic ID with said ID corresponding stored tabulates.
In this step, be the topic label, then generate corresponding topic ID according to said topic label if topic is listened to what comprise in the request.When in confirming the incidence relation of topic attribute and topic ID, having said topic ID, said topic ID is added to during topic ID with said ID corresponding stored tabulates.And further, can return to said user terminal and add the success message (not shown).In addition, if do not have said topic ID in the incidence relation of definite topic attribute and topic ID, then can return the interpolation failed message to said user terminal.
Step 111, certain microblogging user sends the topic cancellation request that contains ID and topic label (or topic ID) through user terminal to the microblogging server.
In this step; If listened to the topic of some concerns before the user terminal; And want to cancel certain topic now, then the topic label of this topic capable of using or topic ID carry out topic cancellation request, promptly send the topic cancellation request that contains topic ID (or topic label) and ID.
When step 112, microblogging server confirm to exist in the topic ID tabulation with said ID corresponding stored said topic ID according to said topic cancellation request, said topic ID is removed from said topic ID tabulation.
In this step, be the topic label, then generate corresponding topic ID according to said topic label as if what comprise in the topic cancellation request.When in the topic ID tabulation of confirming with the ID corresponding stored, having said topic ID, said topic ID is removed from said topic ID tabulation.And further, can return cancellation success message (not shown) to said user terminal.In addition, if confirm not have said topic ID in the said topic ID tabulation, then can return cancellation invalid message or non-return messages to said user terminal.
Step 113, user terminal sends the tabulation that contains ID to the microblogging server and checks request.
Step 114, the microblogging server is checked the ID in the request according to said tabulation, and the topic ID of the said ID of correspondence tabulation is offered said user terminal.
Said user terminal can be checked the Twitter message of corresponding topic according to said topic ID tabulation from the microblogging server, promptly carry out the operation of said step 104~step 108.
Further, can comprise also in the topic attribute in the present embodiment that topic listens to number; Then further comprise in step 110 and the step 112: when definite said topic identification list changed, number listened in the topic that upgrades synchronously in the corresponding topic attribute.
When it will be understood by those skilled in the art that concrete realization, step 109 among Fig. 1~step 110, step 111~step 112, and do not have strict sequencing between step 113~step 114 three, the three is the exchange sequence or the execution that interts each other each other.In addition, there is not strict sequencing between step 109~step 114 and step 104~step 108, the two the same commutative order or the execution that interts side by side yet.Sequence number among the figure has been merely and has made things convenient for description, does not represent execution sequence each other.
Corresponding with method shown in Figure 1, the Twitter message system of searching in the embodiment of the 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 said microblogging server; Send the topic of the topic ID that contains the topic label or obtained to said microblogging server and search message, each message id in the topic attribute that returns according to said microblogging server pulls corresponding Twitter message from said microblogging server.
The microblogging server is used to receive the Twitter message that contains at least one topic label from user terminal, for said Twitter message distributes a unique message id, said message id and said Twitter message is carried out corresponding stored; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and and carry out association store with said topic ID; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said 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 confirming to exist in the incidence relation of topic attribute and topic ID said topic ID according to said topic ID, the corresponding topic attribute is offered said user terminal.
In addition, the further maintenance customer ID and of microblogging server to the corresponding relation of topic ID tabulation that should ID.
At this moment, user terminal can be further used for sending the topic that contains ID and topic label to said microblogging server and listen to request; Or send the topic that contains ID and topic ID to said microblogging server and listen to request.Correspondingly, said microblogging server is further used for according to the said topic request of listening to when confirming to have corresponding topic ID in the incidence relation of topic attribute and topic ID, and said topic ID is added to during topic ID with said ID corresponding stored tabulates.And further, can return the interpolation success message to said user terminal.In addition, if do not have said topic ID in the incidence relation of definite topic attribute and topic ID, then can return the interpolation failed message to said user terminal.
Further, said user terminal also is used for sending the topic cancellation request that contains ID and topic label to said microblogging server; Or send the topic cancellation that contains ID and topic ID to said microblogging server and ask.Correspondingly, when said microblogging server is further used for confirming to exist in the topic ID tabulation with said ID corresponding stored said topic ID according to said topic cancellation request, said topic ID is removed from said topic ID tabulation.And further, can return the cancellation success message to said user terminal.In addition, if confirm not have said topic ID in the said topic ID tabulation, then can return cancellation invalid message or non-return messages to said user terminal.
Further, said user terminal sends the tabulation that contains ID to said microblogging server and checks request, and the Twitter message of corresponding topic is checked in the topic ID tabulation of the corresponding said ID that returns according to said microblogging server from the microblogging server.Correspondingly, the microblogging server is further used for receiving said tabulation and checks request, checks the ID in the request according to said tabulation, and the topic ID of the said ID of correspondence tabulation is offered said user terminal.
When comprising that number listened in topic in the topic attribute, said microblogging server is further used for when said topic identification list changes, and number listened in the topic that upgrades synchronously in the corresponding topic attribute.
During concrete the realization, the microblogging server can be a single entity, also can be the combination of a plurality of entities.Correspondingly, the function of above-mentioned microblogging server can realize in an entity, also can in a plurality of entities, realize.
Enumerate a kind of practical implementation form of microblogging server below.Fig. 2 is the exemplary process diagram of Twitter message lookup method in the embodiment of the 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 to receive the Twitter message that contains at least one topic label from user terminal, is that said Twitter message distributes a unique message id, with said message id and said Twitter message corresponding stored at data storage cell; Resolve the topic label in the said Twitter message; Be that each topic label that parses generates a unique topic ID, the message id of said Twitter message is added in the topic attribute of corresponding said topic ID and with said topic ID association store at the topic processing unit.Wherein, if comprise in the topic attribute to message sum information that should topic, then add to message id in the corresponding topic attribute after, also need to upgrade synchronously this message sum information.
Data storage cell is used for said Twitter message of corresponding stored and message identifier thereof.
The topic processing unit is used for said 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 the message according to said 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 said topic ID the corresponding topic attribute is offered said user terminal.
Further; This microblogging server also can comprise the relationship safeguard unit; Request listened in the topic that contains ID and topic label that is used to receive from user terminal; The topic label of listening in the request according to said topic generates corresponding topic ID according to the method identical with the message parse unit, perhaps receives from the ID that contains of user terminal and listens to request with the topic of the topic ID that is obtained; When in definite topic processing unit, having said topic ID, said topic ID is added in topic ID tabulation self maintained and said ID corresponding stored.And further, can return the interpolation success message to said user terminal.In addition, if confirm not have said topic ID in the topic processing unit, then can return the interpolation failed message to said user terminal.
In addition; The relationship safeguard unit is further used for receiving the topic cancellation request that contains ID and topic label from user terminal; Topic label according in the said topic cancellation request generates corresponding topic ID according to the method identical with the message parse unit, perhaps receives the topic cancellation request that contains ID and the topic ID that is obtained from user terminal; When in confirming topic ID tabulation self maintained and said ID corresponding stored, having said topic ID, said topic ID is removed from said topic identification list.And further, can return the cancellation success message to said user terminal.In addition, if confirm not have said topic ID in the said topic ID tabulation, then can return cancellation invalid message or non-return messages to said user terminal.
When the user need check topic ID tabulation; Said relationship safeguard unit further receives and checks request from the tabulation that contains ID of user terminal; Check the ID in the request according to said tabulation, the topic ID tabulation of the corresponding said ID of self maintained is offered said user terminal.
Listen to number if comprise topic in the said topic attribute, then said relationship safeguard unit is further used for when said topic ID tabulation changes, and number listened in the topic of notifying said topic processing unit to upgrade synchronously in the corresponding topic attribute.
During concrete the realization; Message parse unit, data storage cell, topic processing unit and relationship safeguard unit can be separately positioned in the different entities; For example, the message parse unit is arranged in the message server, and 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 in certain entity, comprise two or above above-mentioned functions unit, 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 invention comprises the steps:
Step 201~step 202, each microblogging user adds at least one topic label through user terminal in Twitter message to be sent, and the Twitter message that will contain the topic label sends to the message parse unit.
Step 203, message parse unit receive the Twitter message from user terminal, are that the Twitter message that each received distributes a unique message identifier (ID), with said message id and said Twitter message corresponding stored in data storage cell; Resolve the topic label in the said Twitter message; Be that each topic label that parses generates a unique topic sign (ID), the message id of said Twitter message is added in the topic attribute of said topic ID with said topic ID association store in the topic processing unit.
In the present embodiment, comprise message id in the topic attribute to all Twitter messages that should topic.In addition, can also comprise other topic relevant informations in the topic attribute, like topic content, topic ID, to information such as message sum that should topic.
Wherein, if comprise in the topic attribute to message sum information that should topic, then in this step, add to message id in the corresponding topic attribute after, also need to upgrade synchronously this message sum information.
Step 204, certain microblogging user sends the topic that contains topic label or topic ID through user terminal to the topic processing unit and searches message.
Step 205~step 206, the topic processing unit is confirmed the corresponding topic attribute according to searching message from the said topic of said user terminal, and determined topic attribute is offered said user terminal.
Wherein, if topic searches and comprise the topic label in the message, then the topic label searched in the message according to said topic of topic processing unit generates corresponding topic ID according to the method identical with the message analysis unit.
Step 207~step 208, said user terminal pulls corresponding Twitter message according to each message id in the said topic attribute from data storage cell.
Further, also can comprise step 209~step 214 in the present embodiment.
Step 209, certain microblogging user sends the topic that contains ID and topic label (or topic ID) through user terminal to the relationship safeguard unit and listens to request.
Step 210, relationship safeguard unit be when the request of listening to is confirmed to have corresponding topic ID in the topic processing unit according to said topic, and this corresponding topic ID is added in the topic ID tabulation with said ID corresponding stored.And further, can return to said user terminal and add the success message (not shown).In addition, if confirm not have said topic ID in the topic processing unit, then can return the interpolation failed message to said user terminal.
In this step, be the topic label, then generate corresponding topic ID according to the method identical with the message analysis unit according to said topic label if topic is listened to what comprise in the request.
Step 211, certain microblogging user sends the topic cancellation request that contains ID and topic label (or topic ID) through user terminal to the relationship safeguard unit.
When step 212, relationship safeguard unit confirm to exist in the topic ID tabulation with said ID corresponding stored said topic ID according to said topic cancellation request, said topic ID is removed from said topic ID tabulation.And further, can return cancellation success message (not shown) to said user terminal.In addition, if confirm not have said topic ID in the said topic ID tabulation, then can return cancellation invalid message or non-return messages to said user terminal.
In this step, be the topic label, then generate corresponding topic ID according to said topic label as if what comprise in the topic cancellation request.
Step 213, user terminal sends the tabulation that contains ID to the relationship safeguard unit and checks request.
Step 214, the ID in the request is checked according to said tabulation in the relationship safeguard unit, and the topic ID of the said ID of correspondence tabulation is offered said user terminal.
Said user terminal can be checked the Twitter message of corresponding topic according to said topic ID tabulation, promptly carries out the operation of said step 204~step 208.
Further, can comprise also in the topic attribute in the present embodiment that topic listens to number; Then can further comprise in step 210 and the step 212: when the relationship safeguard unit changes at definite said topic identification list, upgrade in the topic processing unit topic in the corresponding topic attribute synchronously and listen to number.
Same, the sequence number among Fig. 2 has been merely and has made things convenient for description, does not represent execution sequence each other.
" reception " speech in the embodiment of the invention is appreciated that for initiatively obtaining from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the 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 present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Part steps in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, like CD or hard disk etc.
Above-described specific embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely preferred embodiment of the present invention; Be not to be used to limit protection scope of the present invention; All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (19)

1. a Twitter message lookup method is characterized in that, this method comprises:
Reception for said Twitter message distributes a unique message identifier, is carried out corresponding with said Twitter message said message identifier from the Twitter message that contains at least one topic label of user terminal; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic sign, the message identifier of said Twitter message is added in the topic attribute of corresponding said topic sign and carry out related with said topic sign;
Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said topic generates the 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; According to said topic sign the corresponding topic attribute is offered said user terminal, supply said user terminal to pull corresponding Twitter message according to each message identifier in the said topic attribute.
2. the method for claim 1 is characterized in that, this method further comprises:
Reception is listened to request from the topic that contains ID and topic label of user terminal; The topic label of listening in the request according to said topic generates the corresponding topic sign, perhaps receives from the ID that contains of user terminal and listens to request with the topic of the topic sign of being obtained; When in confirming the incidence relation of topic attribute and topic sign, having said topic sign, said topic is identified in the topic identification list that adds to said ID corresponding stored.
3. method as claimed in claim 2 is characterized in that, this method further comprises:
Reception is from the topic cancellation request that contains ID and topic label of user terminal; Topic label according in the said topic cancellation request generates the corresponding topic sign, perhaps receives the topic cancellation request that contains ID and the topic sign of being obtained from user terminal; When in the topic identification list of definite and said ID corresponding stored, existing said topic to identify, said topic sign is removed from said topic identification list.
4. like claim 2 or 3 described methods, it is characterized in that this method further comprises:
Reception is checked request from the tabulation that contains ID of user terminal; Check the ID in the request according to said tabulation; The topic identification list of the said ID of correspondence is offered said user terminal, supply said user terminal to check the Twitter message of corresponding topic according to said topic identification list.
5. like claim 2 or 3 described methods, it is characterized in that further comprise in the said topic attribute: number listened in topic;
This method further comprises: when said topic identification list changed, number listened in the topic that upgrades synchronously in the corresponding topic attribute.
6. the method for claim 1; It is characterized in that; Said reception for said Twitter message distributes a unique message identifier, is carried out corresponding with said Twitter message said message identifier from the Twitter message that contains at least one topic label of user terminal; Resolve the topic label in the said Twitter message; Be that each topic label that parses generates a unique topic sign, the message identifier of said Twitter message added in the topic attribute of corresponding said topic sign and and carry out related comprising with said topic sign:
The message parse unit receives the Twitter message that contains at least one topic label from user terminal, is that said Twitter message distributes a unique message identifier, with said message identifier and said Twitter message corresponding stored at data storage cell; Resolve the topic label in the said Twitter message; Be that each topic label that parses generates a unique topic sign, the message identifier of said Twitter message is added in the topic attribute of corresponding said topic sign and with said topic sign association store at the topic processing unit;
Said reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said topic generates the 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; According to said topic sign the corresponding topic attribute is offered said user terminal, supplies said user terminal to pull corresponding Twitter message and comprise according to each message identifier in the said topic attribute:
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 the message according to said topic generates the corresponding topic sign according to the method identical with the message analysis unit, and message searched in the topic that perhaps receives the topic sign of obtaining to some extent from containing of user terminal; According to said topic sign the corresponding topic attribute is offered said user terminal, supply said user terminal from data storage cell, to pull corresponding Twitter message according to each message identifier in the said topic attribute.
7. method as claimed in claim 6 is characterized in that, this method further comprises:
The relationship safeguard unit receives and listens to request from the topic that contains ID and topic label of user terminal; The topic label of listening in the request according to said topic generates the corresponding topic sign according to the method identical with said message parse unit, perhaps receives from the ID that contains of user terminal and listens to request with the topic of the topic sign of being obtained; When in definite topic processing unit, having said topic sign, said topic sign is added in self maintained and the topic identification list said ID corresponding stored.
8. method as claimed in claim 7 is characterized in that, this method further comprises:
The relationship safeguard unit receives the topic cancellation request that contains ID and topic label from user terminal; Topic label according in the said topic cancellation request generates the corresponding topic sign according to the method identical with said message parse unit, perhaps receives the topic cancellation request that contains ID and the topic sign of being obtained from user terminal; When in confirming self maintained and topic identification list said ID corresponding stored, having said topic sign, said topic sign is removed from the said topic identification list of self maintained.
9. like claim 7 or 8 described methods, it is characterized in that this method further comprises:
The relationship safeguard unit receives and checks request from the tabulation that contains ID of user terminal; Check the ID in the request according to said tabulation; The topic identification list of the corresponding said ID of self maintained is offered said user terminal, supply said user terminal from the topic processing unit, to check the corresponding topic attribute according to said topic identification list.
10. like claim 7 or 8 described methods, it is characterized in that further comprise in the said topic attribute: number listened in topic;
This method further comprises: when said relationship safeguard unit changed at definite topic identification list, notice topic processing unit upgraded in the topic processing unit topic in the corresponding topic attribute synchronously and listens to number.
11. a Twitter message is searched system, it is characterized in that, this system comprises: user terminal and microblogging server, wherein,
Said 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 said microblogging server; Send the topic of the topic sign that contains the topic label or obtained to said microblogging server and search message, each message identifier in the topic attribute that returns according to said microblogging server pulls corresponding Twitter message;
Said microblogging server is used to receive the Twitter message that contains at least one topic label from user terminal, for said Twitter message distributes a unique message identifier, carries out corresponding with said Twitter message said message identifier; Resolve the topic label in the said Twitter message, be that each topic label that parses generates a unique topic sign, the message identifier of said Twitter message is added in the topic attribute of corresponding said topic sign and carry out related with said topic sign; Reception is searched message from the topic that contains the topic label of user terminal, and the topic label of searching in the message according to said topic generates the 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; According to said topic sign the corresponding topic attribute is offered said user terminal.
12. system as claimed in claim 11 is characterized in that, said user terminal is further used for sending the topic that contains ID and topic label to said microblogging server and listens to request; Or send the topic that contains ID and topic sign to said microblogging server and listen to request;
Request listened in the topic that contains ID and topic label that said microblogging server is further used for receiving from user terminal; The topic label of listening in the request according to said topic generates the corresponding topic sign, perhaps receives from the ID that contains of user terminal and listens to request with the topic of the topic sign of being obtained; When in confirming the incidence relation of topic attribute and topic sign, having said topic sign, said topic is identified in the topic identification list that adds to said ID corresponding stored.
13. system as claimed in claim 12 is characterized in that, said user terminal is further used for sending the topic cancellation request that contains ID and topic label to said microblogging server; Or send the topic cancellation that contains ID and topic sign to said microblogging server and ask;
Said microblogging server is further used for receiving the topic cancellation request that contains ID and topic label from user terminal; Topic label according in the said topic cancellation request generates the corresponding topic sign, perhaps receives the topic cancellation request that contains ID and the topic sign of being obtained from user terminal; When in the topic identification list of definite and said ID corresponding stored, existing said topic to identify, said topic sign is removed from said topic identification list.
14. like claim 12 or 13 described systems; It is characterized in that; Said user terminal is further used for sending the tabulation that contains ID to said microblogging server and checks request; The topic identification list of the corresponding said ID of returning according to said microblogging server is checked the Twitter message of corresponding topic;
Request is checked in the tabulation that contains ID that the microblogging server is further used for receiving from user terminal, checks the ID in the request according to said tabulation, and the topic identification list of the said ID of correspondence is offered said user terminal.
15., it is characterized in that further comprise in the said topic attribute: number listened in topic like claim 12 or 13 described systems;
Said microblogging server is further used for when said topic identification list changes, and number listened in the topic that upgrades synchronously in the corresponding topic attribute.
16. a microblogging server is characterized in that, this microblogging server comprises: message parse unit, data storage cell and topic processing unit, wherein,
Said message parse unit is used to receive the Twitter message that contains at least one topic label from user terminal, is that said Twitter message distributes a unique message identifier, with said message identifier and said Twitter message corresponding stored at data storage cell; Resolve the topic label in the said Twitter message; Be that each topic label that parses generates a unique topic sign, the message identifier of said Twitter message is added in the topic attribute of corresponding said topic sign and with said topic sign association store at the topic processing unit?
Said data storage cell is used for said Twitter message of corresponding stored and message identifier thereof;
Said topic processing unit is used for said 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 the message according to said topic generates the corresponding topic sign according to the method identical with the message parse unit, and message searched in the topic that perhaps receives the topic sign of obtaining to some extent from containing of user terminal; According to said topic sign the corresponding topic attribute is offered said user terminal.
17. microblogging server as claimed in claim 16; It is characterized in that; This microblogging server further comprises: the relationship safeguard unit; Request listened in the topic that contains ID and topic label that is used to receive from user terminal, and the topic label of listening in the request according to said topic generates the corresponding topic sign according to the method identical with the message parse unit, perhaps receives from the ID that contains of user terminal and listen to request with the topic of the topic sign of being obtained; When in definite topic processing unit, having said topic sign, said topic sign is added in self maintained and the topic identification list said ID corresponding stored.
18. microblogging server as claimed in claim 17; It is characterized in that; Said relationship safeguard unit is further used for receiving the topic cancellation request that contains ID and topic label from user terminal; Topic label according in the said topic cancellation request generates the corresponding topic sign according to the method identical with the message parse unit, perhaps receives the topic cancellation request that contains ID and the topic sign of being obtained from user terminal; When in confirming self maintained and topic identification list said ID corresponding stored, having said topic sign, said topic sign is removed from said topic identification list.
19. like claim 17 or 18 described microblogging servers; It is characterized in that; Request is checked in the tabulation that contains ID that said relationship safeguard unit is further used for receiving from user terminal; Check the ID in the request according to said tabulation, the topic identification list of the corresponding said ID of self maintained is offered said 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 true CN102385605A (en) 2012-03-21
CN102385605B 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)

Cited By (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
CN102801657A (en) * 2012-09-03 2012-11-28 鲁赤兵 Composite microblog system and method
CN102882975A (en) * 2012-10-15 2013-01-16 东莞宇龙通信科技有限公司 Microblog information display method, mobile terminal and mobile communication system
CN103425389A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Microblog message interactive display method and microblog client side
WO2014005505A1 (en) * 2012-07-03 2014-01-09 Tencent Technology (Shenzhen) Company Limited Methods and systems for displaying microblog topics
CN103634319A (en) * 2013-12-02 2014-03-12 天脉聚源(北京)传媒科技有限公司 Method and system for realizing wechat wall multi-subject-activity-project management
CN104731806A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Method and terminal for quickly finding user information in social network
CN106775268A (en) * 2016-11-28 2017-05-31 浙江翼信科技有限公司 A kind of message display method and equipment
CN113407792A (en) * 2021-07-06 2021-09-17 亿览在线网络技术(北京)有限公司 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 (1)

* Cited by examiner, † Cited by third party
Title
GARCIA ESPARZE ET AL: "《Towards tagging and categorization for micro-blogs》", 《21ST NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND COGNITIVE SCIENCE》, 30 August 2010 (2010-08-30) *

Cited By (14)

* 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
WO2014005505A1 (en) * 2012-07-03 2014-01-09 Tencent Technology (Shenzhen) Company Limited Methods and systems for displaying microblog topics
CN103532991A (en) * 2012-07-03 2014-01-22 腾讯科技(深圳)有限公司 Method for displaying topic of microblog and mobile terminal thereof
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
CN102882975A (en) * 2012-10-15 2013-01-16 东莞宇龙通信科技有限公司 Microblog information display method, mobile terminal and mobile communication system
CN103634319A (en) * 2013-12-02 2014-03-12 天脉聚源(北京)传媒科技有限公司 Method and system for realizing wechat wall multi-subject-activity-project management
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
CN104731806A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Method and terminal for quickly finding user information in social network
CN106775268A (en) * 2016-11-28 2017-05-31 浙江翼信科技有限公司 A kind of message display method and equipment
CN113407792A (en) * 2021-07-06 2021-09-17 亿览在线网络技术(北京)有限公司 Topic-based text input method
CN113407792B (en) * 2021-07-06 2024-03-26 亿览在线网络技术(北京)有限公司 Topic-based text input method

Also Published As

Publication number Publication date
CN102385605B (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN102385605B (en) Method and system for searching microblog messages and microblog server
CN102421062B (en) Method and system for pushing application information
US8489626B2 (en) Method and apparatus for recommending a short message recipient
US20090222333A1 (en) Community based targeted advertising
CN104969254A (en) Personalized summaries for content
US8977642B2 (en) Recommending relevant and personalized content accessing keywords for users of a text messaging service based global textsite platform
KR20150096294A (en) Method for classifying question and answer, and computer-readable recording medium storing program for performing the method
CN103346957A (en) System and method for changing head portrait expression of contact person according to messages of contact person
CN102939774A (en) Method and apparatus for context-indexed network resource sections
CN104022940A (en) Information processing method, device and system based on instant messaging (IM)
CN103631803A (en) Method, device and server for advertisement orientation based on input behaviors
CN103268310A (en) Self-medium message editing method and device on basis of recommendation
CN106462564A (en) Providing factual suggestions within a document
CN105279168A (en) Data query method supporting natural language, open platform, and user terminal
CN104869048A (en) Grouping processing method, device and system of MicroBlog data
CN105279159B (en) The reminding method and device of contact person
US9288244B2 (en) Managing a collaborative space
CN102844775A (en) Method and system for adapting a textual content to the language behaviour of an on-line community
CN104184824B (en) Mobile phone newspaper customizes and the device and method of push
CN111125332B (en) Method, device, equipment and storage medium for calculating TF-IDF value of word
WO2007070744A2 (en) Method for analyzing, deconstructing, reconstructing, and repurposing rhetorical content
CN101094436A (en) Information inter-transferring intelligent platform
CN102790951B (en) A kind of data inputting method of mobile terminal, system and mobile terminal
CN113988954A (en) Financing product marketing method and device
CN102404292A (en) Method and system for account automatic matching

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