CN114329159A - Search method, search device, electronic equipment and medium - Google Patents

Search method, search device, electronic equipment and medium Download PDF

Info

Publication number
CN114329159A
CN114329159A CN202111585911.1A CN202111585911A CN114329159A CN 114329159 A CN114329159 A CN 114329159A CN 202111585911 A CN202111585911 A CN 202111585911A CN 114329159 A CN114329159 A CN 114329159A
Authority
CN
China
Prior art keywords
search
determined
search object
server
searched
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.)
Pending
Application number
CN202111585911.1A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN202111585911.1A priority Critical patent/CN114329159A/en
Publication of CN114329159A publication Critical patent/CN114329159A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a searching method, a searching device, electronic equipment and a medium, and relates to the technical field of computers, in particular to the field of intelligent searching. The implementation scheme is as follows: in response to detecting the object to be searched input in the search window, sending the object to be searched to a server; in response to receiving the search instruction, sending a search request based on the determined search object in the search window to the server, wherein the determined search object is associated with the search object to be determined; and receiving search results for the determined search object from the server, wherein the search results are cached in the server according to the processing of the server to the determined search object before sending the search request.

Description

Search method, search device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a search method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the rapid development of the internet, more and more users actively search on the internet to acquire information required by the users. At present, the conventional information acquisition manner is usually executed based on a search object determined in a search request. In other words, only after the server receives the determined search object, the search result corresponding to the determined search object is determined in the massive data based on the determined search object.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for searching.
According to an aspect of the present disclosure, there is provided a search method for a terminal device, including: in response to detecting the object to be searched input in the search window, sending the object to be searched to a server; in response to receiving the search instruction, sending a search request based on the determined search object in the search window to the server, wherein the determined search object is associated with the search object to be determined; and receiving search results for the determined search object from the server, wherein the search results are cached in the server according to the processing of the server to the determined search object before sending the search request.
According to an aspect of the present disclosure, there is provided a search method for a server, including: in response to receiving the search object to be determined, caching at least one search result corresponding to the search object to be determined by processing the search object to be determined; and in response to receiving a search request based on the determined search object and determining that the search object is associated with the search object to be determined, determining a search result for the determined search object from among the at least one search result.
According to an aspect of the present disclosure, there is provided a terminal device, including a search apparatus, wherein the search apparatus includes: a first transmission unit configured to transmit a search object to be determined to a server in response to detection of the search object to be determined input in a search window; a second sending unit configured to send, in response to receiving the search instruction, a search request based on a determination search object in the search window to the server, wherein the determination search object is associated with the search object to be determined; and a receiving unit configured to receive a search result for the determined search object from the server, wherein the search result is cached in the server according to processing of the search object to be determined by the server before the search request is transmitted.
According to an aspect of the present disclosure, there is provided a server including a search apparatus, wherein the search apparatus includes: a write unit configured to, in response to receiving a search object to be determined, cache at least one search result corresponding to the search object to be determined by processing the search object to be determined; and a determination unit configured to determine a search result for the determined search object from among the at least one search result in response to receiving a search request based on the determined search object and determining that the search object is associated with the search object to be determined.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the above-described method.
According to another aspect of the disclosure, a computer program product is provided, comprising a computer program, wherein the computer program realizes the above-described method when executed by a processor.
According to one or more embodiments of the present disclosure, search efficiency can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
FIG. 1 illustrates a schematic diagram of an exemplary system in which various methods described herein may be implemented, according to an embodiment of the present disclosure;
FIG. 2 shows a flow diagram of a search method according to an embodiment of the present disclosure;
FIG. 3 shows a flow diagram of another search method according to an embodiment of the present disclosure;
FIG. 4 shows a block diagram of a search apparatus according to an embodiment of the present disclosure;
fig. 5 shows a block diagram of another search apparatus according to an embodiment of the present disclosure; and
FIG. 6 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", and the like to describe various elements is not intended to limit the positional relationship, the temporal relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, based on the context, they may also refer to different instances.
The terminology used in the description of the various examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
In the related art, a search is often performed based on a search object determined in a search request. In other words, only after the server receives the determined search object, the search result corresponding to the determined search object is determined in the massive data based on the determined search object, which results in difficulty in further improving the search efficiency.
Based on the above, the present disclosure provides a search method for a terminal device, in response to detecting a search object to be determined input in a search window, transmitting the search object to be determined to a server, so that the server can cache a search result in advance based on processing of the search object to be determined before receiving the search object to be determined, and in a case where it is determined that the search object is associated with the search object to be determined, the search result for the search object to be determined can be quickly acquired through the search result cached in advance. Based on this, the process of obtaining the search result from the data in the sea can be executed before the terminal device sends the search request, so that the search efficiency can be fundamentally improved.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 illustrates a schematic diagram of an exemplary system 100 in which various methods and apparatus described herein may be implemented in accordance with embodiments of the present disclosure. Referring to fig. 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. Client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
In embodiments of the present disclosure, the server 120 may run one or more services or software applications that enable the method of searching to be performed.
In some embodiments, the server 120 may also provide other services or software applications that may include non-virtual environments and virtual environments. In certain embodiments, these services may be provided as web-based services or cloud services, for example, provided to users of client devices 101, 102, 103, 104, 105, and/or 106 under a software as a service (SaaS) model.
In the configuration shown in fig. 1, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or a combination thereof, which may be executed by one or more processors. A user operating a client device 101, 102, 103, 104, 105, and/or 106 may, in turn, utilize one or more client applications to interact with the server 120 to take advantage of the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from system 100. Accordingly, fig. 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
The user may use client devices 101, 102, 103, 104, 105, and/or 106 to obtain a pending search object and determine a search object, and may be able to present search results for the determined search object. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Although fig. 1 depicts only six client devices, those skilled in the art will appreciate that any number of client devices may be supported by the present disclosure.
Client devices 101, 102, 103, 104, 105, and/or 106 may include various types of computer devices, such as portable handheld devices, general purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, and so forth. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (e.g., GOOGLE Chrome OS); or include various Mobile operating systems such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular telephones, smart phones, tablets, Personal Digital Assistants (PDAs), and the like. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. The gaming system may include a variety of handheld gaming devices, internet-enabled gaming devices, and the like. The client device is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (e.g., email applications), Short Message Service (SMS) applications, and may use a variety of communication protocols.
Network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP/IP, SNA, IPX, etc. By way of example only, one or more networks 110 may be a Local Area Network (LAN), an ethernet-based network, a token ring, a Wide Area Network (WAN), the internet, a virtual network, a Virtual Private Network (VPN), an intranet, an extranet, a Public Switched Telephone Network (PSTN), an infrared network, a wireless network (e.g., bluetooth, WIFI), and/or any combination of these and/or other networks.
The server 120 may include one or more general purpose computers, special purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-end servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and/or combination. The server 120 may include one or more virtual machines running a virtual operating system, or other computing architecture involving virtualization (e.g., one or more flexible pools of logical storage that may be virtualized to maintain virtual storage for the server). In various embodiments, the server 120 may run one or more services or software applications that provide the functionality described below.
The computing units in server 120 may run one or more operating systems including any of the operating systems described above, as well as any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and/or middle tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.
In some implementations, the server 120 may include one or more applications to analyze and consolidate data feeds and/or event updates received from users of the client devices 101, 102, 103, 104, 105, and/or 106. Server 120 may also include one or more applications to display data feeds and/or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and/or 106.
In some embodiments, the server 120 may be a server of a distributed system, or a server incorporating a blockchain. The server 120 may also be a cloud server, or a smart cloud computing server or a smart cloud host with artificial intelligence technology. The cloud Server is a host product in a cloud computing service system, and is used for solving the defects of high management difficulty and weak service expansibility in the traditional physical host and Virtual Private Server (VPS) service.
The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The database 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The database 130 may be of different types. In certain embodiments, the database used by the server 120 may be, for example, a relational database. One or more of these databases may store, update, and search to and from the database in response to the command.
In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the application may be different types of databases, such as key-value stores, object stores, or regular stores supported by a file system.
The system 100 of fig. 1 may be configured and operated in various ways to enable application of the various methods and apparatus described in accordance with the present disclosure.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
Fig. 2 shows a search method for a terminal device according to an embodiment of the present disclosure, including: step S201, responding to the detected object to be searched input in the search window, and sending the object to be searched to a server; step S202, responding to the received search instruction, sending a search request based on a determined search object in a search window to a server, wherein the determined search object is associated with an object to be determined; and step S203, receiving a search result aiming at the determined search object from the server, wherein the search result is cached in the server according to the processing of the server to the determined search object before the search request is sent.
Therefore, the process of obtaining the search result from the data in the sea can be executed before the terminal equipment sends the search request, and the search efficiency is further fundamentally improved. Meanwhile, the prefetched search result is cached in the server, so that the resources of the terminal equipment are not additionally occupied, and the consumption of broadband resources can be avoided.
For step S201, where the object to be searched is content detected in the search window before the terminal device receives the search instruction, the search window may be a search box.
According to some embodiments, the search object to be determined may be determined based on any one of the following: determining the first content as a search object to be determined in response to the fact that the maintaining time of the first content in the search window exceeds the preset time length; and determining the second content in the search window as the object to be searched every time a preset time interval elapses. Therefore, the content currently input by the user can be extracted from the search window to be used as the object to be searched, and the object to be searched is provided for the server in advance, so that the search process of the server can be executed in advance.
Based on any one of the above manners, a plurality of search targets to be determined that satisfy the condition may be confirmed before the search instruction is received.
With respect to step S202, when it is determined that the search target is the content detected in the search window when the terminal device receives the search instruction.
According to some embodiments, determining that the search object includes at least one of a character, a gesture, an image, and a language. The type of the object to be searched can be the same as or different from the type of the object to be searched.
According to some embodiments, determining that the search object is associated with the search object includes determining that the search object is the same as one of at least one candidate search object predicted based on the search object. Wherein the operation of predicting the at least one candidate search object based on the object to be searched can be performed based on a neural network in the server.
According to some embodiments, determining that the search object is associated with the search object to be determined may also be determining that the search object is the same as the search object to be determined, or determining that the search object is similar to the search object to be determined.
With respect to step S203, the server may perform processing on the search object to be determined before receiving the search instruction, and thereby cache the corresponding search result in the server in advance.
In one embodiment, the corresponding search result may be a search result of one of the at least one candidate search object predicted based on the object to be searched, and thus, in a case where it is determined that the search object is the same as one of the at least one candidate search object predicted based on the object to be searched, the cached search result of the same candidate search object may be used as the search result of the determined search object.
In another embodiment, the corresponding search result may be a search result of the search object to be determined, and thus, in a case that it is determined that the search object is the same as or similar to the search object to be determined, the cached search result of the search object to be determined may be used as the search result of the search object to be determined.
According to some embodiments, when a plurality of search targets satisfying conditions are sequentially confirmed before a search instruction is received, a search result obtained by processing a subsequent search target may be used to replace a search result obtained by processing a previous search target, so that a cache space in a server may be saved.
Fig. 3 illustrates a search method for a server according to an embodiment of the present disclosure, including: step S301, in response to receiving the object to be searched, caching at least one search result corresponding to the object to be searched by processing the object to be searched; and step S302, in response to receiving a search request based on the determined search object and determining that the search object is associated with the search object to be determined, determining a search result for the determined search object from at least one search result.
Therefore, the server can acquire the search result from the data in the sea according to the object to be searched in advance before receiving the search request, and the search efficiency is further improved fundamentally. Meanwhile, the prefetched search result is cached in the server, so that the resource of the terminal equipment is not occupied, and the consumption of broadband resources can be avoided.
With respect to step S301, according to some embodiments, the cached at least one search result corresponding to the object to be searched is a search result for the object to be searched.
According to further embodiments, the cached at least one search result corresponding to the object to be searched is a search result for one of the at least one candidate search object predicted based on the object to be searched.
Specifically, caching at least one search result corresponding to the object to be searched by processing the object to be searched may include: predicting at least one alternative searching object based on the object to be searched; aiming at each alternative search object in at least one alternative search object, obtaining a search result corresponding to the alternative search object; and caching the search results of each of the at least one candidate search object. Wherein predicting at least one candidate search object based on the object to be searched may be performed by a neural network.
Thus, even in the case where it is determined that the search object does not coincide with the search object to be determined, the search result can be prefetched in advance by at least one candidate search object determined by the prediction operation performed in the server.
With respect to step S302, according to some embodiments, determining that the search object is associated with the search object to be determined comprises determining that the search object is the same as one of the at least one candidate search object, and wherein determining the search result for the determined search object from among the at least one search result may comprise: and determining the search result corresponding to the alternative search object which is the same as the determined search object as the search result of the determined search object.
Thus, in the case where the determined search object is the same as one of the at least one candidate search object, the search result of the determined search object can be efficiently acquired from the cached search results.
According to some embodiments, the search result of each of the at least one candidate search object is cached in a preset storage area in the server. Therefore, the prefetched search results can be uniformly managed, and the search results for determining the search object can be conveniently extracted from the prefetched search results.
Fig. 4 shows a terminal device 400 according to an embodiment of the present disclosure, comprising a searching means 410, wherein the searching means 410 comprises: a first transmitting unit 411 configured to transmit a search object to be determined to a server in response to detection of the search object to be determined input in a search window; a second sending unit 412 configured to send, in response to receiving the search instruction, a search request based on a determined search object in the search window to the server, wherein the determined search object is associated with the search object to be determined; and a receiving unit 413 configured to receive a search result for the determined search object from the server, wherein the search result is cached in the server according to processing of the determined search object by the server before the search request is transmitted.
According to some embodiments, the search object to be determined is determined based on any one of the following: determining the first content as a search object to be determined in response to the fact that the maintaining time of the first content in the search window exceeds the preset time length; and determining the second content in the search window as the object to be searched every time a preset time interval elapses.
According to some embodiments, determining that the search object is associated with the search object includes determining that the search object is the same as one of at least one candidate search object predicted based on the search object.
According to some embodiments, determining that the search object includes at least one of a character, a gesture, an image, and a language.
Fig. 5 shows a server 500 comprising a search apparatus 510 according to an embodiment of the present disclosure, wherein the search apparatus 510 comprises: a writing unit 511 configured to, in response to receiving the object to be searched, cache at least one search result corresponding to the object to be searched by processing the object to be searched; and a determining unit 512 configured to determine a search result for the determined search object from among the at least one search result in response to receiving a search request based on the determined search object and determining that the search object is associated with the search object to be determined.
According to some embodiments, the writing unit includes: a subunit for predicting at least one candidate search object based on the object to be searched; a subunit, configured to, for each candidate search object in at least one candidate search object, obtain a search result corresponding to the candidate search object; and a subunit for caching the search results for each of the at least one candidate search object.
According to some embodiments, determining that the search object is associated with the search object to be determined comprises determining that the search object is identical to one of the at least one candidate search object, and wherein the determining unit comprises: and a subunit for determining a search result corresponding to the candidate search object which is the same as the determined search object as the search result of the determined search object.
According to some embodiments, the search result of each of the at least one candidate search object is cached in a preset storage area in the server.
According to an embodiment of the present disclosure, there is also provided an electronic apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform any one of the methods described above.
There is also provided, in accordance with an embodiment of the present disclosure, a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform any one of the methods described above.
There is also provided, in accordance with an embodiment of the present disclosure, a computer program product, including a computer program, wherein the computer program, when executed by a processor, implements any of the methods described above.
Referring to fig. 6, a block diagram of a structure of an electronic device 600, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the electronic device 600 are connected to the I/O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote control. Output unit 607 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 608 may include, but is not limited to, a magnetic disk, an optical disk. The communication unit 609 allows the electronic device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as bluetoothTMDevices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 601 executes the respective methods and processes described above, such as the search method. For example, in some embodiments, the search method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM603 and executed by the computing unit 601, one or more steps of the search method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the search method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be performed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely exemplary embodiments or examples and that the scope of the present invention is not limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.

