CN105279154A - Query method and device for instant messages - Google Patents

Query method and device for instant messages Download PDF

Info

Publication number
CN105279154A
CN105279154A CN 201410227912 CN201410227912A CN105279154A CN 105279154 A CN105279154 A CN 105279154A CN 201410227912 CN201410227912 CN 201410227912 CN 201410227912 A CN201410227912 A CN 201410227912A CN 105279154 A CN105279154 A CN 105279154A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
query
instant
messages
method
conditions
Prior art date
Application number
CN 201410227912
Other languages
Chinese (zh)
Inventor
卢艳
尚国强
Original Assignee
中兴通讯股份有限公司
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

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor

Abstract

The embodiment of invention discloses a query method and device for instant messages. The query method for instant messages comprises following steps: acquiring query conditions; and searching for saved instant messages according to the query conditions and obtaining instant message content matching the query condition.

Description

一种即时消息查询方法和装置 An instant messaging query method and apparatus

技术领域 FIELD

[0001] 本发明涉及信息查询技术,具体涉及一种即时消息查询方法和装置。 [0001] The present invention relates to an information query technology, particularly, to a method and apparatus for instant messaging query.

背景技术 Background technique

[0002] 随着互联网技术的发展,即时消息类业务越来越普及,越来越多的人习惯使用即时消息与好友互通信息。 [0002] With the development of Internet technology, instant messaging services is becoming increasingly popular, more and more people are accustomed to using instant messaging with friends to exchange information.

[0003] 当用户使用即时消息类业务与好友聊天时,与好友的聊天记录会在终端设备侧或者网络服务器侧存储,用户可以查看聊天记录。 [0003] When a user using an instant messaging services to chat with friends, friend chat will side terminal side or the network server storage, the user can view the chat history. 但如果想要查找很久之前的聊天记录,尤其是使用多用户的群组型即时消息类业务时,想要查找群组中某一位好友的聊天记录时,需要一页一页连续的查找,非常不利于用户的体验。 But if you want to find a long chat before, particularly the use of multi-user group type instant messaging services, you want to find a friend in a chat group, one needs a continuous search, It is not conducive to the user experience. 在现有技术中,针对即时消息的查询,目前尚无有效解决方案。 In the prior art, for the query instant message, there is no effective solution.

发明内容 SUMMARY

[0004] 为解决现有存在的技术问题,本发明实施例提供一种即时消息查询方法和装置,能够实现即时消息的查找,提升用户的体验。 [0004] In order to solve the prior art problems, embodiments provide a method and apparatus of the instant message queries the present invention, it is possible to find an instant message, to enhance the user experience.

[0005] 为达到上述目的,本发明实施例的技术方案是这样实现的: [0005] To achieve the above object, the technical solution of the embodiments of the present invention is implemented as follows:

[0006] 本发明实施例提供了一种即时消息查询方法,所述方法包括: [0006] Example embodiments provide a method of the present invention, an instant message query, the method comprising:

[0007] 获取查询条件; [0007] Gets the query;

[0008] 根据所述查询条件查找存储的即时消息,获取与所述查询条件匹配的即时消息内容。 [0008] The criteria to the stored instant message, an instant message to acquire the query conditions that match the content.

[0009] 上述方案中,所述查询条件包括:目标标识和第一关键字;所述根据所述查询条件查询存储的即时消息,包括: [0009] In the above embodiment, the query comprising: a target identifier and a first key; the query stored instant message according to the query conditions, comprising:

[0010] 根据所述目标标识查询与所述目标标识匹配的文件夹; [0010] The target identifier identifying the target query matches the folder;

[0011] 在查询到的所述文件夹中,根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息; [0011] In the query to the folder in accordance with the first keyword query the folder instant message, an instant message to obtain the first keyword match;

[0012] 其中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题。 [0012] wherein the first keyword includes at least one of the following information: query object query time, query subjects.

[0013] 上述方案中,在查询到所述文件夹之后,所述方法包括: [0013] In the above embodiment, after the query to the folder, the method comprising:

[0014] 提取所述文件夹中的即时消息的摘要信息作为第二关键字信息; [0014] The extract summary information folder as a second instant message key information;

[0015] 其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 [0015] wherein said second key information includes at least one of the following: a target object, the target time, subject.

[0016] 上述方案中,所述根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息,包括: [0016] In the above embodiment, the key query according to the first folder of the instant message, an instant message to obtain the first keyword matching, comprising:

[0017] 根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的第二关键字信息,根据所述第二关键字信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消息。 [0017] The query extracted second key information based on the first key, the second key information to obtain the first keyword matches, determining the key information according to the second IM first position where the matching key, acquiring the instant message based on the location of the instant message is located.

[0018] 上述方案中,所述获取查询条件,包括: [0018] In the above embodiment, obtaining the query, comprising:

[0019] 获取输入操作,根据所述输入操作获取查询条件。 [0019] The operation input acquisition, acquisition operation according to the input query.

[0020] 上述方案中,所述获取查询条件,包括: [0020] In the above embodiment, obtaining the query, comprising:

[0021] 接收到第一消息,并解析所述第一消息,获得所述第一消息携带的查询条件。 [0021] receiving the first message, and parsing the first message, the first query message to obtain carried.

[0022] 上述方案中,所述获取与所述查询条件匹配的即时消息内容之后,所述方法包括: After [0022] the above-described embodiment, the obtaining instant message content matching the query condition, said method comprising:

[0023] 发送第一响应消息,所述第一响应消息包括与所述查询条件匹配的即时消息内容。 [0023] transmit a first response message, the first response message comprises an instant message content matching the query condition.

[0024] 本发明实施例还提供了一种即时消息查询装置,所述装置包括:获取单元和查询单元;其中, [0024] Embodiments of the present invention further provides an instant message inquiring means, the apparatus comprising: an acquiring unit and a query unit; wherein,

[0025] 所述获取单元,用于获取查询条件,将所述查询条件发送至所述查询单元; [0025] The acquisition unit for acquiring a query, the query is sent to the inquiry unit;

[0026] 所述查询单元,用于根据所述获取单元获取的查询条件查找存储的即时消息,获取与所述查询条件匹配的即时消息内容。 The [0026] query unit, the acquisition unit acquires according to the filter criteria stored instant message, an instant message to acquire the query conditions that match the content.

