(19)
(11)EP 3 687 118 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
29.07.2020 Bulletin 2020/31

(21)Application number: 17932289.6

(22)Date of filing:  15.11.2017
(51)International Patent Classification (IPC): 
H04L 12/58(2006.01)
(86)International application number:
PCT/CN2017/111152
(87)International publication number:
WO 2019/095156 (23.05.2019 Gazette  2019/21)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
MA MD

(71)Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • TU, Yongfeng
    Shenzhen Guangdong 518129 (CN)
  • GAO, Wenmei
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Pfenning, Meinig & Partner mbB 
Patent- und Rechtsanwälte Theresienhöhe 11a
80339 München
80339 München (DE)

  


(54)INFORMATION SEARCH METHOD, TERMINAL, NETWORK DEVICE, AND SYSTEM


(57) This application relates to the terminal field, and in particular, to an information search method. In the information search method, if a first terminal performs a first search based on a first keyword, and does not obtain a result, the first terminal generates a request for performing a second search, and sends, to a network device, the request for performing the second search. The network device sends a second request to a second terminal. The second terminal performs the second search based on the first keyword, obtains a second search result, and sends the second search result to the first terminal. According to the solution provided in this application, it can be effectively ensured that a user finds, as much as possible, a search result corresponding to the first keyword, and user privacy is also ensured.




Description

TECHNICAL FIELD



[0001] This application relates to the field of communications technologies, and in particular, to an information search method, a terminal, a network device, and a system.

BACKGROUND



[0002] A rise of a mobile terminal brings a large amount of instant messaging (Instant Messaging, IM) software, so that people communicate more conveniently. In a process in which a user uses instant messaging, a client locally stores a historical chat record by default, and the historical chat record includes a historical record of a point-to-point chat and a historical record of a multi-party chat. However, a chat record in an existing instant messaging system (for example, WeChat) is not stored or backed up in a cloud. If the user locally deletes the chat record, the chat record cannot be restored. In many cases (for example, actively deleting, deleting by mistake, uninstalling an app and reinstalling the app, reinstalling a system, and replacing a mobile phone), the user may encounter this problem: Some previous chat records, links, or images that the user wants to search for cannot be obtained. However, due to a problem such as user privacy, the chat record cannot be stored in the cloud or another network device. Therefore, once lost, a local chat record cannot be found.

SUMMARY



[0003] This application provides an information search method. When historical information of a terminal is deleted locally, a user may obtain corresponding historical information through an across-terminal search.

[0004] According to a first aspect, an embodiment of this application provides a first terminal. The first terminal includes: a detection module, where the detection module is configured to detect a first operation; a search module, where the search module is configured to perform a first search in response to the first operation, the first search is a search for a first keyword in a first record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, and the first user is different from the second user; a display module, where the display module is configured to display a first search result obtained after the first search is performed and a first option, the first option is used to prompt to perform a second search, the second search is a search for the first keyword in a second record, and the second record is a record that is of the session and that is stored on the second terminal; the detection module is configured to detect a second operation performed on the option; and the display module is further configured to display a second search result obtained after the second search is performed. Therefore, a chat record does not need to be backed up in a network device or a cloud. When the chat record is lost, a user of a terminal can also effectively retrieve the chat record, so that user privacy is better protected.

[0005] In a possible implementation, the first terminal includes a sending module and a receiving module. The sending module is configured to send a request for performing the second search, and the receiving module is configured to receive the second search result obtained after the second search is performed.

[0006] In another possible implementation, the display module is further configured to display indication information. The indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record. In this implementation, the user may decisively select an object, to initiate the second search to the object.

[0007] According to a second aspect, an embodiment of this application provides a first terminal. The first terminal includes: a detection module, where the detection module is configured to detect a first operation; a search module, where the search module is configured to perform a first search in response to the first operation, and the first search is a search for a first keyword in a first record; a sending module, where the sending module is configured to send a request for performing a second search, the second search is a search for the first keyword in a second record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, the first user is different from the second user, and the second record is a record that is of the session and that is stored on the second terminal; and a display module, where the display module is configured to display a first search result obtained after the first search is performed and a second search result obtained after the second search is performed. In this implementation, a user of the first terminal may quickly and conveniently obtain the second search result.

[0008] In a possible implementation, the first terminal includes a sending module and a receiving module. The sending module is configured to send the request for performing the second search, and the receiving module is configured to receive the second search result obtained after the second search is performed.

[0009] In another possible implementation, the display module is further configured to display indication information. The indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record. In this implementation, the user may decisively select an object, to initiate the second search to the object.

[0010] According to a third aspect, an embodiment of this application provides a search method, applied to a first terminal. The method includes:

detecting, by the first terminal, a first operation;

performing a first search in response to the first operation, where the first search is a search for a first keyword in a first record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, and the first user is different from the second user; displaying, by the first terminal, a first search result obtained after the first search is performed and a first option, where the first option is used to prompt to perform a second search, the second search is a search for the first keyword in a second record, and the second record is a record that is of the session and that is stored on the second terminal; detecting, by the first terminal, a second operation performed on the option; and displaying, by the first terminal, a second search result obtained after the second search is performed.



[0011] In a possible implementation, the method includes: after the detecting, by the first terminal, a second operation performed on the option, sending, by the first terminal in response to the second operation, a request for performing the second search; and receiving, by the first terminal, the second search result obtained after the second search is performed.

[0012] In another possible implementation, the method further includes: the sending, by the first terminal in response to the second operation, a request for performing the second search includes: sending, by the first terminal to a network device in response to the second operation, the request for performing the second search; and forwarding, by the network device, the request to the second terminal.

[0013] In another possible implementation, the method further includes: The network device has first indication information, the first indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record. In this manner, security of the second terminal can be effectively ensured.

[0014] In another possible implementation, the first terminal displays second indication information. The second indication information is used to indicate that the second terminal enables the remote search function, and the remote search function allows the search for the first keyword in the second record.

[0015] In another possible implementation, the method further includes: sending, by the first terminal, the request to the second terminal in response to the second operation.

[0016] In another possible implementation, the method further includes: The second search result includes the second search result and a context of the second search result. In this implementation, a complete result that the user wants to search for can be obtained.

