CN112579897B - Information searching method and device - Google Patents

Information searching method and device Download PDF

Info

Publication number
CN112579897B
CN112579897B CN202011493719.5A CN202011493719A CN112579897B CN 112579897 B CN112579897 B CN 112579897B CN 202011493719 A CN202011493719 A CN 202011493719A CN 112579897 B CN112579897 B CN 112579897B
Authority
CN
China
Prior art keywords
search
search result
result
party server
target
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
CN202011493719.5A
Other languages
Chinese (zh)
Other versions
CN112579897A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011493719.5A priority Critical patent/CN112579897B/en
Publication of CN112579897A publication Critical patent/CN112579897A/en
Application granted granted Critical
Publication of CN112579897B publication Critical patent/CN112579897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses an information searching method and device, in particular relates to the technical field of artificial intelligence, and further relates to the technical field of intelligent searching and natural language processing. The specific embodiment comprises the following steps: acquiring an intent of a search term in response to receiving a user search request including the search term; in response to determining that the intent is within the preset search intent range of the third party server for searching, sending a user search request to the third party server; responding to the received search result returned by the third party server, and taking the search result as a target search result; and sequencing the target search results and other search results to obtain and output a search result sequence. The method and the device can acquire the search result by using the third-party server, so that the problem of low-efficiency acquisition or low-frequency acquisition caused by grabbing data of a third party can be avoided. Through purposefully requesting the third party server, the third party is prevented from participating in the search irrelevant to the third party, and further, the invalid search process of the third party is avoided, and the efficiency of generating and outputting the search result is improved by reducing interaction.

Description