[0027] 上述方案中,所述查询条件包括:目标标识和第一关键字;其中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题; [0027] In the above embodiment, the query comprising: a target identifier and a first key; wherein said first key comprises at least one of the following information: query object, query time, a query relating;

[0028] 所述查询单元,用于根据所述目标标识查询与所述目标标识匹配的文件夹;在查询到的所述文件夹中,根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息。 [0028] The inquiry unit configured to query the target identifier identifying the target file matches the list; query to the folder in accordance with the first keyword query the folder an instant message, an instant message to obtain the first keyword matches.

[0029] 上述方案中,所述查询单元,还用于在查询到所述文件夹之后,提取所述文件夹中的即时消息的摘要信息作为第二关键字信息;其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 [0029] In the above embodiment, the inquiry unit is further configured to query the folder after extracting the summary information in the instant message folder as the second key information; wherein, the second key word includes at least one of the following information: a target object, the target time, subject.

[0030] 上述方案中,所述查询单元,用于根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的第二关键字信息,根据所述第二关键字信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消息。 [0030] In the above embodiment, the inquiry unit configured to extract the query based on the first key information the second key, the second key information to obtain the first keyword matching, in accordance with the second key information to determine the position of the first instant message keyword match is located, acquiring the instant message based on the position of the instant message is located.

[0031] 上述方案中,所述获取单元,用于获取输入操作,根据所述输入操作获取查询条件。 [0031] In the above embodiment, the acquiring unit, configured to obtain the input operation, based on the acquired input query operation.

[0032] 上述方案中,所述获取单元,用于接收第一消息,并解析所述第一消息,获得所述第一消息携带的查询条件。 [0032] In the above embodiment, the acquisition unit for receiving a first message, and parsing the first message, the first query message to obtain carried.

[0033] 上述方案中,所述装置还包括发送单元,用于发送第一响应消息,所述第一响应消息包括与所述查询条件匹配的即时消息内容。 [0033] In the above embodiment, the apparatus further comprises a transmitting unit for transmitting a first response message, the first response message comprises an instant message content matching the query condition.

[0034] 本发明实施例提供的即时消息查询方法和装置,通过获取查询条件;根据所述查询条件查找存储的即时消息,获取与所述查询条件匹配的即时消息内容。 [0034] IM query method and apparatus provided in the embodiment of the present invention, by obtaining query; according to the query criteria to the stored instant message, obtain the query conditions that match the content of an instant message. 如此,实现了即时消息的查找,使用户在数量庞大的即时消息记录中能够快速查找想要的即时消息,大大节省了用户的查找时间,大大提升了用户的体验。 So, to achieve a look of instant messaging, allowing users to record a huge number of instant messaging in instant messaging to quickly find desired, saving the user's search time, greatly enhance the user experience.

附图说明 BRIEF DESCRIPTION

[0035] 图1为本发明实施例的即时消息查询方法的流程示意图; IM query process flow [0035] FIG. 1 is a schematic view of an embodiment of the present invention;

[0036] 图2为本发明实施例中即时消息的存储方式的示意图; [0036] FIG. 2 is a schematic embodiment of the storage IM embodiment of the invention;

[0037] 图3为本发明实施例的即时消息查询方法的示例一的流程示意图; Instant message queries exemplary method [0037] FIG. 3 is an embodiment of the present invention, a schematic flow diagram;

[0038] 图4为本发明实施例的即时消息查询方法的示例二的流程示意图; Process Example II [0038] FIG. 4 IM query method embodiment of the present invention, a schematic view;

[0039] 图5为本发明实施例的即时消息查询装置的组成结构示意图。 A structure diagram of an instant message queries apparatus [0039] FIG. 5 is an embodiment of the present invention.

具体实施方式 detailed description

[0040] 下面结合附图及具体实施例对本发明作进一步详细的说明。 [0040] Specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings and.

[0041] 图1为本发明实施例的即时消息查询方法的流程示意图;如图1所示,所述方法包括: IM query process flow [0041] FIG. 1 is a schematic view of an embodiment of the present invention; FIG. 1, the method comprising:

[0042] 步骤101:获取查询条件。 [0042] Step 101: Obtain query.

[0043] 本实施例中所述的即时消息查询方法应用于终端或服务器中。 [0043] The method of the present instant message query embodiment is applied to a terminal or a server. 所述的即时消息是非格式化数据,通常以文件形式存储在终端或服务器的存储介质中;其中,所述终端可以是手机、电脑或平板电脑;所述服务器可以是运营所述即时消息业务的服务器。 The instant message unformatted data file is typically stored in a storage medium or a terminal server; wherein the terminal may be a mobile phone, computer or tablet; the server may be an operator of the instant message service server.

[0044] 这里,当所述即时消息存储在终端时,所述获取查询条件,包括:获取输入操作,根据所述输入操作获取查询条件。 [0044] Here, when the instant message stored in the terminal, obtaining the query, comprising: acquiring an input operation, acquisition operation according to the input query.

[0045] 在这种情况下,当用户要查询某个即时消息时,在所述即时消息业务的检索界面下,所述输入操作可以是用户通过手机键盘或电脑键盘进行的输入操作,例如输入联系人姓名或联系人标识,或者输入某月某日,将输入的内容作为查询条件。 [0045] In this case, when a user wants to query an instant message, an instant message service in the search interface, the input operation of the user input operation may be performed by computer keyboard or phone keypad, such as input contact name or contact identification, or enter a certain day, the contents of the input of a month as a query.

[0046] 这里,当所述即时消息存储在服务器时,所述获取查询条件,包括:接收到第一消息,所述第一消息包括查询条件;解析所述第一消息,获得所述第一消息中的查询条件。 [0046] Here, when the instant message is stored in the server, the obtaining query, comprising: receiving a first message, the first message comprising a query; parsing the first message, to obtain the first query message.

[0047] 在这种情况下,当用户要查询某个即时消息时,在所述即时消息业务的检索界面下,用户通过手机键盘或电脑键盘进行输入操作,例如输入联系人姓名或联系人标识,或者输入某月某日;所述手机或所述电脑获取到所述输入操作后,将输入的信息封装到第一消息中发送至服务器;所述服务器接收到所述第一消息后,解析所述第一消息,获得所述第一消息中携带的信息,例如联系人姓名或联系人标识,或者某月某日,将上述信息作为查询条件。 [0047] In this case, when a user wants to query an instant message, an instant message service in the search interface, a user performs an input operation by computer keyboard or phone keypad, such as entering the contact name or contact identification or enter a certain date; information after the mobile phone or the computer to acquire the input operation, the input to the encapsulated first message to the server; the server after receiving the first message, parses said first message to obtain information carried in the first message, such as contact or contact identification name, or on a certain date, the above information as a query.