[0017] In another possible implementation, the method further includes: The request for performing the second search includes a first identifier, a second identifier, and the first keyword. The first identifier is an identity of the first terminal, and the second identifier is an identity of the second terminal.

[0018] In another possible implementation, the method further includes: The second terminal includes a single terminal that has a session with the first terminal, one terminal in a same session group as the first terminal, or a plurality of terminals in a same session group as the first terminal.

[0019] In another possible implementation, the method further includes: The first operation or the second operation includes at least one of the following options: tapping a touchscreen of a terminal, double tapping the touchscreen of the terminal, or sliding on the touchscreen of the terminal and receiving voice input.

[0020] In another possible implementation, the method further includes: The historical information includes at least one of text information, a link, an image, or a video.

[0021] According to a fourth aspect, this application provides a search method, applied to a first terminal. The method includes: detecting, by the first terminal, a first operation; in response to the first operation, performing a first search and sending a request for performing a second search, where the first search is a search for a first keyword in a first record, the second search is a search for the first keyword in a second record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, the first user is different from the second user, and the second record is a record that is of the session and that is stored on the second terminal; and displaying, by the first terminal, a first search result obtained after the first search is performed and a second search result obtained after the second search is performed. In this implementation, a user of the first terminal may perform a search more conveniently, so that efficiency is improved.

[0022] According to a fifth aspect, an embodiment of the present invention provides a first terminal. The first terminal includes one or more processors and one or more memories. The one or more memories store one or more computer programs, and the one or more computer programs include an instruction. When the instruction is executed by the one or more processors, the terminal is enabled to perform any method in the first aspect.

[0023] According to a sixth aspect, an embodiment of this application provides a search method. The method includes:

receiving, by a network device, a request that is sent by a first terminal and that is for performing a second search, where the second search is a search for a first keyword in a second record, the second record is stored on the second terminal, the second record is a record of a session in which a first user that logs on the first terminal and a second user that logs on the second terminal participate, and the first user is different from the second user, where

the network device has first indication information, the first indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record; and

forwarding, by the network device, the request to the second terminal.



[0024] In a possible implementation, the method includes: receiving, by the network device, a second search result that is sent by the second terminal and that is obtained after the second search is performed; and sending, by the network device, the second search result to the first terminal.

[0025] In another possible implementation, the method further includes: authorizing, by the network device, the request for performing the second search to generate authorization information; and sending, by the network device, the request and the authorization information to the second terminal.

[0026] In another possible implementation, the method further includes: The request includes a first identifier, a second identifier, or the first keyword. The first identifier is an identity of the first terminal, the second identifier is an identity of the second terminal, and the first keyword is included in the historical information.

[0027] In another possible implementation, the second terminal includes a single terminal that has a session with the first terminal.

[0028] In another possible implementation, the second terminal includes one or more terminals in a same session group as the first terminal.

[0029] In another possible implementation, the sending, by the network device, the second search result to the first terminal includes: comparing, by the network device, a first time with a second time at which the first terminal joins the session group, where the first time includes a time at which a third record including the second search result occurs; and sending, by the network device, the second search result to the first terminal when the second time is earlier than the first time.

[0030] In another possible implementation, the method further includes: The historical information includes at least one of text information, a link, an image, or a video.

[0031] In a possible implementation, the network device includes: the receiving module is further configured to receive the historical information from the network device, where the historical information is obtained by the network device from the second terminal.

[0032] In another possible implementation, the terminal further includes: the receiving module is further configured to directly receive the historical information from the second terminal.

[0033] According to a seventh aspect, an embodiment of this application provides a network device. The network device includes: a receiving module, where the receiving module is configured to receive a request that is sent by a first terminal and that is for performing a second search, the second search is a search for a first keyword in a second record, the second record is stored on the second terminal, the second record is a record of a session in which a first user that logs on the first terminal and a second user that logs on the second terminal participate, the first user is different from the second user, the network device has first indication information, the first indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record; and a sending module, where the sending module is configured to send the request to the second terminal.

[0034] In a possible implementation, the network device includes: the receiving module is further configured to receive a second search result that is sent by the second terminal and that is obtained after the second search is performed; and the sending module is further configured to send the second search result to the first terminal.

[0035] In another possible implementation, the network device further includes an authorization information generation module. The authorization information generation module is configured to authorize the request for performing the second search, to generate authorization information. The sending module is further configured to send the request for performing the second search and the authorization information to the second terminal.

[0036] In another possible implementation, the second terminal includes a single terminal that has a session with the first terminal.

[0037] In another possible implementation, the second terminal includes one or more terminals in a same session group as the first terminal.

[0038] In another possible implementation, the network device further includes a comparison module. The comparison module is configured to compare a first time with a second time at which the first terminal joins the session group. The first time includes a time at which a third record including the second search result occurs.

[0039] According to an eighth aspect, an embodiment of the present invention provides a network device. The network device includes one or more processors and one or more memories. The one or more memories store one or more computer programs, and the one or more computer programs include an instruction. When the instruction is executed by the one or more processors, the terminal is enabled to perform any method in the sixth aspect.

[0040] According to a ninth aspect, an embodiment of the present invention provides an information obtaining system, including the terminal in the first aspect and the second aspect and the network device in the seventh aspect and the eighth aspect.

[0041] According to a tenth aspect, an embodiment of the present invention provides a computer program product including an instruction. When the computer program product is run on an electronic device, the electronic device is enabled to perform the method described in the first aspect.

[0042] According to an eleventh aspect, an embodiment of the present invention provides a computer readable storage medium including an instruction. When the instruction is run on an electronic device, the electronic device is enabled to perform the method described in the first aspect.

[0043] According to a twelfth aspect, an embodiment of the present invention further provides a data processing system, including modules configured to perform the methods according to the first aspect.

[0044] Compared with the prior art, in the technical solutions of this application, a cross-terminal information search may be performed. This effectively ensures that a user can still obtain corresponding information after a record is lost. In addition, not all chat records need to be backed up in a network device, so that user privacy is effectively protected.

[0045] It is clearer and easier to understand the foregoing and other aspects of the present invention in descriptions of the following (plurality of) embodiments.

BRIEF DESCRIPTION OF DRAWINGS



[0046] 