Information searching method and device
Technical Field
The application relates to the technical field of computers, in particular to the technical field of artificial intelligence, further relates to the technical field of intelligent searching and natural language processing, and particularly relates to an information searching method and device.
Background
Searching with a search platform has become increasingly a habit for multiple users today where internet technology is mature. The user enters a search term in the interface of the search platform, and the search platform finds a search result for the search term.
In the prior art, a search platform often acquires data of content providers, that is, various websites, in a crawling manner, so as to generate search results and display the search results to users.
Disclosure of Invention
Provided are an information searching method, an information searching device, an electronic device and a storage medium.
According to a first aspect, there is provided an information search method including: acquiring an intent of a search term in response to receiving a user search request including the search term; in response to determining that the intent is within a preset search intent range corresponding to the third party server for searching, sending a user search request to the third party server; responding to the received search result returned by the third party server, taking the search result as a target search result, and acquiring other search results of the search word; and sequencing the target search result and other search results to obtain a search result sequence, and outputting the search result sequence.
According to a second aspect, there is provided an information search apparatus including: an intention obtaining unit configured to obtain an intention of a search term in response to receiving a user search request including the search term; a transmitting unit configured to transmit a user search request to a third party server for searching in response to determining that an intention is within a preset search intention range corresponding to the third party server; the result acquisition unit is configured to respond to the received search result returned by the third-party server, take the search result as a target search result and acquire other search results of the search word; and the output unit is configured to sort the target search result and other search results to obtain a search result sequence and output the search result sequence.
According to a third aspect, there is provided an electronic device comprising: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method as in any of the embodiments of the information search method.
According to a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as any of the embodiments of the information search method.
According to a fifth aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method according to any of the embodiments of the information search method.
According to the scheme, the search result can be obtained by using the third-party server, so that the problem of low-efficiency obtaining or low-frequency obtaining caused by grabbing data of a third party can be avoided. Through purposefully requesting the third party server, the third party is prevented from participating in the search irrelevant to the third party, and further, the invalid search process of the third party is avoided, and the efficiency of generating and outputting the search result is improved by reducing interaction.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is an exemplary system architecture diagram in which some embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of an information search method according to the present application;
FIG. 3 is a schematic illustration of an application scenario of an information search method according to the present application;
FIG. 4 is a flow chart of yet another embodiment of an information search method according to the present application;
FIG. 5 is a schematic diagram of the structure of one embodiment of an information search apparatus according to the present application;
fig. 6 is a block diagram of an electronic device for implementing the information search method of the embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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 and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the information search method or information search apparatus of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as search class applications, video class applications, live applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smartphones, tablets, electronic book readers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and process the received data such as the user search request, and feed back the processing result (e.g., the search result sequence) to the terminal device.
It should be noted that, the information searching method provided in the embodiment of the present application may be performed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the information searching apparatus may be provided in the server 105 or the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an information search method according to the present application is shown. The information searching method comprises the following steps:
in step 201, in response to receiving a user search request including a search term, an intent of the search term is obtained.
In the present embodiment, an execution subject (e.g., a server or a terminal device shown in fig. 1) on which the information search method is run may acquire an intention of a search word (query) in the case of receiving a user search request including the search word. The execution body may receive a user search request generated and transmitted by other electronic devices (such as terminal devices). The user search request is generated by triggering the search operation performed by the user at the terminal equipment.
The execution body may acquire the intent of the search term in various manners, for example, the execution body may directly determine the intent of the search term at the device to acquire the intent of the search term, or the execution body may send the search term to other electronic devices to enable the other electronic devices to determine the intent of the search term and return, so that the execution body can acquire the intent of the search term from the other electronic devices.
Step 202, in response to determining that the intent is within a preset search intent range corresponding to the third party server for searching, sending a user search request to the third party server.
In this embodiment, if it is determined that the acquired intention is within the preset search intention range of the third party server, the execution subject may transmit the user search request to the third party server. The third party server may be a third party server in a preset set of third party servers. The third party server of each third party may have a corresponding preset search intent range. The third party server can be used for searching and can also be used for carrying out other cloud service business.
The third party server may be used to search for the search term and generate search results. The form of the execution body sending the user search request may be forwarding the received user search request, or the execution body may generate a new user search request including the search word and send the new user search request to the third party server. The number of third party servers may be one or more, where the number may be two.
The preset search intent range may include at least one intent. If the intention of the search term acquired by the execution subject is consistent with one or more intentions of the at least one intention, the intention of the acquired search term is within the preset search intention range. The preset search intention range may include all or part of search intents among the search intents corresponding to all the search results of the third party server.
In step 203, in response to receiving the search result returned by the third party server, the search result is used as a target search result, and other search results of the search word are obtained.
In this embodiment, if the execution body receives the search result returned by the third party server, the execution body may take the search result as the target search result and obtain other search results of the obtained search term. Other search results herein may include search results returned by a third party server other than the third party server for the search term, and may also include search results that the execution subject directly searches in the database.
Step 204, sorting the target search result and other search results to obtain a search result sequence, and outputting the search result sequence.
In this embodiment, the execution body may sort the target search result and other search results, where the sorted result is a search result sequence, and then the execution body may output the search result sequence.
The execution body may rank the target search results and other search results in various ways, such as in a high-to-low order of relevance.
The execution body may output the search result sequence in various manners. For example, in the case where the execution body is a server, the execution body may transmit the search result sequence to the terminal device, or in the case where the execution body is a terminal device, the execution body may output the search result sequence in a display form.
In practice, the delay of the execution body for the user search request in this scheme is very short, and may be less than or equal to 500ms (preset duration).
The method provided by the embodiment of the application can utilize the third-party server to acquire the search result, so that the problem of low-efficiency acquisition or low-frequency acquisition caused by grabbing data of a third party can be avoided. Through purposefully requesting the third party server, the third party is prevented from participating in the search irrelevant to the third party, and further, the invalid search process of the third party is avoided, and the efficiency of generating and outputting the search result is improved by reducing interaction.
In some optional implementations of the present embodiment, the method further includes: responding to the received null value search result returned by the third party server, and if the correctness identification of the null value search result indicates that the search process is normal, storing the null value search result as a history search result in a cache area of the device; searching the historical search results of the search words in the cache area in response to receiving the user search request comprising the search words again; and in response to not finding the null search result, sending the user search request to a third party server.
In these optional implementations, if the execution body receives a null search result returned by the third-party server, that is, no corresponding content is searched, and the correctness identification (i.e., the error code) of the null search result indicates that the search process is normal, the execution body may use the null search result as the history search result. The execution body may store the history search result in a cache (cache) of the device. Then, if the execution body receives the user search request including the search word again, the history search result of the search word can be searched in the cache area of the device. The content in the buffer area has timeliness, so if the history time of storing the null value search result is shorter than the current time (less than the preset duration, such as 5 minutes), the previously stored null value search result still exists and can be found. If the historical time of storing the null search result is longer than the current time (greater than or equal to the preset time length), the previously stored null search result cannot be found.
If the execution body does not find the null value search result, the user search request received at the present time can be sent to the third party server. Specifically, the executing body may first obtain the intention of the search term when the null value search request is not found, and if the intention is determined to be within the preset search intention range corresponding to the third party server, the executing body may send the user search request to the third party server. Or, the execution body may directly send the user search request to the third party server on the basis of the intention of the search term acquired before, so as to omit the process of acquiring the intention and determining whether the search intention is within the preset search intention range, and improve the speed of acquiring the search result.
Alternatively, the executing entity may not send the user search request to the third party server any more in response to finding the null search result. That is, if the null value search result is found in the cache region, it means that it is likely that the search result other than the null value search result still cannot be searched by the third party server, so that the search flow by the third party server may be omitted.
The implementation methods can continue searching through the third-party server only after determining that the null value search result is not in the cache, so that repeated acquisition of the null value search result of the third-party server is avoided.
In some alternative implementations of the present embodiment, ranking the target search results and other search results in step 204 may include: ranking the target search results and other search results according to ranking influencing factors, wherein the ranking influencing factors include at least one of: correlation, authority, and timeliness.
In these alternative implementations, the execution body may rank the target search results and other search results by a ranking influencing factor. Among the ranking influencing factors herein, relevance is an indicator indicating the degree of relevance between the search results and the search terms. Authoritativeness is an indicator of the degree of authority of a search result. Timeliness is an indicator of whether the search results are newer in time. The ranking influencing factor for each search result may be represented as a numerical value.
In practice, the execution bodies described above may rank the target search results and other search results in various ways according to ranking influencing factors. For example, the execution body may add, for each search result, respective ranking influencing factors of the search result, and add the obtained numerical value as a ranking score. The search results are ranked according to the size of the score.
The implementation modes can sort the target search results and other search results according to each sorting influence factor, so that more accurate sorting results can be obtained according to more comprehensive parameters.
Optionally, the number of ranking influencing factors is at least two; the ranking the target search result and other search results according to the ranking influencing factors may include: for each search result in the target search result and other search results, weighting the numerical value of each sequencing influence factor corresponding to the search result according to the weight of each sequencing influence factor in at least two sequencing influence factors to generate a weighted result of the search result; the target search results and other search results are ranked based on the size of the weighted results.
Specifically, the execution body may weight, for each of the plurality of search results, the numerical value of each ranking influencing factor, where the weighted result is a weighted result of the search result. The numerical value of each ranking influencing factor here corresponds to the search result, and thus a weighted result of the search result can be obtained. The plurality of search results refer to the target search result and the other search results.
The execution body may sort the target search results and other search results based on the size of the weighted results in various ways. Specifically, the execution body may directly sort the weighted results of the respective search results, and use the sorting order of the weighted results as the sorting order of the search results corresponding to the weighted results. Alternatively, the execution body may perform a preset process on the weighted result, for example, input a preset model, multiply the preset coefficient, or calculate a weighted average from the weighted result, thereby obtaining a preset process result, and rank the preset process result. Then, the execution body may set the ranking order of the preset processing result in the current ranking as the ranking order of the search result corresponding to the preset processing result.
These implementations can accurately reference the respective importance of different ranking influencing factors by weighting, thereby obtaining a more accurate ranking result.
In some optional implementations of this embodiment, the responding to receiving the search result returned by the third party server, taking the search result as the target search result may include: responding to the received search result returned by the third party server, and carrying out relevance verification on the search result; and responding to the search result passing the relevance verification, and taking the search result as a target search result.
In these alternative implementations, the execution entity may take the search result as the target search result if the search result returned by the third party server passes the relevance verification. In addition, the method may further include: and ending the flow in response to the search result failing the relevance verification.
The implementation methods can carry out relevance verification on the search results returned by the third-party server, so that the situation that the relevance between the output search results and the search words is too low is avoided.
In some optional implementations of this embodiment, the target search result includes an element value corresponding to a preset search result element; in response to the target search result being at least two search results, the at least two search results each having a different display priority.
In these alternative implementations, the third party server may generate search results that include element values for the search result elements and return to the execution body described above. In the case where the target search result is at least two search results, the at least two search results have different display priorities, respectively. The execution body may select the search result with the highest display priority according to the display priority to output, or may sort at least two search results among the output search results according to the display priority. The display priority indicates the display priority of each target search result generated and returned by the third party server at the terminal device sending the user search request.
Each intent has a corresponding search result element, e.g., intent to search for a travel city, the search result element may include a city, and the returned element value may include a city.
The implementation methods can limit the search results returned by the third-party server, thereby being beneficial to outputting the search results which are better in quality and more in line with the requirements of users.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the information search method according to the present embodiment. In the application scenario of FIG. 3, the executing body 301, in response to receiving a user search request 302 that includes a search term, retrieves an intent 303 of the search term to search for A-market travel. The executing entity 301 sends the user search request 302 to the third party server in response to determining that the intent 303 is within a preset search intent range "travel" corresponding to the third party server for searching. The execution body 301, in response to receiving the search results 304 returned by the third party server, takes the search results 304 as target search results 305 and obtains other search results 306 of the search term. The execution body 301 orders the target search results 305 and other search results 306 to obtain a search result sequence 307, and outputs the search result sequence 307.
With further reference to fig. 4, a flow 400 of yet another embodiment of an information search method is shown. The process 400 includes the steps of:
step 401, in response to receiving a user search request including a search term, searching a cache for historical search results of the search term.
In this embodiment, an execution body (e.g., a server or a terminal device shown in fig. 1) on which the information search method is executed may find a search result of a search word in a cache of the present device in case of receiving a user search request including the search word. That is, the execution body may first perform a lookup in the cache of the device after receiving the user search request. The cache area of the device can comprise historical search results of each search term in a preset historical time. The buffer may be periodically cleared and updated and thus may include only search results for a predetermined history period, such as search results for the past 5 minutes.
Step 402, in response to not finding the historical search results for the search term in the cache, obtaining an intent for the search term.
In this embodiment, if the result of the search is a history search result in which the search word is not found in the cache area of the device, the execution subject may obtain the intention of the search word.
Step 403, in response to determining that the intent is within the preset search intent range corresponding to the third party server for searching, sending a user search request to the third party server.
In this embodiment, if it is determined that the acquired intention is within the preset search intention range of the third party server, the execution subject may transmit the user search request to the third party server. The third party server may be a third party server in a preset set of third party servers. The third party server of each third party may have a corresponding preset search intent range.
Step 404, in response to receiving the search result returned by the third party server, taking the search result as a target search result, and obtaining other search results of the search word.
In this embodiment, if the execution body receives the search result returned by the third party server, the execution body may take the search result as the target search result and obtain other search results of the obtained search term. Other search results herein may include search results returned by a third party server other than the third party server for the search term, and may also include search results that the execution subject directly searches in the database.
Step 405, sorting the target search result and other search results to obtain a search result sequence, and outputting the search result sequence.
In this embodiment, the execution body may sort the target search result and other search results, where the sorted result is a search result sequence, and then the execution body may output the search result sequence.
According to the method and the device, the historical search results of the search word can be preferentially searched in the cache region of the device, and the intention of the search word is obtained again under the condition that the historical search results of the search word are searched, so that the assisted search process of a third-party server is omitted under the condition that the historical search results of the search word exist, the search results are directly obtained in the device, consumption caused by interaction between the devices is reduced, and the search efficiency is improved.
With further reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present application provides an embodiment of an information searching apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the embodiment of the apparatus may further include the same or corresponding features or effects as the embodiment of the method shown in fig. 2, except for the features described below. The device can be applied to various electronic equipment.
As shown in fig. 5, the information search apparatus 500 of the present embodiment includes: an intention acquisition unit 501, a transmission unit 502, a result acquisition unit 503, and an output unit 504. Wherein the intention obtaining unit 501 is configured to obtain an intention of a search term in response to receiving a user search request including the search term; a transmitting unit 502 configured to transmit a user search request to a third party server for searching in response to determining that the intention is within a preset search intention range corresponding to the third party server; a result obtaining unit 503 configured to, in response to receiving the search result returned by the third party server, take the search result as a target search result, and obtain other search results of the search term; and an output unit 504 configured to sort the target search result and other search results to obtain a search result sequence, and output the search result sequence.
In this embodiment, the specific processes of the intention acquiring unit 501, the transmitting unit 502, the result acquiring unit 503 and the output unit 504 of the information searching apparatus 500 and the technical effects thereof may refer to the relevant descriptions of the steps 201, 202, 203 and 204 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some optional implementations of this embodiment, the apparatus further includes: a storage unit configured to store the target search result as a history search result in a cache area of the present apparatus; and an intention acquisition unit configured to perform intention to acquire the search term as follows: searching historical search results of the search words in the cache area; and responding to the historical search results of the search words which are not found in the cache area, acquiring the intention of the search words.
In some optional implementations of this embodiment, the apparatus further includes: the null value processing unit is configured to respond to receiving a null value search result returned by the third party server, and if the correctness identification of the null value search result indicates that the search process is normal, the null value search result is stored into the cache area of the device as a history search result; a search unit configured to search the cache area for a history search result of the search word in response to receiving a user search request including the search word again; and the preset sending unit is configured to send the user search request to the third-party server in response to the fact that the null value search result is not found.
In some alternative implementations of the present embodiment, the output unit is further configured to perform ranking the target search results and the other search results as follows: ranking the target search results and other search results according to ranking influencing factors, wherein the ranking influencing factors include at least one of: correlation, authority, and timeliness.
In some optional implementations of this embodiment, the number of ranking influencing factors is at least two; an output unit further configured to perform ranking of the target search results and other search results by ranking influencing factors as follows: for each search result in the target search result and other search results, weighting the numerical value of each sequencing influence factor corresponding to the search result according to the weight of each sequencing influence factor in at least two sequencing influence factors to generate a weighted result of the search result; the target search results and other search results are ranked based on the size of the weighted results.
In some optional implementations of this embodiment, the result obtaining unit is further configured to perform, in response to receiving the search result returned by the third party server, setting the search result as the target search result as follows: responding to the received search result returned by the third party server, and carrying out relevance verification on the search result; and responding to the search result passing the relevance verification, and taking the search result as a target search result.
In some optional implementations of this embodiment, the target search result includes an element value corresponding to a preset search result element; in response to the target search result being at least two search results, the at least two search results each having a different display priority.
According to embodiments of the present application, there is also provided an electronic device, a readable storage medium and a computer program product.
As shown in fig. 6, a block diagram of an electronic device according to an information search method according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
Memory 602 is a non-transitory computer-readable storage medium provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the information searching methods provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the information search method provided by the present application.
The memory 602, which is a non-transitory computer-readable storage medium, may be used to store a non-transitory software program, a non-transitory computer-executable program, and modules, such as program instructions/modules (e.g., the intention acquiring unit 501, the transmitting unit 502, the result acquiring unit 503, and the output unit 504 shown in fig. 5) corresponding to the information searching method in the embodiment of the present application. The processor 601 executes various functional applications of the server and data processing, i.e., implements the information search method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the information search electronic device, and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 602 may optionally include memory located remotely from processor 601, which may be connected to the information searching electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the information search method may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the information search electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, and like input devices. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes an intention acquisition unit, a transmission unit, a result acquisition unit, and an output unit. Where the names of these units do not constitute a limitation on the unit itself in some cases, for example, the intention acquisition unit may also be described as "a unit that acquires an intention of a search term in response to receiving a user search request including the search term".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: acquiring an intent of a search term in response to receiving a user search request including the search term; in response to determining that the intent is within a preset search intent range of a third party server for searching, sending a user search request to the third party server; responding to the received search result returned by the third party server, taking the search result as a target search result, and acquiring other search results of the search word; and sequencing the target search result and other search results to obtain a search result sequence, and outputting the search result sequence.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (14)