[0048] 步骤102:根据所述查询条件查找存储的即时消息,获取与所述查找条件匹配的即时消息内容。 [0048] Step 102: according to the query criteria to the stored instant message, an instant message to acquire the content to find the matching conditions.

[0049] 这里,所述查询条件包括:目标标识和第一关键字;所述根据所述查询条件查询存储的即时消息,包括: [0049] Here, the query comprising: a target identifier and a first key; the query stored instant message according to the query conditions, comprising:

[0050] 根据所述目标标识查询与所述目标标识匹配的文件夹; [0050] The target identifier identifying the target query matches the folder;

[0051] 在查询到的所述文件夹中,根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息; [0051] In the query to the folder in accordance with the first keyword query the folder instant message, an instant message to obtain the first keyword match;

[0052] 其中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题。 [0052] wherein the first keyword includes at least one of the following information: query object query time, query subjects.

[0053] 具体的,以所述即时消息为会话消息为例,所述会话消息可以是一对一的会话消息,也可以是多人间的群组会话消息。 [0053] Specifically, the instant message to the message for the session as an example, the message may be a one-session message to the session, or may be a multi-session message human group. 当所述会话消息为一对一的会话消息时,可以将与会话对象的即时消息保存在一个文件夹中,将所述会话对象的姓名、或昵称、或号码作为文件夹名。 When the session message is a one-session message, and instant messaging session object can be saved in a folder, the name of the session object, or nickname, or number as a folder name. 当所述会话消息为多人间的群组会话消息时,可以将群组内的会话消息保存在一个文件夹中,将群组的名称、或号码作为文件夹名。 When the session is a group session message message human multiple session messages in a group may be saved in the folder, the name of the group, as a folder name or number. 图2为本发明实施例中即时消息的存储方式的示意图;如图2所示,文件夹001和文件夹002中分别存储同一会话对象的即时消息,或者同一群组的即时消息;例如文件夹001中存储的即时消息包I和即时消息包2,以及文件夹002中存储的即时消息包1、即时消息包2和即时消息包3。 FIG 2 is a schematic embodiment of the storage IM embodiment of the invention; FIG. 2, folder 001 and folder objects 002 are stored the same session of instant messages or instant message to the same group; folder e.g. 001 stored in the instant message and the instant message packets packets I 2, and instant messaging packet 002 stored in the folder 1, IM 2 and IM package bag 3. 其中,所述文件夹的标识OOl和002也可以是会话对象的名称、昵称或号码,或者群组的名称、号码等等,不限于上述标识。 Wherein said identification OOl 002, and may be a folder name of the session object, nickname or number or group name, number, etc., is not limited to the above-described identification. 因此,所述查询条件中的目标标识可以是目标对象的标识,例如联系人的姓名、或昵称、或号码;所述目标对象的标识也可以是群组的名称,或号码。 Thus, the query may be the target identifier identifying a target object, such as the contact's name, or a nickname, or number; the target object group identifier may be a name or number.

[0054] 其中,所述查询对象为待查询的联系人的姓名、或昵称、或号码;所述查询时间为待查询的时间,或时间段;所述查询主题为待查询的某些关键字。 [0054] wherein the query object is the name of a contact to be queried, or nickname, or number; the query time is a time to be queried, or time period; the query subject to certain keywords to be queried .

[0055] 本实施例中,在查询到所述文件夹之后,所述方法包括: [0055] In this embodiment, after the query to the folder, the method comprising:

[0056] 提取所述文件夹中的即时消息的摘要信息作为第二关键字信息; [0056] The extract summary information folder as a second instant message key information;

[0057] 其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 [0057] wherein said second key information includes at least one of the following: a target object, the target time, subject.

[0058] 本发明实施例中,所述文件夹中的即时消息可采用多用途互联网邮件扩展(M頂E,Multipurpose Internet Mail Extens1ns)格式存储;当所述即时消息米用MIME格式存储时,所述即时消息的摘要信息存储在所述MIME格式消息的头部;则本实施例所述的提取所述文件夹中的即时消息的摘要信息即为提取所述文件夹中的即时消息的头部,获取所述即时消息的头部存储的摘要信息作为第二关键字信息。 Embodiment [0058] of the present invention, the folder can be extended instant messaging (M top E, Multipurpose Internet Mail Extens1ns) Multipurpose Internet Mail storage format; when the instant message with MIME format storage meters, the in the header of the message digest MIME format information storing said instant message; extracting the file according to the present embodiment of the instant message folder summary information is the header of the extracted folder instant message , to obtain summary information stored in the header of the instant message as the second key information.

[0059] 这里,为了实现查询过程的快速定位,提取每条即时消息中的摘要信息作为第二关键字,将所述第二关键字存储在即时消息头部的预设字段中;所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题;其中,所述目标对象为所述即时消息的联系人的姓名、或昵称、或号码;所述目标时间为所述即时消息产生的时间;所述主题为所述即时消息中的某些关键字,可以是出现次数最多的词语,也可以是所述即时消息中的动宾结构的词语,也可以是所述即时消息中出现的数字,具体可根据实际情况的设定实现。 [0059] Here, in order to achieve fast positioning query procedure, each extract summary information in the instant message as a second key, the second key stored in a predetermined field of the message header in an instant; the first two keywords include at least one of the following information: a target object, the target time, subject; wherein the target object is the instant messaging contact name, or nickname, or number; the time is the immediate target time messages generated; the theme for certain keywords in the instant message, and may be the largest number of words appear, can also be a word verb-object structure of the instant messages, it may be the instant message figures appearing in particular can be achieved according to the setting of the actual situation.

[0060] 具体的,所述根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息,包括: [0060] Specifically, the keyword search according to the first folder of the instant message, an instant message to obtain the first keyword matching, comprising:

[0061] 根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的第二关键字信息,根据所述第二关键字信息确定与所述第一关键字匹配的即时消肩、O [0061] The query extracted second key information based on the first key, the second key information to obtain the first keyword matches, determining the key information according to the second instant message shoulder first keyword matching, O