FIG. 1 is a schematic structural diagram of a part of a terminal device according to an embodiment of the present invention;

FIG. 2(a) is a schematic diagram of a remote search system according to an embodiment of the present invention;

FIG. 2(b) is a schematic diagram of a graphical interface for displaying second indication information according to an embodiment of the present invention;

FIG. 3(a) is a schematic diagram of a point-to-point session scenario according to an embodiment of the present invention;

FIG. 3(b) is a flowchart of an information obtaining method applied to a point-to-point dialog scenario according to an embodiment of the present invention;

FIG. 3(c) is a schematic diagram of a graphical interface in which a remote search function is enabled according to an embodiment of the present invention;

FIG. 3(d) is a schematic diagram of a graphical interface in which information is searched at a chat window according to an embodiment of the present invention;

FIG. 3(e) is a schematic diagram of a graphical interface in which information is searched on a home screen according to an embodiment of the present invention;

FIG. 3(f) is a schematic diagram of a graphical interface in which a first keyword is entered according to an embodiment of the present invention;

FIG. 3(g) is a schematic diagram of a graphical interface in which an information search method is performed according to an embodiment of the present invention;

FIG. 3(h) is a schematic diagram of a graphical interface displaying a first search result and a second search result according to an embodiment of the present invention;

FIG. 3(i) is a schematic diagram of a graphical interface in which no result is found after a first search and in which a first option is displayed according to an embodiment of the present invention;

FIG. 3(j) is a schematic diagram of a graphical interface in which no result is found after a first search and a second search result is displayed according to an embodiment of the present invention;

FIG. 3(k) is a schematic diagram of a graphical interface in which no result is found after a first search and in which there is no first option according to an embodiment of the present invention;

FIG. 4(a) is a schematic diagram of a group session scenario according to an embodiment of the present invention;

FIG. 4(b)-1 and FIG.4(b)-2 are a flowchart of an information obtaining method applied to a group session scenario according to an embodiment of the present invention;

FIG. 4(c) is a schematic diagram of a graphical interface in which a group remote search function is enabled according to an embodiment of the present invention;

FIG. 4(d) is a schematic diagram of a graphical interface in which no result is found after a first search and a second search according to an embodiment of the present invention;

FIG. 5 is a schematic diagram of a terminal apparatus according to an embodiment of the present invention; and

FIG. 6 is a schematic diagram of a network device apparatus according to an embodiment of the present invention.


DESCRIPTION OF EMBODIMENTS



[0047] The following describes embodiments of the present invention with reference to accompanying drawings.

[0048] The terms used in the embodiments of the present invention are merely for illustrating specific embodiments, and are not intended to limit the present invention. The terms "a", "the" and "this" of singular forms used in the embodiments and the appended claims of the present invention are also intended to include plural forms, unless otherwise specified in the context clearly. It should also be understood that, the term "and/or" used herein indicates and includes any or all possible combinations of one or more associated listed items. The character "/" in this specification usually indicates an "or" relationship between the associated objects.

[0049] It should be understood that although terms "first", "second", "third", and the like may be used in the embodiments of the present invention to describe various messages, requests, and terminals, the messages, the requests, and the terminals are not limited by the terms. These terms are used only to distinguish between the messages, the requests, and the terminals. For example, without departing from the scope of the embodiments of the present invention, a first terminal may alternatively be referred to as a second terminal, and similarly, a second terminal may alternatively be referred to as a first terminal.

[0050] When a local session record on a terminal of a user A in an instant information system is lost or deleted, the user A cannot find a corresponding historical record. However, to ensure user privacy, the session record of the user A is not backed up in a cloud or a network device. Therefore, when the local session record is lost or deleted, the user A cannot find corresponding historical information any more.

[0051] An information search method provided in the embodiments of the present invention is used to search for information that is on a terminal. When the local session record on the terminal of the user A is lost or deleted, the user A initiates a request for searching on another terminal. The network device forwards the request to a terminal of a user B that is in a session with the user A, and the user B agrees to the request. A search is performed on the terminal of the user B, and corresponding historical information obtained through searching is sent to the terminal of the user A.

[0052] The terminal may be, for example, a mobile phone, a tablet, a laptop, a digital camera, a personal digital assistant (personal digital assistant, PDA), a navigation apparatus, a mobile internet apparatus (Mobile Internet Device, MID), or a wearable device.

[0053] FIG. 1 is a structural block diagram of a part of a terminal according to an embodiment of the present invention. The terminal is described by using a mobile phone 100 as an example. Referring to FIG. 1, the mobile phone 100 includes components such as a radio frequency (Radio Frequency, RF) circuit 110, a power supply 120, a processor 130, a memory 140, an input unit 150, a display unit 160, a sensor 170, an audio circuit 180, and a wireless fidelity (wireless fidelity, WiFi) module 190. A person skilled in the art may understand that the structure of the mobile phone shown in FIG. 1 does not constitute a limitation on the mobile phone. The mobile phone may include more or fewer components than those shown in the figure, or may include a combination of some components, or may include different component arrangements.

[0054] The following describes in detail each component of the mobile phone 100 with reference to FIG. 1.

[0055] The RF circuit 110 may be configured to receive and send signals during receiving and sending of information or in a call process. For example, the RF circuit 110 may send downlink data received from a base station to the processor 130 for processing, and send uplink data to the base station. Generally, the RF circuit includes but is not limited to an RF chip, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, a radio frequency switch, and the like. In addition, the RF circuit 110 may further perform wireless communication with a network and another device. Any communications standard or protocol may be used for the wireless communication, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple address (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), an email, short message service (short messaging service, SMS), and the like.

[0056] The memory 140 may be configured to store a software program and a module. The processor 130 executes various function applications of the mobile phone 100 and performs data processing by running the software program and the module that are stored in the memory 140. The memory 140 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playing function and an image playing function), and the like. The data storage area may store data (such as audio data and a phone book) created based on use of the mobile phone 100, and the like. In addition, the memory 140 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash storage device, or another volatile solid-state storage device. The memory 140 may further store a knowledge base, a tag library, and an algorithm library.

