CN109710088B - Information searching method and device - Google Patents

Information searching method and device Download PDF

Info

Publication number
CN109710088B
CN109710088B CN201811653571.XA CN201811653571A CN109710088B CN 109710088 B CN109710088 B CN 109710088B CN 201811653571 A CN201811653571 A CN 201811653571A CN 109710088 B CN109710088 B CN 109710088B
Authority
CN
China
Prior art keywords
search
input
terminal
records
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811653571.XA
Other languages
Chinese (zh)
Other versions
CN109710088A (en
Inventor
陈成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201811653571.XA priority Critical patent/CN109710088B/en
Publication of CN109710088A publication Critical patent/CN109710088A/en
Application granted granted Critical
Publication of CN109710088B publication Critical patent/CN109710088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses an information searching method and device, wherein the method comprises the following steps: the terminal receives a search instruction triggered by a user aiming at an input method display interface; the terminal obtains N candidate contents according to a search instruction and a preset rule, and pops up a first window in an input method display interface, wherein the N candidate contents are displayed in the first window, and N is a positive integer; the terminal receives a selection instruction of a user, wherein the selection instruction is used for selecting one content from the N candidate contents as a target search content; the terminal sends a search request to the server, wherein the search request is used for requesting the server to search target search contents; the terminal receives a search result sent by the server; and the terminal displays the search result in a second window of the input method display interface. The scheme provided by the embodiment of the invention realizes convenient information search operation in the input method editing environment, can meet the instant search requirement of the user and the personalized requirement of the user, and effectively improves the user experience.

Description

Information searching method and device
Technical Field
The present invention relates to the field of computer technology and communication technology, and in particular, to an information search method and apparatus.
Background
In the conventional technology, if a search engine is used to search for target search content, a page provided with the search engine is opened first, then the target search content is input into a search input box, and finally the search for the target search content is performed by clicking a search button. For example, when a user chats through an instant messaging application or edits a document through a document editing application, a search request is generated, and the user must exit or hide a current application page and then open a page provided with the search engine to search for target search content. The user needs to frequently jump back and forth between the current application and the page provided with the search engine, which is very inconvenient to use.
In order to solve the above problems, the input method integrated search engine technology has received attention and research. However, the existing input method integration engine technology can only input the target search content in the information input box manually by the user, or manually select the target search content in the input content of the information input box by the user, and when the target search content of the user is not input in the information input box, or the target search content of the user is not consistent with the input content in the information input box, the user is required to manually input the required content in the information input box again
The contents of the search. Therefore, the existing input method integrated search engine technology is inconvenient in search operation, cannot meet the instant search requirement of a user and the personalized requirement of the user, and is poor in user experience.
Disclosure of Invention
The embodiment of the invention provides an information searching method and device, which can realize convenient information searching operation under an input method editing environment, meet the instant searching requirement of a user and the personalized requirement of the user and effectively improve the user experience.
In a first aspect, an embodiment of the present invention provides an information search method, where the method includes the following steps:
the method comprises the steps that a terminal receives a search instruction triggered by a user aiming at an input method display interface;
the terminal acquires N candidate contents according to a search instruction and a preset rule, and pops up a first window in an input method display interface, wherein the N candidate contents are displayed in the first window, and N is a positive integer;
the terminal receives a selection instruction of a user, wherein the selection instruction is used for selecting one content from the N candidate contents as a target search content;
the terminal sends a search request to a server, wherein the search request is used for requesting the server to search the target search content;
the terminal receives a search result sent by the server;
and the terminal displays the search result in a second window of the input method display interface.
In the embodiment of the invention, in an input method editing environment, a terminal receives a search instruction of a user, the terminal acquires N candidate contents according to the search instruction and a preset rule, the user selects one content from the N candidate contents as a target search content, and the terminal searches for the target search content in the input method editing environment and acquires a search result. By the scheme, convenient information search operation can be realized under the input method editing environment, the instant search requirement of the user and the personalized requirement of the user are met, and the user experience is effectively improved.
Optionally, the N candidate contents are obtained by the terminal from a local database or obtained from a server.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes:
the terminal determines N candidate contents from the historical search records according to the search time and/or the search frequency;
or the terminal determines N candidate contents from the keywords in the historical search records according to the search time and/or the search frequency; or the terminal determines N candidate contents from the chat records according to the search time and/or the search frequency;
or the terminal determines N candidate contents from the keywords of the chat records according to the search time and/or the search frequency.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes:
the method comprises the steps that a terminal sends a first acquisition request to a server, wherein the first acquisition request is used for acquiring the first H hot search records in a real-time hot search ranking list of a preset search website, and H is a positive integer larger than or equal to N; the terminal receives H hot search records sent by the server; the terminal determines N candidate contents from the H hot search records;
or the terminal sends a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records which take the preset identifier as a keyword in the real-time hot search ranking list of the preset search website, and I is a positive integer greater than or equal to N; the terminal receives I hot search records sent by the server; the terminal determines N candidate contents from the I hot-search records.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes:
the terminal acquires N different historical search records of the terminal with the shortest search time distance from the current time, and takes the N different historical search records as N candidate contents;
or the terminal acquires a first historical search record of the terminal in a first preset time period before the current time; the terminal calculates the searching frequency of each historical searching record in the first historical searching records; the terminal selects N different history search records with highest search frequency from the first history search records as N candidate contents;
or the terminal acquires a first historical search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal calculates the search frequency of each keyword in the first keyword group; the terminal selects N different keywords with highest search frequency from the first keyword group as N candidate contents;
or the terminal acquires a first historical search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal calculates the search frequency of each keyword in the first keyword group; the terminal selects a first keyword with the searching frequency larger than a first preset value from the first keyword group to obtain a second keyword group; the terminal selects N different keywords with the shortest search time and current time from the second keyword group as N candidate contents;
or the terminal acquires N latest chat records, wherein each chat record in the chat records is a continuous character without punctuation marks, each chat record in the chat records does not exceed M characters, and M is a positive integer; the terminal takes the N latest chat records as N candidate contents; or the terminal acquires a first chat record of the terminal in a second preset time period before the current time; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal calculates the use frequency of each keyword in the third keyword group; the terminal selects N different keywords with highest use frequency from the third keyword group as N candidate contents;
or the terminal acquires the first chat record; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal calculates the use frequency of each keyword in the third keyword group; the terminal selects a first keyword with the use frequency larger than a second preset value in the third keyword group to obtain a fourth keyword group; and the terminal selects N different keywords with the shortest use time and current time from the fourth keyword group as N candidate contents.
In the embodiment of the invention, various schemes are provided for acquiring N candidate contents by a terminal according to a preset rule. The scheme provided surrounds the historical search records, and can intelligently recommend the latest N historical search records to the user, or the N historical search records with higher search frequency in a preset time period, or the keywords of the N historical search records with higher search frequency in the preset time period, or the keywords of the N most recently searched historical search records with search frequency greater than a certain preset value. The scheme provided surrounds the chat records, and can intelligently recommend the latest N chat records to the user, or the N chat records with higher search frequency in a preset time period, or the keywords of the N chat records with higher search frequency in the preset time period, or the keywords of the N recently searched chat records with search frequency greater than a certain preset value, or the N hot search records in the hot search records. By the scheme, no matter whether input content exists in an input frame of the input method display interface or not, the terminal can intelligently recommend candidate content which is more matched with actual requirements of the user to the user after receiving a search instruction of the user so as to be selected by the user, and the user experience is improved.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including:
the terminal matches the first input content with the historical search records to obtain the matching degree of the historical search records, and determines N candidate contents from the historical search records according to the matching degree, the search time and/or the search frequency;
or the terminal matches the first input content with the keywords of the historical search records to obtain the matching degree of the keywords of the historical search records, and determines N candidate contents from the keywords of the historical search records according to the matching degree, the search time and/or the search frequency;
or the terminal matches the first input content with the chat records to obtain the matching degree of the chat records, and determines N candidate contents from the chat records according to the matching degree, the search time and/or the search frequency;
or the terminal matches the first input content with the keywords of the chat records to obtain the matching degree of the keywords of the chat records, and determines N candidate contents from the keywords of the chat records according to the matching degree, the search time and/or the search frequency.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including:
the method comprises the steps that a terminal sends a first acquisition request to a server, wherein the first acquisition request is used for acquiring the first H hot search records in a real-time hot search ranking list of a preset search website, and H is a positive integer larger than or equal to N; the terminal receives H hot search records sent by the server; the terminal matches the first input content with the H hot search records to obtain the matching degree of the H hot search records; the terminal determines N candidate contents from the H hot search records according to the matching degree;
or the terminal sends a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records which take the preset identifier as a keyword in the real-time hot search ranking list of the preset search website, and I is a positive integer greater than or equal to N; the terminal receives I hot search records sent by the server; the terminal matches the first input content with the I hot search records to obtain the matching degree of the I hot search records; and the terminal determines N candidate contents from the I hot search records according to the matching degree.
In the embodiment of the invention, under the condition that the input content exists in the input frame of the input method display interface, aiming at the terminal to obtain N candidate contents according to the preset rule, various schemes are provided. After a search instruction of a user is received, the provided scheme intelligently recommends candidate contents which are more matched with the actual requirements of the user for the user according to the input contents around a historical search record, a chat record or a hot search record so as to be selected by the user, and the user experience is improved.
In a second aspect, an embodiment of the present invention further provides an information search apparatus, which can implement the functions of the terminal in the information search method described in the first aspect and the optional embodiments thereof, and therefore can also implement the beneficial effects of the information search method described in the first aspect and the optional embodiments thereof. The functions of the device can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes at least one module corresponding to the above-described functions.
Optionally, the apparatus includes a first receiving unit, a first obtaining unit, a first sending unit, a second receiving unit, and a display unit.
The first receiving unit is used for receiving a search instruction triggered by a user aiming at the input method display interface.
The first obtaining unit is used for obtaining N candidate contents according to a search instruction and a preset rule, and popping up a first window in an input method display interface, wherein the N candidate contents are displayed in the first window, and N is a positive integer.
The first receiving unit is used for receiving a selection instruction of a user, and the selection instruction is used for selecting one content from the N candidate contents as a target search content.
The device comprises a first sending unit and a second sending unit, wherein the first sending unit is used for sending a search request to the server, and the search request is used for requesting the server to search the target search content.
And the second receiving unit is also used for receiving the search result sent by the server.
And the display unit is used for displaying the search result in a second window of the input method display interface.
Optionally, the N candidate contents are obtained by the first obtaining unit from a local database or obtained from a server.
Optionally, the first obtaining unit obtains N candidate contents according to the search instruction and according to a preset rule, and specifically includes:
the first acquisition unit determines N candidate contents from a historical search record according to search time and/or search frequency;
or the first acquisition unit determines N candidate contents from the keywords of the historical search records according to the search time and/or the search frequency;
or the first acquisition unit determines N candidate contents from the chat records according to the search time and/or the search frequency;
alternatively, the first obtaining unit determines N candidate contents from the keywords of the chat log according to the search time and/or the search frequency.
Optionally, the first obtaining unit obtains N candidate contents according to the search instruction and according to a preset rule, and specifically includes:
the second sending unit is used for sending a first acquisition request to the server, wherein the first acquisition request is used for acquiring the first H hot search records in the real-time hot search ranking list of the preset search website, and H is a positive integer greater than or equal to N; the third receiving unit is used for receiving H hot search records sent by the server; a determining unit, configured to determine N candidate contents from the H hot-search records;
or the second sending unit is used for sending a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in the real-time hot search ranking list of the preset search website by taking the preset identifier as a keyword, and I is a positive integer greater than or equal to N; the third receiving unit is used for receiving the I hot search records sent by the server; and the determining unit is used for determining N candidate contents from the I hot search records.
Optionally, the first obtaining unit obtains N candidate contents according to the search instruction and according to a preset rule, and specifically includes: and acquiring N different historical search records of the information search device with the shortest search time and the current time, and taking the N different historical search records as N candidate contents.
Optionally, the first obtaining unit obtains the N candidate contents according to the search instruction and according to a preset rule, and specifically includes: the third acquisition unit is used for acquiring a first historical search record of the information search device in a first preset time period before the current time; a first calculation unit configured to calculate a search frequency of each of the first history search records; and the first selection unit is used for selecting N different history search records with highest search frequency from the first history search records as N candidate contents.
Optionally, the first obtaining unit obtains N candidate contents according to the search instruction and according to a preset rule, and specifically includes: a third acquisition unit, configured to acquire the first history search record; the first extraction unit is used for extracting the key words of each historical search record in the first historical search record to obtain a first key word group; the first calculating unit is used for calculating the searching frequency of each keyword in the first keyword group; and the first selection unit is used for selecting N different keywords with highest search frequency from the first keyword group as N candidate contents.
Optionally, if there is no input content in the input frame of the input method display interface, the first obtaining unit obtains N candidate contents according to the search instruction and according to a preset rule, and the method specifically includes: a third acquisition unit configured to acquire the first history search record; the first extraction unit is used for extracting the key words of each historical search record in the first historical search record to obtain a first key word group; the first calculating unit is used for calculating the searching frequency of each keyword in the first keyword group; the first selection unit is used for selecting a first keyword with the searching frequency larger than a first preset value from the first keyword group to obtain a second keyword group; the first selecting unit is further configured to select, from the second keyword group, N different keywords whose search time is shortest from the current time as N candidate contents.
Optionally, the first obtaining unit obtains the N candidate contents according to the search instruction and according to a preset rule, and specifically includes: the first obtaining unit is specifically configured to obtain N latest chat logs, where each chat log in the chat logs is a continuous character without punctuation marks, each chat log in the chat logs does not exceed M characters, and the N latest chat logs are used as N candidate contents.
Optionally, the first obtaining unit obtains N candidate contents according to the search instruction and according to a preset rule, and specifically includes: the fourth acquisition unit is used for acquiring the first chat record of the information search device in a second preset time period before the current time; the second extraction unit is used for extracting the keywords of each chat record in the first chat records to obtain a third keyword group; the second calculating unit is used for calculating the use frequency of each keyword in the third keyword group; and a second selecting unit, configured to select N different keywords with the highest frequency of use from the third keyword group as N candidate contents.
Optionally, the first obtaining unit obtains the N candidate contents according to the search instruction and according to a preset rule, and specifically includes: a third obtaining unit, configured to obtain the first chat record; the second extraction unit is used for extracting the keywords of each chat record in the first chat records to obtain a third keyword group; the second calculating unit is used for calculating the use frequency of each keyword in the third keyword group; the second selection unit is used for selecting a first keyword with the use frequency larger than a second preset value in the third keyword group to obtain a fourth keyword group; and the second selecting unit is also used for selecting N different keywords with the shortest use time and the shortest current time from the fourth keyword group as N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the first obtaining unit obtains N candidate contents according to the search instruction and according to the preset rule, and the method specifically includes:
the matching unit is used for matching the first input content with the historical search records to obtain the matching degree of the historical search records; and the determining unit is used for determining the N candidate contents from the historical search records according to the matching degree, the search time and/or the search frequency.
Or, the matching unit is used for matching the first input content with the keywords of the historical search records to obtain the matching degree of the keywords of the historical search records; and the determining unit is used for determining N candidate contents from the keywords of the historical search records according to the matching degree, the search time and/or the search frequency.
Or, the matching unit is used for matching the first input content with the chat records to obtain the matching degree of the chat records; and the determining unit is used for determining the N candidate contents from the chat records according to the matching degree, the searching time and/or the searching frequency.
Or, the matching unit is used for matching the first input content with the keywords of the chat records to obtain the matching degree of the keywords of the chat records; and the determining unit is used for determining the N candidate contents from the keywords of the chat records according to the matching degree, the searching time and/or the searching frequency.
Optionally, if the input frame of the input method display interface has the first input content, the first obtaining unit obtains N candidate contents according to the search instruction and according to the preset rule, and the method specifically includes:
the second sending unit is used for sending a first acquisition request to the server, wherein the first acquisition request is used for acquiring the first H hot search records in the real-time hot search ranking list of the preset search website, and H is a positive integer greater than or equal to N; the third receiving unit is used for receiving H hot search records sent by the server; the matching unit is used for matching the first input content with the H hot search records to obtain the matching degree of the H hot search records; the determining unit is used for determining N candidate contents from the H hot search records according to the matching degree;
or the second sending unit is used for sending a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in the real-time hot search ranking list of the preset search website by taking the preset identifier as a keyword, and I is a positive integer greater than or equal to N; the third receiving unit is used for receiving the I hot search records sent by the server; the matching unit is used for matching the first input content with the I hot search records to obtain the matching degree of the I hot search records; and the determining unit is used for determining N candidate contents from the I hot search records according to the matching degree.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal can implement functions of the terminal in the information search method described in the first aspect and the optional embodiments thereof, and therefore can also implement beneficial effects of the information search method described in the first aspect and the optional embodiments thereof. The functions of the terminal may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes at least one module corresponding to the above functions. The terminal comprises a memory, a processor, a transceiver, an input device and an output device, wherein the memory is used for storing a computer program for supporting the terminal to execute the method, the computer program comprises program instructions, the processor is used for controlling and managing the action of the terminal according to the program instructions, the transceiver is used for supporting the communication between the terminal and other communication equipment, the input device is used for receiving instructions input by a user, and the output device is used for outputting information under the control of the processor.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a processor, cause the processor to execute the information search method described in the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer program product containing instructions, which when run on a processor, causes the processor to execute the information search method described in the first aspect.
Drawings
The drawings that need to be used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a system architecture diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an information searching method according to an embodiment of the present invention;
FIG. 4A is a schematic diagram of an input method display interface according to an embodiment of the present invention;
FIG. 4B is a schematic diagram of another input method display interface provided by embodiments of the invention;
FIG. 4C is a schematic view of another input method display interface provided by embodiments of the present invention;
fig. 5 is a schematic structural diagram of an information search apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention. It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Fig. 1 is a schematic structural diagram of a communication system 100 according to an embodiment of the present invention, where the communication system includes a terminal 101 and a server 102. Wherein the terminal 101 and the server 102 communicate with each other via a wireless air interface technology. The terminal 101 may be a network device having intelligent computing capabilities and capable of communicative interaction with other devices. The terminal 101 mentioned in the embodiment of the present invention may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device, or other mobile terminals. Communications between the various devices in communication system 100 may be based on any wired and wireless Network, including, but not limited to, the Internet, wide area networks, metropolitan area networks, local area networks, virtual Private Networks (VPNs), wireless communication networks, and so forth.
The embodiment of the present invention takes a terminal as an example, and details functions of the terminal 101. Referring to fig. 2, fig. 2 is a schematic diagram of a hardware structure of a terminal 200 according to an embodiment of the present invention, where the terminal 200 includes: memory 201, transceiver 202, processor 203, input device 204, and output device 205. The memory 201 is used to store a computer program comprising program instructions, the processor 203 is used to execute the program instructions stored by the memory 201, and the transceiver 202 is used to communicate with other devices under the control of the processor 203. The information search method may be performed according to the instructions when the processor 203 executes the instructions. The input device 204 is used for receiving instructions input by a user; the output device 205 is used for outputting information under the control of the processor 203.
The processor 203 may be a Central Processing Unit (CPU), a general-purpose processor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), other programmable logic devices, a transistor logic device, a hardware component, or any combination thereof. Which may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the embodiment disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like. The transceiver 202 may be a communication interface, transceiver circuitry, etc., wherein the communication interface is a generic term that may include one or more interfaces, such as an interface between a terminal and a server. The input device 204 may be a microphone, a camera, a touch screen, or the like. The output device 205 may be a display screen or a player, etc.
Optionally, the terminal 200 may further include a bus 206. Wherein the memory 201, the transceiver 202, the processor 203, the input device 204 and the output device 205 may be connected to each other by a bus 206; the bus 206 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. Bus 206 may be divided into an address bus, a data bus, a control bus, and so on. For ease of illustration, only one thick line is shown in FIG. 2, but that does not indicate only one bus or one type of bus.
In addition to the memory 201, the transceiver 202, the processor 203, the input device 204, the output device 205 and the bus 206 shown in fig. 2, the terminal 200 in the embodiment may also include other hardware according to the actual functions of the terminal, which is not described in detail herein.
Under the operating environment, the embodiment of the invention provides an information searching method as shown in fig. 3. Referring to fig. 3, the information searching method includes:
s301, the terminal receives a search instruction triggered by a user aiming at the display interface of the input method.
Alternatively, the terminal may be a network device having an intelligent computing function and capable of performing communication interaction with other devices. The terminal mentioned in the embodiment of the invention can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device or other mobile terminals.
Optionally, in the environment of editing the input method, the terminal receives a search instruction triggered by the user for the display interface of the input method. The user may trigger a search instruction by: clicking a preset search button on an input method display interface, sending a search command through voice under the input method display interface, and sending the search command through gestures under the input method display interface. In the embodiment of the present invention, the user may also trigger the search instruction in other manners, and the embodiment of the present invention is not particularly limited.
Optionally, when the terminal receives a search instruction triggered by the user for the input method display interface, the information input frame of the current input method display interface may or may not have input content.
For example, when a first user and a second user perform instant messaging through instant messaging software of a mobile phone, the first user needs to search for information, the first user triggers an information search instruction by clicking a search button on an input method display interface of a current instant messaging application, and the instant messaging application can be qq, weChat or short message and other applications. Referring to fig. 4A, fig. 4A is an input method display interface 400 of an instant messaging application of a smart phone according to an embodiment of the present invention, where a user may trigger a search instruction by clicking a search button 401 on the input method display interface 400. The information input box 402 is used to input information. As shown in the figure, the user performs instant messaging with the user through the input method display interface of the instant messaging application, and at this time, no input content exists in the information input box 402.
S302, the terminal obtains N candidate contents according to a search instruction and a preset rule, and pops up a first window in an input method display interface, wherein the N candidate contents are displayed in the first window, and N is a positive integer.
Optionally, the N candidate contents are obtained by the terminal from a local database of the terminal, or obtained from a server.
Optionally, the terminal pops up a first window in the input method display interface, where the first window may be a window covering the current display interface, or a window of a fixed size and a fixed position, or a window of a fixed size and a position that can be manually adjusted, or a window of a fixed position and a size that can be manually adjusted, or a window of both a position and a size that can be manually adjusted. The embodiment of the present invention is not particularly limited to this.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal determines N candidate contents from the historical search records according to the search time and/or the search frequency; or the terminal determines N candidate contents from the keywords of the historical search records according to the search time and/or the search frequency; or the terminal determines N candidate contents from the chat records according to the search time and/or the search frequency; or the terminal determines N candidate contents from the keywords of the chat records according to the search time and/or the search frequency.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal acquires N different historical search records of the terminal with the shortest search time distance to the current time, and takes the N different historical search records as N candidate contents.
For example, as shown in fig. 4B, after the smartphone receives a search instruction triggered by the user, a first window 403 pops up in the input method display interface 400. The 3 candidate contents displayed in the first window 403 are 3 different historical search records recently searched by the smartphone. A close button 4031 on the first window 403 is used to receive a user-triggered instruction to close the first window 403. Optionally, the first window 403 may not have a close button 4031, the terminal presets a first close time, and when the display time of the first window 403 reaches the first close time, the terminal automatically closes the first window 403.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the method comprises the steps that a terminal obtains a first historical search record of the terminal in a first preset time period before the current time; the terminal calculates the searching frequency of each historical searching record in the first historical searching records; the terminal selects N different history search records with the highest search frequency from the first history search records as N candidate contents.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal acquires a first history search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal calculates the search frequency of each keyword in the first keyword group; and the terminal selects N different keywords with the highest searching frequency from the first keyword group as N candidate contents.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal obtains a first historical search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal calculates the search frequency of each keyword in the first keyword group; the terminal selects a first keyword with the searching frequency larger than a first preset value from the first keyword group to obtain a second keyword group; and the terminal selects N different keywords with the shortest search time and current time from the second keyword group as N candidate contents.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal acquires N latest chat records, wherein each chat record in the chat records is a continuous character without punctuation marks, each chat record in the chat records does not exceed M characters, and M is a positive integer; the terminal takes the N latest chat records as N candidate contents; or the terminal acquires a first chat record of the terminal in a second preset time period before the current time; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal calculates the use frequency of each keyword in the third keyword group; and the terminal selects N different keywords with highest use frequency from the third keyword group as N candidate contents.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal acquires a first chat record of the terminal in a second preset time period before the current time; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal calculates the use frequency of each keyword in the third keyword group; the terminal selects a first keyword with the use frequency larger than a second preset value in a third keyword group to obtain a fourth keyword group; and the terminal selects N different keywords with the shortest use time and current time from the fourth keyword group as N candidate contents.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the method comprises the steps that a terminal sends a first acquisition request to a server, wherein the first acquisition request is used for acquiring the first H hot search records in a real-time hot search ranking list of a preset search website, and H is a positive integer larger than or equal to N; and the terminal receives the H hot search records sent by the server and determines N candidate contents from the H hot search records. It can be understood that when the value of H is N, the terminal receives the first N hot search records in the real-time hot search ranking list sent by the server, and takes the N hot search records as N candidate contents.
Optionally, the obtaining, by the terminal, N candidate contents according to a preset rule includes: the terminal sends a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of a user, the second acquisition request is used for acquiring the first I hot search records which take the preset identifier as a keyword in a real-time hot search ranking list of a preset search website, and I is a positive integer greater than or equal to N; the terminal receives I hot search records sent by the server; the terminal determines N candidate contents from the I hot-search records.
Optionally, the preset identifier may be preset by the user, or may be automatically configured by the server for the user according to the search record of the user. The preset identifier may be a game, a movie or music.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal matches the first input content with the historical search records to obtain the matching degree of the historical search records, and determines N candidate contents from the historical search records according to the matching degree, the search time and/or the search frequency; or the terminal matches the first input content with the keywords of the historical search records to obtain the matching degree of the keywords of the historical search records, and determines N candidate contents from the keywords of the historical search records according to the matching degree, the search time and/or the search frequency; or the terminal matches the first input content with the chat records to obtain the matching degree of the chat records, and determines N candidate contents from the chat records according to the matching degree, the search time and/or the search frequency; or the terminal matches the first input content with the keywords of the chat logs to obtain the matching degree of the keywords of the chat logs, and determines N candidate contents from the keywords of the chat logs according to the matching degree, the search time and/or the search frequency.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including: the method comprises the steps that a terminal sends a first acquisition request to a server, wherein the first acquisition request is used for acquiring the first H hot search records in a real-time hot search ranking list of a preset search website, and H is a positive integer larger than or equal to N; the terminal receives H hot search records sent by the server; the terminal matches the first input content with the H hot search records to obtain the matching degree of the H hot search records; and the terminal takes the N hot-searching records with the highest matching degree in the H hot-searching records as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and the terminal takes the N-1 hot searching records with the highest matching degree in the H hot searching records as the second to the Nth candidate contents in the N candidate contents.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including: the terminal sends a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of a user, the second acquisition request is used for acquiring the first I hot search records which take the preset identifier as a keyword in a real-time hot search ranking list of a preset search website, and I is a positive integer greater than or equal to N; the terminal receives I hot search records sent by the server; the terminal matches the first input content with the I hot search records to obtain the matching degree of the I hot search records; and the terminal takes the I hot-searching records with the highest matching degree in the I hot-searching records as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and the terminal takes the N-1 hot search records with the highest matching degree in the I hot search records as the second to the Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the method comprises the steps that a terminal obtains a first historical search record of the terminal in a first preset time period before the current time; the terminal matches the first input content with each historical search record in the first historical search records, and the matching degree of each historical search record in the first historical search records is calculated; the terminal selects N different history search records with the highest matching degree in the first history search record as N candidate contents. Or the terminal takes the first input content as the first candidate content in the N candidate contents, and selects N-1 different history search records with the highest matching degree in the first history search record as the second to the Nth candidate contents in the N candidate contents.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first history search record; the terminal matches the first input content with each historical search record in the first historical search records, and the matching degree of each historical search record in the first historical search records is calculated; the terminal selects the historical search records with the matching degree larger than a third preset value in the first historical search records to obtain second historical search records; and the terminal takes N different history search records with the shortest search time from the current time in the second history search record as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and taking N-1 different historical search records with the shortest search time from the current time in the second historical search record as the second to the Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal obtains a first historical search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal matches the first input content with each keyword in the first keyword group, and calculates the matching degree of each keyword in the first keyword group; the terminal selects keywords with the matching degree larger than a fourth preset value in the first keyword group to obtain a fifth keyword group; and the terminal selects N different keywords with the shortest search time from the current time in the fifth keyword group as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and selecting N-1 different keywords with the shortest search time from the current time in the fifth keyword group as second to Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first history search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal calculates the search frequency of each keyword in the first keyword group; the terminal selects keywords with the searching frequency larger than a fifth preset value in the first keyword group to obtain a third keyword group; the terminal matches the first input content with each keyword in the third keyword group, and calculates the matching degree of each keyword in the third keyword group; and the terminal takes the N different keywords with the highest matching degree in the third keyword group as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and taking N-1 different keywords with the highest matching degree in the third keyword group as second to Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first history search record; the terminal extracts the keywords of each historical search record in the first historical search record to obtain a first keyword group; the terminal matches the first input content with each keyword in the first keyword group, and calculates the matching degree of each keyword in the first keyword group; the terminal selects keywords with the matching degree larger than a third preset value in the first keyword group to obtain a seventh keyword group; the terminal calculates the search frequency of each keyword in the seventh keyword group; and the terminal takes the N different keywords with the highest searching frequency in the seventh keyword group as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and taking N-1 different keywords with highest searching frequency in the seventh keyword group as second to Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first chat record of the terminal in a second preset time period before the current time, wherein each chat record in the first chat record is a continuous character without punctuation marks, and each chat record in the first chat record does not exceed M characters; the terminal matches the first input content with each chat record in the first chat records, and the matching degree of each chat record in the first chat records is calculated; the terminal selects N different chat records with the highest matching degree in the first chat records as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and selecting N-1 different chat records with the highest matching degree in the first chat record as second to Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first chat record; the terminal matches the first input content with each chat record in the first chat records, and the matching degree of each chat record in the first chat records is calculated; the terminal selects the chat records with the matching degree larger than a seventh preset value in the first chat records to obtain second chat records; and the terminal takes the N different chat records with the shortest use time and the current time in the second chat record as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and taking N-1 different chat records with the shortest use time and the current time in the second chat record as the second to the Nth candidate contents in the N candidate contents.
Optionally, if the input frame of the input method display interface has the first input content, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first chat record; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal matches the first input content with each keyword in the third keyword group, and calculates the matching degree of each keyword in the third keyword group; the terminal selects the keywords with the matching degree larger than the eighth preset value in the third keyword group to obtain an eighth keyword group; and the terminal selects N different keywords with the shortest use time and current time in the eighth keyword group as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and selecting N-1 different keywords with the shortest use time and current time in the eighth keyword group as second to Nth candidate contents in the N candidate contents.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first chat record; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal calculates the use frequency of each keyword in the third keyword group; the terminal selects keywords with the use frequency larger than a ninth preset value in the third keyword group to obtain a ninth keyword group; the terminal matches the first input content with each keyword in the ninth keyword group, and calculates the matching degree of each keyword in the ninth keyword group; and the terminal takes the N different keywords with the highest matching degree in the ninth keyword group as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and taking the N-1 different keywords with the highest matching degree in the ninth keyword group as the second to the Nth candidate contents in the N candidate contents.
Optionally, if there is a first input content in an input frame of the input method display interface, the terminal obtains N candidate contents according to a preset rule, including: the terminal acquires a first chat record; the terminal extracts the keywords of each chat record in the first chat record to obtain a third keyword group; the terminal matches the first input content with each keyword in the third keyword group, and calculates the matching degree of each keyword in the third keyword group; the terminal selects keywords with the matching degree larger than a tenth preset value in the third keyword group to obtain a tenth keyword group; the terminal calculates the frequency of use of each keyword in the tenth keyword group. And the terminal takes the N different keywords with the highest use frequency in the tenth keyword group as N candidate contents. Or the terminal takes the first input content as a first candidate content in the N candidate contents; and taking the N-1 different keywords with the highest use frequency in the tenth keyword group as the second to the Nth candidate contents in the N candidate contents.
Optionally, the first historical search record of the terminal in the first preset time period before the current time may be stored in the server, or may be stored in the local database.
Optionally, the first chat record of the terminal in the first preset time period before the current time may be stored in the server, or may be stored in the local database.
Optionally, if the first historical search record is stored in the server, the obtaining, by the terminal, the first historical search record includes: the method comprises the steps that a terminal sends a first acquisition request to a server, wherein the first acquisition request is used for requesting to acquire a first historical search record of the terminal in a first preset time period before the current time; the server receives and processes the first acquisition request; the server sends the first history search record to the terminal, and the terminal receives the first history search record sent by the server.
S303, the terminal receives a selection instruction of the user, wherein the selection instruction is used for selecting one content from the N candidate contents as a target search content.
Optionally, in the environment of editing the input method, the terminal receives a selection instruction of the user. The user may trigger the selection instruction by: clicking one candidate content in the N candidate contents in the first window and sending a selection command through voice under the display interface of the first window. In the embodiment of the present invention, the user may also trigger the selection command in other manners, and the embodiment of the present invention is not particularly limited.
S304, the terminal sends a search request to the server, the server receives the search request sent by the terminal, and the search request is used for requesting the server to search the target search content.
Optionally, the sending, by the terminal, the search request to the server includes: the terminal acquires a jump link from a local database; the terminal generates a search request according to the jump link and the target search content; the terminal sends a search request to the server.
For example, the target search content is 'weather of Shenzhen', the jump link acquired by the terminal from the local database is 'https:// www.bin.com/searchq', the terminal fills the jump link with the target search content to generate 'https:// www.bin.com/searchq = weather of Shenzhen', and the terminal sends a search request to the server according to the newly generated link.
S305, the server processes the search request sent by the terminal and obtains a search result.
Specifically, the server searches for the target search content according to the search request, and obtains a search result related to the target search content.
S306, the server sends the search result to the terminal, and the terminal receives the search result sent by the server.
And S307, the terminal displays the search result in a second window of the input method display interface.
Optionally, the terminal pops up a second window in the input method display interface, and the second window may be a window covering the current display interface, or a window of a fixed size and a fixed position, or a window of a fixed size and a position that can be manually adjusted, or a window of a fixed position and a size that can be manually adjusted, or a window of a position and a size that can be manually adjusted. The embodiment of the present invention is not particularly limited to this.
Optionally, the search result received by the terminal is expanded in a form of a web page, and the terminal directly displays the search result in the second window of the input method display interface.
For example, as shown in fig. 4C, the target search content is "shanghai weather", and the second window 404 displays the search result in the form of a web page related to "shanghai weather". A close button 4041 on the first window 404 is used to receive a user-triggered instruction to close the second window 404. Optionally, the second window 404 may not have a close button 4041, the terminal presets a second close time, and when the display time of the second window 404 reaches the second close time, the terminal automatically closes the second window 404.
Optionally, the search result received by the terminal is expanded in a web page form, and the search result in the web page form is preprocessed by the terminal, so that useless information is filtered, and the search result is simplified. The search result after the preprocessing may be presented in a form of a web page or a document, which is not specifically limited in this embodiment of the present invention. And then displaying the preprocessed search result in a second window of the input method display interface.
In the embodiment of the invention, in an input method editing environment, a terminal receives a search instruction of a user, the terminal acquires N candidate contents according to the search instruction and a preset rule, the user selects one content from the N candidate contents as a target search content, and the terminal searches for the target search content in the input method editing environment and acquires a search result. By the scheme, convenient information search operation can be realized under the input method editing environment, the instant search requirement of the user and the personalized requirement of the user are met, and the user experience is effectively improved. In addition, in the embodiment of the invention, no matter whether the input content exists in the input box of the input method display interface or not, various schemes are provided for the terminal to obtain N candidate contents according to the preset rule, the candidate contents which are more matched with the actual requirements of the user can be intelligently recommended to the user for the user to select, and the user experience is improved.
The embodiment of the invention also provides an information searching device, which can realize the functions of the terminal in the information searching method, thereby realizing the beneficial effects of the information searching method. The functions of the device can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes at least one module corresponding to the above functions.
Referring to fig. 5, fig. 5 is a block diagram of an information search apparatus 500 according to an embodiment of the present invention, the apparatus including: a first receiving unit 501, a first acquiring unit 502, a first transmitting unit 503, a second receiving unit 504 and a display unit 505.
The first receiving unit 501 is configured to receive a search instruction triggered by a user for an input method display interface.
The first obtaining unit 502 is configured to obtain N candidate contents according to a search instruction and according to a preset rule, and pop up a first window in an input method display interface, where the N candidate contents are displayed in the first window, and N is a positive integer.
The first receiving unit 501 is further configured to receive a selection instruction of a user, where the selection instruction is used to select one content from the N candidate contents as a target search content.
A first sending unit 503, configured to send a search request to the server, where the search request is used to request the server to search for the target search content.
A second receiving unit 504, configured to receive the search result sent by the server.
And a display unit 505 for displaying the search result in a second window of the input method display interface.
Optionally, the N candidate contents are obtained by the first obtaining unit 502 from a local database or obtained from a server.
Optionally, the first obtaining unit 502 determines N candidate contents from the history search record according to the search time and/or the search frequency; alternatively, the first obtaining unit 502 determines N candidate contents from the keywords of the history search record according to the search time and/or the search frequency; alternatively, the first obtaining unit 502 determines N candidate contents from the chat logs according to the search time and/or the search frequency; alternatively, the first obtaining unit 502 determines N candidate contents from the keywords of the chat logs according to the search time and/or the search frequency.
Optionally, the first obtaining unit 502 obtains the N candidate contents according to the search instruction and according to a preset rule, and specifically includes:
the second sending unit is used for sending a first acquisition request to the server, wherein the first acquisition request is used for acquiring the first H hot search records in the real-time hot search ranking list of the preset search website, and H is a positive integer greater than or equal to N; the third receiving unit is used for receiving H hot search records sent by the server; a determining unit, configured to determine N candidate contents from the H hot-search records;
or the second sending unit is used for sending a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in the real-time hot search ranking list of the preset search website by taking the preset identifier as a keyword, and I is a positive integer greater than or equal to N; the third receiving unit is used for receiving the I hot search records sent by the server; and the determining unit is used for determining N candidate contents from the I hot search records.
Optionally, if there is a first input content in an input frame of the input method display interface, the first obtaining unit 502 obtains N candidate contents according to the search instruction and according to a preset rule, which specifically includes:
the matching unit is used for matching the first input content with the historical search records to obtain the matching degree of the historical search records; a determining unit, configured to determine N candidate contents from the history search records according to the matching degree, the search time, and/or the search frequency;
or, the matching unit is used for matching the first input content with the keywords of the historical search records to obtain the matching degree of the keywords of the historical search records; the determining unit is used for determining N candidate contents from the keywords of the historical search records according to the matching degree, the search time and/or the search frequency;
or, the matching unit is used for matching the first input content with the chat records to obtain the matching degree of the chat records; a determining unit, configured to determine N candidate contents from the chat records according to the matching degree, the search time, and/or the search frequency;
or, the matching unit is used for matching the first input content with the keywords of the chat records to obtain the matching degree of the keywords of the chat records; and the determining unit is used for determining the N candidate contents from the keywords of the chat records according to the matching degree, the searching time and/or the searching frequency.
Optionally, if there is a first input content in an input frame of the input method display interface, the first obtaining unit 502 obtains N candidate contents according to the search instruction and according to a preset rule, which specifically includes:
the second sending unit is used for sending a first acquisition request to the server, wherein the first acquisition request is used for acquiring the first H hot search records in the real-time hot search ranking list of the preset search website, and H is a positive integer greater than or equal to N; the third receiving unit is used for receiving H hot search records sent by the server; a determining unit, configured to determine N candidate contents from the H hot-search records;
or the second sending unit is used for sending a second acquisition request to the server, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in the real-time hot search ranking list of the preset search website by taking the preset identifier as a keyword, and I is a positive integer greater than or equal to N; the third receiving unit is used for receiving the I hot search records sent by the server; and the determining unit is used for determining N candidate contents from the I hot search records.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware or may be embodied in software instructions executed by a processor. The software instructions may be composed of corresponding software modules, and the software modules may be stored in a Random Access Memory (RAM), a flash memory, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a register, a hard disk, a removable hard disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in a network device. Of course, the processor and the storage medium may reside as discrete components in a network device.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in connection with the embodiments of the invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the embodiments of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only specific embodiments of the present invention, and are not intended to limit the scope of the embodiments of the present invention.