1. An information search method, the method comprising:
in response to receiving a user search request including a search term, obtaining an intent of the search term;
in response to determining that the intent is within a preset search intent range of a third party server for searching, sending the user search request to the third party server;
responding to the received search result returned by the third party server, taking the search result as a target search result, and acquiring other search results of the search word;
sorting the target search result and the other search results to obtain a search result sequence, and outputting the search result sequence;
responding to receiving a null value search result returned by the third party server, and if the correctness identification of the null value search result indicates that the search process is normal, storing the null value search result as a historical search result in a cache region of the device;
searching historical search results of the search words in the cache area in response to receiving a user search request comprising the search words again;
responding to the null value search result not found, and sending the user search request to the third party server;
And in response to finding the null value search result, no user search request is sent to the third party server.
2. The method of claim 1, wherein the method further comprises: storing the target search result as a history search result into a cache region of the device; and
the obtaining the intention of the search word comprises the following steps:
searching historical search results of the search words in the cache area;
and responding to the historical search results of the search word which are not found in the cache area, and acquiring the intention of the search word.
3. The method of claim 1, wherein the ranking the target search result and the other search results comprises:
ranking the target search result and the other search results according to ranking influencing factors, wherein the ranking influencing factors include at least one of: correlation, authority, and timeliness.
4. A method according to claim 3, wherein the number of ranking influencing factors is at least two;
the ranking of the target search result and the other search results according to ranking influencing factors includes:
For each search result in the target search result and the other search results, weighting the numerical value of each sequencing influence factor corresponding to the search result according to the weight of each sequencing influence factor in at least two sequencing influence factors to generate a weighted result of the search result;
the target search results and the other search results are ranked based on the size of the weighted results.
5. The method of claim 1, wherein the responding to the search result returned by the third party server, taking the search result as a target search result, comprises:
responding to the received search result returned by the third party server, and carrying out relevance verification on the search result;
and responding to the search result passing the relevance verification, and taking the search result as a target search result.
6. The method of claim 1, wherein the target search result comprises an element value corresponding to a preset search result element;
in response to the target search result being at least two search results, the at least two search results each having a different display priority.
7. An information search apparatus, the apparatus comprising:
An intention obtaining unit configured to obtain an intention of a search word in response to receiving a user search request including the search word;
a transmitting unit configured to transmit the user search request to a third-party server for searching in response to determining that the intention is within a preset search intention range corresponding to the third-party server;
the result acquisition unit is configured to respond to the received search result returned by the third-party server, take the search result as a target search result and acquire other search results of the search word;
the output unit is configured to sort the target search result and the other search results to obtain a search result sequence, and output the search result sequence;
the null value processing unit is configured to respond to receiving a null value search result returned by the third party server, and if the correctness identification of the null value search result indicates that the search process is normal, the null value search result is stored into a cache area of the device as a history search result;
a search unit configured to search the cache area for a history search result of the search word in response to receiving a user search request including the search word again;
A preset sending unit configured to send the user search request to the third party server in response to the null value search result not being found;
and in response to finding the null value search result, no user search request is sent to the third party server.
8. The apparatus of claim 7, wherein the apparatus further comprises: a storage unit configured to store the target search result as a history search result in a cache area of the present apparatus; and
the intention obtaining unit is further configured to perform the intention of obtaining the search term as follows:
searching historical search results of the search words in the cache area;
and responding to the historical search results of the search word which are not found in the cache area, and acquiring the intention of the search word.
9. The apparatus of claim 7, wherein the output unit is further configured to perform the ranking the target search result and the other search results as follows:
ranking the target search result and the other search results according to ranking influencing factors, wherein the ranking influencing factors include at least one of: correlation, authority, and timeliness.
10. The apparatus of claim 9, wherein the number of ranking influencing factors is at least two;
the output unit is further configured to perform the ranking of the target search result and the other search results by performing the ranking influencing factors as follows:
for each search result in the target search result and the other search results, weighting the numerical value of each sequencing influence factor corresponding to the search result according to the weight of each sequencing influence factor in at least two sequencing influence factors to generate a weighted result of the search result;
the target search results and the other search results are ranked based on the size of the weighted results.
11. The apparatus of claim 7, wherein the result acquisition unit is further configured to perform the responding to the receiving of the search result returned by the third party server as a target search result in the following manner:
responding to the received search result returned by the third party server, and carrying out relevance verification on the search result;
and responding to the search result passing the relevance verification, and taking the search result as a target search result.
12. The apparatus of claim 7, wherein the target search result comprises an element value corresponding to a preset search result element;
in response to the target search result being at least two search results, the at least two search results each having a different display priority.
13. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
14. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-6.
CN202011493719.5A 2020-12-16 2020-12-16 Information searching method and device Active CN112579897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011493719.5A CN112579897B (en) 2020-12-16 2020-12-16 Information searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011493719.5A CN112579897B (en) 2020-12-16 2020-12-16 Information searching method and device