[0057] The input unit 150 may be configured to receive an entered digit or entered character information, and generate a key signal input related to user setting and function control of the mobile phone 100. Specifically, the input unit 150 may include a touch control panel 151 and another input device 152. The touch control panel 151, also referred to as a touchscreen, may collect a touch operation of a user on or near the touch control panel 151 (such as an operation of the user on the touch control panel 151 or near the touch control panel 151 by using any suitable object or accessory such as a finger or a stylus), and drive a corresponding connection apparatus based on a preset program. Optionally, the touch control panel 151 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch position of the user, detects a signal generated by the touch operation, and transfers the signal to the touch controller. The touch controller receives touch information from the touch detection apparatus, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 130. Moreover, the touch controller can receive and execute a command sent by the processor 130. In addition, the touch control panel 151 may be implemented in a plurality of types, such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. The input unit 150 may include the another input device 152 in addition to the touch control panel 151. Specifically, the another input device 152 may include but is not limited to one or more of a physical keyboard, a function key (such as a volume control key or an on/off key), a trackball, a mouse, and a joystick.

[0058] The display unit 160 may be configured to display information entered by the user or information provided for the user, and various menus of the mobile phone 100. The display unit 160 may include a display panel 161. Optionally, the display panel 161 may be configured in a form such as a liquid crystal display (liquid crystal display, LCD for short) or organic light-emitting diode (organic light-emitting diode, OLED for short). Further, the touch control panel 151 may cover the display panel 161. After detecting a touch operation on or near the touch control panel 151, the touch control panel 151 transfers the touch operation to the processor 130 to determine a touch event type. Subsequently, the processor 130 provides corresponding visual output on the display panel 161 based on the touch event type. Although, in FIG. 1, the touch control panel 151 and the display panel 161 are used as two separate parts to implement an input function and an output function of the mobile phone 100, in some embodiments, the touch control panel 151 and the display panel 161 may be integrated to implement the input function and the output function of the mobile phone 100.

[0059] The mobile phone 100 may further include at least one sensor 170, for example, a light sensor, a motion sensor, or another sensor. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust brightness of the display panel 161 based on brightness of ambient light. The proximity sensor may turn off the display panel 161 and/or backlight when the mobile phone 100 approaches an ear. As a motion sensor, an accelerometer sensor may detect a value of an acceleration in each direction (three axes generally), may detect a value and a direction of gravity in a static mode, and may be applied to an application used for recognizing a mobile phone gesture (for example, screen switching between a landscape mode and a portrait mode, a related game, and magnetometer posture calibration), a function related to vibration recognition (for example, a pedometer or a knock), and the like. The mobile phone 100 may further be configured with another sensor, such as a gyroscope, a barometer, a hygrometer, a thermometer, or an infrared sensor. Details are not described herein again.

[0060] The audio circuit 180, a speaker 181, and a microphone 182 may provide an audio interface between the user and the mobile phone 100. The audio circuit 180 may convert received audio data into an electrical signal and transmit the electrical signal to the speaker 181, and the speaker 181 converts the electrical signal into a sound signal and outputs the sound signal. In addition, the microphone 182 converts a collected sound signal into an electrical signal, and the audio circuit 180 receives the electrical signal and converts the electrical signal into audio data, and outputs the audio data to the RF circuit 110 to send the audio data to, for example, another mobile phone, or outputs the audio data to the memory 140 for further processing.

[0061] WiFi is a short-range wireless transmission technology. The mobile phone 100 may help, by using the WiFi module 190, the user to send and receive emails, browse a web page, access streaming media, and the like. WiFi provides wireless broadband internet access for the user. Although FIG. 1 shows the WiFi module 190, it may be understood that the WiFi module 190 is not a mandatory part of the mobile phone 100, and may be omitted according to a need without changing the essence of the present invention.

[0062] The processor 130 is a control center of the mobile phone 100, is connected to various parts of the entire mobile phone by using various interfaces and lines, and executes various functions of the mobile phone 100 and performs data processing by running or executing the software program and/or the module stored in the memory 140 and invoking data stored in the memory 140, so as to implement various mobile phone-based services. Optionally, the processor 130 may include one or more processing units. Preferably, an application processor and a modem processor may be integrated into the processor 130. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem processor mainly processes wireless communication. It may be understood that the modem processor may not be integrated into the processor 130.

[0063] In this embodiment of the present invention, the processor 130 may execute a program instruction stored in the memory 140, to perform a method shown in the following embodiments.

[0064] The mobile phone 100 further includes the power supply 120 (for example, a battery) configured to supply power for the components. Preferably, the power supply may be logically connected to the processor 130 by using a supply power management system. Therefore, functions such as management of charging, discharging, and power consumption are implemented by using the supply power management system.

[0065] As shown in FIG. 2(a), an embodiment of the present invention provides an information search system, including a first terminal 201, a network device 202, and a second terminal.

[0066] The second terminal may be one terminal or one or more terminals in a same session group as the first terminal 201. For example, the second terminal may include only a second terminal 203, or may include a plurality of terminals such as a second terminal a, a second terminal b, a second terminal c, and a second terminal n.

[0067] When detecting a first operation, the first terminal 201 performs a first search in response to the first operation. The first search is a search for a first keyword in a first record. The first record is stored on the first terminal 201, and the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on the second terminal participate. The first terminal displays a first search result obtained after the first search is performed, and displays a first option at the same time. When the first option is selected by the user, the first terminal 201 sends, to the second terminal or the network device, a request for performing a second search. The second search is a search for the first keyword in a second record, and the second record is a record that is of the session and that is stored on the second terminal.

[0068] Optionally, the network device 202 receives the request for performing the second search, and the network device has first indication information. The first indication information is used to indicate that the second terminal enables a remote search function. The remote search function allows the search for the first keyword in the second record, adds network device authorization information in addition to the request for performing the second search, and sends, to the second terminal, the request for performing the second search and the authorization information. If verifying that the authorization information is valid, the second terminal performs the second search locally. The second search is the search for the first keyword in the second record, and the second record is the record that is of the session and that is stored on the second terminal. Then the network device sends a second search result obtained after the second search is performed to the first terminal, and the first terminal displays the second search result.

[0069] Further, in some embodiments, after the second terminal enables the remote search function, the first terminal may display second indication information. The second indication information is used to indicate that the second terminal enables the remote search function, and the remote search function allows the search for the first keyword in the second record.