[0062] 这里,所述第一关键字为根据获取的查询条件确定的关键字信息,包括以下信息的至少之一:查询对象、查询时间、查询主题;所述第二关键字为即时消息头部中提取出的关键字信息,包括以下信息的至少之一:目标对象、目标时间、主题。 [0062] Here, the first keyword is a query keyword information acquired defined conditions, including at least one of the following information: query object, query time, a query relating; the second key is a header IM Ministry extracted keyword information, including at least one of the following information: a target object, the target time, subject. 具体以所述第一关键字为查询时间为例,在提取出的所述第二关键字信息中查询与所述查询时间匹配的信息,确定与所述查询时间匹配的即时消息的头部,根据所述即时消息的头部确定所述即时消息所在的位置,基于所述即时消息所在的位置确定并获取与所述查询时间匹配的即时消息。 In particular in the first time an example query keyword query matching time information of the query, and determining the instant message header query matching time in the extracted second key information, determining a position where the instant message, the instant message based on the position where the determining and acquiring the query matching time in accordance with the instant message to the instant message header.

[0063] 本发明实施例提供的技术方案,通过查找与查询条件匹配的即时消息内容,实现了即时消息的查找,使用户在数量庞大的即时消息记录中能够快速查找想要的即时消息,大大节省了用户的查找时间,大大提升了用户的体验。 Technical solutions provided by the embodiments [0063] of the present invention, by an instant message content matching the query condition, to achieve the look of an instant message, so that a huge number of users in the instant message log to quickly find the desired instant message, greatly saving the user lookup time, greatly enhance the user experience.

[0064] 在本发明的另一种实施方式下,所述查询条件也可以仅包括关键字信息;具体的,通过检索存储有即时消息的文件夹中的数据,获得与所述关键字信息匹配的即时消息;如此,当用户忘记了目标对象的名称又忘记了待查找的即时消息的时间时,通过检索关键字的方式实现了任意即时消息的查找,大大节省了用户的查找时间,提升了用户的体验。 [0064] In another embodiment of the present invention, the query may include only the key information; Specifically, the instant message data file folder by retrieving stored, obtaining the keyword information matches instant messaging; when so, when the user forgets the name of the target object and forget the time to be looking for instant messaging, achieved by way of the search key to find any instant messages, saving the user's search time, improve user experience.

[0065] 以下通过具体示例对本发明实施例作进一步详细的说明。 [0065] The following described in further detail by way of specific exemplary embodiments of the present invention.

[0066] 示例一 [0066] Example a

[0067] 本示例以即时消息为会话消息,并且所述即时消息记录在终端中存储为例进行说明;所述终端可以是手机、电脑或平板电脑。 [0067] In the present exemplary session message as an instant message and the instant message records stored in the terminal will be described as an example; the terminal may be a mobile phone, computer or tablet. 图3为本发明实施例的即时消息查询方法的示例一的流程示意图;如图3所示,所述即时消息查询方法包括: Instant message queries exemplary method embodiment of the present invention, FIG. 3 is a schematic flow; As illustrated, the instant message 3 query method comprising:

[0068] 步骤201:获取用户输入的查询条件;其中,所述查询条件包括:目标标识和第一关键字。 [0068] Step 201: obtain the query input by the user; wherein the query criteria comprises: a target identifier and a first key.

[0069] 这里,用户可在即时消息业务客户端所提供的查询界面中输入查询条件。 [0069] Here, the user can enter search criteria in the query interface of the IM service provided by the client.

[0070] 步骤202:根据所述目标标识查询与所述目标标识匹配的文件夹。 [0070] Step 202: a target identifier identifying the matching query according to the target folder.

[0071] 本实施例中所述的即时消息为会话消息,所述会话消息可以是一对一的会话消息,也可以是多人间的群组会话消息。 [0071] The present embodiment described in the instant message for the session message, the message may be a one-session message conversation, or may be a multi-session message human group. 当所述会话消息为一对一的会话消息时,可以将与会话对象的即时消息保存在一个文件夹中,将所述会话对象的姓名、或昵称、或号码作为文件夹名。 When the session message is a one-session message, and instant messaging session object can be saved in a folder, the name of the session object, or nickname, or number as a folder name. 当所述会话消息为多人间的群组会话消息时,可以将群组内的会话消息保存在一个文件夹中,将群组的名称、或号码作为文件夹名。 When the session is a group session message message human multiple session messages in a group may be saved in the folder, the name of the group, as a folder name or number. 因此,所述查询条件中的目标标识可以是目标对象的标识,例如联系人的姓名、或昵称、或号码;所述目标对象的标识也可以是群组的名称,或号码。 Thus, the query may be the target identifier identifying a target object, such as the contact's name, or a nickname, or number; the target object group identifier may be a name or number.

[0072] 这里,所述终端可根据获取的查询条件中的目标标识,查询文件夹名称,获取与所述目标标识匹配的文件夹。 [0072] Here, the terminal may query condition according to the acquired target identification, query folder name, the file obtaining identification match to the target folder.

[0073] 步骤203:将所述文件夹中的数据导入内存,提取所述文件夹中的即时消息的头部,获得所述即时消息的头部存储的第二关键字信息;其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 [0073] Step 203: the folder data into the memory, to extract the head folder instant message, the instant message stored in the header to obtain the second key information; wherein, the the second key information includes at least one of the following: a target object, the target time, subject.

[0074] 本实施例中,为了实现查询过程的快速定位,提取每条即时消息中的摘要信息作为第二关键字,将所述第二关键字存储在即时消息头部的预设字段中;所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题;其中,所述目标对象为所述即时消息的联系人的姓名、或昵称、或号码;所述目标时间为所述即时消息产生的时间;所述主题为所述即时消息中的某些关键字,可以是出现次数最多的词语,也可以是所述即时消息中的动宾结构的词语,也可以是所述即时消息中出现的数字,具体可根据实际情况的设定实现。 [0074] In the present embodiment, in order to achieve fast positioning query procedure, each extract summary information in the instant message as a second key, the second key stored in a predetermined field of the message header in an instant; the second key information includes at least one of the following: a target object, the target time, subject; where the name of the target object to the instant messaging contacts, or nickname, or number; the target time time of the instant messages generated; the theme for certain keywords in the instant message, and may be the largest number of words appear, can also be a word verb-object structure of the instant messages, it may be the figures appearing in said instant messaging, may be implemented according to the specific circumstances of the actual set.

[0075] 具体的,所述文件夹中的即时消息采用M頂E格式存储。 [0075] Specifically, the folder is stored using an instant messaging top M E format.