Claims (19)

1. A searching method is used for a terminal device and comprises the following steps:
in response to detecting an object to be searched input in a search window, sending the object to be searched to a server;
in response to receiving a search instruction, sending a search request based on a determined search object in the search window to the server, wherein the determined search object is associated with the object to be searched; and
receiving search results for the determined search object from the server, wherein the search results are cached in the server according to processing of the search object to be determined by the server before sending the search request.
2. The method of claim 1, wherein the object to be searched is determined based on any one of:
determining the first content as the object to be searched in response to the fact that the maintaining time of the first content in the search window exceeds a preset time length; and
and determining the second content in the search window as the object to be searched every time a preset time interval passes.
3. The method of claim 1 or 2, wherein the determining that the search object is associated with the search object to be determined comprises the determining that the search object is the same as one of at least one candidate search object predicted based on the search object to be determined.
4. The method of any of claims 1-3, wherein the determined search object comprises at least one of a character, a gesture, an image, and a language.
5. A search method for a server, comprising:
in response to receiving a search object to be determined, caching at least one search result corresponding to the search object to be determined by processing the search object to be determined; and
in response to receiving a search request based on a determined search object and the determined search object being associated with the search object to be determined, a search result for the determined search object is determined from among the at least one search result.
6. The method of claim 5, wherein the caching of at least one search result corresponding to the search object by processing the search object comprises:
predicting at least one alternative searching object based on the object to be searched;
aiming at each alternative search object in the at least one alternative search object, obtaining a search result corresponding to the alternative search object; and
and caching the search result of each alternative search object in the at least one alternative search object.
7. The method of claim 6, wherein the determining that a search object is associated with the search object to be determined comprises the determining that the search object is the same as one of the at least one candidate search object,
and wherein said determining a search result for said determined search object from among said at least one search result comprises:
and determining the search result corresponding to the alternative search object which is the same as the determined search object as the search result of the determined search object.
8. The method according to any one of claims 5 to 7, wherein the search result of each of the at least one candidate search object is cached in a preset storage area in the server.
9. A terminal device comprising a search means, wherein the search means comprises:
a first transmitting unit configured to transmit a search object to be determined to a server in response to detection of the search object to be determined input in a search window;
a second sending unit configured to send, in response to receiving a search instruction, a search request based on a determined search object in the search window to the server, wherein the determined search object is associated with the object to be searched; and
a receiving unit configured to receive a search result for the determined search object from the server, wherein the search result is cached in the server according to processing of the search object to be determined by the server before the search request is sent.
10. The apparatus of claim 9, wherein the object to be searched is determined based on any one of:
determining the first content as the object to be searched in response to the fact that the maintaining time of the first content in the search window exceeds a preset time length; and
and determining the second content in the search window as the object to be searched every time a preset time interval passes.
11. The apparatus of claim 9 or 10, wherein the determining that the search object is associated with the search object to be determined comprises the determining that the search object is the same as one of at least one candidate search object predicted based on the search object to be determined.
12. The apparatus of any of claims 9-11, wherein the determined search object comprises at least one of a character, a gesture, an image, and a language.
13. A server comprising a search apparatus, wherein the search apparatus comprises:
a writing unit configured to, in response to receiving an object to be searched, cache at least one search result corresponding to the object to be searched by processing the object to be searched; and
a determining unit configured to determine a search result for a determined search object from among the at least one search result in response to receiving a search request based on the determined search object and the determined search object being associated with the search object to be determined.
14. The apparatus of claim 13, wherein the writing unit comprises:
a subunit for predicting at least one candidate search object based on the object to be searched;
a subunit, configured to, for each candidate search object in the at least one candidate search object, obtain a search result corresponding to the candidate search object; and
a subunit for caching search results for each of the at least one candidate search object.
15. The apparatus of claim 14, wherein the determined search object is associated with the search object to be determined comprises the determined search object being the same as one of the at least one candidate search object,
and wherein the determining unit comprises:
and the subunit is used for determining the search result corresponding to the candidate search object which is the same as the determined search object as the search result of the determined search object.
16. The apparatus according to any one of claims 13 to 15, wherein the search result of each of the at least one candidate search object is cached in a preset storage area in the server.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program, wherein the computer program realizes the method of any one of claims 1-8 when executed by a processor.
CN202111585911.1A 2021-12-20 2021-12-20 Search method, search device, electronic equipment and medium Pending CN114329159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111585911.1A CN114329159A (en) 2021-12-20 2021-12-20 Search method, search device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111585911.1A CN114329159A (en) 2021-12-20 2021-12-20 Search method, search device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114329159A true CN114329159A (en) 2022-04-12