[0070] Specifically, as shown in FIG. 2(b), the terminal presents an interface 207. The interface 207 is a contact interface, and includes an icon 208 indicating a user A and an identifier 209. The identifier 209 indicates that the user A enables the remote search function.

[0071] When the user does not find information locally, the user may conveniently learn, by viewing the contact interface, which user enables the remote search function, and the user may directly initiate, to the user, the request for performing the second search.

[0072] As shown in FIG. 3(a) and FIG. 3(b), the present invention provides a historical information search method applied to a point-to-point dialog scenario. The point-to-point dialog scenario is shown in FIG. 3(a), and includes a first terminal 301 and a second terminal 302 having a dialog with the first terminal.

[0073] FIG. 3(b) is a flowchart of an information obtaining method applied to the point-to-point dialog scenario. The method includes the following steps:

S301. The second terminal 302 enables a remote search function.

S302. A network device has first indication information.

S303. A dialog occurs between the first terminal 301 and the second terminal 302.

S304. The first terminal performs a first search, displays a first search result and a first option, performs a second operation, and initiates a request for performing the second search.

S305. The network device receives the request for performing the second search, authorizes the request for performing the second search, generates authorization information, and sends the authorization information to the second terminal.

S306. The second terminal verifies validity of the authorization information, performs the second search, and obtains a second search result.

S307. The second search result is received by the network device and forwarded to the first terminal.

S308. The first terminal obtains historical information, and locally presents the historical information.



[0074] In step S301, the remote search function is performed across terminals.

[0075] In step S302, the first indication information is used to indicate that the second terminal enables the remote search function, and the remote search function is performed across the terminals.

[0076] Specifically, as shown in FIG. 3(c), the second terminal presents an interface 303, and the second interface 303 includes an option 304 and an option 305. The interface 304 is a control interface for a user of the second terminal, the option 304 is used to enable a function of allowing a user of the first terminal to perform a remote search, and the option 305 is used to enable a function of reminding the user of the second terminal to perform verification each time the user of first terminal performs a remote search.

[0077] In step S303, the dialog includes sending an SMS message to each other or sending a message by using instant information software such as WeChat or QQ. Specifically, the user of the second terminal and the user of the first terminal are friends. If the dialog is a temporary session, the user of the second terminal and the user of the first terminal are not friends. Friend verification needs to be performed before the request for performing the second search is initiated.

[0078] In step S304, the request for performing the second search includes a first identifier, a second identifier, and a first keyword. The first identifier is an identity of the first terminal, the second identifier is an identity of the second terminal, and the first keyword is included in a search result.

[0079] The first terminal first performs the first search based on the first keyword. If there is a first search result including the first keyword, the first terminal presents the search result and displays the first option at the same time, and the first option is used to initiate the request for performing the second search. If the first search result including the first keyword is not found, the user of the first terminal performs the second operation on the first option, and the first terminal initiates the request for performing the second search. The request for performing the second search includes the identifier of the first terminal, the identifier of the second terminal that is in a session with the first terminal, and the first keyword that needs to be searched for by the first terminal. Specifically, when the first terminal needs to search for historical information including a first keyword "A", if the first terminal does not find the historical information after performing the first search, the first terminal initiates the request for performing the second search, and the second terminal performs the second search.

[0080] Further, in some embodiments, the foregoing search process may be implemented inside software, and the search manner may be performed in a specific dialog interface, or may be performed on a home screen.

[0081] Specifically, in some embodiments, as shown in FIG. 3(d), the terminal presents an interface 306. The interface 306 is a user session interface and includes a search box 307. When a user needs to search for information, the user taps the search box 307.

[0082] As shown in FIG. 3(e), the terminal presents an interface 308. The interface 308 is a home screen of the terminal, and the interface 308 includes a search box 307. The user may tap the search box 307 to perform a search.

[0083] According to the foregoing embodiment, as shown in FIG. 3(f), the user taps the search box 307, the terminal presents an interface 309, and the interface 309 includes a search box 310. The user of the first terminal enters a first keyword 311 in the search box 310 to perform a search. Further, when a corresponding search record is obtained by searching for a first keyword 311 "ABC", as shown in FIG. 3(g), the terminal presents an interface 312. The interface 312 includes an obtained search result 313 and an option 314 for further performing a search on the second terminal. When the user of the first terminal taps the option 314, as shown in FIG. 3(h), the first terminal presents an interface 315, and the interface 315 includes a result 316 found locally on the first terminal and a result 317 obtained through the search performed on the second terminal.

[0084] Further, when the corresponding search record is not obtained by searching for the first keyword 311 "ABC", as shown in FIG. 3(i), the terminal presents an interface 318. The interface 318 includes a prompt 319 indicating that no search result is obtained and the option 314 for further performing a search on the second terminal. When the user of the first terminal taps the option 314, as shown in FIG. 3(j), the first terminal presents an interface 320, and the interface 320 includes the prompt 319 indicating that no search result is obtained and the result 317 obtained through the search performed on the second terminal.

[0085] Optionally, in some embodiments, the first terminal also needs to enable the remote search function.

[0086] In step S306, verifying the validity of the authorization information and whether the authorization information sent by the network device is valid may be implemented by using a verification mechanism. The verification mechanism is a process in which the second terminal verifies the authorization information, and may be implemented by using a digital certificate mechanism. To be specific, the network device sends a digital certificate including authentication information (for example, the request of the first terminal is authorized by the network device) to the second terminal. The second terminal authenticates validity of the digital certificate by using a public key that is of the network device and that is in the digital certificate. To be specific, the second terminal determines that the authorization information is from the network device, and content of the authorization information is not tampered with.

[0087] Further, in this embodiment of the present invention, the second terminal searches for corresponding historical information in a local session record based on the first keyword. When a second record of the second terminal is lost, the search fails, and content sent to the network device is empty.

[0088] Further, in this embodiment of the present invention, the second terminal has an option for allowing a remote search. When the user of the second terminal opens the option, it is considered that the user of the second terminal allows the remote search. Information is synchronized to the network device, and the network device has the first indication information.

[0089] Optionally, in some embodiments, if the first terminal initiates the request for performing the second search, and the second terminal does not enable the remote search function, the second terminal reminds the user whether to enable the remote search function.