[0076] 步骤204〜步骤205:根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的即时消息的头部;根据所述即时消息的头部的信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消肩、O [0076] Step 204~ Step 205: according to the first keyword query keywords extracted by the second information obtaining instant message header and the first keyword matches; according to the instant message determining position information of the head of the first keyword matches the instant message is located, acquiring the instant message shoulder, the instant message based on the position O where

[0077] 本实施例中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题。 [0077] In this embodiment, the first key information comprises at least one of: a query object, query time, the query topic. 其中,所述查询对象为待查询的联系人的姓名、或昵称、或号码;所述查询时间为待查询的时间,或时间段;所述查询主题为待查询的某些关键字。 Wherein the query object to be queried for a contact name, or nickname, or number; time of the query time is to be queried, or time period; the query subject to certain keywords to be queried. 所述第二关键字为即时消息头部中提取出的关键字信息,包括以下信息的至少之一:目标对象、目标时间、主题。 The second key for instant messaging header extracted key information, including at least one of the following information: a target object, the target time, subject. 其中,所述目标对象为所述即时消息的联系人的姓名、或昵称、或号码;所述目标时间为所述即时消息产生的时间;所述主题为所述即时消息中的某些关键字,可以是出现次数最多的词语,也可以是所述即时消息中的动宾结构的词语,也可以是所述即时消息中出现的数字,具体可根据实际情况的设定实现。 Wherein the target object is the instant messaging contact name, or nickname, or number; the target time to time the instant message generated; the theme for certain keywords in the instant message , may be the most frequently appeared word, verb-object may be a word structure of the instant message, or may be the instant message numbers appearing in particular can be achieved according to the setting of the actual situation.

[0078] 具体的,以所述第一关键字为查询时间为例,在提取出的所述第二关键字信息中查询与所述查询时间匹配的信息,确定与所述查询时间匹配的即时消息的头部,根据所述即时消息的头部确定所述即时消息所在的位置,基于所述即时消息所在的位置确定并获取与所述查询时间匹配的即时消息。 [0078] Specifically, at the first time an example for the query keyword query matching the query time information extracted in the second key information, determining the instant of time matching the query header of the message, determining a position where the instant message header according to the instant message, and acquires the determined query matching time instant message based on the position where the instant message.

[0079] 示例二 [0079] Example Two

[0080] 本示例以即时消息为会话消息,并且所述即时消息记录在服务器中存储为例进行说明;所述服务器可以是运营所述即时消息业务的服务器。 [0080] In the present exemplary session message as an instant message and the instant message record stored in the server will be described as an example; the server may be the instant message service operator server. 图4为本发明实施例的即时消息查询方法的示例二的流程示意图;如图4所示,所述即时消息查询方法包括: Two exemplary schematic flow chart of a method of the instant message queries embodiment of the present invention, FIG. 4; and FIG. 4, the instant message query method comprising:

[0081] 步骤301:服务器接收到第一消息,并解析所述第一消息,获得所述第一消息携带的查询条件;其中,所述查询条件包括:目标标识和第一关键字。 [0081] Step 301: The server receives the first message, and parsing the first message, the first query message to obtain carried; wherein the query criteria comprises: a target identifier and a first key.

[0082] 本实施例中,所述第一消息可以由终端设备发送。 [0082] In this embodiment, the first message may be sent by the terminal device. 具体的,用户可在即时消息业务客户端所提供的查询界面中输入查询条件;终端设备获取到用户的输入查询条件,将所述查询条件封装到第一消息中,将所述第一消息发送至服务器。 Specifically, the user can enter a query in an instant messaging service interface provided by the client query; the terminal apparatus acquires a user to enter the query, the first query message to the package, sending the first message to the server.

[0083] 步骤302:根据所述目标标识查询与所述目标标识匹配的文件夹。 [0083] Step 302: a target identifier identifying the matching query according to the target folder.

[0084] 本实施例中所述的即时消息为会话消息,所述会话消息可以是一对一的会话消息,也可以是多人间的群组会话消息。 [0084] The present embodiment described in the instant message for the session message, the message may be a one-session message conversation, or may be a multi-session message human group. 当所述会话消息为一对一的会话消息时,可以将与会话对象的即时消息保存在一个文件夹中,将所述会话对象的姓名、或昵称、或号码作为文件夹名。 When the session message is a one-session message, and instant messaging session object can be saved in a folder, the name of the session object, or nickname, or number as a folder name. 当所述会话消息为多人间的群组会话消息时,可以将群组内的会话消息保存在一个文件夹中,将群组的名称、或号码作为文件夹名。 When the session is a group session message message human multiple session messages in a group may be saved in the folder, the name of the group, as a folder name or number. 因此,所述查询条件中的目标标识可以是目标对象的标识,例如联系人的姓名、或昵称、或号码;所述目标对象的标识也可以是群组的名称,或号码。 Thus, the query may be the target identifier identifying a target object, such as the contact's name, or a nickname, or number; the target object group identifier may be a name or number.

[0085] 这里,所述终端可根据获取的查询条件中的目标标识,查询文件夹名称,获取与所述目标标识匹配的文件夹。 [0085] Here, the terminal may query condition according to the acquired target identification, query folder name, the file obtaining identification match to the target folder.

[0086] 步骤303:将所述文件夹中的数据导入内存,提取所述文件夹中的即时消息的头部,获得所述即时消息的头部存储的第二关键字信息;其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 [0086] Step 303: the folder data into the memory, to extract the head folder instant message, the instant message stored in the header to obtain the second key information; wherein, the the second key information includes at least one of the following: a target object, the target time, subject.

[0087] 本实施例中,为了实现查询过程的快速定位,提取每条即时消息中的摘要信息作为第二关键字,将所述第二关键字存储在即时消息头部的预设字段中;所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题;其中,所述目标对象为所述即时消息的联系人的姓名、或昵称、或号码;所述目标时间为所述即时消息产生的时间;所述主题为所述即时消息中的某些关键字,可以是出现次数最多的词语,也可以是所述即时消息中的动宾结构的词语,也可以是所述即时消息中出现的数字,具体可根据实际情况的设定实现。 [0087] In the present embodiment, in order to achieve fast positioning query procedure, each extract summary information in the instant message as a second key, the second key stored in a predetermined field of the message header in an instant; the second key information includes at least one of the following: a target object, the target time, subject; where the name of the target object to the instant messaging contacts, or nickname, or number; the target time time of the instant messages generated; the theme for certain keywords in the instant message, and may be the largest number of words appear, can also be a word verb-object structure of the instant messages, it may be the figures appearing in said instant messaging, may be implemented according to the specific circumstances of the actual set.