Claims (10)

1. An information search method, characterized in that the method comprises:
the terminal receives a search instruction triggered by a user aiming at an input method display interface;
if the input frame of the input method display interface contains first input content, the terminal sends a second acquisition request to the server, the second acquisition request contains a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in a real-time hot search ranking list of a preset search website, wherein the preset identifier is used as a keyword, and I is a positive integer greater than or equal to N; the terminal receives the I hot search records sent by the server; the terminal matches the first input content with the I hot search records to obtain the matching degree of the I hot search records; the terminal determines N candidate contents from the I hot search records according to the matching degree;
the terminal pops up a first window in the input method display interface, the N candidate contents are displayed in the first window, and N is a positive integer;
the terminal receives a selection instruction of the user, wherein the selection instruction is used for selecting one content from the N candidate contents as a target search content;
the terminal sends a search request to a server, wherein the search request is used for requesting the server to search the target search content;
the terminal receives a search result sent by the server;
and the terminal displays the search result in a second window of the input method display interface.
2. The method according to claim 1, wherein the N candidate contents are obtained by the terminal from a local database of the terminal or from the server.
3. The method according to any one of claims 1 or 2, further comprising:
if the input frame of the input method display interface does not have input content, the terminal determines N candidate contents from the historical search records according to the search time and/or the search frequency;
alternatively, the first and second electrodes may be,
and if no input content exists in the input frame of the input method display interface, the terminal determines N candidate contents from the chat records according to the search time and/or the search frequency.
4. The method according to any one of claims 1 or 2, further comprising:
if no input content exists in an input frame of the input method display interface, the terminal sends a first acquisition request to the server, wherein the first acquisition request is used for acquiring the first H hot search records in the real-time hot search ranking list of the preset search website, and H is a positive integer greater than or equal to N;
the terminal receives the H hot search records sent by the server;
the terminal determines N candidate contents from the H hot search records;
alternatively, the first and second electrodes may be,
if no input content exists in an input frame of the input method display interface, the terminal sends a second acquisition request to the server, the second acquisition request contains a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in a real-time hot search ranking list of the preset search website, wherein the preset identifier is used as a keyword, and I is a positive integer greater than or equal to N;
the terminal receives the I hot search records sent by the server;
and the terminal determines N candidate contents from the I hot search records.
5. An information search apparatus, characterized in that the apparatus comprises:
the device comprises a first receiving unit, a second receiving unit and a display unit, wherein the first receiving unit is used for receiving a search instruction triggered by a user aiming at an input method display interface, and no input content exists in an information input frame of the input method display interface;
the second sending unit is used for sending a second acquisition request to the server when first input content exists in an input frame of the input method display interface, wherein the second acquisition request comprises a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in a real-time hot search ranking list of a preset search website by taking the preset identifier as a keyword, and I is a positive integer greater than or equal to N;
a third receiving unit, configured to receive the I hot search records sent by the server;
the matching unit is used for matching the first input content with the I hot search records to obtain the matching degree of the I hot search records;
a determining unit, configured to determine N candidate contents from the I hot-search records according to a matching degree;
the display unit is used for popping up a first window in the input method display interface, the N candidate contents are displayed in the first window, and N is a positive integer;
the first receiving unit is further configured to receive a selection instruction of the user, where the selection instruction is used to select one content from the N candidate contents as a target search content;
a first sending unit, configured to send a search request to a server, where the search request is used to request the server to search the target search content;
the second receiving unit is used for receiving the search result sent by the server;
the display unit is further used for displaying the search result in a second window of the input method display interface.
6. The apparatus of claim 5, wherein the N candidate contents are obtained by the terminal from a local database of the terminal or from the server.
7. The apparatus of any one of claims 5 or 6, further comprising:
the first acquisition unit is used for determining the N candidate contents from the historical search records according to the search time and/or the search frequency when no content is input in the input frame of the input method display interface;
alternatively, the first and second electrodes may be,
and the first acquisition unit is used for determining the N candidate contents from the chat records according to the search time and/or the search frequency when no content is input in the input frame of the input method display interface.
8. The apparatus of any one of claims 5 or 6, further comprising:
a third sending unit, configured to send a first acquisition request to the server when no content is input in an input frame of the input method display interface, where the first acquisition request is used to acquire top H hot search records in a real-time hot search ranking list of a preset search website, and H is a positive integer greater than or equal to N;
the third receiving unit is further configured to receive the H hot search records sent by the server;
the determining unit is further configured to determine the N candidate contents from the H hot-search records;
alternatively, the first and second electrodes may be,
a third sending unit, configured to send a second acquisition request to the server when no content is input in an input frame of the input method display interface, where the second acquisition request includes a preset identifier of the user, the second acquisition request is used to acquire first I hot search records in a real-time hot search ranking list of the preset search website, where the preset identifier is a keyword, and I is a positive integer greater than or equal to N;
the third receiving unit is further configured to receive the I hot search records sent by the server;
the determining unit is further configured to determine N candidate contents from the I hot-search records.
9. A terminal, comprising:
a processor, a memory, a transceiver, an input device, an output device, and a bus; the processor, the memory, the transceiver, the input device and the output device are connected through the bus and complete mutual communication; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for executing an information search method; the transceiver communicates with other devices under control of the processor; the input device receives an instruction input by a user; the output device outputs information under the control of the processor; wherein the method comprises the following steps:
receiving a search instruction triggered by a user aiming at an input method display interface through the input device; if the input frame of the input method display interface contains first input content, sending a second acquisition request to a server, wherein the second acquisition request contains a preset identifier of the user, the second acquisition request is used for acquiring the first I hot search records in a real-time hot search ranking list of a preset search website, the preset identifier is used as a keyword, and I is a positive integer greater than or equal to N; receiving the I hot search records sent by the server; matching the first input content with the I hot search records to obtain the matching degree of the I hot search records; determining N candidate contents from the I hot search records according to the matching degree, and popping up a first window in the input method display interface, wherein the N candidate contents are displayed in the first window, and N is a positive integer; receiving a selection instruction of the user through the input device, wherein the selection instruction is used for selecting one content from the N candidate contents as a target search content; sending a search request to a server through the transceiver, wherein the search request is used for requesting the server to search the target search content; receiving, by the transceiver, a search result transmitted by the server; and displaying the search result in a second window of the input method display interface through the output device.
10. A readable storage medium, comprising: the readable storage medium has stored thereon instructions that, when executed on a processor, cause the processor to perform an information search method; wherein the method comprises the following steps:
receiving a search instruction triggered by a user aiming at an input method display interface, wherein no input content exists in an information input box of the input method display interface; the processor sends a second acquisition request to the server when first input content exists in an input frame of the input method display interface, wherein the second acquisition request comprises a preset identification of the user, the second acquisition request is used for acquiring first I hot search records in a real-time hot search ranking list of a preset search website by taking the preset identification as a keyword, and I is a positive integer greater than or equal to N; receiving the I hot search records sent by the server; matching the first input content with the I hot search records to obtain the matching degree of the I hot search records; determining N candidate contents from the I hot search records according to the matching degree, and popping up a first window in the input method display interface, wherein the N candidate contents are displayed in the first window, and N is a positive integer; receiving a selection instruction of the user, wherein the selection instruction is used for selecting one content from the N candidate contents as a target search content; sending a search request to a server, wherein the search request is used for requesting the server to search the target search content; receiving a search result sent by the server; and displaying the search result in a second window of the input method display interface.
CN201811653571.XA 2018-12-29 2018-12-29 Information searching method and device Active CN109710088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811653571.XA CN109710088B (en) 2018-12-29 2018-12-29 Information searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653571.XA CN109710088B (en) 2018-12-29 2018-12-29 Information searching method and device