Publications (2)

Publication Number Publication Date
CN112579897A CN112579897A (en) 2021-03-30
CN112579897B true CN112579897B (en) 2023-07-28

Family

ID=75135780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011493719.5A Active CN112579897B (en) 2020-12-16 2020-12-16 Information searching method and device

Country Status (1)

Country Link
CN (1) CN112579897B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113343071A (en) * 2021-06-30 2021-09-03 北京搜狗科技发展有限公司 Retrieval method and device and electronic equipment
CN114139039B (en) * 2021-11-30 2022-08-09 百度在线网络技术(北京)有限公司 Service stability determination method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294777A (en) * 2013-05-13 2013-09-11 沈文策 Question answering method and system
CN106611000A (en) * 2015-10-26 2017-05-03 北京神州泰岳软件股份有限公司 Method, device and system for searching resource object
CN106874467A (en) * 2017-02-15 2017-06-20 百度在线网络技术(北京)有限公司 Method and apparatus for providing Search Results
CN107092642A (en) * 2017-03-06 2017-08-25 广州神马移动信息科技有限公司 A kind of information search method, equipment, client device and server
CN110502699A (en) * 2019-08-27 2019-11-26 百度在线网络技术(北京)有限公司 Method and apparatus for obtaining information
CN110709829A (en) * 2017-06-05 2020-01-17 北京嘀嘀无限科技发展有限公司 Data processing system and method
CN111177539A (en) * 2019-12-16 2020-05-19 北京百度网讯科技有限公司 Search result page generation method and device, electronic equipment and storage medium
US10860668B1 (en) * 2016-09-29 2020-12-08 EMC IP Holding Company, LLC Querying system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294777A (en) * 2013-05-13 2013-09-11 沈文策 Question answering method and system
CN106611000A (en) * 2015-10-26 2017-05-03 北京神州泰岳软件股份有限公司 Method, device and system for searching resource object
US10860668B1 (en) * 2016-09-29 2020-12-08 EMC IP Holding Company, LLC Querying system and method
CN106874467A (en) * 2017-02-15 2017-06-20 百度在线网络技术(北京)有限公司 Method and apparatus for providing Search Results
CN107092642A (en) * 2017-03-06 2017-08-25 广州神马移动信息科技有限公司 A kind of information search method, equipment, client device and server
CN110709829A (en) * 2017-06-05 2020-01-17 北京嘀嘀无限科技发展有限公司 Data processing system and method
CN110502699A (en) * 2019-08-27 2019-11-26 百度在线网络技术(北京)有限公司 Method and apparatus for obtaining information
CN111177539A (en) * 2019-12-16 2020-05-19 北京百度网讯科技有限公司 Search result page generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112579897A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
US11657612B2 (en) Method and apparatus for identifying video
CN111586126B (en) Applet pre-downloading method, device, equipment and storage medium
US20170371925A1 (en) Query data structure representation
US9424359B1 (en) Typeahead using messages of a messaging platform
US11366818B2 (en) Context-aware dynamic content assist
CN112579897B (en) Information searching method and device
CN112084366A (en) Method, apparatus, device and storage medium for retrieving image
CN112491617B (en) Link tracking method, device, electronic equipment and medium
CN111563198B (en) Material recall method, device, equipment and storage medium
CN112084150A (en) Model training method, data retrieval method, device, equipment and storage medium
CN111752960A (en) Data processing method and device
CN111967599A (en) Method and device for training model, electronic equipment and readable storage medium
CN111611364B (en) Intelligent response method, device, equipment and storage medium
CN110517079B (en) Data processing method and device, electronic equipment and storage medium
CN111680508B (en) Text processing method and device
CN113656689B (en) Model generation method and network information pushing method
US20210306269A1 (en) Method and apparatus for adjusting network flow
CN112598136B (en) Data calibration method and device
CN111522837B (en) Method and apparatus for determining time consumption of deep neural network
CN111782794A (en) Question-answer response method and device
CN111582480A (en) Method and device for pruning a model
CN111695036A (en) Content recommendation method and device
CN111523000A (en) Method, device, equipment and storage medium for importing data
CN112860840A (en) Search processing method, device, equipment and storage medium
CN113626462B (en) Instant messaging object searching method and device, electronic equipment and storage 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
GR01 Patent grant
GR01 Patent grant