[0088] 具体的,所述文件夹中的即时消息采用M頂E格式存储。 [0088] Specifically, the folder is stored using an instant messaging top M E format.

[0089] 步骤304〜步骤305:根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的即时消息的头部;根据所述即时消息的头部的信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消肩、O [0089] Step 304~ Step 305: the second query keywords extracted based on the first key information, to obtain an instant message header and the first keyword matches; according to the instant message determining position information of the head of the first keyword matches the instant message is located, acquiring the instant message shoulder, the instant message based on the position O where

[0090] 本实施例中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题。 [0090] In this embodiment, the first key information comprises at least one of: a query object, query time, the query topic. 其中,所述查询对象为待查询的联系人的姓名、或昵称、或号码;所述查询时间为待查询的时间,或时间段;所述查询主题为待查询的某些关键字。 Wherein the query object to be queried for a contact name, or nickname, or number; time of the query time is to be queried, or time period; the query subject to certain keywords to be queried. 所述第二关键字为即时消息头部中提取出的关键字信息,包括以下信息的至少之一:目标对象、目标时间、主题。 The second key for instant messaging header extracted key information, including at least one of the following information: a target object, the target time, subject. 其中,所述目标对象为所述即时消息的联系人的姓名、或昵称、或号码;所述目标时间为所述即时消息产生的时间;所述主题为所述即时消息中的某些关键字,可以是出现次数最多的词语,也可以是所述即时消息中的动宾结构的词语,也可以是所述即时消息中出现的数字,具体可根据实际情况的设定实现。 Wherein the target object is the instant messaging contact name, or nickname, or number; the target time to time the instant message generated; the theme for certain keywords in the instant message , may be the most frequently appeared word, verb-object may be a word structure of the instant message, or may be the instant message numbers appearing in particular can be achieved according to the setting of the actual situation.

[0091] 具体的,以所述第一关键字为查询时间为例,在提取出的所述第二关键字信息中查询与所述查询时间匹配的信息,确定与所述查询时间匹配的即时消息的头部,根据所述即时消息的头部确定所述即时消息所在的位置,基于所述即时消息所在的位置确定并获取与所述查询时间匹配的即时消息。 [0091] Specifically, at the first time an example for the query keyword query matching the query time information extracted in the second key information, determining the instant of time matching the query header of the message, determining a position where the instant message header according to the instant message, and acquires the determined query matching time instant message based on the position where the instant message.

[0092] 步骤306:构造第一响应消息,并发送第一响应消息;所述第一响应消息包括与所述查询条件匹配的即时消息内容。 [0092] Step 306: constructing a first response message, and transmits a first response message; the first response message comprises an instant message content matching the query condition.

[0093] 这里,所述构造第一响应消息为:将获取的与所述查询条件匹配的即时消息内容封装在所述第一响应消息中的预设字段,进一步向终端发送所述第一响应消息。 [0093] Here, the first response message is configured to: match the query condition IM content package acquired in a predetermined field of the first response message, the first response is further transmitted to the terminal news.

[0094] 本发明实施例还提供了一种即时消息查询装置,所述即时消息查询装置可应用于终端设备或服务器中。 [0094] Embodiments of the present invention further provides an instant messaging device query, the query means can be applied to the instant message terminal device or a server. 图5为本发明实施例的即时消息查询装置的组成结构示意图,如图5所示,所述装置包括:获取单元41和查询单元42 ;其中, The apparatus comprising a structure diagram of an instant message queries apparatus according to Embodiment 5 of the present invention, shown in Figure 5,: obtaining unit 41 and the inquiry unit 42; wherein,

[0095] 所述获取单元41,用于获取查询条件,将所述查询条件发送至所述查询单元; [0095] The obtaining unit 41, configured to obtain a query, the query is sent to the inquiry unit;

[0096] 所述查询单元42,用于根据所述获取单元41获取的查询条件查找存储的即时消息,获取与所述查询条件匹配的即时消息内容。 [0096] The inquiry unit 42, according to the acquisition unit 41 acquires the criteria to the stored instant message, obtain the query conditions that match the content of an instant message.

[0097] 具体的,所述查询条件包括:目标标识和第一关键字;其中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题; [0097] Specifically, the query comprising: a target identifier and a first key; wherein said first key comprises at least one of the following information: query object, query time, a query relating;

[0098] 所述查询单元42,用于根据所述目标标识查询与所述目标标识匹配的文件夹;在查询到的所述文件夹中,根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息。 [0098] The inquiry unit 42, configured to query the destination identification ID matches the target folder; query to the folder in accordance with the first keyword query the folder instant messaging, an instant message to obtain the first keyword matches.

[0099] 其中,所述查询单元42,还用于在查询到所述文件夹之后,提取所述文件夹中的即时消息的摘要信息作为第二关键字信息;其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 [0099] wherein the inquiry unit 42, after further configured to query the folder, the folder summary information extracted in the instant message as the second key information; wherein, the second key including at least one of the following information: a target object, the target time, subject.

[0100] 具体的,所述查询单元42,用于根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的第二关键字信息,根据所述第二关键字信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消息。 [0100] Specifically, the query unit 42 for querying extracted according to the first keyword and the second keyword information, obtaining the first keyword matches the second keyword information, in accordance with the second key information to determine the position of the first instant message keyword match is located, acquiring the instant message based on the position of the instant message is located.

[0101] 本实施例中,当所述即时消息查询装置应用于终端设备中时,所述获取单元41,用于获取输入操作,根据所述输入操作获取查询条件。 [0101] In this embodiment, when the apparatus is applied to an instant message queries the terminal device, the obtaining unit 41, configured to obtain the input operation, based on the acquired input query operation.

[0102] 在另一种实施方式下,当所述即时消息查询装置应用于服务器中时,所述获取单元41,用于接收第一消息,并解析所述第一消息,获得所述第一消息携带的查询条件。 [0102] In another embodiment, when the device is applied to the instant message server queries the acquisition unit 41, for receiving a first message, and parsing the first message, to obtain the first query message carries.

[0103] 进一步地,所述装置还包括发送单元,用于发送第一响应消息,所述第一响应消息包括与所述查询条件匹配的即时消息内容。 [0103] Further, the apparatus further comprises a transmitting unit for transmitting a first response message, the first response message comprises an instant message content matching the query condition.

