Search result display method and device, storage medium and electronic equipment
By displaying target search terms composed of two search terms of the same vocabulary type, and in response to user's search request, displaying search tags and search results matching each search term, the problem of low efficiency in the prior art is solved, and the effect of improving the efficiency of search results is achieved.
Patent Information
- Application Number
- CN202311073276.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-23
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, users need to perform multi-keyword search through frequent copy and paste operations, resulting in low display efficiency of search results.
It provides a method for displaying search results. By displaying target search terms composed of two search terms of the same vocabulary type, in response to user's search request, displaying search tags and search results display windows matching the search terms, and displaying the search results corresponding to the current search terms when the current search tag is selected.
Users can obtain multiple search results corresponding to multiple search terms through only one-time search requests, reducing the operational complexity and labor costs of users during the search process, and improving the efficiency of displaying search results.
Smart Images

Figure CN119513381A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method, device, storage medium and electronic device for displaying search results. Background Art
[0002] In the prior art, when a user needs to search for multiple keywords to obtain search results for each keyword, he needs to manually copy and paste the results repeatedly in the search engine. The search cost of each click / input by the user is high, which leads to the problem of low display efficiency of the search results.
[0003] Therefore, there is a technical problem in the related art that the display efficiency of search results is low. Summary of the invention
[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for displaying search results, so as to at least solve the technical problem of low display efficiency of search results in the related art.
[0005] According to one aspect of an embodiment of the present application, a method for displaying search results is provided, including: displaying a target search term consisting of a first search term and a second search term, wherein the first search term and the second search term belong to the same vocabulary type; in response to a search request triggered by the target search term, displaying a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window; wherein the search result display window is used to display search results corresponding to a single search tag, and when a first display request triggered by the first search tag is obtained, a first search result corresponding to the first search term is displayed on the search result display window, and when a second display request triggered by the second search tag is obtained, a second search result corresponding to the second search term is displayed on the search result display window.
[0006] According to another aspect of an embodiment of the present application, a search result display device is also provided, including: a first display unit, used to display a target search word composed of a first search word and a second search word, wherein the first search word and the second search word belong to the same vocabulary type; a second display unit, used to display a first search tag matching the first search word, a second search tag matching the second search word, and a search result display window in response to a search request triggered by the target search word; wherein the search result display window is used to display search results corresponding to a single search tag, and when a first display request triggered by the first search tag is obtained, a first search result corresponding to the first search word is displayed on the search result display window, and when a second display request triggered by the second search tag is obtained, a second search result corresponding to the second search word is displayed on the search result display window.
[0007] As an optional solution, the above-mentioned device also includes: a first display module, which is used to display the first search tag matching the above-mentioned first search word, the second search tag matching the above-mentioned second search word, and the search result display window in response to the search request triggered by the above-mentioned target search word, and display the full search tags that match the above-mentioned first search word and the above-mentioned second search word; wherein, when the above-mentioned search request or the full display request triggered by the above-mentioned full search tags is obtained, the above-mentioned first search result and the above-mentioned second search result are displayed on the above-mentioned search result display window.
[0008] As an optional scheme, the above-mentioned device also includes: a first determination module, which is used to determine the first target sub-result and the second target sub-result to be compared from the at least one first search sub-result and the at least one second search sub-result before displaying the above-mentioned first search result and the above-mentioned second search result on the above-mentioned search result display window, when the above-mentioned first search result contains at least one first search sub-result and the above-mentioned second search result contains at least one second search sub-result, wherein the above-mentioned at least one first search sub-result includes the above-mentioned first target sub-result, and the above-mentioned at least one second search sub-result includes the above-mentioned second target sub-result; the above-mentioned first display module includes: a display sub-module, which is used to synchronously display the above-mentioned first target sub-result and the above-mentioned second target sub-result on the above-mentioned search result display window.
[0009] As an optional scheme, the above-mentioned first display unit includes: a second display module, used to display target text information selected from the target document, wherein the above-mentioned target document includes multiple text information, the above-mentioned multiple text information includes first text information and second text information, and the above-mentioned target text information is composed of the above-mentioned first text information and the above-mentioned second text information; the above-mentioned second display unit includes: a third display module, used to respond to a search request triggered on the above-mentioned target text information on the above-mentioned target document, jump from the above-mentioned target document to a search interface, and display the above-mentioned first search tag, the above-mentioned second search tag, and the above-mentioned search result display window on the above-mentioned search interface.
[0010] As an optional solution, the above-mentioned third display module includes: an installation sub-module, which is used to install the above-mentioned search engine into the client where the above-mentioned target document is located when the search engine corresponding to the above-mentioned search interface is not installed on the client where the above-mentioned target document is located; and a calling sub-module, which is used to call the above-mentioned search engine and jump from the above-mentioned target document to the above-mentioned search interface when the above-mentioned search engine is already installed on the client where the above-mentioned target document is located.
[0011] As an optional solution, the above-mentioned device also includes: a word segmentation module, which is used to perform word segmentation processing on the above-mentioned first text information before displaying the above-mentioned first search tag, the above-mentioned second search tag, and the above-mentioned search result display window on the above-mentioned search interface to obtain main text information and sub-text information; a second determination module, which is used to use the above-mentioned main text information as the above-mentioned first search tag, and perform information association on the above-mentioned sub-text information to obtain an extended search tag before displaying the above-mentioned first search tag, the above-mentioned second search tag, and the above-mentioned search result display window on the above-mentioned search interface; the above-mentioned device also includes: an acquisition module, which is used to acquire search results matching the above-mentioned first search tag and search results matching the above-mentioned extended search tag from a search database before displaying the first search result corresponding to the above-mentioned first search word on the above-mentioned search result display window, wherein the above-mentioned first search result includes the above-mentioned search result matching the above-mentioned first search tag and the above-mentioned search result matching the said extended search tag.
[0012] As an optional scheme, the above-mentioned second display unit includes: a fourth display module, used to display the above-mentioned search result display window, and to display the above-mentioned first search tag and the above-mentioned second search tag in a target direction, wherein the above-mentioned first display request or the above-mentioned second display request is triggered by a sliding operation in the above-mentioned target direction.
[0013] As an optional solution, the above-mentioned device also includes: a fifth display module, used to display a comparison search tag in the process of displaying the first search tag matching the above-mentioned first search term, the second search tag matching the above-mentioned second search term, and the search result display window in response to the search request triggered by the above-mentioned target search term, wherein the above-mentioned comparison search tag is used to indicate the difference between the above-mentioned first search term and the above-mentioned second search term.
[0014] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for displaying search results as described above.
[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for displaying search results through the computer program.
[0016] In an embodiment of the present application, after a user makes a one-time request to search for a target search term composed of multiple search terms, a search tag matching each of the multiple search terms is displayed on the display interface, and a search result display window for displaying search results corresponding to a single search tag is displayed. Then, when the current search tag matching the current search term is selected, the search result corresponding to the current search term is displayed on the search result display window, and the search results of different search terms are flexibly switched on the search result display window by switching the selected current search tag. In this way, the user can obtain multiple search results corresponding to multiple search terms through only a one-time search request, and the multiple search results are displayed independently based on different search tags of different search terms, which not only reduces the operation complexity and labor cost of the user in the search process, but also enables the user to quickly and efficiently compare and view the search results of different search terms on the display window based on different search tags, thereby achieving the technical effect of improving the display efficiency of search results. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a schematic diagram of an application environment of an optional search result display method according to an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a process of an optional method for displaying search results according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of an optional method for displaying search results according to an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0024] Figure 7 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0025] Figure 8 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0026] Fig. 9 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0027] Fig.10 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0028] Fig.11 is a schematic diagram of another optional method for displaying search results according to an embodiment of the present application;
[0029] Fig.12 is a schematic diagram of another optional search result display device according to an embodiment of the present application;
[0030] Fig.13 A schematic structural diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] According to one aspect of an embodiment of the present application, a method for displaying search results is provided. Optionally, as an optional implementation, the method for displaying search results may be applied to, but is not limited to, Figure 1 In the environment shown, the environment may include, but is not limited to, a client 102 and a server 112 . The client 102 may include, but is not limited to, a display 104 , a processor 106 , and a memory 108 . The server 112 includes a database 114 and a processing engine 116 .
[0034] The specific process can be as follows:
[0035] Step S102, the client 102 obtains and displays a target search term composed of at least two search terms, wherein the at least two search terms include a first search term and a second search term belonging to the same vocabulary type;
[0036] Steps S104-S106, the client 102 initiates a search request to the server 112, wherein the search request is used to request to obtain search results matching the target search term, including a first search result matching the first search term and a second search result matching the second search term;
[0037] Step S108, in response to the search request, the server 112 obtains the first search tag and the first search result that match the first search term from the database 114 through the processing engine 116, and obtains the second search tag and the second search result that match the second search term;
[0038] Steps S110-S112, sending the first search tag and the first search result matching the first search term and the second search tag and the second search result matching the second search term to the client 102 via the network 110;
[0039] In step S114, the client 102 processes the first search tag and the first search result that match the first search term and the second search tag and the second search result that match the second search term through the processor 106, and displays the first search tag that matches the first search term, the second search tag that matches the second search term and the search result display window after data processing through the display 104, and stores the relevant processing data generated before and after the display process in the memory 108, wherein the search result display window is used to display the search results corresponding to a single search tag, and when a first display request triggered by the first search tag is obtained, the first search result corresponding to the first search term is displayed on the search result display window, and when a second display request triggered by the second search tag is obtained, the second search result corresponding to the second search term is displayed on the search result display window.
[0040] remove Figure 1 In addition to the examples shown, the above steps can be completed independently by the client or the server, or by the client and the server working together, such as the client 102 executing the above steps S108, thereby reducing the processing pressure of the server 112. The client 102 includes but is not limited to a laptop, a tablet computer, a desktop computer, a smart TV, etc., and the present application does not limit the specific implementation of the client 102. The server 112 can be a single server or a server cluster consisting of multiple servers, or a cloud server.
[0041] Optionally, as an optional implementation, as Figure 2 As shown, the method for displaying search results can be executed by the client, such as Figure 1 The client or server shown in the figure includes:
[0042] S202, displaying a target search word composed of a first search word and a second search word, wherein the first search word and the second search word belong to the same vocabulary type;
[0043] S204, in response to a search request triggered by a target search term, displays a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window; wherein the search result display window is used to display search results corresponding to a single search tag, and when a first display request triggered by the first search tag is obtained, a first search result corresponding to the first search term is displayed on the search result display window, and when a second display request triggered by the second search tag is obtained, a second search result corresponding to the second search term is displayed on the search result display window.
[0044] Optionally, in this embodiment, the above-mentioned search result display method can be applied to, but not limited to, the scenario of information search of online documents. In this scenario, the user can select a target area of a structured online document, click search, and then convert the text information contained in the target area into a target search term composed of multiple search terms, and directly open it in the corresponding search engine, displaying the search tags and search result display window that match each search term in the multiple search terms, wherein the search result display is used to display the search results corresponding to a single search tag, and the search tag can be, but not limited to, fixed as a top bar tab.
[0045] It should be noted that tab refers to the label page in the page, which can also be called a tab. Users can quickly reach the target content by clicking on this tab. According to the position of the tab in the interface, the tab can be divided into top bar tab (located at the top of the interface), bottom bar tab (located at the bottom of the interface), and sidebar tab (located on the side of the interface). It can be used for classification but is not limited to it.
[0046] It should be noted that online documents refer to documents in the cloud, which usually have the characteristics of "online", "multi-person collaboration", "document editing", etc. Based on the type of document, it can be divided into documents, tables, slides, collection tables and flowcharts.
[0047] In this information search scenario, using the above search result display method, after the user requests to search for a target search term composed of multiple search terms at one time, the search tags matching each of the multiple search terms are displayed on the display interface, and the search result display window for displaying the search results corresponding to a single search tag is displayed, and then when the current search tag matching the current search term is selected, the search results corresponding to the current search term are displayed on the search result display window, and the search results of different search terms can be flexibly switched on the search result display window by switching the selected current search tag. In this way, the user can obtain multiple search results corresponding to multiple search terms through only a one-time search request, and the multiple search results are displayed independently based on different search tags of different search terms, which not only reduces the operation complexity and labor cost of the user in the search process, but also enables the user to realize the fast and efficient comparison and viewing of the search results of different search terms on the display window based on different search tags, solving the defect that the user needs to manually copy and paste to search again and again in the prior art, and the information results obtained by the search cannot be directly compared and viewed.
[0048] For example, Figure 3 As shown, the common document list 302 in the prior art itself is not clickable, and therefore, when a user needs to obtain city information of each city in the document list 302, it is necessary to manually copy and paste the cities in the document list 302 into the browser one by one for search and viewing, and the information results obtained by the search cannot be directly compared and viewed. For example, when a user copies and pastes the city "Beijing" in the document list 302 into the browser for search, multiple search results corresponding to the city "Beijing" are displayed on the browser display page 304.
[0049] Further examples are given for the online document search query process based on the above search result display method. Figure 4As shown, the document list 402 in this embodiment can select a target area (corresponding to a column of cities shown in the figure) and trigger a search request 404 (such as right-clicking the mouse after selecting the target area and selecting "search" or other triggering methods), and then jump to the browser associated with the current document list 402 and display the search results on the browser display page 406, wherein the search box on the browser display page 406 automatically fills in the type information of the selected target area (i.e., the city), and the top bar area of the browser display page 406 displays the search tags corresponding to each search term in the above-mentioned current area, and the current default display search results are multiple search results corresponding to the default first label "Beijing", and the multiple search results are displayed in the form of information cards. Further, when the user switches the current display label from "Beijing" to "Wuhan" through a sliding operation, as shown in the browser display page 408, the display search results are switched to multiple search results corresponding to the label "Wuhan", and the display method of the multiple search results is also in the form of the above-mentioned information cards.
[0050] Optionally, in this embodiment, the target search term may be but is not limited to being composed of at least two search terms, wherein the at least two search terms may be but are not limited to including a first search term and a second search term belonging to the same vocabulary type, and the same vocabulary type may be but is not limited to being a subject term used to indicate that the first search term and the second search term belong to the same type, such as two city names, two road names, etc.
[0051] It should be noted that the above target search term may also include, but is not limited to, multiple search terms of different vocabulary types, and this embodiment does not impose additional restrictions on this.
[0052] Optionally, in this embodiment, the above-mentioned display of the target search term composed of the first search term and the second search term may include but is not limited to displaying target text information selected from the target document, wherein the target text information may include but is not limited to including N pieces of text information, each piece of text information corresponding to each search term included in the target search term.
[0053] Optionally, in this embodiment, the target document may be, but is not limited to, a structured online document having features such as "online", "multi-person collaboration", and "document editing", and may be, but is not limited to, a text document, a table, or a flowchart. In this embodiment, the target document may be, but is not limited to, a table-type document.
[0054] Optionally, in this embodiment, after the target search term is displayed, a search request may be triggered for the target search term, but is not limited to, and after the search request is triggered, the display page for displaying search results is automatically jumped to.
[0055] It should be noted that the above-mentioned triggering of the search request may be, but is not limited to, displaying a "search" button after selecting the displayed target search term, and determining that the search request is triggered when it is detected that the "search" button is touched, such as Figure 4 As shown in the search request 404.
[0056] It should be noted that the display page to which the above jump is directed may be, but is not limited to, a display page of a target search engine, wherein the target search engine may be, but is not limited to, a search engine corresponding to the client where the target document is located.
[0057] Optionally, in this embodiment, the display page may include, but is not limited to, a first display area for displaying the vocabulary type of the target search term, a second display area for displaying search tags that match multiple search terms, and a third display area corresponding to the search result display window, wherein the search result display window is used to display search results corresponding to a single search tag, and when a change is detected in the search tag of the currently displayed search results, the corresponding display content is updated / replaced with the search results corresponding to the changed search tag.
[0058] To further illustrate, Figure 5 As shown, the display page 502 includes a first display area 504, a second display area 506, and a third display area 508, wherein the first display area 504 is used to display the vocabulary type ("city") of the search terms included in the target search terms, the second display area 506 is used to display the search tags matched by the search terms included in the target search terms, and the third display area 508 is used to display the search results of the search terms associated with the currently selected search tag.
[0059] It should be noted that, when the target search terms include multiple search terms with different vocabulary types, for example, the vocabulary types of multiple search terms include "Type A" and "Type B", the above-mentioned first display area 504 can, but is not limited to, display the combination content of multiple vocabulary types, such as "Type A, Type B".
[0060] Through the embodiment provided by the present application, after the user makes a one-time request to search for a target search term composed of multiple search terms, the search tags matching each of the multiple search terms are displayed on the display interface, and the search result display window for displaying the search results corresponding to a single search tag is displayed, and then when the current search tag matching the current search term is selected, the search results corresponding to the current search term are displayed on the search result display window, and the search results of different search terms are flexibly switched on the search result display window by switching the selected current search tag. In this way, the user can obtain multiple search results corresponding to multiple search terms through only a one-time search request, and the multiple search results are displayed independently based on different search tags of different search terms, which not only reduces the operation complexity and labor cost of the user in the search process, but also enables the user to quickly and efficiently compare and view the search results of different search terms on the display window based on different search tags, thereby achieving the technical effect of improving the display efficiency of search results.
[0061] As an optional solution, in the process of displaying a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window in response to a search request triggered by a target search term, the method further includes:
[0062] S1, displaying all search tags that match both the first search term and the second search term;
[0063] When a search request is obtained, or a full display request is triggered by a full search tag, the first search result and the second search result are displayed in the search result display window.
[0064] Optionally, in this embodiment, the full search tag may be, but is not limited to, a tag used to indicate all search result contents of all search terms included in the target search term, and may be, but is not limited to, being displayed by default at the front position in the tag arrangement display area (i.e., the second display area mentioned above), and other search term tags may be, but are not limited to, being arranged in order after the full search tag according to the regional information of the search terms in the target document.
[0065] Optionally, in this embodiment, in response to a search request triggered by a target search term, or in response to a full display request to switch from other search tags to a full search tag, the full search tag, the first search tag matching the first search term, the second search tag matching the second search term, and a search results display window are displayed, wherein the search results display window is used to display the search results corresponding to a single search tag, and the search results display window displays the full search results corresponding to the full search tag by default, wherein the full search results include a first search result corresponding to the first search term and a second search result corresponding to the second search term.
[0066] To further illustrate, Figure 6 As shown, the first display area 604 included in the display page 602 is used to display the full search tag ("All") and the search tags ("Beijing", "Wuhan", "Guangzhou", "Qingdao", "Shanghai") that match the search terms included in the target search terms. The second display area 606 included in the display page 602 is used to display the search results corresponding to the currently displayed full search tag "All", including the search results corresponding to each search term. Only partial content is shown in the figure.
[0067] Through the embodiments provided by the present application, a full search tag that matches both the first search term and the second search term is displayed; wherein, when a search request is obtained, or a full display request is triggered for the full search tag, the first search result and the second search result are displayed on the search result display window. By setting a full search tag corresponding to the search content page that displays all search terms, the user can quickly and comprehensively understand the overall overview information of the target search term based on all search results of the full search tag, which not only improves the comprehensiveness and flexibility of the search result display, but also achieves the technical effect of improving the display efficiency of the search results.
[0068] As an optional solution, before displaying the first search result and the second search result in the search result display window, the method further includes:
[0069] S1, when the first search result includes at least one first search sub-result and the second search result includes at least one second search sub-result, determining a first target sub-result and a second target sub-result to be compared from the at least one first search sub-result and the at least one second search sub-result, wherein the at least one first search sub-result includes the first target sub-result and the at least one second search sub-result includes the second target sub-result;
[0070] Displaying the first search result and the second search result in the search result display window includes:
[0071] S2. Synchronously display the first target sub-result and the second target sub-result in the search result display window.
[0072] Optionally, in this embodiment, during the display of search results for the full search tag, search results for multiple search terms are displayed synchronously and compared.
[0073] Specifically, taking multiple search terms including a first search term and a second search term as an example, a first target sub-result to be compared is determined from the first search result of the first search term and a second target sub-result to be compared is determined from the second search result of the second search term, and the first target sub-result and the second target sub-result to be compared are synchronously displayed side by side, wherein the first target sub-result and the second target sub-result to be compared are search contents of the same dimension or a highly similar dimension, such as appearance dimension information or humanistic evaluation information or other information of the first search term and the second search term, respectively.
[0074] It should be noted that, in this embodiment, the search result display window further synchronously displays other target sub-results to be compared of the first search term and the second search term, such as the third target sub-result of the first search term and the fourth target sub-result of the second search term, and so on until there is no search sub-result that satisfies the above comparison conditions for a certain search term...
[0075] To further illustrate, Figure 7 As shown, the display page 702 includes a first display area 704 and a second display area 706, wherein the first display area 704 is used to display the search tags of the full search tags and the search tags of each search word of the target search word, and the second display area 706 is used to display the search results corresponding to the full search tags or the search tags of each search word. In this embodiment, the second display area 706 displays the search results corresponding to the full search tags, including search results of multiple same dimensions of the search tag "Beijing" and the search tag "Wuhan", and is displayed synchronously (in parallel). Specifically, Beijing's basic city information 708 and Wuhan's basic city information 710 are displayed synchronously, Beijing's food information 712 and Wuhan's food information 714 are displayed synchronously, and Beijing's humanistic information 716 and Wuhan's humanistic information 718 are displayed synchronously...
[0076] It should be noted that, when the target search terms include more than two search terms, the number of search sub-results that can be displayed in each row of the above-mentioned second display area 706 can be pre-set but is not limited to it, and the first group of multiple Kobe search sub-results of each search term are synchronously compared (in parallel) and displayed in the order of arrangement of each search tag matching each search term. If one row cannot display all of them, they will be displayed in the next row.
[0077] Through the embodiments provided by the present application, when the first search result includes at least one first search sub-result and the second search result includes at least one second search sub-result, the first target sub-result and the second target sub-result to be compared are determined from the at least one first search sub-result and the at least one second search sub-result, wherein at least one first search sub-result includes the first target sub-result and at least one second search sub-result includes the second target sub-result; the first target sub-result and the second target sub-result are synchronously displayed on the search result display window. By synchronously comparing and displaying search results of the same or highly similar dimensions of different search terms, users can efficiently and accurately compare information of different search terms, thereby achieving the purpose of achieving the comparison accuracy of search results, thereby achieving the technical effect of improving the display efficiency of search results.
[0078] As an optional solution, displaying a target search term consisting of a first search term and a second search term includes:
[0079] S1, displaying target text information selected from a target document, wherein the target document includes a plurality of text information, the plurality of text information includes a first text information and a second text information, and the target text information is composed of the first text information and the second text information;
[0080] In response to a search request triggered by a target search term, a first search tag matching a first search term, a second search tag matching a second search term, and a search result display window are displayed, including:
[0081] S2, in response to a search request triggered on the target text information on the target document, jump from the target document to the search interface, and display a first search tag, a second search tag, and a search result display window on the search interface.
[0082] Optionally, in this embodiment, the above-mentioned display of the target search term composed of the first search term and the second search term may include but is not limited to displaying target text information selected from the target document, wherein the target text information may include but is not limited to including N pieces of text information, each piece of text information corresponding to each search term included in the target search term.
[0083] Optionally, in this embodiment, the target document may be, but is not limited to, a structured online document having the characteristics of "online", "multi-person collaboration", "document editing", etc., and may be, but is not limited to, a text document, a table, or a flow chart. In this embodiment, the target document may be, but is not limited to, a table-type document.
[0084] Optionally, in this embodiment, after displaying the above-mentioned target search term, a search request can be triggered for the above-mentioned target search term but is not limited to, and after triggering the search request, it automatically jumps to the search page used to display the search results (i.e., the above-mentioned display page), and displays various search tags and search result display windows on the search page.
[0085] It should be noted that the above-mentioned triggering of the search request may be, but is not limited to, displaying a "search" button after selecting the displayed target search term, and determining that the search request is triggered when it is detected that the "search" button is touched, such as Figure 4 As shown in the search request 404.
[0086] It should be noted that the display page to which the above jump is directed may be, but is not limited to, a display page of a target search engine, wherein the target search engine may be, but is not limited to, a search engine corresponding to the client where the target document is located.
[0087] An embodiment provided by the present application displays target text information selected from a target document, wherein the target document includes multiple text information, the multiple text information includes first text information and second text information, and the target text information consists of the first text information and the second text information; in response to a search request triggered on the target text information on the target document, jumps from the target document to a search interface, and displays a first search tag, a second search tag, and a search result display window on the search interface.
[0088] As an optional solution, jump from the target document to the search interface, including:
[0089] S1, when the client where the target document is located does not have a search engine corresponding to the search interface installed, install the search engine into the client where the target document is located;
[0090] S2, when the client where the target document is located has installed the search engine, the search engine is called to jump from the target document to the search interface.
[0091] Optionally, in this embodiment, after a search request is triggered for the target text information on the target document, it is detected whether the client where the target document is located has installed the search engine corresponding to the search interface, wherein, if it has been installed, the search engine is called and the search interface is jumped from the target document; and, if it has not been installed, the search engine is automatically installed in the client where the target document is located, and after the installation is complete, the search engine is called and the search interface is jumped from the target document.
[0092] It should be noted that, in the above-mentioned situation where the search engine is not installed, a search engine installation prompt message may also be popped up, but is not limited to, to display that the corresponding search engine is not currently installed, to suggest the user to install it, and to display an installation confirmation button and a non-installation confirmation button; when the user triggers the installation confirmation button, the search engine is installed in the client where the target document is located; and when the user triggers the non-installation confirmation button, it is determined that the search has failed and a relevant prompt message is issued.
[0093] Through the embodiments provided by the present application, when the client where the target document is located does not have the search engine corresponding to the search interface installed, the search engine is installed in the client where the target document is located; when the client where the target document is located has the search engine installed, the search engine is called to jump from the target document to the search interface.
[0094] As an optional solution, before displaying the first search tag, the second search tag, and the search result display window on the search interface, the method further includes:
[0095] S1, performing word segmentation processing on the first text information to obtain main text information and sub-text information;
[0096] S2, taking the main text information as the first search tag, and performing information association on the secondary text information to obtain an expanded search tag;
[0097] Before displaying the first search result corresponding to the first search term on the search result display window, the method further includes:
[0098] S3, obtaining search results matching the first search tag and search results matching the expanded search tag from the search database, wherein the first search results include search results matching the first search tag and search results matching the expanded search tag.
[0099] Optionally, in this embodiment, the first text information is segmented, and a statistical-based segmentation technique (such as an N-gram language model segmentation algorithm) may be used, but is not limited to, to obtain primary text information and secondary text information, and the primary text information is used as the first search tag, and information association is performed on the secondary text to obtain an expanded search tag.
[0100] To further illustrate, in the case where the first text information is "camping in area X", word segmentation processing is performed to obtain the main text information "area X" and the sub-text information "camping", the main text information "area X" is used as the first search tag, and information association is performed on the sub-text information "camping" to obtain the expanded search tag "recent locations", so the expanded context is "recent locations for camping in area X".
[0101] Further, search results matching the first search tag "X area" and search results matching the search expansion tag "recent locations" are obtained from the search database to obtain a first search result corresponding to the first search tag.
[0102] Through the embodiment provided by the present application, the first text information is segmented to obtain the main text information and the secondary text information; the main text information is used as the first search tag, and the secondary text information is associated with information to obtain the extended search tag; the search results matching the first search tag and the search results matching the extended search tag are obtained from the search database, wherein the first search results include the search results matching the first search tag and the search results matching the extended search tag. Through the word segmentation and information association operations, not only the accuracy of the search tag determination is guaranteed, but also the extended search tag obtained based on the association is used to assist in enriching the search results, thereby achieving the purpose of improving the display richness and accuracy of the search results.
[0103] As an optional solution, displaying a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window includes:
[0104] S1, displaying a search result display window, and arranging and displaying a first search tag and a second search tag in a target direction, wherein the first display request or the second display request is triggered by a sliding operation in the target direction.
[0105] Optionally, in this embodiment, each search tag may be displayed, but not limited to, above the search result display window, and may be arranged, but not limited to, in a target direction from left to right, wherein the full search tag may be arranged, but not limited to, at the leftmost position.
[0106] It should be noted that, when all search tags cannot be displayed in one row of the search page, it is also possible but not limited to automatically adjusting the size information of each search tag so that all search tags are displayed in one row of the search page, or arranging them in the target direction from left to right and from top to bottom to display each search tag in at least two rows of the search page, wherein all search tags can be arranged but not limited to being arranged in the upper left position.
[0107] Optionally, in this embodiment, each search tag can be displayed on the left or right side of the search result display window, but is not limited to being arranged in a target direction from top to bottom, wherein the full search tag can be arranged at the top position, but is not limited to being arranged.
[0108] It should be noted that when one column of the search page cannot display all the search tags, it is also possible but not limited to automatically adjusting the size information of each search tag so that all the search tags are displayed in one column of the search page, or arranging them according to the target direction from top to bottom and from left to right to display each search tag in at least two columns of the search page, wherein all search tags can be but not limited to being arranged in the upper left position.
[0109] Optionally, in this embodiment, the sliding operation in the target direction can be but is not limited to being used to indicate switching from the current search tag to the next search tag, and switching or updating the current search result displayed in the search result display window to the next search result, wherein the current search tag corresponds to the current search result and the next search tag corresponds to the next search result.
[0110] Through the embodiment provided by the present application, a search result display window is displayed, and a first search tag and a second search tag are displayed in a target direction, wherein the first display request or the second display request is triggered by a sliding operation in the target direction. The switching of the search tag / search result is triggered by the sliding operation in the target direction, thereby achieving the flexibility of switching and comparing the search results of different search terms, thereby achieving the technical effect of improving the display efficiency of the search results.
[0111] As an optional solution, in the process of displaying a first search tag matching the first search word, a second search tag matching the second search word, and a search result display window in response to a search request triggered by a target search word, the method further includes:
[0112] S1, displaying a comparison search tag, wherein the comparison search tag is used to indicate the difference between a first search term and a second search term;
[0113] Wherein, in the case of obtaining a comparison display request triggered by a comparison search tag, the difference information between the first search result and the second search result is displayed on the search result display window.
[0114] Optionally, in this embodiment, the comparison search tag may be, but is not limited to, used to indicate the difference between multiple search terms included in the target search term.
[0115] Optionally, in this embodiment, when a comparison display request triggered by a comparison search tag is obtained, difference information between the first search result and the second search result is displayed in the search result display window.
[0116] Optionally, in this embodiment, the difference information between the search results may include, but is not limited to, the differences between the search results in dimensions such as like information, the number of searched contents, etc.
[0117] To further illustrate, Figure 8 As described, the display page 802 includes a full search tag "all", a first search tag "Beijing", a second search tag "Wuhan" and a comparison search tag "Compare". When the comparison search tag is touched to trigger a comparison display request, as shown in the comparison display request 804, the dimension of the difference information to be compared is further determined, and when it is determined that the difference information to be compared is like information, as shown in the display page 806, the like information of the first search result, the like information of the second search result, and the difference information between the like information of the first search result and the like information of the second search result are displayed on the search result display window, such as the difference in the total number of likes, the average difference in likes, the maximum difference in likes, and other difference information.
[0118] Through the embodiments provided by the present application, a comparison search tag is displayed, wherein the comparison search tag is used to indicate the difference between the first search term and the second search term; wherein, when a comparison display request triggered by the comparison search tag is obtained, the difference information between the first search result and the second search result is displayed on the search result display window. By setting the comparison search tag, the comparison results between different search terms in the relevant dimensions can be directly displayed, so that the user can intuitively and efficiently understand the difference between the search results of different search terms, thereby achieving the technical effect of improving the display and comparison efficiency of the search results.
[0119] As an optional solution, the above search result display method is applied to a scenario where online documents are converted into search terms for search presentation. Online documents are widely spread because they can be filled out at low cost. However, when users need to search for keywords in a certain column, the current operation of the existing technology heavily relies on manual copying and pasting, and the information results obtained from the search cannot be directly compared and viewed.
[0120] It should be noted that if the user directly copies multiple cells in the table (such as A1+A2) and then manually switches to the browser search, the search results obtained are often not the results of A1 plus the results of A2, but the associated results of A1 and A2. For example, if A1 is Wuhan and A2 is Beijing, the direct search results will be: Wuhan to Beijing driving information, etc., rather than Wuhan city information and Beijing city information. Then, the searched results are neither comparable nor accurate.
[0121] In order to solve the above problem, this embodiment provides a method for converting documents into search terms. More specifically, the user can select a column or several cells in a table, click search, and then open them directly in the browser. These terms will be fixed as tabs in the top bar, and the user can directly click to view the search results. This method reduces the search cost of each click / input by the user, and can help the user search more efficiently.
[0122] To further illustrate, Fig. 9 As shown, the user can select a column or multiple cells in document 902 ( Fig. 9 A list of selected scenic spots is shown), and after the user selects, a clickable and touchable operation button is displayed ( Fig. 9 The operation buttons shown include a "search" button, a "copy" button, and a "comment" button). When the user clicks the "search" button, the system automatically embeds the corresponding browser, converts the text in these cells into search terms, and displays "all" by default, that is, all search results are mixed and displayed on the browser page 904.
[0123] It should be noted that if Fig. 9 As shown in the browser page 904, the search results corresponding to the "all" search term include the search results of the search term converted from the text in the above cell, and each search result is displayed in the form of a card, including search content information, user information (i.e., the initiator of the search result), and like information (i.e., the number of likes marked by other users for the search result).
[0124] It should be noted that the search terms are displayed in the form of tabs below the search bar. Users can slide left or right or click, which means that the browser automatically searches for this term. The returned search results are presented in the form of information cards under the corresponding tab. Users can quickly search by clicking to switch.
[0125] To further illustrate, based on the above Fig. 9 The corresponding embodiments are as follows: Fig.10 As shown in (a) of FIG. 1 , when the current search term is the default “all”, all search results are displayed in a mixed arrangement on the browser page 1002; when the user adjusts the current search term from “all” to “A Park” by sliding left or right (or clicking), as shown in FIG. Fig.10 As shown in (b) of FIG. 1 , the search results corresponding to “Park A” are displayed in order according to the like information on the browser page 1004; and when the user adjusts the current search term from “Park A” to “Park B” by sliding left or right (or clicking), as shown in FIG. Fig.10As shown in (c) in FIG. 1 , the search results corresponding to “B Park” are displayed in order according to the like information on the browser page 1006. Optionally, the specific implementation of the method for converting the above document into a presentation method of the search term is as follows: Fig.11 As shown, the specific steps of combining the user terminal presentation content and the background technical content include:
[0126] S1101, the user opens a document and selects a column or multiple cells;
[0127] S1102, the system regards the text in all cells and the word set A as query words;
[0128] S1103, all the obtained results are presented in a mixed arrangement in the form of cards on the browser;
[0129] S1104, the user views all in the browser;
[0130] S1105, the user clicks to view the word "A1" in the browser;
[0131] S1106, the system regards A1 as a query word;
[0132] S1107, the system automatically searches and generates results;
[0133] S1108, only the results under "A1" are displayed;
[0134] S1109, the user clicks on an item to read the details;
[0135] S1110, enter the URL of a certain entry and display the details.
[0136] Optionally, in this embodiment, when the user opens and selects multiple cells and clicks "Search", the system automatically executes the following procedures: automatically extract the entry, and then perform preprocessing (conversion between full-width and half-width / uppercase and lowercase / traditional and simplified Chinese). Then perform query segmentation. This embodiment adopts a statistical-based segmentation technology (N-gram language model segmentation algorithm). For example, "Xiangsilin Park Camping" can be segmented into "Xiangsilin Park" and "Camping".
[0137] It should be noted that the rewriting operation in Query segmentation includes error correction (such as homophones, typos, and missing words during input) and normalization (that is, normalizing niche queries into more standard and synonymous Query expressions): Query error correction can be understood using the noise channel model. Suppose the user's original intention is to search for Qreal, but the query introduces a certain amount of noise after passing through the noise channel. At this time, the error correction process is equivalent to building a decoder to restore the query with noise interference. Qnoise is denoised as much as possible to restore it to Qdenoise, so that Qdenoise≈Qreal. After segmentation, error correction and normalization, expansion is performed based on the results obtained in the previous steps, that is, the association of search terms, so as to achieve query rewriting. For example, "camping" can be expanded to "camping" + "recent lows", so the original query term in this context is "recent camping locations in Xiangsilin Park"
[0138] Optionally, in this embodiment, in order to speed up the matching efficiency, the historical search queries can be filtered and preprocessed by qv volume to respectively construct prefix and suffix trie trees for recalling the prefix and suffix matching of the queries input online by the user, and then sort the recalled results. The results of these information are displayed in the form of cards, and the style of the cards is adjusted (for example, adding a label "recently opened many times") according to the user's historical behavior (for example, the user clicks on the information from a certain creator many times).
[0139] Optionally, in this embodiment, the cards are initially sorted by the number of likes by default, and then the pages that the user has opened are re-sorted, that is: the pages that the user has opened are sorted at the top by the number of likes, and the pages that the user has not opened are sorted thereafter by the number of likes.
[0140] Optionally, in this embodiment, the automatically opened browser tab consists of two parts, namely "all" and a collection of other words. Among them, the collection of other words comes from the order in which the user selects cells in the document. If a column is selected, it is arranged in order from top to bottom; according to the search process in the previous step, the system searches the first cell "Xiangsilin Park" as the query word, and some results (displayed in the form of cards) will be obtained, which is regarded as a card collection of A1-1, A1-2, and A1-3. Users can click on the "Donghu Park" in the narration to display the search feedback results of the query word, and regard it as a card set of B1-1, B1-2, B1-3; the search is automatically repeated in this way... and the content under the "All" tab is composed of these A1-1, A1-2, A1-3, B1-1, B1-2, B1-3, but their arrangement order is: A1-1, B1-1, C1-1... After traversing and displaying all the cards returned by the search terms, subsequent cards such as B1-2, B1-3, A1-2, A1-3 are randomly displayed.
[0141] Through the embodiments provided by the present application, the user can select a column or several cells in a table, click search, and then open them directly in the browser. These entries will be fixed as tabs in the top bar, and the user can directly click to view the search results. This method reduces the search cost that the user needs to click / input each time, and can help the user search more efficiently.
[0142] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0143] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0144] According to another aspect of the embodiments of the present application, a device for displaying search results for implementing the above-mentioned method for displaying search results is also provided. Fig.12 As shown, the device comprises:
[0145] A first display unit 1202 is used to display a target search word composed of a first search word and a second search word, wherein the first search word and the second search word belong to the same vocabulary type;
[0146] The second display unit 1204 is used to display a first search tag matching the first search word, a second search tag matching the second search word, and a search result display window in response to a search request triggered by the target search word;
[0147] Among them, the above-mentioned search result display window is used to display the search results corresponding to a single search tag. When a first display request triggered by the above-mentioned first search tag is obtained, the first search result corresponding to the above-mentioned first search term is displayed on the above-mentioned search result display window. When a second display request triggered by the above-mentioned second search tag is obtained, the second search result corresponding to the above-mentioned second search term is displayed on the above-mentioned search result display window.
[0148] For specific embodiments, reference may be made to the examples shown in the above-mentioned display device for search results, which will not be described in detail in this example.
[0149] As an optional solution, the above device also includes:
[0150] A first display module, configured to display all search tags that match the first search term and the second search term in response to the search request triggered by the target search term, in the process of displaying the first search tag that matches the first search term, the second search tag that matches the second search term, and the search result display window;
[0151] Among them, when the above-mentioned search request is obtained, or the full display request triggered by the above-mentioned full search tag is obtained, the above-mentioned first search result and the above-mentioned second search result are displayed on the above-mentioned search result display window.
[0152] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0153] As an optional solution, the device further includes: a first determination module, which is used to determine a first target sub-result and a second target sub-result to be compared from the at least one first search sub-result and the at least one second search sub-result before displaying the first search result and the second search result on the search result display window, when the first search result includes at least one first search sub-result and the second search result includes at least one second search sub-result, wherein the at least one first search sub-result includes the first target sub-result and the at least one second search sub-result includes the second target sub-result;
[0154] The first display module includes: a display submodule, which is used to synchronously display the first target sub-result and the second target sub-result on the search result display window.
[0155] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0156] As an optional solution, the first display unit 1202 includes: a second display module, used to display target text information selected from a target document, wherein the target document includes multiple text information, the multiple text information includes first text information and second text information, and the target text information consists of the first text information and the second text information;
[0157] The above-mentioned second display unit includes: a third display module, which is used to jump from the above-mentioned target document to the search interface in response to a search request triggered by the above-mentioned target text information on the above-mentioned target document, and display the above-mentioned first search tag, the above-mentioned second search tag, and the above-mentioned search result display window on the above-mentioned search interface.
[0158] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0159] As an optional solution, the third display module includes:
[0160] An installation submodule is used to install the search engine corresponding to the search interface into the client where the target document is located if the client where the target document is located has not installed the search engine;
[0161] The calling submodule is used to call the search engine and jump from the target document to the search interface when the client where the target document is located has installed the search engine.
[0162] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0163] As an optional solution, the above device also includes:
[0164] The above device also includes:
[0165] A word segmentation module, used for performing word segmentation processing on the first text information to obtain primary text information and secondary text information before displaying the first search tag, the second search tag, and the search result display window on the search interface;
[0166] A second determination module is used to use the main text information as the first search tag and associate the sub-text information with the sub-text information to obtain an extended search tag before displaying the first search tag, the second search tag, and the search result display window on the search interface;
[0167] The above device also includes:
[0168] An acquisition module is applied to acquire search results matching the first search tag and search results matching the expanded search tag from a search database before displaying the first search result corresponding to the first search term on the search result display window, wherein the first search result includes the search results matching the first search tag and the search results matching the expanded search tag.
[0169] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0170] As an optional solution, the second display unit includes:
[0171] The fourth display module is used to display the search result display window, and to display the first search tag and the second search tag in a target direction, wherein the first display request or the second display request is triggered by a sliding operation in the target direction.
[0172] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0173] As an optional solution, the above device also includes:
[0174] The fifth display module is used to display a comparison search tag in the process of displaying the first search tag matching the first search term, the second search tag matching the second search term, and the search result display window in response to the search request triggered by the target search term, wherein the comparison search tag is used to indicate the difference between the first search term and the second search term.
[0175] For a specific embodiment, reference may be made to the example shown in the method for displaying search results described above, which will not be described in detail in this example.
[0176] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned search result display method is also provided. The electronic device can be but is not limited to being Figure 1 The client 102 or server 112 shown in FIG. 1 is a client 102 or a server 112 shown in FIG. 1 . In this embodiment, the electronic device is used as the client 102 as an example. Fig.13As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.
[0177] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0178] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0179] S1, displaying a target search term consisting of a first search term and a second search term, wherein the first search term and the second search term belong to the same vocabulary type;
[0180] S2, in response to a search request triggered by a target search term, displaying a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window;
[0181] Among them, the search result display window is used to display the search results corresponding to a single search tag. When a first display request triggered by a first search tag is obtained, the first search result corresponding to the first search term is displayed on the search result display window. When a second display request triggered by a second search tag is obtained, the second search result corresponding to the second search term is displayed on the search result display window.
[0182] Alternatively, a person skilled in the art may understand that: Fig.13 The structure shown is for illustration only. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations are shown.
[0183] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for displaying search results in the embodiments of the present application. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, to implement the above-mentioned method for displaying search results. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely located relative to the processor 1304, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 may specifically be used, but is not limited to, to store information such as a first search term, a second search term, a first search tag, a second search tag, a search result display window, and the like. As an example, if Fig.13 As shown, the memory 1302 may include but is not limited to the first display unit 1202 and the second display unit 1204 in the display device for the search results. In addition, it may also include but is not limited to other module units in the display device for the search results, which will not be repeated in this example.
[0184] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0185] In addition, the above-mentioned electronic device also includes: a display 1308 for displaying the above-mentioned first search term, second search term, first search tag, second search tag, search result display window and other information; and a connection bus 1310 for connecting the various module components in the above-mentioned electronic device.
[0186] In other embodiments, the client or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes in the form of network communication. A peer-to-peer network may be formed between the nodes, and any form of computing device, such as a server, a client, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0187] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0188] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0189] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0190] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.
[0191] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0192] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.
[0193] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0194] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0195] S1, displaying a target search term consisting of a first search term and a second search term, wherein the first search term and the second search term belong to the same vocabulary type;
[0196] S2, in response to a search request triggered by a target search term, displaying a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window;
[0197] Among them, the search result display window is used to display the search results corresponding to a single search tag. When a first display request triggered by a first search tag is obtained, the first search result corresponding to the first search term is displayed on the search result display window. When a second display request triggered by a second search tag is obtained, the second search result corresponding to the second search term is displayed on the search result display window.
[0198] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the electronic device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0199] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0200] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0201] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0202] In the several embodiments provided in the present application, it should be understood that the recorded client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0203] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0204] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0205] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for displaying search results, characterized in that: include: displaying a target search word composed of a first search word and a second search word, wherein the first search word and the second search word belong to the same vocabulary type; In response to a search request triggered by the target search term, displaying a first search tag matched by the first search term, a second search tag matched by the second search term, and a search result display window; Among them, the search result display window is used to display the search results corresponding to a single search tag. When a first display request triggered by the first search tag is obtained, the first search result corresponding to the first search term is displayed on the search result display window. When a second display request triggered by the second search tag is obtained, the second search result corresponding to the second search term is displayed on the search result display window.
2. The method according to claim 1, characterized in that In the process of displaying a first search tag matched by the first search word, a second search tag matched by the second search word, and a search result display window in response to a search request triggered by the target search word, the method further includes: Displaying all search tags that match both the first search term and the second search term; Wherein, when the search request is obtained, or a full display request triggered by the full search tag is obtained, the first search result and the second search result are displayed on the search result display window.
3. The method according to claim 2, characterized in that Before displaying the first search result and the second search result on the search result display window, the method further includes: in a case where the first search result includes at least one first search sub-result and the second search result includes at least one second search sub-result, determining a first target sub-result and a second target sub-result to be compared from the at least one first search sub-result and the at least one second search sub-result, wherein the at least one first search sub-result includes the first target sub-result and the at least one second search sub-result includes the second target sub-result; The displaying the first search result and the second search result on the search result display window includes: synchronously displaying the first target sub-result and the second target sub-result on the search result display window.
4. The method according to claim 1, characterized in that: The displaying of a target search term consisting of a first search term and a second search term comprises: Displaying target text information selected from a target document, wherein the target document includes a plurality of text information, the plurality of text information includes a first text information and a second text information, and the target text information is composed of the first text information and the second text information; The method of displaying a first search tag matching the first search word, a second search tag matching the second search word, and a search result display window in response to a search request triggered by the target search word, includes: jumping from the target document to a search interface in response to a search request triggered by the target text information on the target document, and displaying the first search tag, the second search tag, and the search result display window on the search interface.
5. The method according to claim 4, characterized in that The step of jumping from the target document to the search interface includes: If the search engine corresponding to the search interface is not installed in the client where the target document is located, installing the search engine in the client where the target document is located; In the case that the client where the target document is located has installed the search engine, the search engine is called to jump from the target document to the search interface.
6. The method according to claim 4, characterized in that Before displaying the first search tag, the second search tag, and the search result display window on the search interface, the method further includes: Performing word segmentation processing on the first text information to obtain primary text information and secondary text information; The main text information is used as the first search tag, and the secondary text information is associated with information to obtain an extended search tag; Before displaying the first search result corresponding to the first search term on the search result display window, the method also includes: obtaining search results that match the first search tag and search results that match the expanded search tag from a search database, wherein the first search result includes the search results that match the first search tag and the search results that match the expanded search tag.
7. The method according to any one of claims 1 to 6, characterized in that The method of displaying a first search tag matching the first search term, a second search tag matching the second search term, and a search result display window includes: The search result display window is displayed, and the first search tag and the second search tag are displayed in a target direction, wherein the first display request or the second The display request is triggered by a sliding operation in the target direction.
8. The method according to any one of claims 1 to 6, characterized in that In the process of displaying a first search tag matched by the first search word, a second search tag matched by the second search word, and a search result display window in response to a search request triggered by the target search word, the method further includes: displaying a comparison search tag, wherein the comparison search tag is used to indicate the difference between the first search term and the second search term; Wherein, in the case where a comparison display request triggered by the comparison search tag is obtained, difference information between the first search result and the second search result is displayed on the search result display window.
9. A device for displaying search results, characterized in that: include: A first display unit, configured to display a target search word composed of a first search word and a second search word, wherein the first search word and the second search word belong to the same vocabulary type; a second display unit, configured to display, in response to a search request triggered by the target search term, a first search tag matched by the first search term, a second search tag matched by the second search term, and a search result display window; Among them, the search result display window is used to display the search results corresponding to a single search tag. When a first display request triggered by the first search tag is obtained, the first search result corresponding to the first search term is displayed on the search result display window. When a second display request triggered by the second search tag is obtained, the second search result corresponding to the second search term is displayed on the search result display window.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 8 when executed by an electronic device.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.