Family

ID=81054209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111585911.1A Pending CN114329159A (en) 2021-12-20 2021-12-20 Search method, search device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114329159A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942319A (en) * 2014-04-25 2014-07-23 北京金山网络科技有限公司 Searching method and device
CN105677924A (en) * 2016-03-29 2016-06-15 努比亚技术有限公司 Data searching device and method
CN109690531A (en) * 2016-09-19 2019-04-26 电子湾有限公司 Instant search based on prediction
CN111159592A (en) * 2019-12-16 2020-05-15 百度在线网络技术(北京)有限公司 Search result page generation method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942319A (en) * 2014-04-25 2014-07-23 北京金山网络科技有限公司 Searching method and device
CN105677924A (en) * 2016-03-29 2016-06-15 努比亚技术有限公司 Data searching device and method
CN109690531A (en) * 2016-09-19 2019-04-26 电子湾有限公司 Instant search based on prediction
CN111159592A (en) * 2019-12-16 2020-05-15 百度在线网络技术(北京)有限公司 Search result page generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113986788B (en) Data processing method and device, chip, electronic equipment and medium
CN113411645B (en) Information recommendation method and device, electronic equipment and medium
US20230052389A1 (en) Human-object interaction detection
US20230047628A1 (en) Human-object interaction detection
CN113377809A (en) Data processing method and apparatus, computing device, and medium
CN114443989B (en) Ranking method, training method and device of ranking model, electronic equipment and medium
CN112860566A (en) Applet detection method, device, electronic equipment and readable medium
CN115578501A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114510308B (en) Method, device, equipment and medium for storing application page by mobile terminal
CN113596011B (en) Flow identification method and device, computing device and medium
CN113641929B (en) Page rendering method, device, electronic equipment and computer readable storage medium
CN115797660A (en) Image detection method, image detection device, electronic equipment and storage medium
CN115269989A (en) Object recommendation method and device, electronic equipment and storage medium
CN114219046A (en) Model training method, matching method, device, system, electronic device and medium
CN114429678A (en) Model training method and device, electronic device and medium
CN113839944A (en) Method, device, electronic equipment and medium for coping with network attack
CN114329159A (en) Search method, search device, electronic equipment and medium
CN112784912A (en) Image recognition method and device, and training method and device of neural network model
CN114860836B (en) Method, device, equipment and medium for mining failure interest points
CN114218516B (en) Webpage processing method and device, electronic equipment and storage medium
US20230306031A1 (en) Method for data processing, computing device, and storage medium
CN116383534A (en) Page preloading method, device, electronic equipment and medium
CN113961633A (en) Data processing method, system, electronic device and computer storage medium
CN115756611A (en) Branch instruction processing method and device, equipment and medium
CN113946498A (en) Interest point identification method and device, recommendation method and device, equipment and medium

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