[go: up one dir, main page]

CN105024906A - SNS (social networking services) group message storing, inquiring methods and systems - Google Patents

SNS (social networking services) group message storing, inquiring methods and systems Download PDF

Info

Publication number
CN105024906A
CN105024906A CN201410161541.2A CN201410161541A CN105024906A CN 105024906 A CN105024906 A CN 105024906A CN 201410161541 A CN201410161541 A CN 201410161541A CN 105024906 A CN105024906 A CN 105024906A
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.)
Granted
Application number
CN201410161541.2A
Other languages
Chinese (zh)
Other versions
CN105024906B (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

An SNS group message storing method comprises the following steps of receiving group messages; extracting the group number and contents of the group messages to generate the serial number of the group messages; making the group number, the message serial number and message contents of the group messages correspondingly stored in a data sheet; creating an index of the data sheet according to the group number and the message serial number; extracting the message attributes of the group messages according to the message contents; and setting up the corresponding relations of the group number, the message attributes and the message serial number of the group messages. By means of the above-mentioned group message storing means, the group message inquiring speed can be greatly improved. Furthermore, the invention provides an SNS group message storing system, an SNS client group message inquiring method, an SNS group message inquiring client, an SNS server group message inquiring method and an SNS group message inquiring server.

Description

Group's message stores, querying method and system in social networks
Technical field
The present invention relates to network and field of computer technology, particularly relate to the group's message stores method and system in a kind of social networks, the group's message query method in social networks client and the group's information query client in social networks, and the group's message query method in social networking service device and the group's message query server in social networks.
Background technology
Social networks, i.e. social networking service (Social Networking Services, SNS), specially refer to be intended to help people to set up the internet, applications service of social network, such as instant messaging service, Websites service etc.People set up friends chain by SNS, sharing information and knowledge, carry out linking up, exchange and helping each other and cooperate.
Social networks not only provides point-to-point communication exchange service between two users, also provides the communication exchange service of one-to-many.User is divided into good friend group according to user's request by social networks usually, or creates discussion group etc. according to user instruction, generally includes multiple member in group.When any member in group sends message in group, this message all will be sent to other member in group.The message that member in group sends in group can be called group message.
Group's message, when receiving group message, is not only sent to other member in group, also group's message is stored, and provide the inquiry service to group's message by the server in social networks.
General, server by the group of group's message number, sender information, transmitting time, message body content corresponding stored in tables of data.And user is when inquiring about group message, general input inquiry key is inquired about.When server receives the inquiry request comprising key word of the inquiry, the entire message body matter of key word of the inquiry with all records in tables of data is mated, thus obtains all message comprising key word of the inquiry.
Prior art is by key word of the inquiry inquiry group message, and need key word of the inquiry to mate one by one with all records in tables of data, and obtain Query Result, therefore inquiry velocity is slow.
Summary of the invention
Based on this, be necessary to provide the method and system of the group's message stores in a kind of social networks improving information query speed, and a kind ofly improve the group's message query method in the social networks client of information query speed and the group's information query client in social networks, and a kind ofly improve the group's message query method in the social networking service device of information query speed and the group's message query server in social networks, and group's message stores querying method in a kind of social networks improving information query speed and system.
Group's message stores method in social networks, comprises the following steps:
Receive group's message;
Extract group number and the message content of described group's message, generate the message SN of described group's message;
By the group of described group's message number, message SN and message content corresponding stored in tables of data;
The index of described tables of data is set up according to described group number and message SN;
The message attributes of described group's message is refined according to described message content;
Set up the corresponding relation of the group number of described group's message, message attributes and message SN.
Group's message query method in social networks client, comprises the following steps:
Display message attributes input control;
The message attributes of input is obtained by message attributes input control;
Receive the instruction inquiring about group's message according to described message attributes in designated group;
The group of described designated group number is encapsulated information query request in groups with described message attributes;
Send the request of described group's information query to server;
The Query Result that described group's information query request that reception server returns is corresponding;
Show the message content that described Query Result comprises.
Group's message query method in social networking service device, comprises the following steps:
Receive the request of group information query, described inquiry request comprises group number and the message attributes of group's message to be checked;
In the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN, search the group number of group's message to be checked and message SN corresponding to message attributes, obtain the message SN of described group's message to be checked;
Set up in advance for store the group number of group message, message SN and message content tables of data index in, search corresponding memory address according to the group number of described group's message to be checked and message SN;
Memory address according to correspondence reads message content, obtains Query Result.
Group's message stores querying method in social networks, comprises the step in the group's message stores method in above-mentioned social networks, the group's message query method in social networks client and the group's message query method in social networking service device.
Group's message stores system in social networks, comprising:
Group's message reception module, for receiving group message;
Group number and content extraction module, for extracting group number and the message content of described group's message;
Sequence number generation module, for generating the message SN of described group's message;
Message storage module, for by the group of described group's message number, message SN and message content corresponding stored in tables of data;
Module set up in index, for setting up the index of described tables of data according to described group number and message SN;
Attribute refines module, for refining the message attributes of described group's message according to described message content;
Attribute corresponding relation building module, for setting up the corresponding relation of the group number of described group's message, message attributes and message SN.
Group's information query client in social networks, comprising:
Display module, for showing message attributes input control;
Message attributes acquisition module, for obtaining the message attributes of input by message attributes input control;
Command reception module, for receiving the instruction inquiring about group's message according to described message attributes in designated group;
Request package module, for encapsulating information query request in groups by the group of described designated group number with described message attributes;
Request sending module, for sending the request of described group's information query to server;
Query Result receiver module, the Query Result that the described group's information query request returned for reception server is corresponding;
Described display module is also for showing the message content that described Query Result comprises.
Group's message query server in social networks, comprising:
Request receiving module, for receiving group information query request, described inquiry request comprises group number and the message attributes of group's message to be checked;
Sequence number searches module, for the message SN that the group number and message attributes that search group's message to be checked in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN are corresponding, obtain the message SN of described group's message to be checked;
Memory address searches module, for set up in advance for store the group number of group message, message SN and message content tables of data index in, search corresponding memory address according to the group number of described group's message to be checked and message SN;
Message content read module, reads message content for the memory address according to correspondence, obtains Query Result.
Group's message stores inquiry system in social networks, comprises the module in the group's message query server in the group's message stores system in social networks, the group's information query client in social networks, social networks.
Group's message stores method and system in above-mentioned social networks, not only generate the message SN of group's message, by the group number of group's message, message SN and message content corresponding stored are in tables of data, the index of this tables of data is set up according to group number and message SN, also refine the message attributes of group's message, set up the group number of group's message, the corresponding relation of message attributes and message SN, thus make when inquiring about group's message, corresponding message SN can be searched with message attributes according to the group of group's message to be checked number, in the index of tables of data, corresponding memory address is searched with message SN further according to group number, corresponding group's message is obtained according to memory address, search in the process of corresponding message SN according to group number with message attributes, the group of group's message to be checked number is only needed to mate with message attributes with the group number of storage with message attributes, and do not need key word of the inquiry and entire message body matter to be carried out search and mate to judge whether key word of the inquiry is contained in message, thus can inquiry velocity be accelerated, and to search corresponding memory address in the index according to group number and message SN and obtain corresponding group's message according to memory address be also fastish process, therefore, group's message stores method and system in above-mentioned social networks stores the mode of group's message, the speed of inquiring about group's message can be made to be greatly improved.
Group's message query method in above-mentioned social networks client and the group's information query client in social networks, the message attributes of input is obtained by message attributes input control, group number is encapsulated information query request in groups with message attributes and is sent to server, make server can search group message according to group number with message attributes, relative to search coupling keyword to be checked in the entire message body matter of all records of tables of data, the speed finding target message can be improved.
Group's message query method in above-mentioned social networking service device and the group's message query server in social networks, group number according to group's message to be checked searches corresponding message SN with message attributes, in the index of tables of data, corresponding memory address is searched with message SN further according to group number, corresponding group's message is obtained according to memory address, search in the process of corresponding message SN according to group number with message attributes, the group of group's message to be checked number is only needed to mate with message attributes with the group number of storage with message attributes, and do not need key word of the inquiry and entire message body matter to be carried out search and mate to judge whether key word of the inquiry is contained in message, thus can inquiry velocity be accelerated, and to search corresponding memory address in the index according to group number and message SN and obtain corresponding group's message according to memory address be also fastish process, therefore, the speed of inquiring about group's message can be made to be greatly improved.
In like manner, the mode of the group's message stores querying method in above-mentioned social networks and the storage of system and inquiry group message, can make the speed of inquiring about group's message be greatly improved.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the group's message stores method in the social networks in an embodiment;
Fig. 2 is the corresponding relation schematic diagram of the group number of the group's message set up in an embodiment, message attributes and message SN;
Fig. 3 is the schematic flow sheet of the group's message query method in the social networks client in an embodiment;
Fig. 4 is the schematic flow sheet of the group's message query method in the social networking service device in an embodiment;
Fig. 5 is the schematic flow sheet of the step S404 in an embodiment in Fig. 4;
Fig. 6 A and Fig. 6 B is the application scenarios schematic diagram of the process of the storage group message of group's message stores querying method in the social networks in an embodiment and the process of inquiry group message;
Fig. 7 is the structural representation of the group's message stores system in the social networks in an embodiment;
Fig. 8 is the structural representation of the attribute refinement module in an embodiment;
Fig. 9 is the structural representation of the group's information query client in the social networks in an embodiment;
Figure 10 is the structural representation of the group's message query server in the social networks in an embodiment;
Figure 11 is the structural representation that sequence number in an embodiment searches module;
Figure 12 is the structural representation of the group's message stores inquiry system in the social networks in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, in one embodiment, a kind of group's message stores method in social networks, comprises the following steps:
Step S102, receives group's message.
The data content of group's message comprises group number and message content.Message content comprises message and sends information, transmitting time and message body content.Message body content is the content of the expression message semantics that user inputs.
Step S104, extracts group number and the message content of group message, generates the message SN of group's message.
Can generate the message SN of globally unique identifier group message, namely the message SN of any two group's message is different, also can generate the message SN of unique identification group message in group, and namely the message SN of any two group's message of same group two is different.
Step S106, by the group of group's message number, message SN and message content corresponding stored in tables of data.
Step S108, sets up the index of tables of data according to group number and message SN.
The memory address of the record in tables of data can be obtained, generate the corresponding relation inventory of the memory address of the group that comprises in record number and message SN and record, namely obtain the index of tables of data, further, this corresponding relation inventory can be stored.
Step S110, refines the message attributes of group's message according to the message content of group's message.
Step S112, sets up the corresponding relation of the group number of group's message, message attributes and message SN.
Can by the group of group's message number, message attributes and message SN corresponding stored to tables of data or in file.
In one embodiment, in the corresponding relation of the group of group's message number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively.
Step S112 can comprise the following steps: according to the Message Record of the quantity such as the number generation of the message attributes of group's message, every bar Message Record comprises the group number of group message, a message attributes and message SN, and the message attributes that different messages record comprises is different; Store the Message Record of group's message.
In the present embodiment, article one, the group number of group's message forms one group of corresponding relation respectively with each message attributes of message SN and this group's message, instead of multiple message attributes of group's message are combined, further the message attributes of the group of this group's message number and message SN and this group's message is combined and set up corresponding relation, thus only need single message attributes to mate with single message attributes when inquiring about group's message, and do not need the combination of single message attributes with multiple message attributes of group's message to mate, thus group information query speed can be improved.
In one embodiment, the message attributes of group's message of refinement comprises at least one in comprised popular words, type feature and sender of the message's mark.
Fig. 2 is the corresponding relation schematic diagram of the group number of the group's message set up in an embodiment, message attributes and message SN.As shown in Figure 2, for (group number, sender, transmitting time, message SN, body matter) be respectively (" 80000 ", " 10000 ", " 20140213 ", " 887 ", " communication Shenzhen ") and (" 80000 ", " 20000 ", " 20140214 ", " 888 ", " instant messaging ") two group's message, the message attributes can refined from Article 1 group message comprises: sender identifies " 10000 ", the popular words " Shenzhen " comprised, the popular words " communication " comprised, the message attributes can refined from Article 2 group message comprises: sender identifies " 20000 ", the popular words " immediately " comprised, the popular words " communication " comprised, further, group number and each message attributes and corresponding message SN are set up corresponding relation as shown in Figure 2.
In one embodiment, the step of refining according to message content the popular words that group message comprises comprises: the words comprised according to the popular character word stock prestored extracts the popular words in the body matter of message content.
The body matter of message content can be carried out participle, obtain independently words; Further, the words be included in the popular character word stock set up in advance can be extracted in independently words.The body matter of message content is carried out participle can according to the existing segmenting method based on string matching, based on understand segmenting method and Corpus--based Method segmenting method etc. carry out, do not repeat them here.Further, participle can be obtained each independently words mate with all words of popular character word stock, judge each independently words whether be included in popular character word stock, and record the words that is included in popular character word stock.
Or, the words be included in the body matter of message content can be obtained in the popular character word stock prestored.Concrete, each words in popular character word stock can be mated with the body matter of message content, judge whether it is included in body matter, record the words be included in body matter.
In one embodiment, before the step of refining the popular words that group's message comprises according to message content, group's message stores method in above-mentioned social networks also comprises the process setting up popular character word stock, comprises the following steps: the words frequency of occurrence in statistics named web page content; The words that acquisition frequency of occurrence exceedes threshold value is popular words; Store popular words to database to set up popular character word stock.
In one embodiment, the step of refining the type feature of group's message according to message content comprises at least one following step:
(1) judge the time type belonging to group's message according to the transmitting time in message content, the time type belonging to group's message is added to the type feature of group message.
Time type can comprise transmission types and the outer transmission types of special time etc. in special time.If transmitting time belongs in special time, then judge that group's message belongs to special time transmission types, otherwise, belong to the outer transmission types of special time.
(2) corresponding according to the sender of the message's information in message content group members classification judges the sender's categories class belonging to group's message, the sender's categories class belonging to group's message is added to the type feature of group message.
Sender's classification can comprise group master, keeper and common group members etc.; Accordingly, sender's categories class can comprise the main transmission types of group, keeper's transmission types and common group members transmission types etc.
(3) corresponding according to the sender of the message's information in message content group members grade judges the sender's rating-type belonging to group's message, the sender's rating-type belonging to group's message is added to the type feature of group message.
Sender's grade can comprise new hand's level, middle rank, senior and senior level etc.; Accordingly, sender's rating-type can comprise new hand's level transmission types, intermediate transmission types, senior transmission types and senior level transmission types etc.
(4) judge whether the body matter in message content comprises picture, if so, then picture relevant information is added to the type feature of group message.
In one embodiment, the picture relevant information being added to the type feature of message content can be: comprise picture.The type feature of message content comprises: comprise picture, then comprise picture in description messages content.
In another embodiment, the picture/mb-type belonging to picture that comprises of identifiable design message content.Picture/mb-type can comprise self-defined expression type, system expression type and sectional drawing type etc.Concrete, the picture that message content can be comprised is expressed one's feelings with the self-defined expression prestored and system and is mated, to judge whether the picture that message content comprises is self-defined expression or system expression, neither the self-defined expression picture that nonsystematic is expressed one's feelings again can be judged to be sectional drawing.Further, the picture/mb-type belonging to picture that message content can be comprised is added to the type feature of message content.
(5) judge whether the body matter in message content comprises link, if so, then link relevant information is added to the type feature of group message.
In one embodiment, the picture relevant information being added to the type feature of message content can be: comprise link.The type feature of message content comprises: comprise link, then comprise link in description messages content.
In another embodiment, the link type belonging to link that comprises of identifiable design message content.Link type can comprise 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 physical culture link type etc.Concrete, the corresponding relation of chained address and link type can be prestored, judge the link type belonging to the link that message content comprises according to this corresponding relation.Further, the link type belonging to link that message content can be comprised is added to the type feature of message content.
(6) judge the text length type belonging to group's message according to the number of words of the body matter in message content or number of characters, the text length type belonging to group's message is added to the type feature of group message.
Length type can comprise and belong to long type of message and short message types etc.If number of words or the number of characters of the body matter in message content exceed threshold value, then can judge that group message belongs to long type of message, otherwise, can judge that group message belongs to short message types.
(7) judge whether group's message belongs to system message according to the body matter in message content, if so, then system message relevant information is added to the type feature of group message.Whether can comprise default system message mark (such as the printed words of " system message ") according to the body matter in message content and judge whether group message belongs to system message.
In one embodiment, the system message relevant information being added to the type feature of message content can be: belong to system message.The type feature of message content comprises: belong to system message, then illustrate that group's message belongs to system message.
In another embodiment, the system message type belonging to identifiable design group message.System message type can comprise faciation volume notice, group's video/verbal announcement, group's documentary information, group's notice, group's applicative notifications, group members Notification of Changes and group's grade Notification of Changes etc.Concrete, whether can comprise according to the body matter in message content the system message type that corresponding system message type mark judges belonging to group message.Further, the system message type belonging to group's message can be added to the type feature of group message.
As shown in Figure 3, in one embodiment, the group's message query method in a kind of social networks client, comprises the following steps:
Step S302, display message attributes input control.
In one embodiment, message attributes input control comprises at least one in key word of the inquiry input control, type of message selection control and sender of the message's information input control.
Wherein, the words that comprises for inputting group's message to be checked of key word of the inquiry input control; Type of message selects control for selecting the type feature of group's message to be checked; Sender of the message's information input control is for inputting sender of the message's information of group's message to be checked.
In one embodiment, type of message selection control comprises at least one in following control:
For selecting the control of the time type belonging to group's message to be checked, for selecting the control of the sender's categories class belonging to group's message to be checked, for selecting the control of the sender's rating-type belonging to group's message to be checked, for selecting the control of the picture relevant information of group's message to be checked, for selecting the control of the link relevant information of group's message to be checked, for selecting the control of the text length type belonging to group's message to be checked and for selecting the control etc. of the system message relevant information of group's message to be checked.
Step S304, obtains the message attributes of input by message attributes input control.
Step S306, receives the instruction inquiring about group's message according to message attributes in designated group.
Step S308, encapsulates information query request in groups by the group of designated group number with message attributes.
Step S310, sends the request of group's information query to server.
Server can comprise the step in the group's message query method in social networking service device hereinafter described according to the process of group's information query acquisition request Query Result, does not repeat them here.
Step S312, the Query Result that group's information query request that reception server returns is corresponding.
Step S314, the message content that display Query Result comprises.
As shown in Figure 4, in one embodiment, the group's message query method in a kind of social networking service device, comprises the following steps:
Step S402, receives the request of group information query, and inquiry request comprises group number and the message attributes of group's message to be checked.
In one embodiment, the message attributes of group's message comprises at least one in words, the type feature of group's message and the sender of the message's information of group's message that group message comprises.
In one embodiment, type feature comprises at least one in following characteristics: the system message relevant information of the picture relevant information of the time type belonging to group's message, the sender's categories class belonging to group's message, sender's rating-type belonging to group's message, group's message, the link relevant information of group's message, the text length type belonging to group's message and group's message.
Step S404, searches the group number of group's message to be checked and message SN corresponding to message attributes, obtains the message SN of group's message to be checked in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN.
Step S406, set up in advance for store the group number of group message, message SN and message content tables of data index in, search corresponding memory address according to the group number of group's message to be checked and message SN.
Step S408, the memory address according to correspondence reads message content, obtains Query Result.
In one embodiment, in the corresponding relation of the group of group's message number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively; As shown in Figure 5, step S404 comprises the following steps:
Step S502, partner each message attributes of the group of group's message to be checked number and group's message to be checked keyword.
Step S504, searches message SN corresponding to every a pair keyword in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN.
Step S506, obtains the common factor of message SN corresponding to every a pair keyword, obtains the message SN of group's message to be checked.
The message SN that certain a pair keyword is corresponding is meet this message SN to the message attributes in keyword, and the common factor of the message SN that every a pair keyword is corresponding is then the message SN of all message attributes meeting group's message to be checked.
In one embodiment, group's message stores querying method in social networks, comprises the step in the group's message stores method in the social networks in above-mentioned any embodiment, the group's message query method in social networks client and the group's message query method in social networking service device.
Fig. 6 A and Fig. 6 B is the application scenarios schematic diagram of the process of the storage group message of group's message stores querying method in the social networks in an embodiment and the process of inquiry group message.As shown in Figure 6A, the process storing group's message comprises the following steps:
(1.1) group's message of group's server receives client transmission.
(1.2) group's server extracts group number and the message content of group message, generates the message SN of group's message.
(1.3) group's server by the group of group's message number, message SN and message content corresponding stored in the tables of data of group's message database.
(1.4) group's server sets up the index of tables of data according to group number and message SN, and by the index stores set up in group's message database.
(1.5) message content of group's message and message SN send to attribute to refine server by group's server.
(1.6) attribute refines server refines group's message message attributes according to the message content of group's message.
(1.7) attribute refinement server is key with the group of group's message number with message attributes, forms key-value pair with the message SN of group's message for being worth, and is encrypted by key-value pair.
(1.8) key-value pair after encryption is sent to search platform.
(1.9) key-value pair that receives of search platform storage.
As shown in Figure 6B, the process of inquiring about group's message comprises the following steps:
(2.1) client display message attributes input control, the message attributes of input is obtained by message attributes input control, receive the instruction inquiring about group's message according to message attributes in designated group, the group of designated group number is encapsulated information query request in groups with message attributes.
(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 information query, and inquiry request comprises group number and the message attributes of group's message to be checked, and attribute refines server according to the cipher mode in (1.7), the group of group's message to be checked number and message attributes is encrypted.
(2.4) group of the group's message to be checked after encryption number is sent to search platform with message attributes.
(2.5), in the key-value pair that search platform form at the group that prestores number and message attributes and message SN, with the group of group's message to be checked number and message attributes for key searches the message SN of correspondence, the message SN of group's message to be checked is obtained.
(2.6) message SN of group's message to be checked sends to attribute to refine server by search platform.
(2.7) message SN of group's message to be checked is decrypted according to the decryption method symmetrical with encryption method by attribute refinement server.
(2.8) attribute refine server in group's message database for store the group number of group message, message SN and message content tables of data index in, group number according to group's message to be checked searches corresponding memory address with message SN, memory address according to correspondence reads message content, obtains group Query Result that information query request is corresponding.
(2.9) attribute refines server and Query Result corresponding for the request of group's information query is returned to client.
(2.10) client receives attribute and refines Query Result corresponding to group's information query request of returning of server, the message content that client display Query Result comprises.
In the present embodiment, the key-value pair that group number and message attributes and message SN are formed is stored separately in search platform, separate with the message data be stored in group message database and store, and search message SN and search message content according to group number with message SN to have been come by the attribute refinement server and search platform with independent processing ability respectively with message attributes according to group number, thus query processing speed can be accelerated; And be stored in key-value pair that group in search platform number and message attributes and message SN formed and be through encryption, can effectively reduce information leakage risk, raising information security.
As shown in Figure 7, in one embodiment, group's message stores system in a kind of social networks, comprise that module 710 set up in group message reception module 702, group number and content extraction module 704, sequence number generation module 706, message storage module 708, index, attribute refines module 712 and attribute corresponding relation building module 714, wherein:
Group's message reception module 702 is for receiving group message.
The data content of group's message comprises group number and message content.Message content comprises message and sends information, transmitting time and message body content.Message body content is the content of the expression message semantics that user inputs.
Group number and content extraction module 704 are for extracting group number and the message content of group message.
Sequence number generation module 706 is for generating the message SN of group message.
Sequence number generation module 706 can generate the message SN of globally unique identifier group message, namely the message SN of any two group's message is different, also can generate the message SN of unique identification group message in group, namely the message SN of any two group's message of same group two is different.
Message storage module 708 for by the group of group's message number, message SN and message content corresponding stored in tables of data.
Index sets up module 710 for setting up the index of tables of data according to group number and message SN.
The memory address that module 710 can obtain the record in tables of data set up in index, generate the corresponding relation inventory of the memory address of the group that comprises in record number and message SN and record, namely obtain the index of tables of data, further, this corresponding relation inventory can be stored.
Attribute refines module 712 for refining the message attributes of group's message according to the message content of group's message.
Attribute corresponding relation building module 714 is for setting up the corresponding relation of the group number of group message, message attributes and message SN.
Attribute corresponding relation building module 714 can by the group of group's message number, message attributes and message SN corresponding stored to tables of data or in file.
In one embodiment, in the corresponding relation of the group of group's message number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively.
Attribute corresponding relation building module 714 can according to the Message Record of the quantity such as the number generation of the message attributes of group's message, every bar Message Record comprises the group number of group message, a message attributes and message SN, and the message attributes that different messages record comprises is different, further, the Message Record of group's message is stored.
In the present embodiment, article one, the group number of group's message forms one group of corresponding relation respectively with each message attributes of message SN and this group's message, instead of multiple message attributes of group's message are combined, further the message attributes of the group of this group's message number and message SN and this group's message is combined and set up corresponding relation, thus only need single message attributes to mate with single message attributes when inquiring about group's message, and do not need the combination of single message attributes with multiple message attributes of group's message to mate, thus group information query speed can be improved.
In one embodiment, the message attributes of group's message of attribute refinement module 712 refinement comprises at least one in comprised popular words, type feature and sender of the message's mark.
As shown in Figure 8, in one embodiment, attribute refines module 712 and comprises popular words extraction module 802, type feature refinement module 804 and sender's marker extraction module 808, wherein:
Popular words extraction module 802, for extracting the popular words that group's message comprises according to message content.
Type feature refines module 804, for refining the type feature of group's message according to message content.
Sender's marker extraction module 806, for extracting sender's mark of group's message according to message content.
In another embodiment, attribute refines popular words extraction module 802 that module 712 can only comprise, type feature refines any one or any two modules in module 804 and sender's marker extraction module 806.
In one embodiment, popular words extraction module 802 extracts the popular words in the body matter of message content for the words comprised according to the popular character word stock prestored.
The body matter of message content can be carried out participle by popular words extraction module 802, obtains independently words; Further, the words be included in the popular character word stock set up in advance can be extracted in independently words.The body matter of message content is carried out participle can according to the existing segmenting method based on string matching, based on understand segmenting method and Corpus--based Method segmenting method etc. carry out, do not repeat them here.Further, popular words extraction module 802 participle can be obtained each independently words mate with all words of popular character word stock, judge each independently words whether be included in popular character word stock, and record the words that is included in popular character word stock.
Or popular words extraction module 802 can obtain in the popular character word stock prestored the words be included in the body matter of message content.Concrete, each words in popular character word stock can mate with the body matter of message content by popular words extraction module 802, judges whether it is included in body matter, records the words be included in body matter.
In one embodiment, group's message stores system in above-mentioned social networks also comprises popular character word stock and sets up module (not shown), for adding up the words frequency of occurrence in named web page content, the words that acquisition frequency of occurrence exceedes threshold value is popular words, stores popular words to database to set up popular character word stock.
In one embodiment, type feature refinement module 804 comprises at least one module in time type refinement module, sender's categories class refinement module, sender's rating-type refinement module, pictorial information refinement module, link information refinement module, text length type refinement module and system message information abstraction module (above module is not shown), wherein:
Time type refines module for judging the time type belonging to group's message according to the transmitting time in message content, the time type belonging to group's message is added to the type feature of group message.
Time type can comprise transmission types and the outer transmission types of special time etc. in special time.If transmitting time belongs in special time, then time type refinement module judges that group's message belongs to special time transmission types, otherwise, judge that group's message belongs to the outer transmission types of special time.
Sender's categories class refinement module judges the sender's categories class belonging to group's message for the group members classification corresponding according to the sender of the message's information in message content, the sender's categories class belonging to group's message is added to the type feature of group message.
Sender's classification can comprise group master, keeper and common group members etc.; Accordingly, sender's categories class can comprise the main transmission types of group, keeper's transmission types and common group members transmission types etc.
Sender's rating-type refinement module judges the sender's rating-type belonging to group's message for the group members grade corresponding according to the sender of the message's information in message content, the sender's rating-type belonging to group's message is added to the type feature of group message.
Sender's grade can comprise new hand's level, middle rank, senior and senior level etc.; Accordingly, sender's rating-type can comprise new hand's level transmission types, intermediate transmission types, senior transmission types and senior level transmission types etc.
Pictorial information refines module for judging whether the body matter in message content comprises picture, if so, then picture relevant information is added to the type feature of group message.
In one embodiment, the picture relevant information being added to the type feature of message content can be: comprise picture.The type feature of message content comprises: comprise picture, then comprise picture in description messages content.
In another embodiment, pictorial information refines the picture/mb-type belonging to picture that module identifiable design message content comprises.Picture/mb-type can comprise self-defined expression type, system expression type and sectional drawing type etc.Concrete, the picture that message content can comprise by pictorial information refinement module is expressed one's feelings with the self-defined expression prestored and system and is mated, to judge whether the picture that message content comprises is self-defined expression or system expression, neither the self-defined expression picture that nonsystematic is expressed one's feelings again can be judged to be sectional drawing.Further, the picture/mb-type belonging to picture that message content can comprise by pictorial information refinement module is added to the type feature of message content.
Link information refines module for judging whether the body matter in message content comprises link, if so, then link relevant information is added to the type feature of group message.
In one embodiment, the picture relevant information being added to the type feature of message content can be: comprise link.The type feature of message content comprises: comprise link, then comprise link in description messages content.
In another embodiment, link information refines the link type belonging to link that module identifiable design message content comprises.Link type can comprise 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 physical culture link type etc.Concrete, above-mentioned storage system also comprises link type memory module (not shown), for storing the corresponding relation of chained address and link type, link information refines the link type that module can judge belonging to the link that message content comprises according to this corresponding relation.Further, the link type belonging to link that message content can comprise by link information refinement module is added to the type feature of message content.
Text length type refines the text length type that module is used for judging belonging to group's message according to the number of words of the body matter in message content or number of characters, the text length type belonging to group's message is added to the type feature of group message.
Length type can comprise and belong to long type of message and short message types etc.If number of words or the number of characters of the body matter in message content exceed threshold value, then text length type refinement module can judge that group message belongs to long type of message, otherwise text length type refines module can judge that group message belongs to short message types.
System message information abstraction module is used for judging whether group's message belongs to system message according to the body matter in message content, if so, then system message relevant information is added to the type feature of group message.Whether system message information abstraction module can comprise default system message mark (such as the printed words of " system message ") according to the body matter in message content judges whether group message belongs to system message.
In one embodiment, the system message relevant information being added to the type feature of message content can be: belong to system message.The type feature of message content comprises: belong to system message, then illustrate that group's message belongs to system message.
In another embodiment, the system message type belonging to system message information abstraction module identifiable design group message.System message type can comprise faciation volume notice, group's video/verbal announcement, group's documentary information, group's notice, group's applicative notifications, group members Notification of Changes and group's grade Notification of Changes etc.Concrete, whether system message information abstraction module can comprise according to the body matter in message content the system message type that corresponding system message type mark judges belonging to group message.Further, 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 social networks, comprises display module 902, message attributes acquisition module 904, command reception module 906, request package module 908, request sending module 910 and Query Result receiver module 912, wherein:
Display module 902 is for showing message attributes input control.
In one embodiment, message attributes input control comprises at least one in key word of the inquiry input control, type of message selection control and sender of the message's information input control.
Wherein, the words that comprises for inputting group's message to be checked of key word of the inquiry input control; Type of message selects control for selecting the type feature of group's message to be checked; Sender of the message's information input control is for inputting sender of the message's information of group's message to be checked.
In one embodiment, type of message selection control comprises at least one in following control:
For selecting the control of the time type belonging to group's message to be checked, for selecting the control of the sender's categories class belonging to group's message to be checked, for selecting the control of the sender's rating-type belonging to group's message to be checked, for selecting the control of the picture relevant information of group's message to be checked, for selecting the control of the link relevant information of group's message to be checked, for selecting the control of the text length type belonging to group's message to be checked and for selecting the control etc. of the system message relevant information of group's message to be checked.
Message attributes acquisition module 904 is for obtaining the message attributes of input by message attributes input control.
Command reception module 906 inquires about the instruction of group's message in designated group according to message attributes for receiving.
Request package module 908 is for encapsulating information query request in groups by the group of designated group number with message attributes.
Request sending module 910 is for sending group information query request to server.
Server is identical according to the process of group's information query acquisition request Query Result with the group's message query server in social networks hereinafter described according to the process of group's information query acquisition request Query Result, does not repeat them here.
Query Result receiver module 912 is for Query Result corresponding to group's information query request that reception server returns.
Display module 902 is also for showing the message content that Query Result comprises.
As shown in Figure 10, in one embodiment, the group's message query server in a kind of social networks, comprises request receiving module 1002, sequence number searches module 1004, memory address searches module 1006 and message content read module 1008, wherein:
Request receiving module 1002 is for receiving group information query request, and inquiry request comprises group number and the message attributes of group's message to be checked.
In one embodiment, the message attributes of group's message comprises at least one in words, the type feature of group's message and the sender of the message's information of group's message that group message comprises.
In one embodiment, type feature comprises at least one in following characteristics: the system message relevant information of the picture relevant information of the time type belonging to group's message, the sender's categories class belonging to group's message, sender's rating-type belonging to group's message, group's message, the link relevant information of group's message, the text length type belonging to group's message and group's message.
Sequence number searches module 1004 for message SN corresponding to the group number and message attributes that search group's message to be checked in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN, obtains the message SN of group's message to be checked.
Memory address search module 1006 for set up in advance for store the group number of group message, message SN and message content tables of data index in, search corresponding memory address according to the group number of group's message to be checked and message SN.
Message content read module 1008 reads message content for the memory address according to correspondence, obtains Query Result.
In one embodiment, in the corresponding relation of the group of group's message number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively; As shown in figure 11, sequence number is searched module 1004 and is comprised keyword and search unit 1104 and common factor acquiring unit 1106 to component units 1102, sequence number, wherein:
Keyword to component units 1102 for keyword that each message attributes of the group of group's message to be checked number and group's message to be checked is partnered.
Sequence number searches unit 1104 for searching message SN corresponding to every a pair keyword in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN.
Common factor acquiring unit 1106, for obtaining the common factor of message SN corresponding to every a pair keyword, obtains the message SN of group's message to be checked.
The message SN that certain a pair keyword is corresponding is meet this message SN to the message attributes in keyword, and the common factor of the message SN that every a pair keyword is corresponding is then the message SN of all message attributes meeting group's message to be checked.
Group's message stores inquiry system in social networks, comprises the group's message stores system in the social networks in above-mentioned any embodiment, the group's information query client in social networks and the module included by group's message query server in social networks.
As shown in figure 12, in a specific embodiment, the group's message stores inquiry system in above-mentioned social networks, comprises with lower module:
Module 710 and message transmission module 1202 set up in group's message reception module 702, group number and content extraction module 704, sequence number generation module 706, message storage module 708, index, 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, request receiving module 1002, key sending module 1210, deciphering module 1214, memory address search module 1006, message content read module 1008, Query Result return module 1216, is distributed in attribute and refines on server 20;
Attribute corresponding relation building module 714, sequence number search module 1004 and sequence number sending module 1212, are distributed 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 receiver module 912, in distribution in client 40.
Group's message stores inquiry system in social networks stores in the process of group's message:
Group's message that group's message reception module 702 sends for receiving client 40.
Group number and content extraction module 704 are for extracting group number and the message content of group message, and sequence number generation module 706 is for generating the message SN of group message.
Message storage module 708 for by the group of group's message number, message SN and message content corresponding stored in the tables of data of group's message database.
Module 710 sets up tables of data index according to group number and message SN set up in index, and by the index stores set up in group's message database.
Message transmission module 1202 refines server 20 for the message content of group's message and message SN being sent to attribute.
Attribute refines module 712 for refining the message attributes of group's message according to the message content of group's message.
Key-value pair sets up module 1204 for being key with the group of group's message number with message attributes, forming key-value pair with the message SN of group's message for being worth.
Encrypting module 1206 is for being encrypted key-value pair.
Key-value pair sending module 1208 is for being sent to search platform 30 by the key-value pair after encryption.
Attribute corresponding relation building module 714 is for storing the key-value pair received.
In the process of the group's message stores inquiry system inquiry group message in social networks:
Display module 902 is for showing message attributes input control, message attributes acquisition module 904 is for obtaining the message attributes of input by message attributes input control, command reception module 906 inquires about the instruction of group's message in designated group according to message attributes for receiving, request package module 908 is for encapsulating information query request in groups by the group of designated group number with message attributes.
Request sending module 910 refines server 20 for sending group information query request to attribute.
Request receiving module 1002 is for receiving group information query request, and inquiry request comprises group number and the message attributes of group's message to be checked.
Encrypting module 1206 is also for being encrypted the group of group's message to be checked number with message attributes according to the mode be encrypted by key-value pair.
Key sending module 1210 is for sending to search platform 30 by the group of the group's message to be checked after encryption number with message attributes.
Sequence number searches module 1004 in the key-value pair that forms in the group that prestores number and message attributes and message SN, with the group of group's message to be checked number and message attributes for key searches corresponding message SN, obtain the message SN of group's message to be checked.
Sequence number sending module 1212 refines server 20 for the message SN of group's message to be checked being sent to attribute.
Deciphering module 1214 is for being decrypted the message SN of group's message to be checked according to the decryption method symmetrical with encryption method.
Memory address search module 1006 in group's message database for store the group number of group message, message SN and message content tables of data index in, group number according to group's message to be checked searches corresponding memory address with message SN, message content read module 1008 reads message content for the memory address according to correspondence, obtains group Query Result that information query request is corresponding.
Query Result returns module 1216 for Query Result corresponding for the request of group's information query is returned to client 40.
Query Result receiver module 912 refines Query Result corresponding to group's information query request of returning of server for receiving attribute.
Display module 902 is also for showing the message content that Query Result comprises.
In the present embodiment, the key-value pair that group number and message attributes and message SN are formed is stored separately in search platform, separate with the message data be stored in group message database and store, and search message SN and search message content according to group number with message SN to have been come by the attribute refinement server and search platform with independent processing ability respectively with message attributes according to group number, thus query processing speed can be accelerated; And be stored in key-value pair that group in search platform number and message attributes and message SN formed and be through encryption, can effectively reduce information leakage risk, raising information security.
Group's message stores method and system in above-mentioned social networks, not only generate the message SN of group's message, by the group number of group's message, message SN and message content corresponding stored are in tables of data, the index of this tables of data is set up according to group number and message SN, also refine the message attributes of group's message, set up the group number of group's message, the corresponding relation of message attributes and message SN, thus make when inquiring about group's message, corresponding message SN can be searched with message attributes according to the group of group's message to be checked number, in the index of tables of data, corresponding memory address is searched with message SN further according to group number, corresponding group's message is obtained according to memory address, search in the process of corresponding message SN according to group number with message attributes, the group of group's message to be checked number is only needed to mate with message attributes with the group number of storage with message attributes, and do not need key word of the inquiry and entire message body matter to be carried out search and mate to judge whether key word of the inquiry is contained in message, thus can inquiry velocity be accelerated, and to search corresponding memory address in the index according to group number and message SN and obtain corresponding group's message according to memory address be also fastish process, therefore, group's message stores method and system in above-mentioned social networks stores the mode of group's message, the speed of inquiring about group's message can be made to be greatly improved.
Group's message query method in above-mentioned social networks client and the group's information query client in social networks, the message attributes of input is obtained by message attributes input control, group number is encapsulated information query request in groups with message attributes and is sent to server, make server can search group message according to group number with message attributes, relative to search coupling keyword to be checked in the entire message body matter of all records of tables of data, the speed finding target message can be improved.
Group's message query method in above-mentioned social networking service device and the group's message query server in social networks, group number according to group's message to be checked searches corresponding message SN with message attributes, in the index of tables of data, corresponding memory address is searched with message SN further according to group number, corresponding group's message is obtained according to memory address, search in the process of corresponding message SN according to group number with message attributes, the group of group's message to be checked number is only needed to mate with message attributes with the group number of storage with message attributes, and do not need key word of the inquiry and entire message body matter to be carried out search and mate to judge whether key word of the inquiry is contained in message, thus can inquiry velocity be accelerated, and to search corresponding memory address in the index according to group number and message SN and obtain corresponding group's message according to memory address be also fastish process, therefore, the speed of inquiring about group's message can be made to be greatly improved.
In like manner, the mode of the group's message stores querying method in above-mentioned social networks and the storage of system and inquiry group message, can make the speed of inquiring about group's message be greatly improved.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, as in the embodiment of the present invention, this program can be stored in the storage medium of computer system, and performed by least one processor in this computer system, to realize the flow process of the embodiment comprised as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (28)

1. the group's message stores method in social networks, comprises the following steps:
Receive group's message;
Extract group number and the message content of described group's message, generate the message SN of described group's message;
By the group of described group's message number, message SN and message content corresponding stored in tables of data;
The index of described tables of data is set up according to described group number and message SN;
The message attributes of described group's message is refined according to described message content;
Set up the corresponding relation of the group number of described group's message, message attributes and message SN.
2. the group's message stores method in social networks according to claim 1, is characterized in that, described message attributes comprises at least one in comprised popular words, type feature and sender of the message's mark.
3. the group's message stores method in social networks according to claim 2, is characterized in that, the step of refining the popular words that described group's message comprises according to described message content comprises:
The words comprised according to the popular character word stock prestored extracts the popular words in the body matter of described message content.
4. the group's message stores method in social networks according to claim 3, it is characterized in that, described method also comprises:
Words frequency of occurrence in statistics named web page content;
The words that acquisition frequency of occurrence exceedes threshold value is popular words;
Store described popular words to database to set up popular character word stock.
5. the group's message stores method in social networks according to claim 2, is characterized in that, at least one step during the step of refining the type feature of described group's message according to described message content comprises the following steps:
Judge the time type belonging to described group's message according to the transmitting time in described message content, the time type belonging to described group's message is added to the type feature of described group's message;
The group members classification corresponding according to the sender of the message's information in described message content judges the sender's categories class belonging to described group's message, the sender's categories class belonging to described group's message is added to the type feature of described group's message;
The group members grade corresponding according to the sender of the message's information in described message content judges the sender's rating-type belonging to described group's message, the sender's rating-type belonging to described group's message is added to the type feature of described group's message;
Judge whether the body matter in described message content comprises picture, if so, then picture relevant information is added to the type feature of described group's message;
Judge whether the body matter in described message content comprises link, if so, then link relevant information is added to the type feature of described group's message;
Judge the text length type belonging to described group's message according to the number of words of the body matter in described message content or number of characters, the text length type belonging to described group's message is added to the type feature of described group's message;
Judge whether described group's message belongs to system message according to the body matter in described message content, if so, then system message relevant information is added to the type feature of described group's message.
6. the group's message stores method in social networks according to claim 1, it is characterized in that, in the corresponding relation of the group of described foundation number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively.
7. the group's message query method in social networks client, comprises the following steps:
Display message attributes input control;
The message attributes of input is obtained by message attributes input control;
Receive the instruction inquiring about group's message according to described message attributes in designated group;
The group of described designated group number is encapsulated information query request in groups with described message attributes;
Send the request of described group's information query to server;
The Query Result that described group's information query request that reception server returns is corresponding;
Show the message content that described Query Result comprises.
8. the group's message query method in social networks client according to claim 7, it is characterized in that, described message attributes input control comprises at least one in key word of the inquiry input control, type of message selection control and sender of the message's information input control;
The words that described key word of the inquiry input control comprises for inputting group's message to be checked;
Described type of message selects control for selecting the type feature of group's message to be checked;
Described sender of the message's information input control is for inputting sender of the message's information of group's message to be checked.
9. the group's message query method in social networks client according to claim 8, is characterized in that, described type of message selection control comprises at least one in following control:
For selecting the control of the time type belonging to group's message to be checked, for selecting the control of the sender's categories class belonging to group's message to be checked, for selecting the control of the sender's rating-type belonging to group's message to be checked, for selecting the control of the picture relevant information of group's message to be checked, for selecting the control of the link relevant information of group's message to be checked, for selecting the control of the text length type belonging to group's message to be checked and for selecting the control of the system message relevant information of group's message to be checked.
10. the group's message query method in social networking service device, comprises the following steps:
Receive the request of group information query, described inquiry request comprises group number and the message attributes of group's message to be checked;
In the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN, search the group number of group's message to be checked and message SN corresponding to message attributes, obtain the message SN of described group's message to be checked;
Set up in advance for store the group number of group message, message SN and message content tables of data index in, search corresponding memory address according to the group number of described group's message to be checked and message SN;
Memory address according to correspondence reads message content, obtains Query Result.
Group's message stores method in 11. social networking service devices according to claim 10, it is characterized in that, described message attributes comprises:
At least one in words, the type feature of group's message and the sender information of group's message that group's message comprises.
Group's message stores method in 12. social networking service devices according to claim 11, it is characterized in that, described type feature comprises at least one in following characteristics:
The system message relevant information of the picture relevant information of the time type of group belonging to message, the sender's categories class belonging to group's message, sender's rating-type belonging to group's message, group's message, the link relevant information of group's message, the text length type belonging to group's message and group's message.
Group's message query method in 13. social networking service devices according to right 10, it is characterized in that, in the corresponding relation of described group number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively;
The step of searching group that inquiry request comprises number and message SN corresponding to message attributes in the corresponding relation of the group of described group's message setting up in advance number, message attributes and message SN comprises:
Partner each message attributes of the group of described group's message to be checked number and described group's message to be checked keyword;
The message SN that described in every a pair, keyword is corresponding is searched in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN;
Obtain the common factor of the message SN that keyword is corresponding described in every a pair, obtain the message SN of described group's message to be checked.
Group's message stores querying method in 14. 1 kinds of social networks, comprises the step in the group's message query method in the group's message stores method in the arbitrary described social networks of claim 1 to 6, the arbitrary described social networks client of claim 7 to 9 and the group's message query method in the arbitrary described social networking service device of claim 10 to 14.
Group's message stores system in 15. 1 kinds of social networks, is characterized in that, comprising:
Group's message reception module, for receiving group message;
Group number and content extraction module, for extracting group number and the message content of described group's message;
Sequence number generation module, for generating the message SN of described group's message;
Message storage module, for by the group of described group's message number, message SN and message content corresponding stored in tables of data;
Module set up in index, for setting up the index of described tables of data according to described group number and message SN;
Attribute refines module, for refining the message attributes of described group's message according to described message content;
Attribute corresponding relation building module, for setting up the corresponding relation of the group number of described group's message, message attributes and message SN.
Group's message stores system in 16. social networks according to claim 15, is characterized in that, described attribute refines module and comprises at least one following module:
Popular words extraction module, for extracting the popular words that described group's message comprises according to described message content;
Type feature refines module, for refining the type feature of described group's message according to described message content;
Sender's marker extraction module, for extracting sender's mark of described group's message according to described message content.
Group's message stores system in 17. social networks according to claim 16, it is characterized in that, the words that described popular words extraction module is used for comprising according to the popular character word stock prestored extracts the popular words in the body matter of described message content.
Group's message stores system in 18. social networks according to claim 17, it is characterized in that, described system also comprises popular character word stock and sets up module, words frequency of occurrence in statistics named web page content, the words that acquisition frequency of occurrence exceedes threshold value is popular words, and stores described popular words to database to set up popular character word stock.
Group's message stores system in 19. social networks according to claim 16, is characterized in that, described type feature refines module and comprises at least one following module:
Time type refines module, for judging the time type belonging to described group's message according to the transmitting time in described message content, the time type belonging to described group's message is added to the type feature of described group's message;
Sender's categories class refines module, judge the sender's categories class belonging to described group's message for the group members classification corresponding according to the sender of the message's information in described message content, the sender's categories class belonging to described group's message is added to the type feature of described group's message;
Sender's rating-type refines module, judge the sender's rating-type belonging to described group's message for the group members grade corresponding according to the sender of the message's information in described message content, the sender's rating-type belonging to described group's message is added to the type feature of described group's message;
Pictorial information refines module, for judging whether the body matter in described message content comprises picture, if so, then picture relevant information is added to the type feature of described group's message;
Link information refines module, for judging whether the body matter in described message content comprises link, if so, then link relevant information is added to the type feature of described group's message;
Text length type refines module, for judging the text length type belonging to described group's message according to the number of words of the body matter in described message content or number of characters, the text length type belonging to described group's message is added to the type feature of described group's message;
System message information abstraction module, for judging according to the body matter in described message content whether described group's message belongs to system message, if so, then system message relevant information is added to the type feature of described group's message.
Group's message stores system in 20. social networks according to claim 15, it is characterized in that, in the corresponding relation of the group of described foundation number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively.
Group's information query client in 21. 1 kinds of social networks, is characterized in that, comprising:
Display module, for showing message attributes input control;
Message attributes acquisition module, for obtaining the message attributes of input by message attributes input control;
Command reception module, for receiving the instruction inquiring about group's message according to described message attributes in designated group;
Request package module, for encapsulating information query request in groups by the group of described designated group number with described message attributes;
Request sending module, for sending the request of described group's information query to server;
Query Result receiver module, the Query Result that the described group's information query request returned for reception server is corresponding;
Described display module is also for showing the message content that described Query Result comprises.
Group's information query client in 22. social networks according to claim 21, it is characterized in that, described message attributes input control comprises at least one in key word of the inquiry input control, type of message selection control and sender of the message's information input control;
The words that described key word of the inquiry input control comprises for inputting group's message to be checked;
Described type of message selects control for selecting the type feature of group's message to be checked;
Described sender of the message's information input control is for inputting sender of the message's information of group's message to be checked.
Group's information query client in 23. social networks according to claim 22, is characterized in that, described type of message selection control comprises at least one in following control:
For selecting the control of the time type belonging to group's message to be checked, for selecting the control of the sender's categories class belonging to group's message to be checked, for selecting the control of the sender's rating-type belonging to group's message to be checked, for selecting the control of the picture relevant information of group's message to be checked, for selecting the control of the link relevant information of group's message to be checked, for selecting the control of the text length type belonging to group's message to be checked and for selecting the control of the system message relevant information of group's message to be checked.
Group's message query server in 24. 1 kinds of social networks, is characterized in that, comprising:
Request receiving module, for receiving group information query request, described inquiry request comprises group number and the message attributes of group's message to be checked;
Sequence number searches module, for the message SN that the group number and message attributes that search group's message to be checked in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN are corresponding, obtain the message SN of described group's message to be checked;
Memory address searches module, for set up in advance for store the group number of group message, message SN and message content tables of data index in, search corresponding memory address according to the group number of described group's message to be checked and message SN;
Message content read module, reads message content for the memory address according to correspondence, obtains Query Result.
Group's message query server in 25. social networks according to claim 24, is characterized in that, described message attributes comprises:
At least one in words, the type feature of group's message and the sender information of group's message that group's message comprises.
Group's message query server in 26. social networks according to claim 25, it is characterized in that, described type feature comprises at least one in following characteristics: the system message relevant information of the picture relevant information of the time type belonging to group's message, the sender's categories class belonging to group's message, sender's rating-type belonging to group's message, group's message, the link relevant information of group's message, the text length type belonging to group's message and group's message.
Group's message query method in 27. social networking service devices according to right 24, it is characterized in that, in the corresponding relation of described group number, message attributes and message SN, each message attributes of the group of group's message number and message SN and this group's message forms one group of corresponding relation respectively;
Described sequence number is searched module and is comprised:
Keyword to component units, for keyword that each message attributes of the group of described group's message to be checked number and described group's message to be checked is partnered;
Sequence number searches unit, for searching the message SN that described in every a pair, keyword is corresponding in the corresponding relation of the group number of the group's message set up in advance, message attributes and message SN;
Common factor acquiring unit, for obtaining the common factor of the message SN that keyword is corresponding described in every a pair, obtains the message SN of described group's message to be checked.
Group's message stores inquiry system in 28. 1 kinds of social networks, it is characterized in that, comprise the group's message stores system described in any one of claim 15 to 20, the group's information query client described in any one of claim 21 to 23 and the group's information query system described in any one of claim 24 to 27.
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 true CN105024906A (en) 2015-11-04
CN105024906B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447162A (en) * 2015-12-01 2016-03-30 腾讯科技(深圳)有限公司 Group file search method and apparatus
CN106919635A (en) * 2016-06-13 2017-07-04 阿里巴巴集团控股有限公司 A kind of group chat record queries method, device and electronic equipment
CN107844488A (en) * 2016-09-18 2018-03-27 北京京东尚科信息技术有限公司 Data query method and apparatus
CN108880972A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of 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
CN115757432A (en) * 2022-12-07 2023-03-07 北京天融信网络安全技术有限公司 Service data storage method, device, electronic device and storage medium
CN119576854A (en) * 2024-11-05 2025-03-07 浪潮卓数大数据产业发展有限公司 A method for automatically archiving and managing group messages

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059222A1 (en) * 2000-10-31 2002-05-16 Kouichi Sasaki Information management method and information management device
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 腾讯科技(深圳)有限公司 A management method and device for instant messaging session records
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059222A1 (en) * 2000-10-31 2002-05-16 Kouichi Sasaki Information management method and information management device
CN101119326A (en) * 2006-08-04 2008-02-06 腾讯科技(深圳)有限公司 A management method and device for instant messaging session records
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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447162A (en) * 2015-12-01 2016-03-30 腾讯科技(深圳)有限公司 Group file search method and apparatus
CN106919635A (en) * 2016-06-13 2017-07-04 阿里巴巴集团控股有限公司 A kind of group chat record queries method, device and electronic equipment
CN107844488A (en) * 2016-09-18 2018-03-27 北京京东尚科信息技术有限公司 Data query method and apparatus
CN108880972A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
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
WO2020187012A1 (en) * 2019-03-15 2020-09-24 钉钉控股(开曼)有限公司 Communication method, apparatus and device, and group creation method, apparatus and device
CN115757432A (en) * 2022-12-07 2023-03-07 北京天融信网络安全技术有限公司 Service data storage method, device, electronic device and storage medium
CN119576854A (en) * 2024-11-05 2025-03-07 浪潮卓数大数据产业发展有限公司 A method for automatically archiving and managing group messages

Also Published As

Publication number Publication date
CN105024906B (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN105024906A (en) SNS (social networking services) group message storing, inquiring methods and systems
KR102052520B1 (en) A node and a communication method for supporting content mobility in a content centric network
CN103997507B (en) A kind of method for pushing and device of information
WO2019028026A1 (en) A secure and confidential custodial transaction system, method and device using zero-knowledge protocol
WO2018141224A1 (en) Group message read-status display method, instant messaging client, and server
CN101572607A (en) Method for processing authentication request message in social network and device thereof
CN104580179B (en) A kind of message treatment method, device and server
CN101572606A (en) Method for sending authentication request message in social network and device thereof
CN102186164A (en) Method and management device for operating device resource
CN106850392A (en) Message treatment method and device, message receival method and device
CN102473227A (en) Information management apparatus, information management method, and information management program
KR102290605B1 (en) Message transmission system, communication terminal, server device, message transmission method and program
JP2017525321A (en) Method for providing communication service between mobile terminals using short-range wireless device
CN106973075A (en) Share comment method and system, domain name code-transferring method, client and server
KR101329034B1 (en) System and method for collecting url information using retrieval service of social network service
CN116383246A (en) Combined query method and device
US20090044006A1 (en) System for blocking spam mail and method of the same
US10506288B2 (en) DRM addition authentication
CN101572614A (en) Method for processing authentication request message in social network and device thereof
Chen et al. CRFID: An RFID system with a cloud database as a back-end server
CN105871921B (en) A kind of data processing method and device
US10574629B2 (en) Header translation modification
CN106161186A (en) Instant communication method and device
CN105490913B (en) Instant message processing method and device
CN104052654A (en) Method and system for achieving chatting online

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

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.

TR01 Transfer of patent right