Publications (2)

Publication Number Publication Date
CN109710088A CN109710088A (en) 2019-05-03
CN109710088B true CN109710088B (en) 2022-12-27

Family

ID=66260578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653571.XA Active CN109710088B (en) 2018-12-29 2018-12-29 Information searching method and device

Country Status (1)

Country Link
CN (1) CN109710088B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472149A (en) * 2019-08-08 2019-11-19 拉扎斯网络科技(上海)有限公司 Information search method, device, electronic equipment and computer readable storage medium
CN111428001B (en) * 2020-03-20 2023-09-12 北京小米移动软件有限公司 Short message information retrieval method, device and storage medium
CN111813236B (en) * 2020-06-17 2024-04-19 维沃移动通信有限公司 Input method, input device, electronic equipment and readable storage medium
CN113485594A (en) * 2021-06-30 2021-10-08 上海掌门科技有限公司 Message record searching method, device and storage medium
CN114610981A (en) * 2022-03-21 2022-06-10 北京明略昭辉科技有限公司 Information searching method, device, system, equipment and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045901A (en) * 2015-08-05 2015-11-11 百度在线网络技术(北京)有限公司 Search keyword push method and device
CN105677857A (en) * 2016-01-01 2016-06-15 广州筷子信息科技有限公司 Keyword and marketing landing page accurate-matching method and device
CN106096050A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 A kind of method and apparatus of video contents search
CN106302650A (en) * 2016-07-29 2017-01-04 深圳市沃特沃德股份有限公司 House pet application message method for pushing and device
CN106357416A (en) * 2016-11-30 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Group information recommendation method, device and terminal

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231636B (en) * 2007-01-25 2013-09-25 北京搜狗科技发展有限公司 Convenient information search method, system and an input method system
US20100306249A1 (en) * 2009-05-27 2010-12-02 James Hill Social network systems and methods
CN105912669B (en) * 2012-09-20 2020-04-07 北京奇付通科技有限公司 Method and device for complementing search terms and establishing individual interest model
CN104699744A (en) * 2014-12-04 2015-06-10 百度在线网络技术(北京)有限公司 Information searching method and device
CN106156292A (en) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 A kind of method for information display, equipment and server
CN106605224B (en) * 2016-08-15 2020-10-16 北京小米移动软件有限公司 Information searching method and device, electronic equipment and server
CN107257362B (en) * 2017-05-27 2020-01-17 苏州全民供求网络科技有限公司 Method and system for dynamically displaying events and matching chats on map according to attention degree of time
CN107832332A (en) * 2017-09-29 2018-03-23 北京奇虎科技有限公司 The method, apparatus and electronic equipment for recommending word are generated in navigating search frame
CN108763579B (en) * 2018-06-08 2020-12-22 Oppo(重庆)智能科技有限公司 Search content recommendation method and device, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045901A (en) * 2015-08-05 2015-11-11 百度在线网络技术(北京)有限公司 Search keyword push method and device
CN105677857A (en) * 2016-01-01 2016-06-15 广州筷子信息科技有限公司 Keyword and marketing landing page accurate-matching method and device
CN106096050A (en) * 2016-06-29 2016-11-09 乐视控股(北京)有限公司 A kind of method and apparatus of video contents search
CN106302650A (en) * 2016-07-29 2017-01-04 深圳市沃特沃德股份有限公司 House pet application message method for pushing and device
CN106357416A (en) * 2016-11-30 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Group information recommendation method, device and terminal