[0104] 本领域技术人员应当理解,本发明实施例的即时消息查询装置中各处理单元的功能,可参照前述即时消息查询方法的相关描述而理解,本发明实施例的即时消息查询装置中各处理单元,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。 [0104] Those skilled in the art will appreciate, an instant message queries apparatus embodiment of the present invention, the function of each processing unit, reference may be the relevant description IM query method and appreciated that the instant message queries apparatus embodiment of the present invention, each the processing unit, can be achieved by realizing the functions according to embodiments of the present invention, an analog circuit, can be achieved by performing a function described in the software running on the intelligent terminal embodiment of the present invention.

[0105] 其中,所述即时消息查询装置在实际应用中,可通过终端设备或服务器实现,所述终端设备可以是手机、电脑或平板电脑等设备;所述即时消息查询装置中的查询单元42在实际应用中,可由所述即时消息查询装置中的中央处理器(CPU, Central ProcessingUnit)、数字信号处理器(DSP,Digital Signal Processor)或可编程门阵列(FPGA,Field —Programmable Gate Array)实现;当所述即时消息查询装置应用在终端设备中时,所述即时消息查询装置中的获取单元41可通过所述终端设备中的输入设备结合CPU、DSP或FPGA实现;当所述即时消息查询装置应用在服务器中时,所述即时消息查询装置中的获取单元41和发送单元可通过所述服务器中的收发机或收发器实现。 [0105] wherein the instant message querying means in practice may be implemented by a server or a terminal device, the terminal device may be a mobile phone, computer, or tablet computer equipment; the instant message device query inquiry unit 42 in a practical application, the instant message may query the central processor means (CPU, central ProcessingUnit), a digital signal processor (DSP, digital signal processor), or a programmable gate array (FPGA, Field -Programmable gate array) implemented ; query when the instant message device in a terminal device application, the instant message device query obtaining unit 41 may be implemented in conjunction with CPU, DSP or FPGA device through the terminal input device; query when the instant message obtaining unit 41 and a transmitting unit of the device when the application server, the instant message queries may be achieved by means of the server transceiver or transceivers.

[0106] 本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。 [0106] skilled in the art should understand that the embodiments of the present invention may be provided as a method, apparatus or computer program product. 因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments of the present invention be implemented in hardware, software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Further, in the present invention may comprise one or more of which computer usable storage medium having computer-usable program code (including but not limited to disk storage, and optical storage) in the form of a computer program product implemented on.

[0107] 本发明是参照根据本发明实施例的方法、装置、和计算机程序产品的流程图和/或方框图来描述的。 [0107] The present invention has been described in accordance with the method of Example of the present invention, apparatus, and computer program products flowchart and / or block diagrams described. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus generating in a device for implementing the flow chart or more flows and / or block diagram block or blocks in a specified functions.

[0108] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0108] These computer program instructions may also be stored in a computer can direct a computer or other programmable data processing apparatus to function in a particular manner readable memory produce an article of manufacture such that the storage instruction means comprises a memory in the computer-readable instructions the instruction means implemented in a flowchart or more flows and / or block diagram block or blocks in a specified function.

[0109] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0109] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps on the computer or other programmable apparatus to produce a computer implemented so that the computer or other programmable apparatus execute instructions to provide processes for implementing a process or flows and / or block diagram block or blocks a function specified step.

[0110] 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 [0110] The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention.