[0090] Optionally, in some embodiments, the user may enable, on the second terminal, the remote search function for only some social friends. Specifically, the user of the second terminal has three friends: "A", "B", and "C". However, the user of the second terminal enables the remote search function only for "A". Therefore, only a second terminal of the user "A" performs the second search and obtains the second search result, and a search request of another user is rejected.

[0091] Optionally, in some embodiments, each time the second terminal receives the request for performing the second search, the second terminal needs to request permission from the user. Specifically, the second terminal has an option that authentication needs to be performed each time a remote search is performed. When the user opens the option, each time the first terminal initiates, to the second terminal, the request for performing the second search, the second terminal applies to the user for permission.

[0092] Optionally, in some embodiments, when receiving the second search result, the first terminal may send gratitude information to the second terminal, and the user of the first terminal may express gratitude to the user of the second terminal. Specifically, when presenting the second search, the first terminal simultaneously presents a like button. When the user of the first terminal taps the like button, the user of the second terminal receives the corresponding gratitude information.

[0093] Optionally, in some embodiments, the second terminal directly sends, to the first terminal without using the network device, the second search result obtained after the second search is performed, to reduce load of the network device.

[0094] Specifically, as shown in FIG. 3(k), the first terminal performs the first search, and presents an interface 321. The interface 321 includes the first keyword 311 and the prompt 319 indicating that no search result is obtained. Further, the first terminal sends the request for performing the second search. The first terminal displays the executed first search result and the second search result obtained after the second search is performed, as shown in FIG. 3(j).

[0095] As shown in FIG. 4(a), FIG. 4(b)-1, and FIG. 4(b)-2, an embodiment of the present invention provides an embodiment applied to a group session scenario. As shown in FIG. 4(a), the group session scenario includes a first terminal 401, and a second terminal a 402, a second terminal b 403, and a second terminal n 404 that are in a same group as the first terminal 401.

[0096] A specific method includes the following steps:

S401. The second terminal in the group enables a remote search function.

S402. A network device has first indication information.

S403. A session occurs in the group.

S404. The first terminal performs a first search, displays a first search result and a first option, performs a second operation, and initiates a request for performing the second search.

S405. The network device receives the request for performing the second search, authorizes the request for performing the second search, generates authorization information, and sends the authorization information to the second terminal.

S406. The second terminal verifies validity of the authorization information, performs the second search, and obtains a second search result.

S407. Compare a first time with a second time at which the first terminal joins the session group, and when the second time is earlier than the first time, send the historical information to the first terminal.

S408. The first terminal obtains the second search result, and presents the second search result on the first terminal.



[0097] Further, in step S401, the second terminal that enables the remote search function may be any terminal in the group. In a remote search process, a historical information search is performed only on the terminal that enables the function.

[0098] Optionally, in some embodiments, the second terminal in the group and the first terminal may or may not be friends.

[0099] Optionally, if in a same group, the request for performing the second search is sent to a non-friend, and to obtain information, a friend verification request may be first made.

[0100] Optionally, in some embodiments, the session group has a remote search option. An owner or an administrator of the session group enables the remote search function, and all terminals in the group are allowed to search for historical information across terminals.

[0101] Specifically, as shown in FIG. 4(c), the terminal presents an interface 405. The interface 405 is a management interface of the owner or the administrator of the session group, and includes an option 406. The option 406 is used to enable a function of allowing a member in the group to perform a remote search.

[0102] Optionally, in some embodiments, the session group may be an instant messaging software group such as a short message group, a WeChat group, or a QQ group.

[0103] Further, in step S406, that the network device sends the second search result to the first terminal includes: The network device compares the first time with the second time at which the first terminal joins the session group. The first time is a time at which a third record including the second search result occurs. When the second time is earlier than the first time, the network device sends the second search result to the first terminal.

[0104] Specifically, in step S407, a user of the first terminal joins the session group at a moment 14:50. If a group session record at a moment 14:40 is searched for, a cross-terminal search request fails.

[0105] Optionally, in some embodiments, the request for performing a remote search is first sent to the second terminal that is in a social-friend relationship with the first terminal in the session group, to search for historical information across terminals. If no result is obtained, the request is sent to another second terminal. For example, there are second terminals "A", "B", and "C" in the session group, and only the second terminal "A" is in a friend relationship with the first terminal. When the first terminal initiates the request for performing the second search and performs a cross-terminal search, the search first starts from the second terminal "A". If corresponding historical information is found on "A", the historical information is directly returned. If the corresponding historical information is not found on "A", the search is performed on other second terminals "B" and "C" at the same time.

[0106] Optionally, in some embodiments, the first terminal initiates the request for performing the second search, and all second terminals in the group session that enable the remote search function simultaneously perform a search locally. When one of the second terminals finds the corresponding historical information and returns the corresponding historical information, the other second terminals stop searching. For example, there are second terminals "A", "B", and "C" in the session group. When the first terminal initiates the request for performing the second search and performs a cross-terminal search, the search is simultaneously performed on the second terminals "A", "B", and "C". If corresponding historical information is found on "A" and is returned, the second terminals "B" and "C" stop searching.

[0107] Specifically, in some embodiments, the first terminal initiates the request for performing the second search. When no second terminal responds to the request or no result including a first keyword is found after the second search is performed, the first terminal prompts that no corresponding search result is found, or content displayed on the first terminal is empty. Specifically, as shown in FIG. 4(d), the first terminal presents an interface 407. The interface 407 includes a prompt box 408, and the prompt box 408 is used to prompt that no search result including the first keyword is found neither on the first terminal nor on the second terminal.

[0108] As shown in FIG. 5, the present invention provides a terminal 500, including a detection module 501, a search module 502, a display module 503, a sending module 504, and a receiving module 505. The detection module 501 is configured to detect a first operation. The search module 502 is configured to perform a first search in response to the first operation, and the first search is a search for a first keyword in a first record. The first record is stored on the first terminal, and the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate. The first user is different from the second user. The display module 503 is configured to display a first search result obtained after the first search is performed and a first option. The first option is used to prompt to perform a second search, and the second search is a search for the first keyword in a second record. The second record is a record that is of the session and that is stored on the second terminal. The sending module 504 is configured to send a request for performing the second search. The receiving module 505 is configured to receive a second search result obtained after the second search is performed.

