Search processing method, device, electronic device, storage medium and program product
By obtaining user behavior information on the client and generating a disambiguous search request, the problem of inaccurate search of polysemes in the prior art is solved, and a more efficient search process and resource utilization rate is achieved.
Patent Information
- Application Number
- CN202110486353.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2041-04-30
AI Technical Summary
The existing search processing methods cannot effectively handle the situation of polysynonyms, resulting in inaccurate search results, cumbersome search process, and low resource utilization rate of search servers.
By obtaining user behavior information of users within a preset time period on the client and generating search requests in combination with search keywords, the search server can perform disambiguation search based on user behavior information, improving search accuracy and process optimization.
It improves the accuracy of search results, simplifies the search process, improves the resource utilization rate of the search server, and ensures that the search results are in line with the user's search intention.
Smart Images

Figure CN113190740B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to intelligent search in data processing, and in particular to a search processing method, device, electronic device, storage medium and program product. Background Art
[0002] With the development of Internet technology, more and more users will use search engines to obtain information about specific targets.
[0003] The user inputs the keywords to be searched, so that the search server uses the search engine to search for the keywords and displays the search results to the user through the client.
[0004] However, there is a phenomenon of polysemy in language expression, that is, the same word has different linguistic meanings in different contexts or different fields. However, the existing search processing method does not perform special search processing for this phenomenon. Summary of the invention
[0005] The present application provides a search processing method, device, electronic device, storage medium and program product for improving search accuracy and optimizing search process.
[0006] According to a first aspect of the present application, a search processing method is provided, comprising:
[0007] After the client is started, respond to the current search operation triggered by the user on the client, wherein the search operation is used to search for the search keyword;
[0008] Obtaining user behavior information generated by searching and / or browsing by the user on the client within a preset time period; wherein the preset time period refers to the time period from the start of the client to the triggering of the current search operation;
[0009] Generate a search request according to the user behavior information and the search keyword; wherein the search request is used to search the search keyword based on the user behavior information;
[0010] The search results returned by the search server are received and displayed on the client.
[0011] According to a second aspect of the present application, a search processing device is provided, including:
[0012] An interactive display unit, which is used to respond to the current search operation triggered by the user on the client after the client is started, wherein the search operation is used to search for the search keyword;
[0013] A user behavior information acquisition unit, used to acquire user behavior information generated by a user searching and / or browsing on a client within a preset time period; wherein the preset time period refers to a time period from when the client is started to when the current search operation is triggered;
[0014] A request generating unit, configured to generate a search request according to the user behavior information and the search keyword; wherein the search request is used to search the search keyword based on the user behavior information;
[0015] The interactive display unit is also used to receive and display the search results returned by the search server on the client.
[0016] According to a third aspect of the present application, an electronic device is provided, including:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to the first aspect.
[0020] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method as described in the first aspect.
[0021] According to the fifth aspect of the present application, a computer program product is provided, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect.
[0022] The technology according to the present application solves the technical problem that accurate search results cannot be provided to users during the existing search process for keywords with multiple semantics.
[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0025] Figure 1 A schematic diagram of the system architecture on which this application is based;
[0026] Figure 2 It is a flowchart of a search processing method provided by the present application;
[0027] Figure 3 This is a schematic diagram of a first interface of a search processing method provided by the present application;
[0028] Figure 4 It is a schematic diagram of a second interface of a search processing method provided by the present application;
[0029] Figure 5 A schematic diagram of the structure of a search processing device provided by the present application;
[0030] Figure 6 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0032] In response to the above-mentioned problem that the existing search processing process cannot accurately search for keywords with multiple meanings, resulting in a cumbersome search process and low search accuracy, the present application discloses a search processing method, device, electronic device, storage medium and program product, which relate to intelligent search in data processing.
[0033] In the prior art, the search process generally first obtains the keyword to be searched entered by the user through the client, and then the client carries the keyword in the search request and sends it to the search server. The search server will use the search engine to search for the keyword and return the search results to the client. At this time, the search results will be displayed on the client for the user to view.
[0034] However, for some keywords with multiple semantics, the search results that can be returned to users by existing search processing are often not what the users want.
[0035] For example:
[0036] For the keyword "cloud" to be searched, when the user enters "cloud" as a keyword into the client for search, the results presented by the client are generally "cloud, a natural phenomenon..." and web page information and picture information related to "cloud (natural phenomenon)".
[0037] It is known that in the computer field, "cloud" is also called cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or local area network to achieve data calculation, storage, processing, and sharing. In other words, when users want to search for information related to "cloud (cloud technology)", their search results often reflect information related to "cloud (natural phenomenon)".
[0038] When faced with this situation, the user generally chooses to re-enter the search term, such as re-entering "cloud, computer technology" or "cloud technology, computer", etc., to re-search until the desired search results are obtained;
[0039] In some other existing technologies, if the client finds that the user has continuously entered similar keywords, the client will prompt the user to confirm the search request, such as "Are you searching for cloud technology in the computer field?" If the user selects "yes", the client will resend the search request to the search server to obtain the search results required by the user.
[0040] Regardless of which of the above search processing methods is used, there are problems such as poor search accuracy and cumbersome search process:
[0041] For users, they cannot obtain the information they need through a single search operation;
[0042] As for the search server, it needs to perform multiple search processes for the same user's search request, and the effective utilization rate of search resources is not high.
[0043] In the face of the technical problems existing in the above-mentioned prior art, the inventor of the present application discovered through research that before using the client to search for specific keywords, users often browse or search for certain information. By analyzing these user behaviors, the user's search intention during this search can be predicted to a certain extent. The search results obtained from the search based on this prediction are search results that meet the user's search intention. In other words, the present application searches for search keywords based on the user behavior information generated by the user on the client, thereby avoiding the situation where the search server searches based on keyword ambiguity when searching for the search keywords, and also solves the problem of users performing multiple search confirmations when searching for search keywords, thereby improving search accuracy and optimizing the search process.
[0044] Figure 1 This is a schematic diagram of the system architecture based on which this application is based, such as Figure 1 As shown, the system architecture based on which this application is based includes at least: a terminal device 1, a search server 2;
[0045] The terminal device 1 may be a hardware device with user interaction function and network communication function, including but not limited to smart phones, tablet computers, desktop computers, etc. Among them, a client may be installed on the terminal device 1, and the client may be a client of different types, such as a web browser, an application APP, etc. In the client of the terminal device 1, the search processing device described in the present application will be carried, and the search processing device may be written in languages such as C / C++, Java, Shell or Python.
[0046] The search server 2 may be a hardware server or a hardware carrier that carries a cloud server. Of course, due to the different product forms of the search processing device on the terminal device 1, the search server 2 may be a hardware server integrated in other functional servers or a hardware carrier that carries a cloud server, or may be an independent hardware server or a hardware carrier that carries a cloud server.
[0047] Through the network link, the terminal device 1 can establish a communication link with the search server 2 and send the search request triggered by the user to the search server 2. The search server 2 will call the search engine or search processing logic carried therein to process the search request. After obtaining the search results, the search server 2 returns the search results to the terminal device 1 through the network link for the user to view.
[0048] It should be noted that the search processing method, device, electronic device, storage medium and program product provided by this application can be used in various search scenarios:
[0049] The present application can be applied to web search scenarios of mobile phones or computers, wherein the client in the processing method of the present application can be a web browser of a terminal device, and the search processing device provided by the present application can be integrated in the web browser, and the keywords entered by the user in the search box of the web browser can be searched and processed based on the search processing method provided by the present application.
[0050] The present application can also be applied to an application APP with a search function, wherein the client in the processing method of the present application can be an application APP installed on a terminal device, and the search processing device provided by the present application can be integrated in the application APP:
[0051] In the scenario based on application APP, the application APP can be a search service APP with the search function as the main function of the application APP; it can also be other service APP with the search function as the secondary function of the application APP.
[0052] When the application APP is a search service APP, the search processing device provided by the present application will execute the search processing method of the present application when the search service APP is started and begins to provide search services to users.
[0053] When the application APP is other service APP, it can be specifically an online shopping platform APP, a video playback APP, a novel reading APP, etc. The search processing device provided by this application will start and start to provide search services to users when other service APPs call their search functions. When the search processing method of this application is executed, for example, when a user searches for a product on an online shopping platform APP, the search processing device will provide search processing services to the user based on the search processing method provided by this application.
[0054] In order to facilitate the explanation of the solution, this application will take the client as a search service APP as an example for explanation. For other scenarios, the processing methods are similar and the implementation methods of this application will not be repeated.
[0055] The embodiments of the present application will be described in detail below with reference to the accompanying drawings:
[0056] Embodiment 1
[0057] Figure 2 It is a flowchart of a search processing method provided by this application, such as Figure 2 As shown, the search processing method provided in this embodiment includes the following steps:
[0058] Step 201: After the client is started, respond to the current search operation triggered by the user on the client, where the search operation is used to search for a search keyword.
[0059] The execution subject of the embodiment of the present application is a search processing device, which will be carried in the aforementioned terminal device.
[0060] First, the user can trigger the application identifier of the search service APP on the terminal device to start the client of the search service APP. When the client is started, the client will provide the user with a search interface of the search service application for the user to operate and use.
[0061] Then, the user can trigger a search operation for the search keyword on the search interface of the client, and the search processing device will monitor the search operation triggered by the user on the client and execute subsequent processes.
[0062] The search operation in this embodiment may be composed of a plurality of operations. Figure 3 is a schematic diagram of the first interface of a search processing method provided by the present application, such as Figure 3 As shown, a search box 301 is provided on the main interface 300 of the application, so that the user can trigger the search box 301 to edit the search keyword. At this time, the user can enter the search keyword in the search key box 301, and after completing the input, trigger the execution operation of the search 302. So far, through the triggering of the search box 301, the editing of the search keyword and the triggering of the search 302, a search operation for the search keyword is constituted.
[0063] Of course, in other implementations, the search operation may also adopt other operation combinations, and the present application does not impose any restrictions on the specific operation form and operation composition of the search operation.
[0064] Step 202: Obtain user behavior information generated by the user searching and / or browsing on the client within a preset time period; wherein the preset time period refers to the time period from the start of the client to the triggering of the current search operation.
[0065] After the search processing device detects that the user has triggered the search operation on the client, it will read the relevant records of the client to obtain user behavior information. In the implementation mode of the present application, the user behavior information specifically refers to the information generated when the user performs user behavior by using the client, wherein the user behavior can specifically be browsing and / or searching, etc.
[0066] In the present application, considering that search is a behavior with strong timeliness, users generally browse information or search for other information before triggering a search operation. Therefore, in this embodiment, in order to improve search accuracy and ensure search timeliness, the user behavior information in this embodiment specifically refers to the information generated by the user within a preset time period, that is, the specific time period from the start of the client to the triggering of the current search operation.
[0067] By limiting the time when the user behavior occurs, in subsequent search processing, the search results obtained are related to the user behavior information generated by the user within a preset time period, and the results are more consistent with the user's current search intent.
[0068] Step 203: Generate a search request according to the user behavior information and the search keyword; wherein the search request is used to search the search keyword based on the user behavior information.
[0069] After obtaining the aforementioned user behavior information, in order to implement the search, a search request corresponding to the current search operation will be generated based on the user behavior information and the search keywords in the current search operation. The search request will be sent to the search server through the communication link between the client and the search server, so that the search server can call the search engine or search processing logic to process the search request.
[0070] It is known that the request structure of the search request is pre-negotiated between the search server and the client, that is, the request structure of the search request can be accurately read and processed by the search server. The negotiation process can adopt the existing technology, and this application will not be repeated.
[0071] Step 204: Receive and display on the client the search results returned by the search server.
[0072] Finally, when the search server processes the search request and returns the processed search results to the client, the client will display the corresponding search results. The search results at this time are the results obtained by searching the search keywords based on the user behavior information, which are consistent with the search intention of the user when triggering this search operation, that is, the search results of the disambiguation search for the search keywords.
[0073] The search results displayed on the client are the results obtained by searching the search keyword within the search range after the search server determines the search range according to the user behavior information.
[0074] Specifically, after receiving a search request, the search server may first determine the search scope based on the user behavior information in the search request. For example, if the user behavior information indicates that the user has browsed a lot of computer field knowledge before this search, then the search server may determine that the search scope of this search is "computer field". At this time, the search server searches for the search keyword based on the search scope of "computer field". In other words, the search results will display relevant information about the search keyword in the field of "computer field".
[0075] This approach can ensure that the search results displayed by the client are generated by the search server after using user behavior information to disambiguate the search keywords. It also effectively avoids the waste of search resources caused by the search server performing invalid searches based on the ambiguity of search keywords, thereby improving the accuracy of search results and improving user search experience.
[0076] To further illustrate, Figure 4 is a schematic diagram of a second interface of a search processing method provided by the present application, such as Figure 4As shown, a search box 401 , a search trigger 402 and a corresponding search result display area 403 are provided on the application main interface 400 .
[0077] The search result display area 403 displays the search results obtained by the search server based on the search request composed of the search keywords in the search box 401 and the user behavior information, and the search results include but are not limited to web page information, picture information, etc. Different from the prior art, the search results are not only highly correlated with the search keywords, but also have a certain correlation with the user behavior information.
[0078] Combination Figure 4 As shown on the left, when the user enters "cloud" in the search box 401 on the application main interface 400 and clicks the search trigger 402 of "start search", since the user browses a large number of web pages about computer technology before triggering the search, at this time, the search processing device will generate a corresponding search request and send it to the search server.
[0079] Then, the search processing device will receive the search results, such as Figure 4 As shown on the right side, in addition to the search box 401 and the search trigger 402 displayed on the application main interface 400, search results 403 will also be displayed. Figure 4 In the search result 403, search results 403 include "cloud technology - encyclopedia", "cloud technology - pictures", "cloud technology - technical cases" and "related searches: such as cloud computing, cloud security, the meaning of cloud technology, etc." It can be seen that due to the use of the search processing method provided by the present application, the search results are search results related to "cloud" in computer technology, rather than search results related to "cloud" in natural phenomena.
[0080] Obviously, the search results provided to users by the search processing method provided in the present application are more in line with the user's search intentions, and also avoid the problem of users entering keywords for searching multiple times due to not getting search results that meet their intentions, thereby improving the search resource utilization and search accuracy and simplifying the search process.
[0081] The search processing method provided in the implementation mode of the present application utilizes the characteristic of obtaining user behavior information that users often browse or search for certain information before searching for specific keywords on the client, so as to generate corresponding search requests based on the user behavior information and the search keywords, and then obtain search results that meet the user's search intention during this search. Compared with the processing flow in the prior art that users need to perform search confirmation multiple times when searching for search keywords, the search processing method provided in the implementation mode of the present application has higher search accuracy and simpler search process. The search server can perform disambiguation search for the search keywords during the search, and the search resource utilization rate of the server is improved.
[0082] On the basis of the above embodiment 1, in order to further improve the accuracy of search results, the user behavior information includes at least one behavior content and a corresponding behavior time. Accordingly, the above step 203 specifically includes:
[0083] Step 2031: Arrange the at least one behavior content based on the behavior time to obtain a behavior content sequence and a corresponding behavior time sequence;
[0084] Step 2032: obtaining the request header data of the search request according to the behavior content sequence and the corresponding behavior time sequence, and the search keyword;
[0085] Step 2033: Generate a search request according to the request header data.
[0086] In this embodiment, the user behavior information includes at least one behavior content and a corresponding behavior time. Specifically, within a preset time period, at different behavior times, the user triggers different behaviors on the client, and each behavior will generate a behavior content. That is, when the processing device obtains the user behavior information, the user behavior information is composed of at least one behavior content and a corresponding behavior time.
[0087] For example, if a user browses page A at time A, the user behavior information will include the behavior content of page A and time A. For another example, if a user searches for keyword B at time B, the user behavior information will include the search keyword B and time B.
[0088] In particular, after obtaining at least one action content and the corresponding action time, it is necessary to sort the action content based on the action, and the sorting method can be based on the action time in reverse order to obtain the action content sequence and the action time sequence. Taking the previous example, if time B is earlier than time A, then the action content sequence is [page A; search keyword B], and the action time sequence is [time A; time B].
[0089] In addition, the two sequences will be placed in the request header data of the search request, that is, the header, so that the search server needs to perform a corresponding search based on the two sequences in the header while searching for the search keyword.
[0090] Furthermore, this embodiment particularly considers that when a user triggers a search operation for a certain search keyword, the user behavior that is close to the triggering moment of the current search operation will better reflect the user's search intention. That is to say, before triggering this search operation, the user first searches for keyword B, then browses page A, and then triggers this search operation for keyword C. At this point, it can be known that the user's search intention for keyword C may be related to both page A and keyword B, and the degree of relevance to page A is much higher than the degree of relevance to keyword B.
[0091] It is based on this consideration that the present embodiment adopts a time-based reverse sorting method, and the user behavior information is carried in a serial manner to the request header of the search request, so as to generate a corresponding search request based on such a request header. When the search server performs the search process, the search results are correspondingly related to both page A and keyword B, and the correlation degree of the search results to page A is much higher than the correlation degree to keyword B, thereby further improving the accuracy of the search results and being more consistent with the user's actual search intention.
[0092] Based on the above implementation, the user behavior information can be captured from a variety of records or information generated by the client. In an optional implementation, the user behavior information can be obtained through the search records of the client.
[0093] Specifically, when acquiring user behavior, the processing device may first acquire the search records generated when the user searches on the client within a preset time period, and then obtain the user behavior information based on the search records.
[0094] Among them, the search record refers to the record of the search keyword entered by the user in the search box, and the search record should include the search time and the corresponding search keyword. For example, "20210203-153005-Keyword D", that is, the user entered keyword D at 15:30:05 on February 3, 2021. By extracting the corresponding information in the search record, the search device can obtain the user behavior information of the preset time period, forming a behavior content sequence and a behavior time sequence.
[0095] In another optional embodiment, user behavior information can also be obtained based on the browsing page generated by the client, that is, when the processing device obtains the user behavior information generated by the user on the client within a preset time period, first, obtains the browsing page generated by the user browsing the page on the client within the preset time period; then, performs semantic extraction on the page content on the browsing page to obtain the user behavior information.
[0096] For example, a user browsed a page about "Cloud Storage Encyclopedia" within a preset time period. By performing semantic extraction on the browsed page, we can obtain several semantic information such as "cloud, server, computer technology, distributed storage", and these semantic information and the browsing time of the browsed page will constitute the user behavior information, which will subsequently constitute the corresponding behavior content sequence and behavior time sequence.
[0097] In this embodiment, the method of obtaining search records and / or browsed pages from the client is adopted to obtain user behavior information. In this way, the basis for prediction can be enriched and the accuracy of predicting user search intentions can be improved.
[0098] On the basis of the above-mentioned implementation modes, as mentioned above, in the implementation mode of the present application, user behavior information refers to the information generated in the time period from the startup of the client to the triggering of this search operation, and it is possible that the user did not generate any user behavior between the startup of the client and the triggering of this search operation, that is, the user directly performed this search operation after the client was started.
[0099] In this case, in order to avoid making incorrect predictions about the user's search intent, in this embodiment, the client receives and displays the general search results returned by the search server on the client; wherein, the general search results are the results obtained by the search server directly searching the search keywords.
[0100] Still taking the aforementioned "cloud" as an example, when the user has not performed any browsing and / or searching behavior after the client is started, the search request will be generated directly based on the search keyword "cloud". At this time, the search server will return search results related to "cloud (natural phenomenon)" for the user to view.
[0101] Through such an implementation method, it is possible to effectively avoid making incorrect predictions about user search intent, and ensure that search results have high accuracy in different situations.
[0102] Based on the above embodiments, considering that the basic information of different clients is associated with the user's search intention to a certain extent, in this embodiment, after the client is started, the processing device can also obtain the basic information of the client startup. Then, when generating a search request, the basic information can be carried in the search request.
[0103] Specifically, the basic information of the client includes at least one of the following information: location parameters, network parameters, device parameters, and client parameters.
[0104] Among them, the location parameter refers to the location-related information of the client based on the terminal device, such as GPS coordinates, longitude and latitude coordinates, and map POI information. When performing a keyword search, when the user enters similar content related to network parameters such as "the entrance location of the cultural center", the search request can also carry the location parameter, such as "a certain street in a certain district of a certain city", to the request field of the search request, so that the search server can perform search processing based on the content of the field, thereby obtaining relevant search results such as "the entrance location of the cultural center near a certain street in a certain district of a certain city".
[0105] Network parameters refer to the type of network signal through which the client connects to the Internet, such as 4G signal, local area network, 5G signal, etc. When performing a keyword search, when the user enters "poor network signal" and other similar content related to network parameters, the search request can also carry the basic information of "5G signal" currently used by the user's client to the request content field of the search request, so that the search server can perform search processing based on the content of this field, thereby obtaining relevant search results such as "how to solve the problem of poor 5G signal" or "operation and maintenance telephone information of 5G signal operators".
[0106] Similarly, device parameters refer to information such as the device type, device brand, and device production time of the terminal device on which the client is based. During actual search, when the user enters "mobile phone repair" or keywords related to the device itself or cost parameters, the processing device carries the relevant parameters of the device to the request content field of the search request, so that the search server can perform search processing based on the content of the field and return relevant search results such as "official repair phone number of a certain brand".
[0107] Client parameters refer to the parameter information of the client itself, such as the client version, client installation time, client type, etc. In actual search, when the user enters keywords related to the client itself, such as "client freeze", the processing device carries the relevant parameters of the device to the request content field of the search request, so that the search server can perform search processing based on the content of the field and return relevant search results such as "client update patch download address".
[0108] In this embodiment, by carrying the basic information started by the client into the search request, the user's search intention can be further effectively predicted, avoiding invalid searches based on ambiguous search keywords, and effectively improving the accuracy of search results.
[0109] Based on the above-mentioned embodiments, in order to avoid the search processing device occupying too many computing resources and storage resources of the terminal device, in the embodiment of the present application, for each acquisition of user behavior information generated by the user on the client within a preset time period, the client only stores it in the cache for use during processing.
[0110] Specifically, after each search request corresponding to the current search request is generated, the user behavior information corresponding to the current search operation will no longer be valid, that is, it loses its timeliness. Therefore, after the processing device determines that the search request corresponding to the current search operation has obtained the corresponding search result, it will release the user behavior information cached in the cache area to release the computing and storage resources of the terminal device for subsequent use.
[0111] The search processing method provided in the implementation mode of the present application utilizes the characteristic of obtaining user behavior information that the user often browses or searches for certain information before searching for specific keywords on the client, so as to generate a corresponding search request based on the user behavior information and the search keywords, and then obtain search results that meet the user's search intention in this search. Compared with the processing flow in the prior art that the user needs to perform search confirmation multiple times when searching for the search keywords, the search processing method provided in the implementation mode of the present application has higher search accuracy, simpler search process, and improved search resource utilization of the search server.
[0112] Embodiment 2
[0113] Figure 5 This is a schematic diagram of the structure of a search processing device provided by this application. Figure 5 As shown, the search processing device 500 includes: an interactive display unit 510, a user behavior information acquisition unit 520, and a request generation unit 530;
[0114] The interactive display unit 510 is used to respond to the current search operation triggered by the user on the client after the client is started, wherein the search operation is used to search for the search keyword;
[0115] The user behavior information acquisition unit 520 is used to acquire user behavior information generated by the user searching and / or browsing on the client within a preset time period; wherein the preset time period refers to the time period from the start of the client to the triggering of the current search operation;
[0116] The request generating unit 530 is used to generate a search request according to the user behavior information and the search keyword; wherein the search request is used to search the search keyword based on the user behavior information;
[0117] The interactive display unit 510 is further configured to receive and display on the client the search results returned by the search server.
[0118] In an optional embodiment, the user behavior information includes at least one behavior content and a corresponding behavior time;
[0119] The request generating unit 530 includes:
[0120] A sorting module, used for arranging the at least one behavior content based on the behavior time to obtain a behavior content sequence and a corresponding behavior time sequence;
[0121] A first generating module, configured to obtain request header data of the search request according to the behavior content sequence and the corresponding behavior time sequence, and the search keyword;
[0122] The second generating module is used to generate a search request according to the request header data.
[0123] In an optional embodiment, the user behavior information acquisition unit 520 includes:
[0124] A search record acquisition module, used to acquire search records generated by users performing search operations on the client within a preset time period;
[0125] The third generating module is used to obtain user behavior information according to the search record.
[0126] In an optional embodiment, the user behavior information acquisition unit 520 further includes:
[0127] A browsing page acquisition module, used to acquire browsing pages generated by users browsing pages on the client within a preset time period;
[0128] The fourth generation module is used to perform semantic extraction on the page content on the browsing page to obtain user behavior information.
[0129] In an optional embodiment, if the user does not generate user behavior information on the client within a preset time period, the interactive display unit 510 is also used to: receive and display the general search results returned by the search server on the client; wherein the general search results are the results obtained by the search server directly searching the search keywords.
[0130] In an optional embodiment, the device further includes: a basic information acquisition unit;
[0131] The basic information acquisition unit is used to acquire basic information of client startup after the client is started;
[0132] Generating a search request further includes:
[0133] The fifth generating module is used to carry the basic information in the search request.
[0134] In an optional embodiment, the basic information includes at least one of the following information: location parameters, network parameters, device parameters, and client parameters.
[0135] In an optional embodiment, the user behavior information acquisition unit 520 is further configured to clear the user behavior information within the preset time period after the interactive display unit 510 displays the search results returned by the search server.
[0136] In an optional embodiment, the search results displayed on the client are the results obtained by searching the search keyword within the search scope after the search server determines the search scope according to the user behavior information.
[0137] The search processing device provided in the embodiment of the present application utilizes the characteristic of obtaining user behavior information that the user often browses or searches for certain information before searching for specific keywords on the client, so as to generate a corresponding search request based on the user behavior information and the search keywords, and then obtain search results that meet the user's search intention in this search. Compared with the processing flow in the prior art that the user needs to perform search confirmation multiple times when searching for the search keywords, the search processing method provided in the embodiment of the present application has higher search accuracy, simpler search process, and improved search resource utilization of the search server.
[0138] Embodiment 3
[0139] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0140] According to an embodiment of the present application, the present application also provides a computer program product, the program product includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0141] Figure 6The structural diagram of the electronic device provided for the present application is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can 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 merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0142] like Figure 6 As shown, 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 RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0143] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0144] The computing unit 601 may be a variety of general and / or special processing components with 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, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as search processing methods. For example, in some embodiments, the search processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the search processing method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the search processing method in any other appropriate manner (e.g., by means of firmware).
[0145] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0146] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0147] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0148] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 can be received in any form (including acoustic input, voice input, or tactile input).
[0149] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0150] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0151] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0152] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A search processing method, the method being applied to other service apps whose search function is a secondary function of the application app, comprising: After the client is started, respond to the current search operation triggered by the user on the client, the search operation is used to search for search keywords, and the other service APP is an online shopping platform APP, a video playback APP or a novel reading APP; Obtaining user behavior information generated by the user searching and browsing on the client within a preset time period; wherein the preset time period refers to the time period from the start of the client to the triggering of the current search operation, the user behavior information is stored in a cache, and after determining that the search request corresponding to the current search operation has obtained the corresponding search result, the user behavior information cached in the cache area is released; Generate a search request according to the user behavior information and the search keyword; wherein the search request is used to search the search keyword based on the user behavior information; Receiving and displaying the search results returned by the search server on the client; The user behavior information includes at least one behavior content and corresponding behavior time; Generating a search request according to the user behavior information and the search keyword includes: Arranging the at least one behavior content based on the reverse order of the behavior time to obtain a behavior content sequence and a corresponding behavior time sequence, wherein the behavior content includes pages browsed by the user and keywords searched; Obtaining request header data of the search request according to the behavior content sequence and the corresponding behavior time sequence, and the search keyword; Generate a search request according to the request header data; If the user does not generate user behavior information on the client within the preset time period, the method further includes: Receive and display on the client the general knowledge search results returned by the search server; The general search results are the results obtained by the search server directly searching the search keywords; Wherein, after the client is started, the method further includes: Obtain basic information for client startup, including location parameters, network parameters, device parameters, and client parameters; Correspondingly, the generating of the search request further includes: The basic information is carried in the search request.
2. The method according to claim 1, wherein: The obtaining of user behavior information generated by the user on the client within a preset time period includes: Obtain search records generated by users when searching on the client within a preset time period; User behavior information is obtained based on the search record.
3. The method according to claim 1, wherein: The obtaining of user behavior information generated by the user on the client within a preset time period also includes: Obtain browsing pages generated by users browsing pages on the client within a preset time period; Semantic extraction is performed on the page content on the browsing page to obtain user behavior information.
4. The method according to any one of claims 1 to 3, wherein: The search results displayed on the client are the results obtained by searching the search keyword within the search range after the search server determines the search range according to the user behavior information.
5. A search processing device, applied to other service apps whose search function is a secondary function of the application app, comprising: An interactive display unit, which is used to respond to the current search operation triggered by the user on the client after the client is started, wherein the search operation is used to search for search keywords, and the other service APP is an online shopping platform APP, a video playback APP or a novel reading APP; A user behavior information acquisition unit is used to acquire user behavior information generated by the user searching and browsing on the client within a preset time period; wherein the preset time period refers to the time period from the start of the client to the triggering of the current search operation, the user behavior information is stored in a cache, and after determining that the search request corresponding to the current search operation has obtained the corresponding search result, the user behavior information cached in the cache area is released; A request generating unit, configured to generate a search request according to the user behavior information and the search keyword; wherein the search request is used to search the search keyword based on the user behavior information; The interactive display unit is further used to receive and display the search results returned by the search server on the client; Wherein, the user behavior information includes at least one behavior content and corresponding behavior time; The request generating unit comprises: A sorting module, configured to arrange the at least one behavior content based on the reverse order of the behavior time to obtain a behavior content sequence and a corresponding behavior time sequence, wherein the behavior content includes pages browsed by the user and keywords searched; A first generating module, configured to obtain request header data of the search request according to the behavior content sequence and the corresponding behavior time sequence, and the search keyword; A second generating module, used to generate a search request according to the request header data; If the user does not generate user behavior information on the client within a preset time period, the interactive display unit is further used to: receive and display the general search results returned by the search server on the client; wherein the general search results are the results obtained by the search server directly searching the search keywords; Among them, it also includes: a basic information acquisition unit; The basic information acquisition unit is used to acquire basic information of the client startup after the client is started, and the basic information includes: location parameters, network parameters, device parameters, and client parameters; Generating a search request further includes: The fifth generating module is used to carry the basic information in the search request.
6. The device according to claim 5, wherein: The user behavior information acquisition unit includes: A search record acquisition module, used to acquire search records generated by users when searching on the client within a preset time period; The third generating module is used to obtain user behavior information according to the search record.
7. The device according to claim 5, wherein: The user behavior information acquisition unit further includes: A browsing page acquisition module, used to acquire browsing pages generated by users browsing pages on the client within a preset time period; The fourth generation module is used to perform semantic extraction on the page content on the browsing page to obtain user behavior information.
8. The device according to any one of claims 5 to 7, wherein: The search results displayed on the client are the results obtained by searching the search keyword within the search range after the search server determines the search range according to the user behavior information.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 4.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Learning and using contextual content retrieval rules for query disambiguation
CN106663104A
Generating context information for search session
CN107622097A