CN105024906B - The storage of group's message, querying method and system in social networks - Google Patents

The storage of group's message, querying method and system in social networks Download PDF

Info

Publication number
CN105024906B
CN105024906B CN201410161541.2A CN201410161541A CN105024906B CN 105024906 B CN105024906 B CN 105024906B CN 201410161541 A CN201410161541 A CN 201410161541A CN 105024906 B CN105024906 B CN 105024906B
Authority
CN
China
Prior art keywords
message
group
attributes
module
checked
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
CN201410161541.2A
Other languages
Chinese (zh)
Other versions
CN105024906A (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
Tencent Cloud Computing Beijing 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 CN201410161541.2A priority Critical patent/CN105024906B/en
Publication of CN105024906A publication Critical patent/CN105024906A/en
Application granted granted Critical
Publication of CN105024906B publication Critical patent/CN105024906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A kind of group's message storage method in social networks, includes the following steps:Receive group's message;The group number and message content for extracting group's message generate the message SN of group's message;The group number of group's message, message SN and message content are corresponded in storage to tables of data;The index of the tables of data is established according to the group number and message SN;The message attributes of group's message are refined according to the message content;Establish the group number of group's message, the correspondence of message attributes and message SN.The mode of above-mentioned storage group message may make the speed of inquiry group's message to be greatly improved.In addition, group's message storage system, group's information query client in group's message query method and social networks in social network client and group's message query server in group's message query method and social networks in social network server in a kind of social networks is also provided.

Description

The storage of group's message, querying method and system in social networks
Technical field
The present invention relates to networks and field of computer technology, more particularly to group's message storage side in a kind of social networks Group's information query client in group's message query method and social networks in method and system, social network client, and Group's message query server in group's message query method and social networks in social network server.
Background technology
Social networks, i.e. social networking service(Social Networking Services, SNS), refer exclusively to be intended to help People establish the Internet, applications service of social network, such as instant messaging service, Websites service etc..People pass through SNS establishes friends chain, sharing information and knowledge, is linked up, is exchanged and mutual assistance and cooperation.
Social networks not only provides point-to-point communication exchange service between two users, also provides one-to-many communication and hands over Stream service.User is divided into good friend group by social networks generally according to user demand, or is created and discussed according to user instruction Group etc. generally includes multiple members in group.When any member in group sends message in group, which all will The other members being sent in group.The message that member in group sends in group can be referred to as group message.
Server in social networks when receiving group message, not only by group messaging in group it is other at Member, also stores group's message, and provides the inquiry service to group's message.
In general, the group number of group's message, sender information, sending time, message body content are corresponded to storage by server Into tables of data.And when user's inquiry group's message, it typically enters inquiry key and is inquired.When server is received comprising inquiry When the inquiry request of keyword, by the entire message body matter progress of all records in key word of the inquiry and tables of data Match, to obtain all message for including key word of the inquiry.
The prior art inquires group's message by key word of the inquiry, needs all records in key word of the inquiry and tables of data It is matched one by one, and obtains query result, therefore inquiry velocity is slow.
Invention content
Based on this, it is necessary to provide a kind of group's message storage method in the social networks that information query speed can be improved and In group's message query method and social networks in system and a kind of social network client that information query speed can be improved Group's information query client and a kind of social network server that information query speed can be improved in group information query side The group in group's message query server and a kind of social networks that information query speed can be improved in method and social networks disappears Breath storage querying method and system.
A kind of group's message storage method in social networks, includes the following steps:
Receive group's message;
The group number and message content for extracting group's message generate the message SN of group's message;
The group number of group's message, message SN and message content are corresponded in storage to tables of data;
The index of the tables of data is established according to the group number and message SN;
The message attributes of group's message are refined according to the message content;
Establish the group number of group's message, the correspondence of message attributes and message SN.
A kind of group's message query method in social network client, includes the following steps:
Show message attributes input control;
The message attributes of input are obtained by message attributes input control;
Receive the instruction for inquiring group's message in designated group according to the message attributes;
By the group number of the designated group and message attributes encapsulation, information query is asked in groups;
Group's information query request is sent to server;
It receives group's information query that server returns and asks corresponding query result;
Show the message content that the query result includes.
A kind of group's message query method in social network server, includes the following steps:
The request of group's information query is received, the inquiry request includes the group number and message attributes of group's message to be checked;
Group to be checked is searched in the correspondence of the group number of the group's message pre-established, message attributes and message SN The corresponding message SN of group number and message attributes of message obtains the message SN of group's message to be checked;
In the index of the group number for storing group's message, the tables of data of message SN and message content that pre-establish In, corresponding storage address is searched according to the group number of group's message to be checked and message SN;
Message content is read according to corresponding storage address, obtains query result.
A kind of group's message storage side in group's message storage querying method, including above-mentioned social networks in social networks The step in group's message query method in group's message query method and social network server in method, social network client Suddenly.
A kind of group message storage system in social networks, including:
Group's message reception module, for receiving group's message;
Group number and content extraction module, group number and message content for extracting group's message;
Sequence number generation module, the message SN for generating group's message;
Message storage module, for the group number of group's message, message SN and message content to be corresponded to storage to number According in table;
Index establishes module, the index for establishing the tables of data according to the group number and message SN;
Attribute refines module, the message attributes for refining group's message according to the message content;
Attribute corresponding relation building module, for establishing the group number of group's message, message attributes and message SN Correspondence.
A kind of group information query client in social networks, including:
Display module, for showing message attributes input control;
Message attributes acquisition module, the message attributes for obtaining input by message attributes input control;
Command reception module, for receiving the instruction for inquiring group's message in designated group according to the message attributes;
Package module is asked, is asked for the group number of the designated group and the message attributes to be encapsulated information query in groups It asks;
Request sending module, for sending group's information query request to server;
Query result receiving module, group's information query for receiving server return ask corresponding inquiry knot Fruit;
The display module is additionally operable to show the message content that the query result includes.
A kind of group message query server in social networks, including:
Request receiving module, for receiving the request of group's information query, the inquiry request includes the group of group's message to be checked Number and message attributes;
Sequence number searching module, for pair in the group number of the group's message pre-established, message attributes and message SN It should be related to the middle group number and the corresponding message SN of message attributes for searching group's message to be checked, obtain group's message to be checked Message SN;
Storage address searching module, for pre-establishing the group number for storing group message, message SN and disappearing In the index for ceasing the tables of data of content, corresponding storage is searched according to the group number of group's message to be checked and message SN Location;
Message content read module obtains query result for reading message content according to corresponding storage address.
A kind of group's message storage system in group's message storage inquiry system, including social networks in social networks, society Hand over group's information query client in network, the module in group's message query server in social networks.
Group's message storage method in above-mentioned social networks and system not only generate the message SN of group's message, by group Group number, message SN and the message content of message correspond in storage to tables of data, are established and be somebody's turn to do according to group number and message SN The index of tables of data also refines pair of the message attributes of group's message, the group number for establishing group's message, message attributes and message SN It should be related to, so that when inquiring group's message, corresponding disappear can be searched according to the group number and message attributes of group's message to be checked Sequence number is ceased, corresponding storage address is further searched in the index of tables of data according to group number and message SN, according to depositing It stores up address and obtains corresponding group's message, during searching corresponding message SN according to group number and message attributes, it is only necessary to The group number of group's message to be checked and message attributes are matched with the group number of storage and message attributes, without that will inquire Keyword scans for matching to judge whether key word of the inquiry is contained in message, so as to add with entire message body matter Fast inquiry velocity, and corresponding storage address is searched according to group number and message SN in the index and is obtained according to storage address It is also fastish process to obtain corresponding group's message, and therefore, group's message storage method and system in above-mentioned social networks are deposited The mode for storing up group's message may make the speed of inquiry group's message to be greatly improved.
Group's information query client in group's message query method and social networks in above-mentioned social network client is led to The message attributes that message attributes input control obtains input are crossed, by group number and message attributes encapsulation information query request transmission in groups To server so that server can search group's message according to group number and message attributes, relative to all records in tables of data Search matches keyword to be checked in entire message body matter, and the speed for finding target message can be improved.
Group's message query server in group's message query method and social networks in above-mentioned social network server, root Corresponding message SN is searched according to the group number and message attributes of group's message to be checked, further according to group number and message SN Corresponding storage address is searched in the index of tables of data, and corresponding group's message is obtained according to storage address, according to group number and is disappeared Cease during attribute searches corresponding message SN, it is only necessary to by the group number of group's message to be checked and message attributes with deposit The group number and message attributes of storage are matched, without scanning for matching key word of the inquiry with entire message body matter To judge whether key word of the inquiry is contained in message, so as to accelerate inquiry velocity, and existed according to group number and message SN It is also fastish process to search corresponding storage address in index and obtain corresponding group's message according to storage address, because This, may make the speed of inquiry group's message to be greatly improved.
Similarly, the side of the storage and inquiry group's message of the group's message storage querying method and system in above-mentioned social networks Formula may make the speed of inquiry group's message to be greatly improved.
Description of the drawings
Fig. 1 is the flow diagram of group's message storage method in the social networks in one embodiment;
Fig. 2 shows for the correspondence of the group number for the group's message established in one embodiment, message attributes and message SN It is intended to;
Fig. 3 is the flow diagram of group's message query method in the social network client in one embodiment;
Fig. 4 is the flow diagram of group's message query method in the social network server in one embodiment;
Fig. 5 is the flow diagram of the step S404 in Fig. 4 in one embodiment;
Fig. 6 A and Fig. 6 B are storage group's message of group's message storage querying method in the social networks in one embodiment Process and inquiry group's message process application scenarios schematic diagram;
Fig. 7 is the structural schematic diagram of group's message storage system in the social networks in one embodiment;
Fig. 8 is the structural schematic diagram of the attribute refinement module in one embodiment;
Fig. 9 is the structural schematic diagram of group's information query client in the social networks in one embodiment;
Figure 10 is the structural schematic diagram of group's message query server in the social networks in one embodiment;
Figure 11 is the structural schematic diagram of the sequence number searching module in one embodiment;
Figure 12 is the structural schematic diagram of group's message storage inquiry system in the social networks in one embodiment.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, group's message storage method in a kind of social networks includes the following steps:
Step S102 receives group's message.
The data content of group's message includes group number and message content.When message content includes that message sends information, sends Between and message body content.Message body content is the content input by user for indicating message semantics.
Step S104 extracts the group number and message content of group's message, generates the message SN of group's message.
The message SN of globally unique identifier's group's message is produced, i.e., the message SN of arbitrary two group's message is not Together, the message SN of unique mark group's message in group is also produced, i.e. arbitrary two group's message of same group two disappears It is different to cease sequence number.
Step S106 corresponds to the group number of group's message, message SN and message content in storage to tables of data.
Step S108 establishes the index of tables of data according to group number and message SN.
Can obtain the storage address of the record in tables of data, generate group number and message SN included in record and The correspondence inventory of the storage address of record further, it is clear can to store the correspondence to get to the index of tables of data It is single.
Step S110 refines the message attributes of group's message according to the message content of group's message.
Step S112 establishes the group number of group's message, the correspondence of message attributes and message SN.
The group number, message attributes and message SN of group's message can be corresponded in storage to tables of data or in file.
In one embodiment, in the correspondence of the group number of group's message, message attributes and message SN, a group disappears The group number and message SN of breath are respectively formed one group of correspondence with each message attributes of this group's message.
Step S112 may include following steps:According to the message note of the quantity such as the number of the message attributes of group's message generation Record, every Message Record includes group number, a message attributes and the message SN of group's message, and different messages record is included Message attributes it is different;Store the Message Record of group's message.
In the present embodiment, each message attributes point of the group number and message SN and this group's message of group's message One group of correspondence is not formed, rather than multiple message attributes of group's message are combined, further by this group The group number and message SN of message are combined with the message attributes of this group's message establishes correspondence, in inquiry group's message When only need to match single message attribute with single message attribute, without by single message attribute and group's message The combination of multiple message attributes is matched, to which group information query speed can be improved.
In one embodiment, the message attributes of group's message of refinement include the popular words for being included, type feature and At least one of sender of the message's mark.
Fig. 2 shows for the correspondence of the group number for the group's message established in one embodiment, message attributes and message SN It is intended to.As shown in Fig. 2, for(Group number, sender, sending time, message SN, body matter)Respectively(" 80000 ", " 10000 ", " 20140213 ", " 887 ", " communication Shenzhen ")With(" 80000 ", " 20000 ", " 20140214 ", " 888 ", " immediately Communication ")Two group's message, the message attributes that can be refined from first group's message include:Sender identifies " 10000 ", institute Including popular words " Shenzhen ", the popular words " communication " that is included, the message attributes that can be refined from Article 2 group's message Including:Sender's mark " 20000 ", the popular words " instant " for being included, the popular words " communication " for being included;Further , group number and each message attributes are established into correspondence as shown in Figure 2 with corresponding message SN.
In one embodiment, according to message content refine group's message included popular words the step of include:According to Popular words in the body matter for the words extraction message content that pre-stored hot topic character word stock is included.
The body matter of message content can be segmented, obtain independent words;Further, it can extract independent word The words being included in word in the popular character word stock pre-established.The body matter of message content is carried out participle can be according to existing The segmenting method based on string matching, the segmenting method based on understanding and the segmenting method based on statistics etc. progress, This is repeated no more.Further, all words progress of each independent words that participle can be obtained and popular character word stock Match, judge whether each independent words is included in popular character word stock, and records the words being included in popular character word stock.
Alternatively, the words being included in pre-stored popular character word stock in the body matter of message content can be obtained.Tool Body, each words in popular character word stock can be matched with the body matter of message content, judge whether it is included in In body matter, record is included in the words in body matter.
In one embodiment, before the step of refining the popular words that group's message is included according to message content, on It further includes establishing the process of popular character word stock to state group's message storage method in social networks, is included the following steps:Statistics is specified Words frequency of occurrence in web page contents;It is popular words to obtain the words that frequency of occurrence is more than threshold value;Storage hot topic words is extremely Database is to establish popular character word stock.
In one embodiment, the step of refining the type feature of group's message according to message content includes below at least one A step:
(1)Judge the time type belonging to group's message according to the sending time in message content, by belonging to group's message when Between type be added to the type feature of group message.
Time type may include transmission types and the outer transmission types of specific time etc. in specific time.If sending time belongs to In specific time, then judge that group message belongs to specific time transmission types, otherwise, belongs to the outer transmission types of specific time.
(2)Judge the transmission belonging to group's message according to the corresponding group members classification of sender of the message's information in message content Sender's categories class belonging to group's message is added to the type feature of group message by person's categories class.
Sender's classification may include group master, administrator and common group members etc.;Correspondingly, sender's categories class may include The main transmission types of group, administrator's transmission types and common group members transmission types etc..
(3)Judge the transmission belonging to group's message according to the corresponding group members grade of sender of the message's information in message content Sender's rating-type belonging to group's message is added to the type feature of group message by person's rating-type.
Sender's grade may include new hand's grade, intermediate, advanced and senior grade etc.;Correspondingly, sender's rating-type can wrap Include new hand's grade transmission types, intermediate transmission types, advanced transmission types and senior grade transmission types etc..
(4)Judge whether the body matter in message content includes picture, if so, picture relevant information is added to group The type feature of message.
In one embodiment, being added to the picture relevant information of the type feature of message content can be:Including picture. The type feature of message content includes:Including picture, then include picture in description messages content.
In another embodiment, the picture/mb-type belonging to picture that recognizable message content includes.Picture/mb-type can wrap Include self-defined expression type, system expression type and sectional drawing type etc..Specifically, can by picture that message content includes with prestore Self-defined expression and system expression matching, to judge whether the picture that message content includes is self-defined expression or system table Feelings, neither the picture of nonsystematic expression can determine that as sectional drawing self-defined expression again.Further, the figure that can include by message content Picture/mb-type belonging to piece is added to the type feature of message content.
(5)The body matter in message content is judged whether comprising link, if so, link relevant information is added to group The type feature of message.
In one embodiment, being added to the picture relevant information of the type feature of message content can be:Including link. The type feature of message content includes:Including link, then include link in description messages content.
In another embodiment, the link type belonging to link that recognizable message content includes.Link type can wrap Include music links type, video link type, Shopping directery type, news links type, social link type, financial links category Type, diet link type, healthy link type and sport link type etc..Specifically, chained address can be prestored and linked The correspondence of type judges the link type belonging to link that message content includes according to the correspondence.Further, may be used Link type belonging to link that message content includes is added to the type feature of message content.
(6)The text length class belonging to group's message is judged according to the number of words of the body matter in message content or number of characters The long short type of text belonging to group's message is added to the type feature of group message by type.
Long short type may include belonging to long message type and short message types etc..If the word of the body matter in message content Number or number of characters are more than threshold value, then can determine that group message belongs to long message type, otherwise, can determine that group message belongs to short message class Type.
(7)Judge whether group's message belongs to system message according to the body matter in message content, if so, system is disappeared Breath relevant information is added to the type feature of group message.Whether can include preset system according to the body matter in message content Message marks(Such as the printed words of " system message ")To judge whether group message belongs to system message.
In one embodiment, being added to the system message relevant information of the type feature of message content can be:Belong to System message.The type feature of message content includes:Belong to system message, then illustrates that group message belongs to system message.
In another embodiment, it can recognize that the system message type belonging to group's message.System message type may include group Photograph album notice, group's video/verbal announcement, group's documentary information, group's notice, group's applicative notifications, group members Notification of Changes and group Grade Notification of Changes etc..Specifically, whether can include corresponding system message type mark according to the body matter in message content Remember to judge the system message type belonging to group message.Further, the system message type belonging to group's message can be added to The type feature of group's message.
As shown in figure 3, in one embodiment, group's message query method in a kind of social network client, including with Lower step:
Step S302 shows message attributes input control.
In one embodiment, message attributes input control includes key word of the inquiry input control, type of message selection control At least one of part and sender of the message's information input control.
Wherein, key word of the inquiry input control is for inputting the words that group's message to be checked is included;Type of message selects Control is used to select the type feature of group's message to be checked;Sender of the message's information input control is for inputting group's message to be checked Sender of the message's information.
In one embodiment, type of message selection control includes at least one of following control:
For selecting the control of the time type belonging to group's message to be checked, for selecting the hair belonging to group's message to be checked The control of the person's of sending categories class, the control for selecting sender's rating-type belonging to group's message to be checked are waited for for selection It inquires the control of the picture relevant information of group's message, the control of link relevant information for selecting group's message to be checked, be used for Select the control of the long short type of text belonging to group's message to be checked related to for selecting the system message of group's message to be checked The control etc. of information.
Step S304 obtains the message attributes of input by message attributes input control.
Step S306 receives the instruction for inquiring group's message in designated group according to message attributes.
Step S308, by the group number of designated group and message attributes encapsulation information query request in groups.
Step S310 sends the request of group's information query to server.
Server may include that social networks described below takes according to the process of group's information query acquisition request query result The step being engaged in group's message query method in device, details are not described herein.
Step S312 receives group's information query that server returns and asks corresponding query result.
Step S314, the message content that display query result includes.
As shown in figure 4, in one embodiment, group's message query method in a kind of social network server, including with Lower step:
Step S402 receives the request of group's information query, and inquiry request includes the group number and message attributes of group's message to be checked.
In one embodiment, the message attributes of group's message include that group message words that is included, the type of group's message are special At least one of the sender of the message's information for group message of seeking peace.
In one embodiment, type feature includes at least one of following characteristics:Group message belonging to time type, Sender's categories class belonging to group's message, sender's rating-type belonging to group's message, the picture relevant information of group's message, group The system message relevant information of the long short type of text and group's message belonging to the link relevant information of message, group's message.
Step S404 is looked into the correspondence of the group number of the group's message pre-established, message attributes and message SN The group number and the corresponding message SN of message attributes for looking for group's message to be checked, obtain the message SN of group's message to be checked.
Step S406, in group number, the data of message SN and message content for storing group's message pre-established In the index of table, corresponding storage address is searched according to the group number of group's message to be checked and message SN.
Step S408 reads message content according to corresponding storage address, obtains query result.
In one embodiment, in the correspondence of the group number of group's message, message attributes and message SN, a group disappears The group number and message SN of breath are respectively formed one group of correspondence with each message attributes of this group's message;Such as Fig. 5 institutes Show, step S404 includes the following steps:
Step S502 partners each message attributes of the group number of group's message to be checked and group's message to be checked pass Key word.
Step S504 is looked into the correspondence of the group number of the group's message pre-established, message attributes and message SN Look for the corresponding message SN of every a pair of of keyword.
Step S506 obtains the intersection per the corresponding message SN of a pair of of keyword, obtains disappearing for group's message to be checked Cease sequence number.
Certain corresponding message SN of a pair of keyword is the message SN for meeting this to the message attributes in keyword, And it is then the message for all message attributes for meeting group's message to be checked per the intersection of the corresponding message SN of a pair of of keyword Sequence number.
In one embodiment, group's message in a kind of social networks stores querying method, including any of the above-described embodiment In social networks in group's message storage method, group's message query method and social networking service in social network client The step in group's message query method in device.
Fig. 6 A and Fig. 6 B are storage group's message of group's message storage querying method in the social networks in one embodiment Process and inquiry group's message process application scenarios schematic diagram.As shown in Figure 6A, the process of storage group's message includes following Step:
(1.1)Group's server receives group's message that client is sent.
(1.2)The group number and message content of group's server extraction group's message, generate the message SN of group's message.
(1.3)The group number of group's message, message SN and message content are corresponded to storage and arrive group's message data by group's server In the tables of data in library.
(1.4)Group's server establishes the index of tables of data according to group number and message SN, and the index of foundation is stored Into group's message database.
(1.5)The message content of group's message and message SN are sent to attribute and refine server by group's server.
(1.6)Attribute refines the message attributes that server refines group's message according to the message content of group's message.
(1.7)Attribute refine server using the group number of group's message and message attributes as key, with the message SN of group's message Key-value pair is formed for value, and key-value pair is encrypted.
(1.8)Encrypted key-value pair is sent to search platform.
(1.9)The key-value pair that search platform storage receives.
As shown in Figure 6B, the process of inquiry group's message includes the following steps:
(2.1)Client shows message attributes input control, and the message category of input is obtained by message attributes input control Property, the instruction for inquiring group's message in designated group according to message attributes is received, the group number of designated group and message attributes are packaged into Group's information query request.
(2.2)Client sends the request of group's information query and refines server to attribute.
(2.3)Attribute refines server and receives the request of group's information query, and inquiry request includes the group number of group's message to be checked And message attributes, attribute refine server according to(1.7)In cipher mode, by the group number and message attributes of group's message to be checked It is encrypted.
(2.4)The group number of encrypted group's message to be checked and message attributes are sent to search platform.
(2.5)Search platform pre-stored group number and message attributes in the key-value pair of message SN composition, with The group number and message attributes of group's message to be checked are that key searches corresponding message SN, obtain the message sequence of group's message to be checked Row number.
(2.6)The message SN of group's message to be checked is sent to attribute and refines server by search platform.
(2.7)Attribute refine server according to the symmetrical decryption method of encryption method by the message of group's message to be checked Sequence number is decrypted.
(2.8)Attribute refine server in group's message database for store the group number of group's message, message SN and In the index of the tables of data of message content, corresponding storage is searched according to the group number of group's message to be checked and message SN Message content is read in location according to corresponding storage address, obtains group information query and asks corresponding query result.
(2.9)Attribute, which refines server, asks corresponding query result to return to client group's information query.
(2.10)Client receives attribute and refines the corresponding query result of group's information query request that server returns, client End shows the message content that query result includes.
In the present embodiment, the key-value pair that group number and message attributes are formed with message SN is stored separately in search platform In, it is stored separately with the message data being stored in group message database, and message sequence is searched according to group number and message attributes Row number and message content is searched according to group number and message SN service is refined by the attribute with independent processing ability respectively Device and search platform are completed, so as to accelerate query processing speed;And it is stored in the group number in search platform and message category Property the key-value pair that is formed with message SN be that can effectively reduce information leakage risk by encrypted, improve information security.
As shown in fig. 7, in one embodiment, group's message storage system in a kind of social networks, including group's message connect Module 702, group number and content extraction module 704 are received, sequence number generation module 706, message storage module 708, indexes and establishes mould Block 710, attribute refine module 712 and attribute corresponding relation building module 714, wherein:
Group's message reception module 702 is for receiving group's message.
The data content of group's message includes group number and message content.When message content includes that message sends information, sends Between and message body content.Message body content is the content input by user for indicating message semantics.
Group number and content extraction module 704 are used to extract the group number and message content of group's message.
Sequence number generation module 706 is used to generate the message SN of group's message.
Sequence number generation module 706 produces the message SN of globally unique identifier's group's message, i.e., arbitrary two groups disappear The message SN of breath is different, also produces the message SN of unique mark group's message in group, i.e. same group two appoints The message SN of two group's message of meaning is different.
Message storage module 708, which is used to the group number of group's message, message SN and message content corresponding to storage, arrives data In table.
Index establishes index of the module 710 for establishing tables of data according to group number and message SN.
Index establishes the storage address for the record that module 710 can obtain in tables of data, generates group number included in record Correspondence inventory with the storage address of message SN and record further, can be deposited to get to the index of tables of data Store up the correspondence inventory.
Attribute refines the message attributes that module 712 is used to refine group's message according to the message content of group's message.
Attribute corresponding relation building module 714 is used to establish pair of the group number of group's message, message attributes and message SN It should be related to.
The group number, message attributes and message SN of group's message can be corresponded to and be stored by attribute corresponding relation building module 714 To in tables of data or in file.
In one embodiment, in the correspondence of the group number of group's message, message attributes and message SN, a group disappears The group number and message SN of breath are respectively formed one group of correspondence with each message attributes of this group's message.
Attribute corresponding relation building module 714 can be remembered according to the message of the quantity such as the number of the message attributes of group's message generation Record, every Message Record includes group number, a message attributes and the message SN of group's message, and different messages record is included Message attributes it is different, further, store the Message Record of group's message.
In the present embodiment, each message attributes point of the group number and message SN and this group's message of group's message One group of correspondence is not formed, rather than multiple message attributes of group's message are combined, further by this group The group number and message SN of message are combined with the message attributes of this group's message establishes correspondence, in inquiry group's message When only need to match single message attribute with single message attribute, without by single message attribute and group's message The combination of multiple message attributes is matched, to which group information query speed can be improved.
In one embodiment, the message attributes of group's message of attribute refinement module 712 refinement include included hot topic At least one of words, type feature and sender of the message's mark.
As shown in figure 8, in one embodiment, it includes popular words extraction module 802, type that attribute, which refines module 712, Feature refines module 804 and sender's marker extraction module 808, wherein:
Popular words extraction module 802, for extracting the popular words that group's message is included according to message content.
Type feature refines module 804, the type feature for refining group's message according to message content.
Sender's marker extraction module 806, the sender for extracting group's message according to message content identify.
In another embodiment, attribute refines popular words extraction module 802, the type spy that module 712 can include only Sign refines any one or any two module in module 804 and sender's marker extraction module 806.
In one embodiment, popular words extraction module 802 for being included according to pre-stored popular character word stock Words extraction message content body matter in popular words.
Popular words extraction module 802 can segment the body matter of message content, obtain independent words;Into one Step, it can extract the words in the popular character word stock for being included in and pre-establishing in independent words.It will be in the text of message content Appearance carries out participle can be according to the existing segmenting method based on string matching, the segmenting method based on understanding and based on statistics The equal of segmenting method carries out, and details are not described herein.Further, popular words extraction module 802 can obtain participle each Independent words is matched with all words of popular character word stock, judges whether each independent words is included in popular words In library, and record the words being included in popular character word stock.
Alternatively, popular words extraction module 802, which can obtain in pre-stored popular character word stock, is included in message content Words in body matter.Specifically, popular words extraction module 802 can by each words in popular character word stock in message The body matter of appearance is matched, and judges whether it is included in body matter, and record is included in the words in body matter.
In one embodiment, group's message storage system in above-mentioned social networks further includes that popular character word stock establishes module (It is not shown in figure), for counting the words frequency of occurrence in named web page content, obtain the words that frequency of occurrence is more than threshold value For popular words, stores popular words and establish popular character word stock to database.
In one embodiment, it includes that time type refines module, sender's categories class that type feature, which refines module 804, Refine module, sender's rating-type refines module, pictorial information refines module, link information refines module, text length class Type refines module and system message information abstraction module(The above module is not shown in figure)At least one of module, wherein:
Time type refines module and is used to judge the time type belonging to group's message according to the sending time in message content, Time type belonging to group's message is added to the type feature of group message.
Time type may include transmission types and the outer transmission types of specific time etc. in specific time.If sending time belongs to In specific time, then time type refinement module judgement group's message belongs to specific time transmission types, otherwise, it is determined that group's message category In transmission types outside specific time.
Sender's categories class refines module and is used for according to the corresponding group members of sender of the message's information in message content Classification judges sender's categories class belonging to group's message, and sender's categories class belonging to group's message is added to group message Type feature.
Sender's classification may include group master, administrator and common group members etc.;Correspondingly, sender's categories class may include The main transmission types of group, administrator's transmission types and common group members transmission types etc..
Sender's rating-type refines module and is used for according to the corresponding group members of sender of the message's information in message content Grade judges sender's rating-type belonging to group's message, and sender's rating-type belonging to group's message is added to group message Type feature.
Sender's grade may include new hand's grade, intermediate, advanced and senior grade etc.;Correspondingly, sender's rating-type can wrap Include new hand's grade transmission types, intermediate transmission types, advanced transmission types and senior grade transmission types etc..
Pictorial information refines module and is used to judge whether the body matter in message content to include picture, if so, will figure Piece relevant information is added to the type feature of group message.
In one embodiment, being added to the picture relevant information of the type feature of message content can be:Including picture. The type feature of message content includes:Including picture, then include picture in description messages content.
In another embodiment, pictorial information refines the picture category belonging to the picture that module can recognize that message content includes Type.Picture/mb-type may include self-defined expression type, system expression type and sectional drawing type etc..Specifically, pictorial information refines Module can match the picture that message content includes with the self-defined expression and system expression to prestore, to judge that message content includes Picture whether be self-defined expression or system expression, neither the picture of self-defined expression nonsystematic expression again can determine that cut Figure.Further, pictorial information refines module and the picture/mb-type belonging to picture that message content includes can be added in message The type feature of appearance.
Link information refines module and is used to judge whether the body matter in message content to include link, if so, by chain Connect the type feature that relevant information is added to group message.
In one embodiment, being added to the picture relevant information of the type feature of message content can be:Including link. The type feature of message content includes:Including link, then include link in description messages content.
In another embodiment, link information refines the links category belonging to the link that module can recognize that message content includes Type.Link type may include music links type, video link type, Shopping directery type, news links type, social link Type, financial link type, diet link type, healthy link type and sport link type etc..Specifically, above-mentioned storage system System further includes link type memory module(It is not shown in figure), the correspondence for storing chained address and link type, chain Connect the link type belonging to the link that information abstraction module can judge that message content includes according to the correspondence.Further, Link information, which refines module, can be added to the link type belonging to link that message content includes the type feature of message content.
The long short type of text refines module and is used to judge group according to the number of words or number of characters of the body matter in message content The long short type of text belonging to group's message is added to the type feature of group message by the long short type of text belonging to message.
Long short type may include belonging to long message type and short message types etc..If the word of the body matter in message content Number or number of characters are more than threshold value, then the long short type of text refines module and can determine that group message belongs to long message type, otherwise, text Long short type refines module and can determine that group message belongs to short message types.
System message information abstraction module is used to judge whether group's message belongs to according to the body matter in message content System message, if so, system message relevant information to be added to the type feature of group message.System message information abstraction module can Whether include preset system message label according to the body matter in message content(Such as the printed words of " system message ")To sentence Whether disconnected group's message belongs to system message.
In one embodiment, being added to the system message relevant information of the type feature of message content can be:Belong to System message.The type feature of message content includes:Belong to system message, then illustrates that group message belongs to system message.
In another embodiment, system message information abstraction module can recognize that the system message type belonging to group's message. System message type may include that faciation volume notice, group's video/verbal announcement, group's documentary information, group's notice, group's application are logical Know, group members Notification of Changes and group's grade Notification of Changes etc..Specifically, system message information abstraction module can be according to message content In body matter whether judge the system message type belonging to group message comprising corresponding system message type mark.Into one Step, the system message type belonging to group's message can be added to the type feature of group message by system message information abstraction module.
As shown in figure 9, in one embodiment, group's information query client in a kind of social networks, including display mould Block 902, command reception module 906, is asked package module 908, request sending module 910 and is looked at message attributes acquisition module 904 Result receiving module 912 is ask, wherein:
Display module 902 is for showing message attributes input control.
In one embodiment, message attributes input control includes key word of the inquiry input control, type of message selection control At least one of part and sender of the message's information input control.
Wherein, key word of the inquiry input control is for inputting the words that group's message to be checked is included;Type of message selects Control is used to select the type feature of group's message to be checked;Sender of the message's information input control is for inputting group's message to be checked Sender of the message's information.
In one embodiment, type of message selection control includes at least one of following control:
For selecting the control of the time type belonging to group's message to be checked, for selecting the hair belonging to group's message to be checked The control of the person's of sending categories class, the control for selecting sender's rating-type belonging to group's message to be checked are waited for for selection It inquires the control of the picture relevant information of group's message, the control of link relevant information for selecting group's message to be checked, be used for Select the control of the long short type of text belonging to group's message to be checked related to for selecting the system message of group's message to be checked The control etc. of information.
Message attributes acquisition module 904 is used to obtain the message attributes of input by message attributes input control.
Command reception module 906 is for receiving the instruction for inquiring group's message in designated group according to message attributes.
Package module 908 is asked to be used for the group number of designated group and message attributes encapsulation information query request in groups.
Request sending module 910 is for sending the request of group's information query to server.
Process of the server according to group's information query acquisition request query result and the group in social networks described below Message query server is identical according to the process of group's information query acquisition request query result, and details are not described herein.
Group's information query that query result receiving module 912 is used to receive server return asks corresponding query result.
Display module 902 is additionally operable to the message content that display query result includes.
As shown in Figure 10, in one embodiment, group's message query server in a kind of social networks, including request connect Module 1002, sequence number searching module 1004, storage address searching module 1006 and message content read module 1008 are received, In:
For request receiving module 1002 for receiving the request of group's information query, inquiry request includes the group number of group's message to be checked And message attributes.
In one embodiment, the message attributes of group's message include that group message words that is included, the type of group's message are special At least one of the sender of the message's information for group message of seeking peace.
In one embodiment, type feature includes at least one of following characteristics:Group message belonging to time type, Sender's categories class belonging to group's message, sender's rating-type belonging to group's message, the picture relevant information of group's message, group The system message relevant information of the long short type of text and group's message belonging to the link relevant information of message, group's message.
Sequence number searching module 1004 is used in the group number of the group's message pre-established, message attributes and message SN The group number and the corresponding message SN of message attributes that group's message to be checked is searched in correspondence, obtain group's message to be checked Message SN.
Storage address searching module 1006 be used for pre-establish the group number for storing group message, message SN and In the index of the tables of data of message content, corresponding storage is searched according to the group number of group's message to be checked and message SN Location.
Message content read module 1008 is used to read message content according to corresponding storage address, obtains query result.
In one embodiment, in the correspondence of the group number of group's message, message attributes and message SN, a group disappears The group number and message SN of breath are respectively formed one group of correspondence with each message attributes of this group's message;Such as Figure 11 institutes Show, sequence number searching module 1004 includes that keyword obtains list to component units 1102, sequence number searching unit 1104 and intersection Member 1106, wherein:
Keyword is used to disappear each of the group number of group's message to be checked and group's message to be checked to component units 1102 Breath attribute partners keyword.
Sequence number searching unit 1104 is used in the group number of the group's message pre-established, message attributes and message SN It is searched in correspondence per the corresponding message SN of a pair of of keyword.
Intersection acquiring unit 1106 is used to obtain the intersection of the corresponding message SN of every a pair of of keyword, obtains to be checked The message SN of group's message.
Certain corresponding message SN of a pair of keyword is the message SN for meeting this to the message attributes in keyword, And it is then the message for all message attributes for meeting group's message to be checked per the intersection of the corresponding message SN of a pair of of keyword Sequence number.
In a kind of social networks in group's message storage inquiry system, including any of the above-described embodiment in social networks Group's message query server in group's information query client and social networks in group's message storage system, social networks is wrapped The module included.
As shown in figure 12, in a specific embodiment, group's message in above-mentioned social networks stores inquiry system, packet It includes with lower module:
Group's message reception module 702, group number and content extraction module 704, sequence number generation module 706, message store mould Block 708, index establish module 710 and message transmission module 1202, are distributed on group message server 10;
Attribute refines module 712, key-value pair sets up module 1204, encrypting module 1206, key-value pair sending module 1208, asks Receiving module 1002, key sending module 1210, deciphering module 1214, storage address searching module 1006, message content is asked to read Module 1008, query result return to module 1216, are distributed in attribute and refine on server 20;
Attribute corresponding relation building module 714, sequence number searching module 1004 and sequence number sending module 1212, are distributed in On search platform 30;
And display module 902, message attributes acquisition module 904, command reception module 906, request package module 908, Request sending module 910 and query result receiving module 912, in distribution in client 40.
During group's message storage inquiry system in social networks stores group's message:
Group's message reception module 702 is used to receive group's message of the transmission of client 40.
Group number and content extraction module 704 are used to extract the group number and message content of group's message, sequence number generation module 706 Message SN for generating group's message.
Message storage module 708 is used to the group number of group's message, message SN and message content corresponding to storage to disappear to group In the tables of data for ceasing database.
Index establishes the index that module 710 establishes tables of data according to group number and message SN, and the index of foundation is deposited It stores up in group's message database.
Message transmission module 1202, which is used to the message content of group's message and message SN being sent to attribute, refines service Device 20.
Attribute refines the message attributes that module 712 is used to refine group's message according to the message content of group's message.
Key-value pair is set up module 1204 and is used for using the group number of group's message and message attributes as key, with the message sequence of group's message Number key-value pair is formed for value.
Encrypting module 1206 is for key-value pair to be encrypted.
Key-value pair sending module 1208 is used to encrypted key-value pair being sent to search platform 30.
Attribute corresponding relation building module 714 is for storing the key-value pair received.
During group's message storage inquiry system in social networks inquires group's message:
Display module 902 is for showing that message attributes input control, message attributes acquisition module 904 are used to pass through message category Property input control obtain input message attributes, command reception module 906 for receive looked into designated group according to message attributes The instruction of group's message is ask, request package module 908 is used to the group number of designated group and message attributes encapsulating information query in groups and ask It asks.
Request sending module 910 refines server 20 for sending the request of group's information query to attribute.
For request receiving module 1002 for receiving the request of group's information query, inquiry request includes the group number of group's message to be checked And message attributes.
Encrypting module 1206 is additionally operable to the group number of group's message to be checked and to disappear in such a way that key-value pair is encrypted Breath attribute is encrypted.
Key sending module 1210 is used to the group number of encrypted group's message to be checked and message attributes being sent to search flat Platform 30.
Sequence number searching module 1004 is used for the key in pre-stored group number and message attributes and message SN composition It is worth centering, corresponding message SN is searched as key using the group number of group's message to be checked and message attributes, group to be checked is obtained and disappears The message SN of breath.
Sequence number sending module 1212, which is used to the message SN of group's message to be checked being sent to attribute, refines server 20。
Deciphering module 1214 be used for according to the symmetrical decryption method of encryption method by the message sequence of group's message to be checked Row number is decrypted.
Storage address searching module 1006 is for group number, the message sequence for storing group's message in group's message database Number and message content tables of data index in, corresponding storage is searched according to the group number of group's message to be checked and message SN Address, message content read module 1008 are used to read message content according to corresponding storage address, obtain group information query and ask Seek corresponding query result.
Query result returns to module 1216 and is used to ask corresponding query result to return to client 40 group's information query.
Query result receiving module 912 is used to receive group's information query that attribute refinement server returns and asks corresponding look into Ask result.
Display module 902 is additionally operable to the message content that display query result includes.
In the present embodiment, the key-value pair that group number and message attributes are formed with message SN is stored separately in search platform In, it is stored separately with the message data being stored in group message database, and message sequence is searched according to group number and message attributes Row number and message content is searched according to group number and message SN service is refined by the attribute with independent processing ability respectively Device and search platform are completed, so as to accelerate query processing speed;And it is stored in the group number in search platform and message category Property the key-value pair that is formed with message SN be that can effectively reduce information leakage risk by encrypted, improve information security.
Group's message storage method in above-mentioned social networks and system not only generate the message SN of group's message, by group Group number, message SN and the message content of message correspond in storage to tables of data, are established and be somebody's turn to do according to group number and message SN The index of tables of data also refines pair of the message attributes of group's message, the group number for establishing group's message, message attributes and message SN It should be related to, so that when inquiring group's message, corresponding disappear can be searched according to the group number and message attributes of group's message to be checked Sequence number is ceased, corresponding storage address is further searched in the index of tables of data according to group number and message SN, according to depositing It stores up address and obtains corresponding group's message, during searching corresponding message SN according to group number and message attributes, it is only necessary to The group number of group's message to be checked and message attributes are matched with the group number of storage and message attributes, without that will inquire Keyword scans for matching to judge whether key word of the inquiry is contained in message, so as to add with entire message body matter Fast inquiry velocity, and corresponding storage address is searched according to group number and message SN in the index and is obtained according to storage address It is also fastish process to obtain corresponding group's message, and therefore, group's message storage method and system in above-mentioned social networks are deposited The mode for storing up group's message may make the speed of inquiry group's message to be greatly improved.
Group's information query client in group's message query method and social networks in above-mentioned social network client is led to The message attributes that message attributes input control obtains input are crossed, by group number and message attributes encapsulation information query request transmission in groups To server so that server can search group's message according to group number and message attributes, relative to all records in tables of data Search matches keyword to be checked in entire message body matter, and the speed for finding target message can be improved.
Group's message query server in group's message query method and social networks in above-mentioned social network server, root Corresponding message SN is searched according to the group number and message attributes of group's message to be checked, further according to group number and message SN Corresponding storage address is searched in the index of tables of data, and corresponding group's message is obtained according to storage address, according to group number and is disappeared Cease during attribute searches corresponding message SN, it is only necessary to by the group number of group's message to be checked and message attributes with deposit The group number and message attributes of storage are matched, without scanning for matching key word of the inquiry with entire message body matter To judge whether key word of the inquiry is contained in message, so as to accelerate inquiry velocity, and existed according to group number and message SN It is also fastish process to search corresponding storage address in index and obtain corresponding group's message according to storage address, because This, may make the speed of inquiry group's message to be greatly improved.
Similarly, the side of the storage and inquiry group's message of the group's message storage querying method and system in above-mentioned social networks Formula may make the speed of inquiry group's message to be greatly improved.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, in the embodiment of the present invention, which can be stored in the storage medium of computer system, and by the computer system At least one processor executes, and includes the flow such as the embodiment of above-mentioned each method with realization.Wherein, the storage medium can be Magnetic disc, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (28)

1. group's message storage method in a kind of social networks, includes the following steps:
Receive group's message;
The group number and message content for extracting group's message generate the message SN of group's message;
The group number of group's message, message SN and message content are corresponded in storage to tables of data;
The index of the tables of data is established according to the group number and message SN;
The message attributes of group's message are refined according to the message content;
It is that value forms key-value pair using the group number of group's message and message attributes as key, with the message SN of group's message, And key-value pair is encrypted;The encrypted key-value pair is sent to search platform, group's message is established by search platform Group number, message attributes and message SN correspondence.
2. group's message storage method in social networks according to claim 1, which is characterized in that the message attributes packet Include at least one of popular words, type feature and the sender of the message mark for being included.
3. group's message storage method in social networks according to claim 2, which is characterized in that according in the message Holding the step of refining the popular words that group's message is included includes:
The words for being included according to pre-stored popular character word stock extracts the popular word in the body matter of the message content Word.
4. group's message storage method in social networks according to claim 3, which is characterized in that the method is also wrapped It includes:
Count the words frequency of occurrence in named web page content;
It is popular words to obtain the words that frequency of occurrence is more than threshold value;
The popular words is stored to database to establish popular character word stock.
5. group's message storage method in social networks according to claim 2, which is characterized in that according in the message At least one of include the following steps step the step of holding the type feature for refining group's message:
The time type belonging to group's message is judged according to the sending time in the message content, belonging to group's message Time type be added to the type feature of group's message;
Judge the hair belonging to group's message according to the corresponding group members classification of sender of the message's information in the message content Sender's categories class belonging to group's message is added to the type feature of group's message by the person's of sending categories class;
Judge the hair belonging to group's message according to the corresponding group members grade of sender of the message's information in the message content Sender's rating-type belonging to group's message is added to the type feature of group's message by the person's of sending rating-type;
Judge whether the body matter in the message content includes picture, if so, picture relevant information is added to described The type feature of group's message;
Whether the body matter in the message content is judged comprising link, if so, link relevant information is added to described The type feature of group's message;
The text length class belonging to group's message is judged according to the number of words of the body matter in the message content or number of characters The long short type of text belonging to group's message is added to the type feature of group's message by type;
Judge whether group's message belongs to system message according to the body matter in the message content, if so, system disappears Breath relevant information is added to the type feature of group's message.
6. group's message storage method in social networks according to claim 1, which is characterized in that the group of the foundation Number, in the correspondence of message attributes and message SN, the group number and message SN and this group's message of group's message Each message attributes be respectively formed one group of correspondence.
7. group's message query method in a kind of social network client, includes the following steps:
Show message attributes input control;
The message attributes of input are obtained by message attributes input control;
Receive the instruction for inquiring group's message in designated group according to the message attributes;
By the group number of the designated group and message attributes encapsulation, information query is asked in groups;
Group's information query request is sent to server, group's information query request is used to indicate server to the group number After being encrypted with message attributes, by the correspondence for being stored with the group number of group's message, message attributes and message SN Search platform obtains encrypted message SN, and after being decrypted to encrypted message SN, according to the group number and message sequence Corresponding message content in row number searching data table, obtains query result;
It receives group's information query that server returns and asks corresponding query result;
Show the message content that the query result includes.
8. group's message query method in social network client according to claim 7, which is characterized in that the message Attribute input control includes in key word of the inquiry input control, type of message selection control and sender of the message's information input control At least one;
The key word of the inquiry input control is for inputting the words that group's message to be checked is included;
The type of message selection control is used to select the type feature of group's message to be checked;
Sender of the message's information input control is used to input sender of the message's information of group's message to be checked.
9. group's message query method in social network client according to claim 8, which is characterized in that the message It includes at least one of following control that type, which selects control,:
For selecting the control of the time type belonging to group's message to be checked, for selecting the sender belonging to group's message to be checked It is the control of categories class, the control for selecting sender's rating-type belonging to group's message to be checked, to be checked for selecting The control of the picture relevant information of group's message, the control of link relevant information for selecting group's message to be checked, for selecting The control of the long short type of text belonging to group's message to be checked and the system message relevant information for selecting group's message to be checked Control.
10. group's message query method in a kind of social network server, includes the following steps:
The request of group's information query is received, the inquiry request includes the group number and message attributes of group's message to be checked;
According to the encryption method of setting, the group number and message attributes of group's message to be checked are encrypted;
The encrypted group number and message attributes are sent to search platform, by search platform the group's message pre-established group Number, the group number and the corresponding message of message attributes of group's message to be checked are searched in the correspondence of message attributes and message SN Sequence number obtains the message SN of encrypted group's message to be checked;According to the decryption method symmetrical with encryption method, The message SN of the encrypted message to be checked is decrypted;
In being used to store the group number of group's message, the index of the tables of data of message SN and message content what is pre-established, root Corresponding storage address is searched according to the group number and message SN of group's message to be checked;
Message content is read according to corresponding storage address, obtains query result.
11. group's message query method in social network server according to claim 10, which is characterized in that described to disappear Ceasing attribute includes:
Words, the type feature of group's message and at least one of the sender information of group's message that group's message is included.
12. group's message query method in social network server according to claim 11, which is characterized in that the class Type feature includes at least one of following characteristics:
Time type belonging to group's message, sender's categories class belonging to group's message, sender's grade class belonging to group's message Type, the picture relevant information of group's message, the link relevant information of group's message, the long short type of text belonging to group's message and group's message System message relevant information.
13. group's message query method in social network server according to claim 10, which is characterized in that the group Number, in the correspondence of message attributes and message SN, the group number and message SN and this group's message of group's message Each message attributes be respectively formed one group of correspondence;
It is described to search inquiry request in the correspondence of the group number of the group's message pre-established, message attributes and message SN The step of group number and message attributes that include corresponding message SN includes:
Each message attributes of the group number of group's message to be checked and group's message to be checked are partnered keyword;
It is searched in the correspondence of the group number of the group's message pre-established, message attributes and message SN per a pair of pass The corresponding message SN of key word;
The intersection per the corresponding message SN of a pair keyword is obtained, the message sequence of group's message to be checked is obtained Number.
14. group's message in a kind of social networks stores querying method, including any social networks of claim 1 to 6 In group's message storage method, group's message query method and power in any social network client of claim 7 to 9 Profit requires group's message query method in 10 to 13 any social network servers.
15. group's message storage system in a kind of social networks, which is characterized in that including:
Group's message reception module, for receiving group's message;
Group number and content extraction module, group number and message content for extracting group's message;
Sequence number generation module, the message SN for generating group's message;
Message storage module arrives tables of data for the group number of group's message, message SN and message content to be corresponded to storage In;
Index establishes module, the index for establishing the tables of data according to the group number and message SN;
Attribute refines module, the message attributes for refining group's message according to the message content;
Key-value pair sets up module, is used for using the group number of group's message and message attributes as key, with the message sequence of group's message Row number is that value forms key-value pair;
Encrypting module, for key-value pair to be encrypted;
Key-value pair sending module establishes the group for the encrypted key-value pair to be sent to search platform by search platform The group number of message, the correspondence of message attributes and message SN;
Attribute corresponding relation building module, for storing the key-value pair received.
16. group's message storage system in social networks according to claim 15, which is characterized in that the attribute refines Module includes at least one module below:
Popular words extraction module, for extracting the popular words that group's message is included according to the message content;
Type feature refines module, the type feature for refining group's message according to the message content;
Sender's marker extraction module, the sender for extracting group's message according to the message content identify.
17. group's message storage system in social networks according to claim 16, which is characterized in that the hot topic words Extraction module is used to be extracted according to the words that pre-stored popular character word stock is included in the body matter of the message content Popular words.
18. group's message storage system in social networks according to claim 17, which is characterized in that the system is also wrapped It includes popular character word stock and establishes module, count the words frequency of occurrence in named web page content, it is more than threshold value to obtain frequency of occurrence Words is popular words, and stores the popular words to database to establish popular character word stock.
19. group's message storage system in social networks according to claim 16, which is characterized in that the type feature It includes at least one module below to refine module:
Time type refines module, for judging the time belonging to group's message according to the sending time in the message content Time type belonging to group's message is added to the type feature of group's message by type;
Sender's categories class refines module, for according to the corresponding group members of sender of the message's information in the message content Classification judges sender's categories class belonging to group's message, and sender's categories class belonging to group's message is added to The type feature of group's message;
Sender's rating-type refines module, for according to the corresponding group members of sender of the message's information in the message content Grade judges sender's rating-type belonging to group's message, and sender's rating-type belonging to group's message is added to The type feature of group's message;
Pictorial information refines module, for judging whether the body matter in the message content includes picture, if so, will figure Piece relevant information is added to the type feature of group's message;
Link information refines module, for judging the body matter in the message content whether comprising link, if so, by chain Connect the type feature that relevant information is added to group's message;
The long short type of text refines module, for judging institute according to the number of words or number of characters of the body matter in the message content The long short type of text belonging to group message is stated, the long short type of text belonging to group's message is added to the class of group's message Type feature;
System message information abstraction module, for judging whether group's message belongs to according to the body matter in the message content In system message, if so, system message relevant information is added to the type feature of group's message.
20. group's message storage system in social networks according to claim 15, which is characterized in that the group of the foundation Number, in the correspondence of message attributes and message SN, the group number and message SN and this group's message of group's message Each message attributes be respectively formed one group of correspondence.
21. group's information query client in a kind of social networks, which is characterized in that including:
Display module, for showing message attributes input control;
Message attributes acquisition module, the message attributes for obtaining input by message attributes input control;
Command reception module, for receiving the instruction for inquiring group's message in designated group according to the message attributes;
Package module is asked, is asked for the group number of the designated group and the message attributes to be encapsulated information query in groups;
Request sending module, for sending group's information query request to server, group's information query request is for referring to After showing server to the group number and message attributes encryption, by the group number, message attributes and the message that are stored with group's message The search platform of the correspondence of sequence number obtains encrypted message SN, and after being decrypted to encrypted message SN, root According to corresponding message content in the group number and message SN searching data table, query result is obtained;
Query result receiving module, group's information query for receiving server return ask corresponding query result;
The display module is additionally operable to show the message content that the query result includes.
22. group's information query client in social networks according to claim 21, which is characterized in that the message category Property input control include key word of the inquiry input control, type of message selection control and sender of the message's information input control in It is at least one;
The key word of the inquiry input control is for inputting the words that group's message to be checked is included;
The type of message selection control is used to select the type feature of group's message to be checked;
Sender of the message's information input control is used to input sender of the message's information of group's message to be checked.
23. group's information query client in social networks according to claim 22, which is characterized in that the message class It includes at least one of following control that type, which selects control,:
For selecting the control of the time type belonging to group's message to be checked, for selecting the sender belonging to group's message to be checked It is the control of categories class, the control for selecting sender's rating-type belonging to group's message to be checked, to be checked for selecting The control of the picture relevant information of group's message, the control of link relevant information for selecting group's message to be checked, for selecting The control of the long short type of text belonging to group's message to be checked and the system message relevant information for selecting group's message to be checked Control.
24. group's message query server in a kind of social networks, which is characterized in that including:
Request receiving module, for receive group's information query request, the inquiry request include group's message to be checked group number and Message attributes;
Encrypting module adds the group number and message attributes of group's message to be checked for the encryption method according to setting It is close;
Key sending module, for the encrypted group number and message attributes to be sent to search platform;By search platform advance The group number of group's message to be checked is searched in the correspondence of the group number of group's message of foundation, message attributes and message SN and is disappeared The corresponding message SN of attribute is ceased, the message SN of encrypted group's message to be checked is obtained;
Deciphering module is used for according to the decryption method symmetrical with encryption method, by the message of the encrypted message to be checked Sequence number is decrypted;
Storage address searching module, in group number, message SN and the message for storing group's message pre-established In the index of the tables of data of appearance, corresponding storage address is searched according to the group number of group's message to be checked and message SN;
Message content read module obtains query result for reading message content according to corresponding storage address.
25. group's message query server in social networks according to claim 24, which is characterized in that the message category Property includes:
Words, the type feature of group's message and at least one of the sender information of group's message that group's message is included.
26. group's message query server in social networks according to claim 25, which is characterized in that the type is special Sign includes at least one of following characteristics:Time type belonging to group's message, sender's categories class belonging to group's message, group The picture relevant information of sender's rating-type, group's message belonging to message, the link relevant information of group's message, belonging to group's message The long short type of text and group's message system message relevant information.
27. group's message query server in social networks according to claim 24, which is characterized in that the group number, In the correspondence of message attributes and message SN, the group number of group's message and message SN are every with this group's message One message attributes is respectively formed one group of correspondence;
Described search platform is by each message attributes group of the group number of group's message to be checked and group's message to be checked Keyword in a pair;It is searched in the correspondence of the group number of the group's message pre-established, message attributes and message SN every The corresponding message SN of a pair keyword;The intersection per the corresponding message SN of a pair keyword is obtained, is obtained To the message SN of group's message to be checked.
28. group's message in a kind of social networks stores inquiry system, which is characterized in that including any one of claim 15 to 20 Group's message storage system, claim 21 to 23 any one of them group's information query client and the claim 24 to 27 any one of them group's message query servers.
CN201410161541.2A 2014-04-21 2014-04-21 The storage of group's message, querying method and system in social networks Active CN105024906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410161541.2A CN105024906B (en) 2014-04-21 2014-04-21 The storage of group's message, querying method and system in social networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410161541.2A CN105024906B (en) 2014-04-21 2014-04-21 The storage of group's message, querying method and system in social networks

Publications (2)

Publication Number Publication Date
CN105024906A CN105024906A (en) 2015-11-04
CN105024906B true CN105024906B (en) 2018-10-02

Family

ID=54414629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410161541.2A Active CN105024906B (en) 2014-04-21 2014-04-21 The storage of group's message, querying method and system in social networks

Country Status (1)

Country Link
CN (1) CN105024906B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447162B (en) * 2015-12-01 2021-06-25 腾讯科技(深圳)有限公司 Group file searching method and device
CN106919635B (en) * 2016-06-13 2020-11-03 创新先进技术有限公司 Group chat record query method and device and electronic equipment
CN107844488B (en) * 2016-09-18 2022-02-01 北京京东尚科信息技术有限公司 Data query method and device
CN108880972B (en) * 2017-05-09 2022-08-12 腾讯科技(深圳)有限公司 Information processing method, server and terminal
CN108880980A (en) * 2018-04-28 2018-11-23 国家计算机网络与信息安全管理中心 Data analysis system based on Wechat group information
CN111698144A (en) * 2019-03-15 2020-09-22 钉钉控股(开曼)有限公司 Communication method, device and equipment, and group creation method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068224A (en) * 2007-06-18 2007-11-07 北京亿企通信息技术有限公司 Information monitoring method in instant messaging system
CN101072205A (en) * 2007-06-21 2007-11-14 腾讯科技(深圳)有限公司 Chat information searching method and system
CN101119326A (en) * 2006-08-04 2008-02-06 腾讯科技(深圳)有限公司 Method and device for managing instant communication conversation recording
CN101605109A (en) * 2009-07-15 2009-12-16 腾讯科技(深圳)有限公司 The management method of group message and device
CN103092860A (en) * 2011-11-02 2013-05-08 中国移动通信集团四川有限公司 Search prompt message generation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3943824B2 (en) * 2000-10-31 2007-07-11 株式会社東芝 Information management method and information management apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119326A (en) * 2006-08-04 2008-02-06 腾讯科技(深圳)有限公司 Method and device for managing instant communication conversation recording
CN101068224A (en) * 2007-06-18 2007-11-07 北京亿企通信息技术有限公司 Information monitoring method in instant messaging system
CN101072205A (en) * 2007-06-21 2007-11-14 腾讯科技(深圳)有限公司 Chat information searching method and system
CN101605109A (en) * 2009-07-15 2009-12-16 腾讯科技(深圳)有限公司 The management method of group message and device
CN103092860A (en) * 2011-11-02 2013-05-08 中国移动通信集团四川有限公司 Search prompt message generation method and device

Also Published As

Publication number Publication date
CN105024906A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105024906B (en) The storage of group's message, querying method and system in social networks
CN103729770B (en) A kind of anti-fake traceability system and its method
CN105745903B (en) Apparatus and method for making offline data online while protecting consumer privacy
CN104104654B (en) A kind of setting Wifi access rights, the method and apparatus of Wifi certifications
CN101447987B (en) System, method and program for preference matching
Yu et al. Authentication with block-chain algorithm and text encryption protocol in calculation of social network
US20010013037A1 (en) Information communication system, information communication method, and information provision business method
CN106973075B (en) Share comment method and system, domain name code-transferring method, client and server
CN105282130A (en) Network node and method of operating the network node
CN105229985A (en) Identity tokens
CN106487663B (en) Safe social platform
CN105847853A (en) Video content distribution method and device
CN105426744A (en) Method and apparatus for setting password protection question
JP2000215240A (en) Information intermediary system
CN104618410B (en) Resource supplying method and apparatus
KR20190040343A (en) Verification methods and devices
CN105871921B (en) A kind of data processing method and device
CN104956393A (en) Third-party communications to social networking system users using user descriptors
Al Falahi et al. Social networks: Challenges and new opportunities
CN105474585A (en) Private tokens in electronic messages
CN104244112B (en) A kind of multi-media processing method, device and server
CN106254226B (en) A kind of information synchronization method and device
Guangting et al. The Study of Impact of" Big Data" to Purchasing Intention
CN104994002A (en) Friend recommendation system and method
CN109302281B (en) Method and system for realizing social network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190807

Address after: 518000 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.