[0109] Further, in some embodiments, the detection module 501 is further configured to detect a second operation performed on the option.

[0110] Further, in some embodiments, the display module 503 is further configured to display the second search result obtained after the second search is performed.

[0111] Optionally, in some embodiments, the display module 503 is further configured to display indication information. The indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the first terminal to send, to the second terminal, the request for performing the second search.

[0112] As shown in FIG. 6, the present invention provides a network device 600, including a receiving module 601, a sending module 602, an authorization information module 603, and a comparison module 604.

[0113] The receiving module 601 is configured to receive a request that is sent by a first terminal and that is for performing a second search. The network device has first indication information, and the first indication information is used to indicate that a second terminal enables a remote search function.

[0114] The sending module 602 is configured to send, to the second terminal, the request for performing the second search. There is a session between the first terminal and the second terminal, and the session record is historical information of the session.

[0115] The authorization information generation module 603 is configured to authorize the request for performing the second search, to generate authorization information.

[0116] The comparison module 604 is configured to compare a first time with a second time at which the first terminal joins the session group, and the first time is a time at which the second terminal receives or sends the historical information.

[0117] Further, in some embodiments, the receiving module 601 is further configured to receive the historical information sent by the second terminal. The sending module 602 is further configured to send the historical information to the first terminal.

[0118] Further, in some embodiments, the sending module is further configured to send the request for performing the second search and the authorization information to the second terminal.

[0119] Further, in some embodiments, the second terminal includes a single terminal that has a session with the first terminal.

[0120] Further, in some embodiments, the second terminal includes one or more terminals in a same session group as the first terminal.

[0121] Further, in some embodiments, the sending module is further configured to send, to the second terminal when the second time is earlier than the first time, the request for performing the second search.

[0122] An embodiment of the present invention further provides a computer storage medium, configured to store a computer software instruction used to implement a method and an apparatus for protecting terminal security shown in FIG. 3 to FIG. 4. The computer software instruction includes program code designed for performing the method embodiments.

[0123] An embodiment of the present invention further provides a computer program product. The computer program product includes a computer software instruction, and the computer software instruction may be loaded by using a processor, to implement the method in the foregoing method embodiments.

[0124] Although the present invention is described with reference to the embodiments, in a process of implementing the present invention that claims protection, a person skilled in the art may understand and implement another variation of the disclosed embodiments by viewing the accompanying drawings, disclosed content, and the appended claims. In the claims, "comprising" (comprising) does not exclude another component or another step, and" a "or" one " does not exclude a case of a plurality. A single processor or another unit may implement several functions listed in the claims. Some measures are described in dependent claims that are different from each other, but this does not mean that these measures cannot be combined to produce a better effect.

[0125] The present invention is described with reference to the flowcharts and/or block diagrams of the method, the apparatus (device), and the computer program product according to the embodiments of the present invention. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. The computer program instructions may be provided for a general-purpose computer, a special-purpose computer, an embedded processor, or a processor of another programmable data processing device to generate a machine, so that the instructions executed by using a computer or a processor of another programmable data processing device generate an apparatus for implementing a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

[0126] The computer program instructions may alternatively be stored in a computer readable memory that can instruct a computer or another programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory generate an artifact that includes an instruction apparatus. The instruction apparatus implements a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

[0127] The computer program instructions may alternatively be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or the another programmable device, to generate computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specified function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

[0128] A person skilled in the art should be aware that in the foregoing one or more examples, the functions described in the present invention may be implemented by using hardware, software, firmware, or any combination thereof. When the functions are implemented by software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code in a computer readable medium. The computer readable medium includes a computer storage medium and a communications medium, and the communications medium includes any medium that facilitates transmission of a computer program from one place to another. The storage medium may be any available medium accessible to a general-purpose computer or a special-purpose computer.

[0129] The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.


Claims

1. A first terminal, comprising:

a detection module, wherein the detection module is configured to detect a first operation;

a search module, wherein the search module is configured to perform a first search in response to the first operation, the first search is a search for a first keyword in a first record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, and the first user is different from the second user; and

a display module, wherein the display module is configured to display a first search result obtained after the first search is performed and a first option, the first option is used to prompt to perform a second search, the second search is a search for the first keyword in a second record, and the second record is a record that is of the session and that is stored on the second terminal, wherein

the detection module is further configured to detect a second operation performed on the option; and

the display module is further configured to display a second search result obtained after the second search is performed.


 
2. The first terminal according to claim 1, wherein the first terminal further comprises a sending module and a receiving module, the sending module is configured to send a request for performing the second search, and the receiving module is configured to receive the second search result obtained after the second search is performed.
 
3. The first terminal according to claim 1 or 2, wherein
the display module is further configured to display indication information, the indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record.
 
4. A first terminal, comprising:

a detection module, wherein the detection module is configured to detect a first operation;

a search module, wherein the search module is configured to perform a first search in response to the first operation, and the first search is a search for a first keyword in a first record;

a sending module, wherein the sending module is configured to send a request for performing a second search, the second search is a search for the first keyword in a second record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, the first user is different from the second user, and the second record is a record that is of the session and that is stored on the second terminal; and

a display module, wherein the display module is configured to display a first search result obtained after the first search is performed and a second search result obtained after the second search is performed.


 
5. A search method, applied to a first terminal, wherein the method comprises:

detecting, by the first terminal, a first operation;

performing a first search in response to the first operation, wherein the first search is a search for a first keyword in a first record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, and the first user is different from the second user;

displaying, by the first terminal, a first search result obtained after the first search is performed and a first option, wherein the first option is used to prompt to perform a second search, the second search is a search for the first keyword in a second record, and the second record is a record that is of the session and that is stored on the second terminal;

detecting, by the first terminal, a second operation performed on the option; and

displaying, by the first terminal, a second search result obtained after the second search is performed.


 
6. The method according to claim 5, wherein after the detecting, by the first terminal, a second operation performed on the option, the method further comprises:

sending, by the first terminal in response to the second operation, a request for performing the second search; and