Claims (14)

  1. 1.一种即时消息查询方法,其特征在于,所述方法包括: 获取查询条件; 根据所述查询条件查找存储的即时消息,获取与所述查询条件匹配的即时消息内容。 An instant message query methods, wherein, the method comprising: acquiring a query condition; IM Find stored in said query conditions, obtaining instant message content matches the query criteria.
  2. 2.根据权利要求1所述的方法,其特征在于,所述查询条件包括:目标标识和第一关键字;所述根据所述查询条件查询存储的即时消息,包括: 根据所述目标标识查询与所述目标标识匹配的文件夹; 在查询到的所述文件夹中,根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息; 其中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题。 2. The method according to claim 1, wherein said query comprises: a target identifier and a first key; according to the search criteria of the stored instant messages, comprising: a target identification, according to the query file identifier matching the target folder; query to the folder in accordance with the first keyword query the folder instant message, an instant message to obtain the first keyword match; wherein the first key information includes at least one of the following: query object query time, query subjects.
  3. 3.根据权利要求2所述的方法,其特征在于,在查询到所述文件夹之后,所述方法包括: 提取所述文件夹中的即时消息的摘要信息作为第二关键字信息; 其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 3. The method according to claim 2, wherein, after the query to the folder, the method comprising: extracting the folder summary information in the instant message as the second key information; wherein, the second key comprises at least one of the following information: a target object, the target time, subject.
  4. 4.根据权利要求3所述的方法,其特征在于,所述根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息,包括: 根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的第二关键字信息,根据所述第二关键字信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消息。 4. The method according to claim 3, wherein said key query according to the first folder of the instant message, an instant message to obtain the first keyword matching, comprising: the the first keyword query the extracted second key information, obtaining the first keyword matches the second keyword information, determining the first key based on said second key information matching the position where the instant message, obtain the instant message based on the location of the instant message is located.
  5. 5.根据权利要求1所述的方法,其特征在于,所述获取查询条件,包括: 获取输入操作,根据所述输入操作获取查询条件。 5. The method according to claim 1, wherein said acquiring a query condition, comprising: acquiring an input operation, acquisition operation according to the input query.
  6. 6.根据权利要求1所述的方法,其特征在于,所述获取查询条件,包括: 接收到第一消息,并解析所述第一消息,获得所述第一消息携带的查询条件。 6. The method according to claim 1, wherein the obtaining query, comprising: receiving the first message, and parsing the first message, the first query message to obtain carried.
  7. 7.根据权利要求6所述的方法,其特征在于,所述获取与所述查询条件匹配的即时消息内容之后,所述方法包括: 发送第一响应消息,所述第一响应消息包括与所述查询条件匹配的即时消息内容。 After 7. The method according to claim 6, wherein the obtaining instant message content matching the query condition, the method comprising: transmitting a first response message, the first response message comprises the instant messaging above query matching content.
  8. 8.—种即时消息查询装置,其特征在于,所述装置包括:获取单元和查询单元;其中, 所述获取单元,用于获取查询条件,将所述查询条件发送至所述查询单元; 所述查询单元,用于根据所述获取单元获取的查询条件查找存储的即时消息,获取与所述查询条件匹配的即时消息内容。 8.- species instant message inquiring means, characterized in that said apparatus comprises: an acquisition unit, and a query unit; wherein the acquisition unit for acquiring a query, sending the query to the querying unit; the said query unit, the acquisition unit acquires according to the filter criteria stored instant message, an instant message to acquire the query conditions that match the content.
  9. 9.根据权利要求8所述的装置,其特征在于,所述查询条件包括:目标标识和第一关键字;其中,所述第一关键字包括以下信息的至少之一:查询对象、查询时间、查询主题; 所述查询单元,用于根据所述目标标识查询与所述目标标识匹配的文件夹;在查询到的所述文件夹中,根据所述第一关键字查询所述文件夹中的即时消息,获得与所述第一关键字匹配的即时消息。 9. The apparatus according to claim 8, wherein said query comprises: a target identifier and a first key; wherein said first key comprises at least one of the following information: query object, query time , query subject; the querying unit, configured to query the destination identification ID matches the target folder; query to the folder in accordance with the first keyword query the folder instant messaging, an instant message to obtain the first keyword matches.
  10. 10.根据权利要求9所述的装置,其特征在于,所述查询单元,还用于在查询到所述文件夹之后,提取所述文件夹中的即时消息的摘要信息作为第二关键字信息;其中,所述第二关键字包括以下信息的至少之一:目标对象、目标时间、主题。 10. The apparatus according to claim 9, characterized in that the inquiry unit is further configured to query the folder after extracting the summary information in the instant message folder as the second key information ; wherein said second key information comprises at least one of: a target object, the target time, subject.
  11. 11.根据权利要求10所述的装置,其特征在于,所述查询单元,用于根据所述第一关键字查询提取出的所述第二关键字信息,获得与所述第一关键字匹配的第二关键字信息,根据所述第二关键字信息确定与所述第一关键字匹配的即时消息所在的位置,基于所述即时消息所在的位置获取所述即时消息。 11. The apparatus according to claim 10, wherein said query unit configured to query the extracted second key based on the first key information, obtaining the first keyword matching second key information based on the position information to determine the second keyword matches the first instant where the message key, acquiring the instant message based on the position of the instant message is located.
  12. 12.根据权利要求8所述的装置,其特征在于,所述获取单元,用于获取输入操作,根据所述输入操作获取查询条件。 12. The apparatus according to claim 8, wherein the acquisition unit, configured to obtain the input operation, based on the acquired input query operation.
  13. 13.根据权利要求8所述的装置,其特征在于,所述获取单元,用于接收第一消息,并解析所述第一消息,获得所述第一消息携带的查询条件。 13. The apparatus according to claim 8, wherein the acquisition unit for receiving a first message, and parsing the first message, the first query message to obtain carried.
  14. 14.根据权利要求13所述的装置,其特征在于,所述装置还包括发送单元,用于发送第一响应消息,所述第一响应消息包括与所述查询条件匹配的即时消息内容。 14. The apparatus according to claim 13, wherein said apparatus further comprises a transmitting unit for transmitting a first response message, the first response message comprises an instant message content matching the query condition.
CN 201410227912 2014-05-27 2014-05-27 Query method and device for instant messages CN105279154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410227912 CN105279154A (en) 2014-05-27 2014-05-27 Query method and device for instant messages

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201410227912 CN105279154A (en) 2014-05-27 2014-05-27 Query method and device for instant messages
PCT/CN2014/086862 WO2015180306A1 (en) 2014-05-27 2014-09-18 Method and device for querying instant message, and computer storage medium

Publications (1)

Publication Number Publication Date
CN105279154A true true CN105279154A (en) 2016-01-27

Family

ID=54697992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410227912 CN105279154A (en) 2014-05-27 2014-05-27 Query method and device for instant messages

Country Status (2)

Country Link
CN (1) CN105279154A (en)
WO (1) WO2015180306A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226295A1 (en) * 2006-03-23 2007-09-27 Nokia Corporation Method and apparatuses for retrieving messages
CN101605109A (en) * 2009-07-15 2009-12-16 腾讯科技(深圳)有限公司 Group message managing method and apparatus
CN103309998B (en) * 2013-06-25 2017-09-22 腾讯科技(深圳)有限公司 A messaging method and device query, the terminal apparatus
CN103744857A (en) * 2013-12-10 2014-04-23 厦门亿联网络技术股份有限公司 Method for searching instant messaging chatting records for keywords

Also Published As

Publication number Publication date Type
WO2015180306A1 (en) 2015-12-03 application

Similar Documents

Publication Publication Date Title
US20120084665A1 (en) Method and system for intelligent processing of electronic information with cloud computing
CN101155324A (en) Instant communication method and system based on or containing mobile phone book
CN102664871A (en) Method for processing intelligent terminal address list
CN102143485A (en) Mobile terminal and method for associating contact in address book thereof with user in social networking site
CN102368746A (en) Picture information promotion method and apparatus thereof
CN101262494A (en) Method, client, server and system for processing distributed information
CN101848230A (en) Method for pushing application program and application program server
US20040203350A1 (en) Wireless communication device and method for information retrieval using a universal identity metatag
CN102300163A (en) Information delivery method, system and mobile terminal
CN102665014A (en) Number information prompting method and system
US20110213974A1 (en) Identifying relationships between users of a communications domain
CN102821109A (en) Method, associated equipment and system for realizing data sharing in instant communication application
CN103078949A (en) Method and system for displaying phone number information
US20100091763A1 (en) Handling information
CN101984692A (en) Method and device for preventing malicious software from transmitting data
US20130074159A1 (en) Method and System for Sharing Mobile Security Information
CN101957857A (en) Automatic information push method and server
CN102404127A (en) Method and device both for reminding of new message
US20110131221A1 (en) Method and system for providing context aware communication
CN102214116A (en) Method and equipment for realizing direct login in network application
CN103412870A (en) News pushing method of mobile terminal device news client side software
CN101980497A (en) Method and system for displaying friend trends in classified way
CN102655505A (en) Open-type communication platform and realization method thereof
CN103078881A (en) Sharing control system and method for network resource downloading information
CN102970402A (en) Method and device for updating contact information of mobile terminal address book

Legal Events

Date Code Title Description
C06 Publication
SE01