Also Published As

Publication number Publication date
CN109710088A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109710088B (en) Information searching method and device
WO2020221162A1 (en) Application program recommendation method and apparatus, electronic device, and medium
CN108768824B (en) Information processing method and device
CN108073303B (en) Input method and device and electronic equipment
CN108427761B (en) News event processing method, terminal, server and storage medium
CN112486385A (en) File sharing method and device, electronic equipment and readable storage medium
CN108874827B (en) Searching method and related device
CN110391966B (en) Message processing method and device and message processing device
CN109165292A (en) Data processing method, device and mobile terminal
US20190188224A1 (en) Method and apparatus for obtaining picture public opinions, computer device and storage medium
CN108549681B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN108595107B (en) Interface content processing method and mobile terminal
CN110196833B (en) Application searching method, device, terminal and storage medium
CN110633438A (en) News event processing method, terminal, server and storage medium
CN109308240B (en) Operation processing method and device and storage medium
CN114374663B (en) Message processing method and message processing device
CN108491502B (en) News tracking method, terminal, server and storage medium
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN111368161A (en) Search intention recognition method and intention recognition model training method and device
CN108268507B (en) Browser-based processing method and device and electronic equipment
CN113037925A (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN111954079A (en) Image processing method, image processing apparatus, electronic device, and medium
CN110147426B (en) Method for determining classification label of query text and related device
CN113268179B (en) Session message processing method, device, equipment and storage medium
CN113127653B (en) Information display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant