Embodiment
Below in conjunction with accompanying drawing, the embodiment of rendering method, device and the terminal of the communication information Search Results that the embodiment of the present invention is provided is described in detail.
In the embodiment of the present invention, the communication information that receives and send to same contact person is organized in same contact person's session, and storing contact list and interior each contact person's of this contacts list session; Wherein, the communication information in session can sort according to the time of its reception or transmission, guarantee the session internal sort the preceding the time of the communication information to be later than sequence after time of the communication information, make the communication information that receives at last or send come the foremost of session; Can sort according to the update time of session between session, to be later than the update time of the session the preceding that guarantees to sort sequence after update time of session, make the session sequence of final updating up front; Wherein, be the time that receive at last in this session or communication information transmission the update time of session.
Lifting along with the terminal device storage capacity, it is even more that the storable communication information of terminal device can reach hundred, thousand, so, in order to guarantee that the user can effectively search the session with certain contact person rapidly from terminal device, perhaps search certain communication information in session, the technical program provides a kind of rendering method of communication information Search Results, referring to Fig. 2, can specifically comprise following operation steps:
Step 101: terminal device receives the search instruction that includes search key;
Step 102: search comprises the contact person of key word in the contacts list of storage, and the contact person's that searches session is sorted;
Step 103: search comprises the communication information of key word in each contact person's who stores session, and the communication information that searches is carried out packet sequencing according to the contact person under it;
Step 104: the session of the contact person who searches after sorting and the communication information that searches after packet sequencing show.
In the embodiment of the present invention, execution in step 102 and 103 successively, also execution in step 102 and 103 simultaneously, this example does not carry out too much restriction to the execution sequence of step 102 and 103.
In the embodiment of the present invention, the implementation that the contact person's that searches session is sorted can comprise:
The contact person's that searches session is sorted according to one or more in update time, search matching degree and the conversation type of session.
In the embodiment of the present invention, the search matching degree refers to comprise the contact person of key word and the matching degree between key word, when comprising search key fully as contact person's information, searching for matching degree is 100%, contact person's information only comprises when closing in search key 50% information, and search is paired into 50%, when contact person's information only comprises in search key 70% information, searching for matching degree is 70%, the like.
In the embodiment of the present invention, conversation type refers to the attribute of this communication information, is text message, pictorial information or video information etc. as this communication information.
The embodiment of the present invention shows that the session of the contact person who searches after sorting can comprise when specific implementation:
The session internal sort of the contact person who searches after the demonstration sequence is the individual communication information of the first predetermined value the preceding.Mainly the restricted problem of considering the terminal display size, preferred contact person session internal sort the first predetermined value communication information the preceding that shows, wherein, the first predetermined value has software setting or user according to selecting label to select the number of the communication information of the preferential demonstration of institute in session from main separation.
In addition, the embodiment of the present invention can provide to the user selection label of " showing more " when specific implementation, when the user touches the selection label that this " shows more ", can show the more communication information in the contact person who searches.
In the embodiment of the present invention, the communication information that searches is carried out packet sequencing according to the contact person under it can comprise following operation:
Carry out related with the contact person's at its place session the communication information that searches respectively, obtain the characteristic parameter of the communication information that searches, wherein, described characteristic parameter comprises transmission or the time that receives, the numbering of place session and the update time of place session;
According to the characteristic parameter that obtains, the communication information that searches is carried out packet sequencing.
In this example, according to the characteristic parameter that obtains, the communication information that searches is carried out packet sequencing and can realize in the following way:
The communication information that searches is sorted by the update time of its place session respectively, the communication information identical for the update time of place session sorts by the numbering of its place session, for the numbering of update time of place session and place session all the identical communication information sort by its transmission or time of receiving.
In this example, with the communication information that searches after packet sequencing show can for: show the contact person under each grouping, and the internal sort communication information of the second predetermined value the preceding of respectively dividing into groups.
This example is considered the restricted problem of terminal display size, the preferred demonstration internal sort communication information of the second predetermined value the preceding of respectively dividing into groups, wherein, the second predetermined value has software setting or user according to selecting label to select the divide into groups number of the preferential demonstration of interior institute of same contact person from main separation.In addition, the embodiment of the present invention can provide to the user selection label of " showing more " when specific implementation, when the user touches the selection label that this " shows more ", can show contact person's interior more communication information of dividing into groups.
This example shows the contact person under each grouping when specific implementation, and respectively divide into groups internal sort the preceding the communication information of the second predetermined value can comprise:
After judging successively in the communication information that searches after packet sequencing, whether the numbering of a communication information place session is identical with the numbering of last communication information place session;
When the numbering of the numbering of a rear call-information place session and the place session of the last communication information is identical, the counter of the communication information that the numbering of counting place session is identical adds 1, the whether operation identical with the numbering of last communication information place session of the numbering of a communication information place session after returning in the communication information that searches after execution judges packet sequencing successively is until the end simultaneously of the numbering of the numbering of a rear communication information place session and the place session of the last communication information;
when after the numbering of a communication information place session and the place session of the last communication information numbering not simultaneously, add up the number of the identical communication information of the numbering of current place session, when if the number that counts is not more than the second predetermined value, show a described rear contact person corresponding to call-information place session, show simultaneously all identical communication informations of current place numbering, if the number that counts is during greater than the second predetermined value, show described after when contact person corresponding to a communication information place session, show identical front the second predetermined value communication information of current place numbering, afterwards, with counter O reset, the whether operation identical with the numbering of last communication information place session of the numbering of a communication information place session after returning in the described communication information after execution judges packet sequencing successively is until last communication information in the described communication information after packet sequencing is traversed rear end operation.
In the embodiment of the present invention, communication information place session be numbered the numbering of contact person corresponding to this session in the address list of this locality storage, the demonstration that is used to indicate contact person corresponding to this session is successively sorted, and for example, numbers little sequence front.
The described communication information of this example can be SMS (short message service), Email E-mail or instant communication message etc.
In the embodiment of the present invention, when receiving the search instruction that comprises search key, search comprises the contact person of search key in the contacts list of storage, with the contact person's that searches the session rear demonstration of sorting, with the demand of the scene of the session of satisfying certain contact person of user search; Search comprises the communication information of search key in session corresponding to each contact person of storage, the communication information that searches is carried out showing after packet sequencing according to the contact person under it, so that the communication information that searches is integrated and is shown, the presentation mode that overcomes present communication information Search Results is inorganizable, shows mixed and disorderly problem.In addition, the embodiment of the present invention, sequencing display is carried out in the contact person's who comprises key word that will search respectively session, and will search for to the communication information carry out showing after packet sequencing according to the contact person under it, effectively the Search Results of differential display is contact person's session or contact person's the communication information.
Below will be take the communication information as SMS (short message service) describe the rendering method of the communication information Search Results that the embodiment of the present invention provided in detail as example, and the presentation mode of the presentation mode of the Search Results when the communication information is E-mail or instant communication message and the communication information Search Results when being SMS (short message service) is similar, and this example just repeats no more.
In this example, will receive and send in advance same contact person's short message to be organized in same contact person's session, and storing contact list and interior each contact person's of this contacts list session.For example, referring to Fig. 3, have 5 short messages in the session of contact person Zhang Zhou, have 3 short messages in contact person Li Si's session, 4 short messages are arranged in the session that contact person divine boat hires a car, have 5 short messages in the session of contact person A Lan, wherein, each short message in contact person's session sorts according to its transmission and the time order and function that receives, guarantee the session internal sort the preceding the time of short message to be later than sequence after short message; In this example, sort the update time according to session between contact person's session, the session sequence of contact person A Lan is in the front of contact person Zhang Zhou, and the session of contact person Zhang Zhou is sorted in the front of Li Si's session, the session front that Li Si's session sequence is hired a car in divine boat.
Enhancing along with the mobile phone storage capacity, it is even more that the short message that mobile phone adopts above-mentioned storage mode to preserve can reach hundred, thousand, the present embodiment is in order to guarantee that the user can be from a large amount of short message of storage, search out fast and effectively required session (searching the session with certain contact person), perhaps search out certain short message, this example provides a kind of rendering method of SMS (short message service) Search Results, the terminal device of carrying out the method can be specifically mobile phone, as shown in Figure 4, specifically can comprise the following steps:
Step 201: receive the search instruction that comprises search key;
In this example, the user can select " search " option in the menu option that mobile phone provides or in icon options, and in the search input interface that mobile phone shows the inputted search key word, to issue search instruction, for example, user's inputted search key word Shenzhou in the search input interface.
Step 202: search comprises the contact person of key word in the contacts list of storage;
Continue to use the storage example of short message shown in Figure 3, searching for so the contact person who comprises Shenzhou in the contacts list of storage has " Zhang Zhou " to reach " divine boat hires a car ".
Step 203: extract the contact person's who searches session in each contact person's the session of storage, and the contact person's that searches session is sorted;
In this example, the contact person's that searches session is sorted and can be comprised:
The contact person's that searches session is sorted according to one or more in update time, search matching degree and the conversation type of session;
Still continue to use example, referring to Fig. 5, in each contact person's who stores session, the contact person is opened the session that boat and divine boat hire a car to be extracted, if according to sorting the update time of session, the session of contact person Zhang Zhou will come the front of the session that contact person divine boat hires a car with the contact person's that searches session;
Step 204: search comprises the short message of key word in each contact person's who stores session;
Still continue to use example, referring to Fig. 3, search comprises the short message of Shenzhou in the session of the contact person Li Si who stores and A Lan, can search in contact person Li Si's session 2 short messages that comprise Shenzhou are arranged, be short message 1 and the short message 2 in Fig. 3,3 short messages that comprise Shenzhou are arranged, i.e. short message in Fig. 33,4 and 5 in the session of contact person A Lan.
Afterwards, this example carries out packet sequencing with the short message that searches according to the contact person under it, and this example can comprise following operation when specific implementation:
Step 205-1: carry out related with the contact person's at its place session the short message that searches out respectively, obtain the characteristic parameter of the short message that searches out, wherein, described characteristic parameter comprises transmission or the time that receives, the numbering of place session and the update time of place session;
Wherein, the numbering of relevant place session and the detailed description of the update time of place session see also above-mentioned relevant description, just repeat no more herein.
Still adopt upper example, when the short message 1,2 that for example searches is associated with in contact person Li Si's session, the transmitting time that obtains short message 1 is at 12 o'clock 2012.12.31 day, the numbering that to be numbered 13(be also Li Si in the local communication record of place session), be 2013.1.1 day (being also the time of reception of the short message 3 that receives at last of contact person Li Si) update time of place session; The time of reception of short message 2 is at 12: 05 2012.12.31 day, the numbering that to be numbered 13(be also Li Si in the local communication record of place session), be 2013.1.1 day (being also the time of reception of the short message 3 that receives at last of contact person Li Si) update time of place session;
When the short message 3,4 and 5 that searches is associated with the session A Lannei at place, the transmitting time that obtains short message 3 is at 12 o'clock 2013.1.7 day, the numbering that to be numbered 5(be also A Lan in the local communication record of place session), be 2013.1.8 day (being also the transmitting time of the short message 5 that sends at last of contact person A Lan) update time of place session; The time of reception of short message 4 is at 12: 05 2013.1.7 day, the numbering that to be numbered 5(be also A Lan in the local communication record of place session), be 2013.1.8 day (being also the transmitting time of the short message 5 that sends at last of contact person A Lan) update time of place session; The transmitting time of short message 5 is 2013.1.8 day, the numbering that to be numbered 5(be also A Lan in the local communication record of place session), be 2013.1.8 day (being also the transmitting time of the short message 5 that sends at last of contact person A Lan) update time of place session;
Step 205-2: the short message that searches out is carried out packet sequencing according to the characteristic parameter that obtains;
During this step specific implementation, the short message that searches out is sorted by the update time of its place session respectively, the short message identical for the update time of place session sorts by the numbering of its place session, for the numbering of update time of place session and place session all identical short message sort by its transmission or time of receiving.
Still continue to use example, referring to Fig. 5, after sorting according to above-mentioned ordering rule, the sequence of the short message that searches is: short message 5,4,3,2 and 1.
Step 206: the described communication information after the session of the described contact person after sorting and packet sequencing shows;
In this example, described contact person's the session after sequence is shown to be: the session internal sort that shows the contact person after the sequence short message of the first predetermined value the preceding; Here, consider the restricted problem of mobile phone display screen curtain size, preferably show the contact person session internal sort individual short message of the first predetermined value the preceding, wherein, described the first predetermined value has software setting or user according to selecting label to select from main separation.
The detailed description of the update time of relevant session, search matching degree and conversation type can referring to above-mentioned relevant description, just repeat no more herein.
Still continue to use example, referring to Fig. 5, if the first above-mentioned predetermined value is made as 3, all show sequence 3 short messages the preceding in the session that session of contact person Zhang Zhou and contact person divine boat hire a car.
In this example, the short message that searches after packet sequencing is shown,
Be specifically as follows: the contact person under each grouping of demonstration, and the internal sort individual short message of the second predetermined value the preceding that respectively divides into groups;
In the present embodiment, this example is considered the restricted problem of mobile phone display screen curtain size, the preferred demonstration internal sort short message of the second predetermined value the preceding that respectively divides into groups, and wherein, the second predetermined value has software setting or user according to selecting label to select from main separation.In addition, the embodiment of the present invention can provide to the user selection label of " showing more " when specific implementation, when the user touches the selection label that this " shows more ", can show contact person's interior more short message that divides into groups.
During this step specific implementation, judge successively in the short message after packet sequencing after the numbering of a short message place session whether identical with the numbering of last short message place session;
When the numbering of the numbering of a rear call-information place session and the place session of last short message is identical, the counter of the short message that the numbering of counting place session is identical adds 1, the whether operation identical with the numbering of last short message place session of the numbering of a short message place session after returning in the described short message after execution judges packet sequencing successively is until the end simultaneously of numbering of the numbering of a short message place session and described last short message place session after described;
the numbering of the numbering of a short message place session and described last short message place session is not simultaneously after described, add up the number of the identical short message of the numbering of current place session, when if the number that counts is not more than the second predetermined value, show a described rear contact person corresponding to call-information place session, show simultaneously all identical short messages of current place numbering, if the number that counts is during greater than the second predetermined value, show described after when contact person corresponding to a short message place session, show identical front the second predetermined value short message of current place numbering, afterwards, with counter O reset, the whether operation identical with the numbering of last short message place session of the numbering of a short message place session after returning in the described short message after execution judges packet sequencing successively is until last short message in the described short message after packet sequencing is traversed rear end operation.
Still continue to use example, according to above-mentioned packet sequencing mode, short message 1 and 2 after sorting is grouped under contact person Li Si, and the sequence under contact person A Lan is short message 2 and 1, short message 3,4 and 5 is grouped under A Lan, and the sequence under contact person A Lan is short message 5,4 and 3; If above-mentioned the second predetermined value is made as 2, according to above-mentioned demonstration rule, referring to Fig. 5, the final short message that searches that shows is successively: the short message 5 and 4 under contact person A Lan, and the short message 2 and 1 under contact person Li Si.
The first predetermined value described in above embodiment and the second predetermined value can be set to identical value simultaneously, also can be set to simultaneously different values, and this example is not done restriction to this.
In the embodiment of the present invention, when receiving the search instruction that comprises search key, search comprises the contact person of search key in the contacts list of storage, with the contact person's that searches the session rear demonstration of sorting, with the demand of the scene of the session of satisfying certain contact person of user search; Search comprises the communication information of search key in session corresponding to each contact person of storage, the communication information that searches is carried out showing after packet sequencing according to the contact person under it, so that the communication information that searches is integrated and is shown, the presentation mode that overcomes present communication information Search Results is inorganizable, shows mixed and disorderly problem.In addition, the embodiment of the present invention, sequencing display is carried out in the contact person's who comprises key word that will search respectively session, and will search for to the communication information carry out showing after packet sequencing according to the contact person under it, effectively the Search Results of differential display is contact person's session or contact person's the communication information.
Based on same inventive concept, what the embodiment of the present invention also provided a kind of communication information Search Results presents device and terminal, because the principle that this device and terminal are dealt with problems is similar to the rendering method of aforementioned a kind of communication information Search Results, therefore the enforcement of this device and terminal can referring to the enforcement of method, repeat part and repeat no more.
A kind of communication information Search Results that the embodiment of the present invention provides present device, as shown in Figure 6, comprising:
Memory module 301 is organized same contact person's session for the communication information that will receive and send in advance same contact person, and storing contact list and interior each contact person's of this contacts list session;
Receiver module 302 is used for receiving the search instruction that comprises search key;
The first search module 303 is used for comprising in the contacts list search of storage the contact person of key word, and the contact person's that searches session is sorted;
The second search module 304 for comprise the communication information of key word in each contact person's who stores session search, carries out packet sequencing with the communication information that searches according to the contact person under it;
Display module 305, the session of the contact person who searches out after being used for sorting and the communication information that searches out after packet sequencing show.
In the embodiment of the present invention, the first search module 303, the session that specifically can be used for the contact person that will search is sorted according to one or more of update time, search matching degree and the conversation type of session.
Referring to Fig. 7, in the embodiment of the present invention, the second search module 304 comprises:
Information acquisition unit 3041, being used for the communication information that will search carries out related with the contact person's at its place session respectively, obtain the characteristic parameter of the communication information that searches, wherein, described characteristic parameter comprises transmission or the time that receives, the numbering of place session and the update time of place session;
Packet sequencing unit 3042 is used for according to the characteristic parameter that obtains, the communication information that searches being carried out packet sequencing.
This example is when specific implementation, packet sequencing unit 3042, specifically can be used for the communication information that searches is sorted by the update time of its place session respectively, the communication information identical for the update time of place session sorts by the numbering of its place session, for the numbering of update time of place session and place session all the identical communication information sort by its transmission or time of receiving.
In this example, referring to Fig. 7, display module 305 comprises:
The first display unit 3051, the session internal sort of the contact person who searches out after sorting for demonstration is the individual communication information of the first predetermined value the preceding;
The second display unit 3052 specifically can be used for the affiliated contact person of each grouping of demonstration, and the internal sort individual communication information of the second predetermined value the preceding of respectively dividing into groups.
Preferably, when this example was realized in specific implementation, the second display unit 3052 can comprise:
Judgment sub-unit is used for judging successively whether the numbering of a communication information place session is identical with the numbering of last communication information place session after the communication information that searches after packet sequencing;
First controls performance element, be used for numbering when the numbering of a rear call-information place session and the place session of the last communication information when identical, the counter of the communication information that the numbering of counting place session is identical adds 1, return to the operation of carrying out described judgment sub-unit, until the numbering of the numbering of a rear communication information place session and the place session of the last communication information does not finish simultaneously;
second controls performance element, be used for when after the numbering of a communication information place session and the place session of the last communication information numbering not simultaneously, add up the number of the identical communication information of the numbering of current place session, when if the number that counts is not more than the second predetermined value, show a described rear contact person corresponding to call-information place session, show simultaneously all identical communication informations of current place numbering, if the number that counts is during greater than the second predetermined value, show described after when contact person corresponding to a communication information place session, show identical front the second predetermined value communication information of current place numbering, afterwards, with counter O reset, return to the operation of carrying out described judgment sub-unit, until last communication information in the communication information that searches after packet sequencing is traversed rear end operation.
The embodiment of the present invention also provides a kind of terminal, comprises the device that presents of communication information Search Results that the embodiment of the present invention provides.This terminal can be the various terminals such as mobile phone, palm PC, ipad, and this example is not limited.
The communication information Search Results that provides in the embodiment of the present invention present device and terminal when receiving the search instruction that comprises search key, search comprises the contact person of search key in the contacts list of storage, with the contact person's that searches the session rear demonstration of sorting, with the demand of the scene of the session of satisfying certain contact person of user search; Search comprises the communication information of search key in session corresponding to each contact person of storage, the communication information that searches is carried out showing after packet sequencing according to the contact person under it, so that the communication information that searches is integrated and is shown, the presentation mode that overcomes present communication information Search Results is inorganizable, shows mixed and disorderly problem.In addition, the embodiment of the present invention, sequencing display is carried out in the contact person's who comprises key word that will search respectively session, and will search for to the communication information carry out showing after packet sequencing according to the contact person under it, effectively the Search Results of differential display is contact person's session or contact person's the communication information.
Through the above description of the embodiments, those skilled in the art can be well understood to the embodiment of the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.