receiving, by the first terminal, the second search result obtained after the second search is performed.


 
7. The method according to claim 6, wherein the sending, by the first terminal in response to the second operation, a request for performing the second search comprises:
sending, by the first terminal to a network device in response to the second operation, the request for performing the second search; and forwarding, by the network device, the request to the second terminal.
 
8. The method according to claim 7, wherein the network device has first indication information, the first indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record.
 
9. The method according to claim 5 or 6, wherein the method further comprises:
displaying, by the first terminal, second indication information, wherein the second indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record.
 
10. The method according to claim 5 or 9, wherein the sending, by the first terminal in response to the second operation, a request for performing the second search comprises:
sending, by the first terminal, the request to the second terminal in response to the second operation.
 
11. The method according to any one of claims 5 to 10, wherein the second search result comprises:
the second search result and a context of the second search result.
 
12. The method according to any one of claims 6 to 11, wherein the request for performing the second search comprises:

a first identifier, wherein the first identifier is an identity of the first terminal;

a second identifier, wherein the second identifier is an identity of the second terminal; and

the first keyword.


 
13. The method according to any one of claims 5 to 12, wherein the second terminal comprises:
a single terminal that has a session with the first terminal, one terminal in a same session group as the first terminal, or a plurality of terminals in a same session group as the first terminal.
 
14. The method according to any one of claims 5 to 13, wherein the first operation or the second operation comprises at least one of the following options:
tapping a touchscreen of a terminal, double tapping the touchscreen of the terminal, or sliding on the touchscreen of the terminal and receiving voice input.
 
15. The method according to any one of claims 5 to 14, wherein the first search result or the second search result comprises at least one of the following options:
text information, a link, an image, or a video.
 
16. A search method, applied to a first terminal, wherein the method comprises:

detecting, by the first terminal, a first operation;

in response to the first operation, performing a first search and sending a request for performing a second search, wherein the first search is a search for a first keyword in a first record, the second search is a search for the first keyword in a second record, the first record is stored on the first terminal, the first record is a record of a session in which a first user that logs on the first terminal and a second user that logs on a second terminal participate, the first user is different from the second user, and the second record is a record that is of the session and that is stored on the second terminal; and

displaying, by the first terminal, a first search result obtained after the first search is performed and a second search result obtained after the second search is performed.


 
17. A first terminal, comprising:

a touchscreen, wherein the touchscreen comprises a touch-sensitive surface and a display;

one or more processors;

a memory;

a plurality of application programs; and

one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprise an instruction, and when the instruction is executed by the terminal, the terminal is enabled to perform the method according to any one of claims 5 to 16.


 
18. A search method, wherein the method comprises:

receiving, by a network device, a request that is sent by a first terminal and that is for performing a second search, wherein the second search is a search for a first keyword in a second record, the second record is stored on the second terminal, the second record is a record of a session in which a first user that logs on the first terminal and a second user that logs on the second terminal participate, and the first user is different from the second user, wherein

the network device has first indication information, the first indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record; and

forwarding, by the network device, the request to the second terminal.


 
19. The method according to claim 18, wherein the method further comprises:

receiving, by the network device, a second search result that is sent by the second terminal and that is obtained after the second search is performed; and

sending, by the network device, the second search result to the first terminal.


 
20. The method according to claim 18 or 19, wherein the forwarding, by the network device, the request to the second terminal comprises:

authorizing, by the network device, the request to generate authorization information; and

sending, by the network device, the request and the authorization information to the second terminal.


 
21. The method according to any one of claims 18 to 20, wherein the request comprises:

a first identifier, wherein the first identifier is an identity of the first terminal;

a second identifier, wherein the second identifier is an identity of the second terminal; and

the first keyword.


 
22. The method according to any one of claims 18 to 21, wherein the second terminal comprises:
a single terminal that has a session with the first terminal.
 
23. The method according to any one of claims 18 to 21, wherein the second terminal comprises: one or more terminals in a same session group as the first terminal.
 
24. The method according to claim 23, wherein the sending, by the network device, the second search result to the first terminal comprises:

comparing, by the network device, a first time with a second time at which the first terminal joins the session group, wherein the first time is a time at which a third record comprising the second search result occurs; and

sending, by the network device when the second time is earlier than the first time, the second search result to the first terminal.


 
25. A network device, comprising:

a receiving module, wherein the receiving module is configured to receive a request that is sent by a first terminal and that is for performing a second search, the second search is a search for a first keyword in a second record, the second record is stored on the second terminal, the second record is a record of a session in which a first user that logs on the first terminal and a second user that logs on the second terminal participate, and the first user is different from the second user, wherein

the network device has first indication information, the first indication information is used to indicate that the second terminal enables a remote search function, and the remote search function allows the search for the first keyword in the second record; and

a sending module, wherein the sending module is configured to send the request to the second terminal.


 
26. The network device according to claim 25, comprising:

the receiving module is further configured to receive a second search result that is sent by the second terminal and that is obtained after the second search is performed; and

the sending module is further configured to send the second search result to the first terminal.


 
27. The network device according to claim 25 or 26, wherein the network device further comprises an authorization information generation module, and the authorization information generation module is configured to authorize the request to generate authorization information; and
the sending module is further configured to send the request and the authorization information to the second terminal.
 
28. The network device according to any one of claims 25 to 27, wherein the second terminal comprises one or more terminals in a same session group as the first terminal.
 
29. The network device according to claim 28, wherein the network device further comprises a comparison module, the comparison module is configured to compare a first time with a second time at which the first terminal joins the session group, and the first time is a time at which a third record comprising the second search result occurs.
 
30. A network device, comprising:

one or more processors; and

one or more memories, wherein the one or more memories store one or more computer programs, the one or more computer programs comprise an instruction, and when the instruction is executed by the one or more processors, the terminal is enabled to perform the method according to any one of claims 18 to 24.


 
31. A system, wherein the system comprises the first terminal according to any one of claims 1 to 4 and claim 17, and the network device according to any one of claims 25 to 30.
 
32. A computer program product comprising an instruction, wherein when the computer program product is run on an electronic device, the electronic device is enabled to perform the method according to any one of claims 5 to 16.
 
33. A computer readable storage medium comprising an instruction, wherein when the instruction is run on an electronic device, the electronic device is enabled to perform the method according to any one of claims 5 to 16.
 




Drawing
































































Search report