Information search method, device, electronic device and storage medium
By displaying the extended search tags in the search result interface, users can directly select target tags through interactive operations, realizing automatic supplementation of search terms and rapid refresh of results, solving the problems of inaccurate search results and cumbersome operations in the prior art, and improving the efficiency of information positioning.
Patent Information
- Application Number
- CN202210624447.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-06-02
AI Technical Summary
Existing search engines cannot expand and refine search terms when refreshing search results, resulting in too broad search results and cumbersome operations, making it difficult to quickly locate accurate information.
By displaying extended search tags based on the initial search content in the search results interface, users can select target search tags through interactive operations to automatically supplement search terms and directly refresh to more accurate search results.
It reduces user operation paths, improves the speed and accuracy of information positioning, and avoids the cumbersome process of repeatedly manually entering search terms.
Smart Images

Figure CN116992113B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information search method, device, electronic device, and storage medium. Background Art
[0002] The search engine can provide a search function for the object. The object enters the search term, and then the search engine searches according to the search term entered by the object and returns the corresponding search results, which are presented on the search results page.
[0003] In related technologies, objects can refresh and correct search results by pulling down the page to trigger the method. However, using the above method, the search results can only be updated based on the time or number of results, and the search terms will not be expanded or refined. Based on this, the search results obtained are too broad. Due to page restrictions, the search results that can be displayed on the page are only: some results obtained based on certain rules. As a result, no matter how many times the refresh is added, the search results displayed on the page are still inaccurate.
[0004] Accordingly, when the subject needs to obtain more accurate search results, he or she needs to click on the search box, continuously input and supplement the search terms, and then search again through the search engine based on the supplemented search terms. The entire search process is relatively cumbersome and the search efficiency is low.
[0005] Therefore, how to provide a more efficient form of information acquisition in search scenarios to reduce the path of object operations and quickly locate effective information is an urgent problem to be solved. Summary of the Invention
[0006] Embodiments of the present application provide an information search method, device, electronic device, and storage medium to reduce the path of object operations and increase the rate of locating valid information.
[0007] The first information search method provided in the embodiment of the present application includes:
[0008] In response to a search operation for the information to be searched, presenting a first search result interface, the first search result interface including: at least one initial search content matching the information to be searched;
[0009] In response to an interactive operation triggered on the first search result interface, at least two search tags of different dimensions are displayed on the first search result interface based on a movement distance in a first operation direction included in the interactive operation; and based on a movement distance in a second operation direction included in the interactive operation, a target search tag is determined to be selected from the at least two search tags; wherein the number of search tags displayed is associated with the movement distance in the first operation direction; each search tag is: supplementary search information obtained by expanding the information to be searched based on the initial search content, and each dimension corresponds to an information expansion direction;
[0010] In response to an end instruction for the interactive operation, a corresponding second search result interface is presented based on the target search tag, and the second search result interface includes at least one target search content, and the target search content is filtered from the initial search content according to the target search tag.
[0011] The second information search method provided in the embodiment of the present application includes:
[0012] After receiving a search request sent by a client, determining initial search content that matches the information to be searched in the search request, and feeding back the content to the client, so that the client presents a first search result interface including at least one of the initial search content;
[0013] Upon receiving an interaction request triggered by the client through an interaction operation on the first search result interface, at least two search tags of different dimensions are determined based on a movement distance in a first operation direction included in the interaction operation, and the tags are fed back to the client, so that the client displays the at least two search tags on the first search result interface, each search tag being supplementary search information obtained by expanding the information to be searched based on the initial search content, with each dimension corresponding to an information expansion direction;
[0014] Based on the target search tag obtained from the at least two search tags, the target search content is screened and sorted from the initial search content, and then fed back to the client, so that the client responds to the end instruction for the interactive operation and presents a second search result interface including at least one of the target search contents; wherein, the target search tag is selected from the at least two search tags based on the moving distance of the second operation direction included in the interactive operation.
[0015] The first information search device provided in the embodiment of the present application includes:
[0016] A first response unit, configured to present a first search result interface in response to a search operation for the information to be searched, wherein the first search result interface includes: at least one initial search content matching the information to be searched;
[0017] a second response unit for, in response to an interactive operation triggered on the first search result interface, displaying at least two search tags of different dimensions in the first search result interface based on a movement distance in a first operation direction included in the interactive operation; and determining, based on a movement distance in a second operation direction included in the interactive operation, a target search tag selected from the at least two search tags; wherein the number of search tags displayed is associated with the movement distance in the first operation direction; each search tag is: supplementary search information obtained by expanding the information to be searched based on the initial search content, and each dimension corresponds to an information expansion direction;
[0018] A display unit is used to present a corresponding second search result interface based on the target search tag in response to an end instruction for the interactive operation, wherein the second search result interface includes at least one target search content, and the target search content is filtered from the initial search content according to the target search tag.
[0019] Optionally, the number of displayed search tags is positively correlated with the moving distance in the first operation direction.
[0020] Optionally, the search tag includes a first-level search tag; and the second response unit is specifically configured to:
[0021] If the moving distance of the first operation direction is the first distance, at least two first-level search tags of different dimensions are displayed in the tag area of the first search result interface;
[0022] The first-level search tag is obtained by segmenting the content tag of the initial search content according to the different dimensions; the first distance is not less than a first threshold and less than a second threshold, and the second threshold is greater than the first threshold.
[0023] Optionally, the search tag includes a primary search tag and a secondary search tag; and the second response unit is specifically configured to:
[0024] If the moving distance in the first operation direction is the second distance, then when it is determined that the movement reaches the distance corresponding to the first threshold, at least two first-level search tags of different dimensions are displayed in the tag area of the first search result interface, and when it is determined that the movement continues to reach the distance corresponding to the second threshold, at least two second-level search tags associated with the target first-level search tag are displayed in the tag area;
[0025] Among them, the first-level search tag is obtained by segmenting the content tag of the initial search content according to the different dimensions; the second-level search tag is determined based on the initial search content that matches the target first-level search tag; the second distance is not less than the second threshold, and the second threshold is greater than the first threshold.
[0026] Optionally, the target search tag is a first-level target search tag; and the display unit is specifically configured to:
[0027] The second search result interface is presented according to a target first-level search tag among the at least two first-level search tags; wherein the target search content is obtained by filtering from the initial search content according to the target first-level search tag.
[0028] Optionally, the target search tag includes the target primary search tag and the target secondary search tag; and the display unit is specifically configured to:
[0029] The second search result interface is presented based on the target first-level search tag among the at least two first-level search tags and the target second-level search tag among the at least two second-level search tags; wherein the target search content is filtered from the initial search content based on the target first-level search tag and the target second-level search tag.
[0030] Optionally, the display unit is further configured to determine the target search tag by at least one of the following methods:
[0031] If the moving distance in the second operation direction is less than a third threshold, the search tag in the specified order among the at least two search tags is used as the target search tag;
[0032] If the moving distance of the second operation direction is not less than a third threshold, the selected target search tag is determined according to the moving result and the positions of each search tag.
[0033] Optionally, the display unit is specifically used to:
[0034] If the target search tag includes a target first-level search tag, the first-level search tag in the first specified order among the at least two first-level search tags is used as the target first-level search tag; the first-level search tag is obtained by segmenting the content tag of the initial search content according to the different dimensions;
[0035] If the target search tag includes a target secondary search tag, the secondary search tag located in the second specified order among at least two secondary search tags is used as the target secondary search tag; the secondary search tag is determined based on the initial search content matching the target primary search tag.
[0036] Optionally, the first response unit is further configured to:
[0037] The search box in the first search result interface presents the information to be searched;
[0038] The display unit is also used for:
[0039] The search box in the second search result interface presents the information to be searched and the target search tag.
[0040] Optionally, the second response unit is further configured to:
[0041] The target search tag is highlighted in the first search result interface.
[0042] Optionally, the device further includes:
[0043] A first updating unit is configured to, in response to an interactive operation of moving along a second operation direction triggered on the second search result interface, determine a target search tag after switching according to a movement result;
[0044] The target search content in the second search result interface is updated according to the switched target search tag.
[0045] Optionally, the device further includes:
[0046] A second updating unit is used to display at least two extended tags in the second search result interface in response to an interactive operation triggered on the second search result interface, so as to update the target search content based on a target extended tag among the at least two extended tags; each extended tag is: supplementary search information obtained after expanding the information to be searched and the target search tag.
[0047] The second information search device provided in the embodiment of the present application includes:
[0048] A first feedback unit is configured to, upon receiving a search request sent by a client, determine initial search content that matches the information to be searched in the search request, and feed back the content to the client, so that the client presents a first search result interface including at least one of the initial search content;
[0049] a second feedback unit configured to, upon receiving an interaction request triggered by the client through an interaction operation on the first search result interface, determine at least two search tags of different dimensions based on a movement distance in a first operation direction included in the interaction operation, and feed the tags back to the client, so that the client displays the at least two search tags on the first search result interface, each search tag being supplementary search information obtained by expanding the information to be searched based on the initial search content, with each dimension corresponding to an information expansion direction;
[0050] A third feedback unit is configured to filter and sort target search content from the initial search content based on the target search tag obtained from the at least two search tags, and then feed the target search content back to the client, so that the client presents a second search result interface including at least one of the target search contents in response to an end instruction for the interactive operation; wherein the target search tag is selected from the at least two search tags based on a moving distance in a second operation direction included in the interactive operation.
[0051] Optionally, the search tag includes a first-level search tag; and the second feedback unit is further configured to determine and feedback the first-level search tag in the following manner:
[0052] Segmenting the content tags of the initial search content according to the different dimensions to obtain at least two first-level search tags;
[0053] When a movement event is detected and the user moves along the first operation direction to a distance corresponding to a first threshold, the at least two first-level search tags are fed back to the client.
[0054] Optionally, the search tag includes a primary search tag and a secondary search tag; and the second feedback unit is further configured to determine and feed back the secondary search tag in the following manner:
[0055] Determining at least two secondary search tags associated with the target primary search tag based on initial search content matching the target primary search tag;
[0056] When a movement event is detected and the user moves along the first operation direction to a distance corresponding to a second threshold, the at least two secondary search tags are fed back to the client, and the second threshold is greater than the first threshold.
[0057] Optionally, the third feedback unit is further configured to determine a target search tag obtained from the at least two search tags by:
[0058] When detecting a movement event and the movement is in a second operation direction, determining a mapping relationship between a movement distance in the second operation direction and a size of a label area, the label area being used to display a search label;
[0059] Based on the mapping relationship and the positions of the various search tags, the selected target search tag is determined.
[0060] An electronic device provided by an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of any one of the above-mentioned information search methods.
[0061] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to perform the steps of any one of the above-mentioned information search methods.
[0062] An embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the steps of any one of the above-mentioned information search methods.
[0063] The beneficial effects of this application are as follows:
[0064] Embodiments of the present application provide an information search method, device, electronic device, and storage medium. In the present application, not only can the preliminary screening results be displayed through the first search result interface, but search tags for different dimensions of the information to be searched can also be further presented in the first search result interface based on the interactive operation of the object in the first search result interface; and the presented search tags are supplementary search information obtained after expanding the information to be searched based on the initial search content, that is, the present application can expand and refine the information to be searched and present it in the first search result interface in the form of search tags. In addition, the number of search tags displayed in the first search result interface is associated with the moving distance along the first operation direction in the interactive operation of the object. In this way, the object can also directly control the number of supplementary search information to be viewed through interactive operations, and the object can directly search for the target tag among these search tags, thereby searching more accurately. In this process, the object does not need to repeatedly click the search box and manually enter the supplementary search information in the search box. Instead, based on the moving distance along the second operation direction, the object selects the search tag to supplement the search term to achieve automatic supplementation of the search term. In this way, the object can directly select the search tag to refresh the interface and quickly switch between search results of different dimensions. Therefore, the location rate of effective information can be improved while reducing the path of the object operation.
[0065] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present application. The purposes and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] 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:
[0067] Figure 1 A schematic diagram of a page refresh method in related art;
[0068] Figure 2 This is an optional schematic diagram of an application scenario in an embodiment of the present application;
[0069] Figure 3 A flowchart of an information search method in an embodiment of the present application;
[0070] Figure 4 A schematic diagram of an initial search process in an embodiment of the present application;
[0071] Figure 5AA schematic diagram of a first-level search tag in an embodiment of the present application;
[0072] Figure 5B A schematic diagram of a secondary search tag in an embodiment of the present application;
[0073] Figure 6 A schematic diagram of a display process of a first-level search tag listed in an embodiment of the present application;
[0074] Figure 7 This is a schematic diagram of the first second search result interface in an embodiment of the present application;
[0075] Figure 8A This is a schematic diagram of the first search tag switching method in an embodiment of the present application;
[0076] Figure 8B This is a schematic diagram of the second search tag switching method in an embodiment of the present application;
[0077] Figure 8C This is a schematic diagram of the third search tag switching method in an embodiment of the present application;
[0078] Figure 9 A schematic diagram of a display process of a secondary search tag in an embodiment of the present application;
[0079] Figure 10A A schematic diagram of a gesture trajectory of an interactive gesture in an embodiment of the present application;
[0080] Figure 10B This is a schematic diagram of a second search result interface according to an embodiment of the present application;
[0081] Figure 11A A schematic diagram of a gesture trajectory of another interactive gesture in an embodiment of the present application;
[0082] Figure 11B This is a schematic diagram of a third second search result interface in an embodiment of the present application;
[0083] Figure 12 A schematic diagram of an updating method of a second search result interface in an embodiment of the present application;
[0084] Figure 13 This is a schematic diagram of another method for updating the second search result interface in an embodiment of the present application;
[0085] Figure 14 This is a schematic diagram of a fourth second search result interface in an embodiment of the present application;
[0086] Figure 15 Schematic diagram of another information search method in an embodiment of the present application;
[0087] Figure 16 This is a timing diagram of interaction between a client and a server in an embodiment of the present application;
[0088] Figure 17 A schematic diagram of the structure of an information search device according to an embodiment of the present application;
[0089] Figure 18 Schematic diagram of the structure of another information search device in an embodiment of the present application;
[0090] Figure 19 A schematic diagram of the hardware structure of an electronic device to which an embodiment of the present application is applied;
[0091] Figure 20 A schematic diagram of the hardware structure of another electronic device to which an embodiment of the present application is applied. DETAILED DESCRIPTION
[0092] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of the technical solutions of this application, but not all of them. Based on the embodiments described in this application document, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the technical solutions of this application.
[0093] The following is an introduction to some concepts involved in the embodiments of this application.
[0094] Interactive gestures: Physical movements of an object that originate from a physical movement or state (usually from the face or hand) and interact with a terminal device. Interactive gestures can be considered one of the ways in which an object communicates with a terminal device. For example, the interactive operations in the embodiments of this application can be interactive gestures. Of course, in addition to gestures, other forms can also be used, such as moving a mouse, dragging a control, etc., which are not specifically limited in this article.
[0095] Search results: also known as search content, when a person enters a keyword (i.e. a type of information to be searched) in a browser or search box to trigger a search, the displayed information includes videos, news, hot topics, pictures, short videos, etc. Figure 1 (a) shows the content of "Zhang San - BxDx Encyclopedia", "Zhang San - Hot Discussion", etc. In the embodiment of the present application, the search content is divided into two categories: initial search content and target search content, depending on whether the search tag refresh interface is combined. In essence, these are all search results obtained by entering keywords.
[0096] Search tags: are the tag information displayed in the search results interface. This information is based on the initial search content and is the supplementary search information obtained after the search information is expanded according to the information expansion direction of different dimensions. It is generally text, but can also be in the form of icons, text + icons, etc.
[0097] Search result interface: An object-oriented interface for displaying search results to an object. In an embodiment of the present application, the search result interface can be used to display search results obtained by filtering the search terms entered by the object (or selected by other means) to the object. In addition, in an embodiment of the present application, the search terms entered by the object can be expanded and refined and displayed in the search result interface in the form of search tags. Figure 5A 、 Figure 5B shown.
[0098] In this embodiment of the present application, the search results interface is divided into a first search results interface for displaying the initial search content and a second search results interface for displaying the target search content filtered from the initial search content. Both the first search results interface and the second search results interface can display search tags.
[0099] The following is a brief description of the design concept of the embodiment of the present application:
[0100] With the rapid development of Internet technology, search engines have brought convenience to people's lives, and more and more people are using search engines to search. Currently, search engines can provide a search interface for people, allowing people to enter search terms. The search engine then searches based on the search terms entered by the people and returns the corresponding search results, which are presented on the search results page.
[0101] In related technologies, refreshing and correcting the search results page information is accomplished by pulling the page down to trigger (such as sliding the page to the bottom), or clicking on the search box to enter additional search keywords. These two methods are used. Traditional refreshing methods have high operating costs and cannot meet more refined search requirements for keywords.
[0102] like Figure 1 As shown in FIG, it is a schematic diagram of a page refresh method in the related art. Figure 1 (a) is a diagram of a browser pull-down refresh interface. The subject can refresh the search results displayed on the page by pulling down the page, and a "refreshed" prompt will appear; Figure 1 (b) indicates that on the basis of pull-down refresh, the operations of swiping right to close the page and swiping left to create a new window have been added, but these newly added operations do not affect the refresh of the page.
[0103] Furthermore, traditional refresh methods are expensive to operate and cannot meet the need for more refined search terms. Furthermore, existing browser refresh methods only update the time or quantity of search results, and do not expand or refine search terms.
[0104] In view of this, the embodiments of the present application provide an information search method, device, electronic device and storage medium. In the present application, not only can the preliminary screening results be displayed through the first search result interface; but also, based on the interactive operation of the object in the first search result interface, search tags for different dimensions of the information to be searched can be further presented in the first search result interface. The search tags presented in the present application are supplementary search information obtained after the search information is expanded based on the initial search content, that is, the present application can expand and refine the search information and present it in the first search result interface in the form of search tags. In this way, the object can directly search for the target tags in these search tags, and then search more accurately. In this process, the object does not need to repeatedly click on the search box to supplement the search terms, but directly selects the search tag to refresh the interface, and can quickly switch between search results of different dimensions. Therefore, it can reduce the path of the object operation while improving the location rate of effective information.
[0105] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application can be combined with each other if there is no conflict.
[0106] like Figure 2 , which is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes two terminal devices 210 and a server 220.
[0107] In the embodiment of the present application, the terminal device 210 includes but is not limited to mobile phones, tablet computers, laptop computers, desktop computers, e-book readers, intelligent voice interaction devices, smart home appliances, car terminals and other devices; the terminal device may be installed with a client related to information search, which may be software (such as a browser, information sharing platform, etc.), or a web page, applet, etc. The server 220 is a background server corresponding to the software or web page, applet, etc., or a server specifically used for information search, which is not specifically limited in this application. The server 220 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0108] It should be noted that the information search method in each embodiment of the present application can be executed by an electronic device, which may be a terminal device 210 or a server 220, that is, the method can be executed by the terminal device 210 or the server 220 alone, or can be executed jointly by the terminal device 210 and the server 220.
[0109] For example, when executed jointly by the terminal device 210 and the server 220, the client on the terminal device 210 can respond to the search operation for the information to be searched and send a corresponding search request to the server 220. After receiving the search request sent by the client, the server 220 determines the initial search content that matches the information to be searched in the search request and feeds it back to the client. Then, the client presents a first search result interface including at least one initial search content.
[0110] Afterwards, the client responds to the interactive operation triggered on the first search result interface and sends an interactive request to the server 220. After receiving the interactive request triggered by the client through the interactive operation on the first search result interface, the server 220 determines at least search tags of different dimensions based on the moving distance of the first operation direction included in the interactive operation and feeds back to the client, and the client displays the search tag in the first search result interface; the client continues to respond to the interactive operation on the first search interface, and the server 220 further detects the moving direction and distance, and determines the target search tag of the object selected based on the moving distance of the second operation direction included in the interactive operation. Then, when the client responds to the end instruction for the above-mentioned interactive operation, it notifies the server 220, and the server 220 filters and sorts the target search content from the initial search content based on the target search tag, and then feeds back to the client, and the client presents a second search result interface including at least one target search content.
[0111] In an optional implementation, the terminal device 210 and the server 220 may communicate via a communication network.
[0112] In an optional implementation, the communication network is a wired network or a wireless network.
[0113] It should be noted that Figure 2 The examples shown are just for illustration. In fact, the number of terminal devices and servers is not limited and is not specifically limited in the embodiments of this application.
[0114] In an embodiment of the present application, when there are multiple servers, the multiple servers can be combined into a blockchain, and the servers are nodes on the blockchain; as disclosed in the embodiment of the present application, the information to be searched, search tags, search content, etc. involved therein can all be saved on the blockchain.
[0115] In addition, the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving and other scenarios.
[0116] The following describes the information search method provided by the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this respect.
[0117] See Figure 3 As shown in FIG, it is an implementation flow chart of an information search method provided in an embodiment of the present application. Taking the client as the execution subject as an example, the specific implementation process of the method is as follows (S31-S33):
[0118] S31: The client presents a first search result interface in response to a search operation for the information to be searched.
[0119] The first search result interface includes: at least one initial search content that matches the information to be searched.
[0120] In an embodiment of the present application, the object can enter a search term in the browser address bar, search box, etc. After triggering the search, the object can enter the search result page corresponding to the search term (i.e., the first search result interface). The search tag is not displayed by default.
[0121] like Figure 4 As shown, it is a schematic diagram of an initial search process in an embodiment of the present application. Figure 4 In the interface shown in (a), the subject can enter the search term "Zhang San" in the search box S40 and then click the search button to trigger the search process for the information to be searched "Zhang San".
[0122] Specifically, after the client responds to the search operation for the information to be searched triggered by the object, it can send a search request to the server, which can include the information to be searched input by the object. Then, after receiving the search request sent by the client, the server will determine the initial search content that matches the information to be searched in the search request and feedback it to the client, and the client will present a first search result interface including at least one initial search content, such as Figure 4 (b) shown.
[0123] The initial search content is based on the information to be searched and is found from the content library. The search results that match the information to be searched can be various types of information such as videos, news, hot topics, pictures, short videos, etc. Due to the limited search results interface, the specific number of contents that can be displayed depends on the size of the interface, and this article does not make specific restrictions. Figure 4 (b) shows three initial search contents, and the third one is not fully displayed (such as the content in the dotted box shown in part S42). The object can view more initial search contents by swiping up, switching content type (such as switching from "All" in S41 to "Video"), etc.
[0124] The content library refers to a database that can store client-related content. In the embodiment of the present application, it can be used to store content information of information search products. The content library can include but is not limited to HBase (a distributed, column-oriented open source database). For example, the content library of a World Wide Web (web) browser can be called a web library.
[0125] S32: In response to the interactive operation triggered on the first search result interface, the client displays at least two search tags of different dimensions in the first search result interface based on the moving distance in the first operation direction included in the interactive operation; and determines the target search tag selected from the at least two search tags based on the moving distance in the second operation direction included in the interactive operation.
[0126] Among them, an interactive operation refers to a continuous operation, that is, an action (such as a continuous gesture operation without releasing the hand in the middle). The interactive operation can produce movement in at least one operation direction during the interaction process. For example, it can be an interactive gesture (touch screen gesture or non-touch screen gesture). Of course, in addition to gestures, it can also be other forms, such as moving the mouse, dragging a control (such as an icon, button), etc.
[0127] Generally, if the object first pulls down the page to trigger the label display, and then clicks to select the label, in this process, the pull-down operation is one action, and the click operation is another action.
[0128] It should be noted that any interactive operation that can generate movement in at least one operating direction is applicable to the embodiments of the present application and is not specifically limited herein.
[0129] In the embodiment of the present application, the number of search tags displayed is associated with the movement distance in the first operation direction. For example, if the movement distances of two interactive operations in the first operation direction are different, the movement distance of the first interactive operation in the first operation direction is a, and the number of search tags displayed is 3, the movement distance of the second interactive operation in the first operation direction is b, and the number of search tags displayed is 6, and so on.
[0130] Optionally, the number of displayed search tags is positively correlated with the moving distance in the first operation direction.
[0131] It should be noted that in the embodiment of the present application, the correlation between the display quantity and the moving distance is positively correlated in the general direction, but the granularity may be different. For example, the display quantity is linearly positively correlated with the moving distance. The greater the moving distance in the first operation direction, the larger the corresponding display quantity; for another example, the display quantity is step-wise positively correlated with the moving distance. The moving distance in the first operation direction is within the first distance range, and the corresponding display quantity is s1. The moving distance in the first operation direction is within the second distance range, and the corresponding display quantity is s2, wherein the lower boundary of the second distance range is greater than or equal to the upper boundary of the first distance range, and s2 is greater than s1, and so on.
[0132] In the embodiment of the present application, each search tag is: supplementary search information obtained by expanding the information to be searched based on the initial search content, and each dimension corresponds to an information expansion direction.
[0133] In the embodiment of the present application, the search tag is generally text, but can also be in the form of an icon, text + icon, etc. The following mainly uses text tags as an example for illustration.
[0134] In this application, the expansion of the search information may be expansion, refinement, etc. The information expansion direction refers to the direction of expansion or refinement of the search information, wherein each information expansion direction may be some preset basic words. For example, when the information to be searched is a certain person, the information expansion direction may be the person's attributes, outputs, and relationships; when the information to be searched is a certain object, the information expansion direction may be the object's attributes, structure, application, etc.; when the information to be searched is a certain hot event, the information expansion direction may be the cause, process, result, impact, relationship, etc. of the event. Different information expansion directions may be set for different information to be searched, which may be determined according to actual conditions, and this article does not make specific limitations. The following mainly uses the three dimensions of attributes, outputs, and relationships as examples for illustration.
[0135] Specifically, after the client responds to the interactive operation triggered by the object on the first search result interface, it can send an interactive request to the server. Then, the server detects the interactive operation of the object in real time, parses the information to be searched, extracts the corresponding search tags of different dimensions, and feeds back the search tags of different dimensions determined for the information to be searched to the client, and the client presents each search tag in the first search result interface.
[0136] In an embodiment of the present application, a label area for displaying search labels, such as a label bar, can be set in the search results interface. The search labels of different dimensions displayed in the label area are search labels of at least one level corresponding to the information to be searched; in every two adjacent levels, the search labels of the next level are obtained by further refining and expanding the search labels of the previous level.
[0137] Based on the above embodiment, the moving distance in the first operation direction may also affect the level of the search tag, and indirectly affect the display quantity of the search tag by affecting the display level of the search tag, such as the display quantity is positively correlated with the moving distance in a step-by-step manner. The moving distance in the first operation direction is within the first distance range, and the corresponding display level is a first-level search tag, and the display quantity is s3. The moving distance in the first operation direction is within the second distance range, and the corresponding display level is a first-level search tag and a second-level search tag, and the corresponding display quantity is s4. The moving distance in the first operation direction is within the third distance range, and the corresponding display level is a first-level search tag, a second-level search tag and a third-level search tag, and the corresponding display quantity is s5. Among them, the lower boundary of the third distance range is greater than or equal to the upper boundary of the second distance range, the lower boundary of the second distance range is greater than or equal to the upper boundary of the first distance range, s5 is greater than s4, s4 is greater than s3, and so on.
[0138] S33: In response to the end instruction for the interactive operation, the client presents a corresponding second search result interface based on the target search tag.
[0139] The second search result interface includes at least one target search content, and the target search content is obtained by screening from the initial search content according to the target search tag.
[0140] In the embodiments of this application, screening from the initial search content specifically refers to selecting some or all of the content library that matches the information to be searched, but is not limited to the initial search displayed in the first search results interface. This article mainly uses the example of "all" to illustrate. For example, if there are 600 initial search results obtained from the initial screening, the target search content refers to: from these 600 initial search contents, combined with the target search tags to conduct a more detailed and accurate search, and thus more effective information.
[0141] Optionally, this application divides search tags into at least two categories. One category is the first-level search tags that have a parent-child relationship with the information to be searched, that is, the first-level search tags are further expanded and refined to the information to be searched. Specifically, the first-level search tags can be: the content tags of the initial search content are segmented according to different dimensions. Figure 5AAs shown, it is a schematic diagram of a first-level search tag in an embodiment of the present application. When the search term input by the object is "Zhang San", the content tags (such as titles) of each initial search content related to Zhang San in the content library can be segmented according to the three dimensions of output, attributes and relationships. Zhang San is an athlete. The attributes can be the information of the person himself, such as age, gender, etc. The output can be the competitions he participated in, the competition record, the awards, etc., and the relationship can be family, friends, etc. Based on these, the output can be X competition, the attributes can be character encyclopedia, and the relationships can be friends, family, etc., which can all be used as first-level search tags. Figure 5A The tag bar S50 in the image displays three dimensions of primary search tags, namely: output dimension - X competition; attribute dimension - encyclopedia; relationship dimension - friends.
[0142] Among them, encyclopedia refers to the general term for knowledge of all disciplines such as astronomy, geography, nature, humanities, religion, faith, literature, etc. In the embodiment of the present application, encyclopedia also refers to a kind of content information. For example, the encyclopedia of the information to be searched refers to the explanation of some words in the search information, and can also introduce celebrities, social phenomena, etc.
[0143] The other type is the secondary search tag that has a parent-child relationship with the primary search tag, that is, each primary search tag has its associated secondary search tag, and the secondary search tag is a further refinement of the primary search tag. Specifically, the secondary search tag can be: determined based on the initial search content that matches the target primary search tag. When determining the secondary search tag, the content tags of the relevant initial search content can be further segmented according to the above dimensions (or other dimensions) in the same way as the primary search tag, or divided according to hot information, etc. Taking the division according to hot information as an example, the hot spots related to the target primary search tag "X competition" include medal table, schedule, replay, related ceremonies (such as opening ceremony, closing ceremony, award ceremony, etc.), mascots, etc., which can all be used as secondary search tags, such as Figure 5B As shown, it is a schematic diagram of a secondary search tag in an embodiment of the present application. In the tag bar S51, three primary search tags are displayed. Figure 5A ,In addition, corresponding to the target first-level search tag “X ,game”, three second-level search tags are displayed, namely: medal, ,schedule and replay.
[0144] It should be noted that the information expansion directions listed above are merely examples and are not specifically limited in this article. Furthermore, the search tags listed above are merely examples and, in practice, can be further divided into finer levels (granularity), such as further displaying third-level search tags associated with second-level search tags, fourth-level search tags associated with third-level search tags, and so on. This article does not impose specific limitations on actual situations and requires specific analysis.
[0145] Optionally, in the case where the search tag includes a primary search tag, an optional implementation of step S32 is as follows:
[0146] In response to the interactive operation triggered on the first search result interface, if the moving distance of the first operation direction included in the interactive operation is the first distance, the client displays at least two first-level search tags of different dimensions in the tag area in the first search result interface.
[0147] Among them, the first-level search tag is: obtained by segmenting the content tag of the initial search content according to different dimensions; the first distance is not less than the first threshold and less than the second threshold, and the second threshold is greater than the first threshold.
[0148] For example, the first threshold is 140px, the second threshold is 180px, and the first distance can be any distance between 140px and 180px (including 140px). The first operation direction can be a vertical direction, such as downward, or upward; the first operation direction can also be a horizontal direction, such as left, right, etc. The following mainly uses the first operation direction of downward as an example for explanation.
[0149] Take the above settings as an example, Figure 6 As shown, it is a schematic diagram of the display process of a first-level search tag listed in the embodiment of this application, wherein the first search result interface is as shown in FIG. Figure 6 As shown in (a), the object slides down from the first screen of the search results page (i.e., the first search results interface), and the first distance of the slide is ≥140px and <180px. During the slide, when the distance from the top of the first card to the bottom of the navigation bar is 140px, at least two first-level search tags related to the search keyword are exposed. Figure 6 The interface (b) in the figure shows three primary search tags: X Competition, Encyclopedia, and Friends.
[0150] In an embodiment of the present application, the moving direction and moving distance of the interactive operation in step S32 can not only affect the display of the search tags, but also affect the selection of the search tags. The object can select one or more search tags among these search tags as target search tags, and then conduct more detailed and accurate content searches.
[0151] Optionally, when determining the target search tag according to the moving distance in the second operation direction, the target search tag may be determined by at least one of the following methods:
[0152] Method 1: Default method: the search tag in the specified order among at least two search tags is used as the target search tag.
[0153] If, in S32 , the moving distance in the second operation direction is less than the third threshold (for example, the moving distance is 0 or can be ignored), selection is made according to the above-mentioned default method.
[0154] If the target search tag includes a target first-level search tag, the first-level search tag in the first specified order among the at least two first-level search tags may be used as the target first-level search tag.
[0155] In the embodiment of the present application, the first specified order refers to a sorting position specified in each primary search tag, such as sorting first (first), sorting second (second), etc. Taking the first specified order as the first as an example, Figure 6 As shown in (b), the first primary search tag "X competition" is selected by default as the target primary search tag.
[0156] Method 2: object selection method. In response to the interactive operation triggered by the object on the first search result interface, the client determines the target search tag selected by the object according to the movement result and the position of each search tag.
[0157] If, in S32 , the moving distance in the second operation direction is greater than the third threshold (for example, the moving distance is 30 px), the above-mentioned second method is selected.
[0158] In an embodiment of the present application, an object can switch the target search tag in the first search result interface through an interactive operation in a second operation direction. The second operation direction can be a vertical direction, such as downward or upward; the second operation direction can also be a horizontal direction, such as left or right. The following mainly uses left or right as an example for illustration. It should be noted that the second operation direction can be different from the first operation direction.
[0159] Optionally, if the target search tag includes a target first-level search tag, the target first-level search tag selected by the object may be determined based on the movement result of the interactive operation triggered by the object moving along the second operation direction and the positions of each first-level search tag;
[0160] For example, when an object triggers an interactive operation, a movement event can be detected by the server (or terminal device). If the movement direction is determined to be the second operation direction, the movement distance in the second operation direction can be determined, and the mapping relationship between the movement distance and the size of the tag area can be analyzed. Furthermore, based on this mapping relationship and the positions of each primary search tag in the tag area, the target primary search tag selected by the object can be determined.
[0161] If the interaction is a movement operation triggered by an interaction gesture (slide gesture), a touch event is generated. Touch events include three types of events: touchstart, touchmove, and touchend. Touchstart is triggered when a finger touches a Document Object Model (DOM) element; touchmove is triggered when a finger slides over a DOM element; and touchend is triggered when a finger moves away from a DOM element.
[0162] In an embodiment of the present application, a touchmove event can be detected. When a touchmove event occurs, the coordinate positions of the two corresponding displacement points (referring to the displacement in the second operation direction) are subtracted, and the movement distance is converted into a percentage of the screen width to form a mapping relationship with the tab bar width. Assuming that the three first-level search tags in the tab bar are distributed in equal proportion (balanced distribution), that is, each occupies 1 / 3 of the tab bar width, then the specific target first-level search tag selected by the object can be determined based on the determined mapping relationship.
[0163] Optionally, the target search tag may be highlighted in the first search result interface to facilitate the subject to clearly identify the currently selected target search tag, so as to trigger the location of valid information more quickly.
[0164] In the embodiment of the present application, there are many ways to highlight, such as highlighting (bold font is used in the figure to indicate highlighting), marking with a special color, marking with a special font, etc. Taking highlighting as an example, Figure 5A 、 Figure 6 As shown in (b), the target search tag is the target first-level search tag "X competition". Figure 5B As shown, the target search tags are the target first-level search tag "X competition" and the target second-level search tag "medal".
[0165] The following describes the above-mentioned embodiments in detail, taking the interactive operation of an object triggered by an interactive gesture as an example:
[0166] Based on the above, the first first-level search tag is selected by default, and the text of the selected search tag is highlighted. In addition, the object can switch between the three first-level search tags by swiping left or right to select the target first-level search tag from the displayed first-level search tags.
[0167] That is, the object can slide left or right to switch the target first-level search label, or it can not slide left or right, and the first first-level search label is selected by default. In addition, the object can continue to slide down. Therefore, after the tab bar and the first-level search label are presented, the subsequent behavior of the object is divided into the following two cases: a) and b)
[0168] Case a: The subject releases his finger, a touchend event is detected, the page is refreshed, and the search results filtered by the selected primary search tag are displayed (the first one is selected by default).
[0169] Optionally, the target search tag is a target first-level search tag; in step S33, an optional implementation is:
[0170] In response to an interface refresh instruction or an end instruction for an interactive operation, the client presents a second search result interface based on a target first-level search tag among at least two first-level search tags; wherein the target search content is filtered from the initial search content based on the target first-level search tag.
[0171] In the embodiment of the present application, the interface refresh instruction can be triggered by clicking the refresh button, or by a specified action, such as a long press, etc., which is not specifically limited in this article. In addition, in addition to triggering the interface refresh instruction alone, the object can also trigger the display of the second search result interface by ending the interactive operation.
[0172] like Figure 7 As shown, it is a schematic diagram of the first second search result interface in an embodiment of the present application. Figure 7 The interface shown in (a) indicates that the object slides down from the first screen of the search results page. The first distance of the slide is ≥140px and <180px. Therefore, it can be displayed in the tab bar of the first search results interface. Figure 7 In the three first-level search tags shown in (a), the first first-level search tag is selected by default as the target first-level search tag. Then, the object releases the object to end the interaction operation. The client responds to the end instruction for the interaction operation and presents the second search result interface according to the default selected target first-level search tag, as shown in FIG. Figure 7 (b) shows the target search content. The target search content is obtained by filtering the initial search content based on the target first-level search tag, as shown in Figure 7 As shown in (b), the current second search result interface displays three target search contents, and the corresponding content titles are "Netizens encounter Zhang San wearing xx hat to participate in X competition", "Zhang San wins first place in X competition", and "After X competition, Zhang San...". The search information and the target first-level search label are highlighted (highlighted in bold) in the content titles.
[0173] In addition, the object can switch search tags by swiping left or right. The specific search tag to be switched to can be determined by the direction and distance of the object sliding. The specific determination process can be referred to the above embodiment, and the repeated parts will not be repeated. The following is an example of several search tag switching processes with reference to the accompanying drawings:
[0174] like Figure 8A As shown, it is a schematic diagram of the first search tag switching method in an embodiment of the present application. Figure 8A The interface (a) in the figure shows that the object triggers the display of the first-level search tag by sliding down the first distance. Figure 8A Interface (b) in the figure shows that after sliding left for the first distance, the object continues to slide left for a distance x1. By subtracting the coordinates of the two corresponding displacement points, the horizontal movement distance x1 is obtained. After converting the movement distance x1 into a percentage of the screen width and forming a mapping relationship with the tab bar width, it can be determined based on the mapping relationship. Through this interactive operation, the default selected target first-level search tag X Competition is switched to Encyclopedia.
[0175] like Figure 8B As shown, it is a schematic diagram of the second search tag switching method in an embodiment of the present application. Figure 8B The interface (a) in the figure shows that the object triggers the display of the first-level search tag by sliding down the first distance. Figure 8B Interface (b) in the figure shows that when the object continues to slide left for a distance x2 after sliding down the first distance, the distance x2 moved is converted into a percentage of the screen width. After forming a mapping relationship with the width of the tab bar, it can be determined based on the mapping relationship. Through this interactive operation, the default selected target first-level search tag X competition can be switched to friends.
[0176] Additionally, if you swipe left by a distance x1 after swiping down the first distance, the default target's first-level search tag, X-Games, will be switched to Encyclopedia. Furthermore, if you swipe left again by a distance (x2-x1), the currently selected target's first-level search tag will be switched from Encyclopedia to Friends.
[0177] In addition, the object can further switch the selected target first-level search label by sliding right, such as Figure 8C As shown, it is a schematic diagram of the third search tag switching method in an embodiment of the present application. Figure 8C The interface (a) in the figure shows that the object triggers the display of the first-level search tag by sliding down the first distance. Figure 8C Interface (b) shows that the subject continues to slide left by a distance of x2 after sliding down the first distance, switching the default selected target level one search label X match to a friend; on this basis, the subject does not let go, but further slides right by a distance of (x2-x1), and finally, the distance moved is the same as Figure 8ASimilarly, also x1, you can switch the currently selected target first-level search tag from friends to encyclopedia again.
[0178] It should be noted that the several tag switching methods listed above are just simple examples. Any method of switching the target search tag through interactive operation is applicable to the embodiments of the present application and is not specifically limited here.
[0179] Case b: The object continues to slide down. When the coordinate position difference between the two displacement points (referring to the displacement in the first operation direction) of the touchmove event is detected to be ≥180px (i.e., the second distance ≥140px), the secondary search tag is displayed, and the first-ranked secondary search tag is selected by default (the object can switch the target secondary search tag by sliding left and right). When the object releases the finger, a touchend event is detected, the page is refreshed, and the search results filtered according to the selected secondary search tag are displayed.
[0180] In the embodiment of the present application, the secondary search tag is a further refinement of the primary search tag. Therefore, its corresponding display method, switching method, etc. are similar to the primary search tag. The example listed in case b is only a feasible implementation method, which will be described in detail below:
[0181] Optionally, the search tag may further include a secondary search tag in addition to the primary search tag. Another optional implementation of step S32 is as follows:
[0182] The client responds to the interactive operation triggered on the first search result interface. If the moving distance in the first operation direction in the interactive operation is the second distance, then when it is determined that the movement reaches the distance corresponding to the first threshold, at least two first-level search tags of different dimensions are displayed in the tag area in the first search result interface, and when it is determined that the movement continues to reach the distance corresponding to the second threshold, at least two second-level search tags associated with the target first-level search tag are displayed in the tag area.
[0183] The target primary search tag may be determined by any of the methods listed above; the secondary search tag is determined based on the initial search content matching the target primary search tag; and the second distance is not less than the second threshold.
[0184] Still taking the above settings as an example, Figure 9 As shown, it is a schematic diagram of the display process of a secondary search tag in an embodiment of the present application. Figure 9 Interface (a) shows that when the object slides down from the first screen of the search results page, the first-level search label is displayed when it slides down to the top of the first card 140px away from the bottom of the navigation bar. Figure 9Interface (b) in the figure shows that after the object slides down to reveal the primary search label bar, if the finger continues to slide down and the movement distance (the total distance the finger slides down) is ≥180px, the secondary search label corresponding to the selected target primary search label will be displayed.
[0185] Specifically, in Figure 9 In (b), three search tags are displayed: output dimension - X competition; attribute dimension - encyclopedia; and relationship dimension - friends. Furthermore, corresponding to the target first-level search tag "X competition", three second-level search tags are displayed: medals, schedule, and replay.
[0186] Similar to the method of determining the target primary search tag, if the target search tag includes a target secondary search tag, the secondary search tag in the second specified order among the at least two secondary search tags can be used as the target secondary search tag.
[0187] The second specified order refers to a sorting position specified in each secondary search tag, such as sorting first (i.e., the first), sorting second (i.e., the second), the middle position, etc. For example, if the second specified order is also the first, Figure 9 As shown in (b), the first secondary search tag "Medal" is selected by default as the target secondary search tag, and the selected tag text is highlighted.
[0188] In addition, the target secondary search tag selected by the object can also be determined based on the movement result of the interactive operation triggered by the object moving along the second operation direction and the position of each secondary search tag. In general, the specific switching method is the same as the switching method of the same-level search tag. For example, the object's finger can also slide left or right to select the corresponding secondary search tag, and the selected tag text is highlighted. Figure 11A As shown, the subject switches the default selected target secondary search label "Medal" to the selected "Schedule" by swiping left a certain distance.
[0189] Optionally, when the target search tag includes a target primary search tag and a target secondary search tag, an optional implementation of step S33 is:
[0190] In response to an interface refresh instruction or an end instruction for an interactive operation, the client presents a second search result interface based on a target first-level search tag among at least two first-level search tags and a target second-level search tag among at least two second-level search tags; wherein the target search content is filtered from the initial search content based on the target first-level search tag and the target second-level search tag.
[0191] It should be noted that this process is similar to the process of presenting the second search result interface when the target search tag listed above is the target first-level search tag. The difference is that when the target search tag includes the target second-level search tag, the search results can be searched more detailed and accurately.
[0192] like Figure 10A As shown, it is a schematic diagram of a gesture trajectory of an interactive gesture in an embodiment of the present application, wherein the gesture trajectory indicates that the object slides down on the first screen of the search results page, and the initial sliding distance (i.e., the first distance) is ≥140px and <180px, so it can be displayed in the tab bar of the first search results interface. Figure 10A Of the three primary search tags shown, the first one is selected by default as the target primary search tag. The subject then continues to slide right. Since swiping right means switching tags to the left, the target primary search tag remains "X Competition." Furthermore, the subject continues to slide downward, with a total sliding distance ≥ 180px (i.e., the second distance ≥ 180px), which then displays the three secondary search tags associated with "X Competition." The first secondary search tag is selected by default, making the target secondary search tag "Medals."
[0193] Then, the subject lets go, ending the interaction operation. The client responds to the end instruction for the interaction operation and presents a second search result interface based on the default selected target primary search tag and target secondary search tag.
[0194] like Figure 10B As shown, it is a schematic diagram of the second search result interface in the embodiment of the present application. Figure 10B , the information to be searched "Zhang San", the target first-level search label "X competition", and the target second-level search label "medal" are presented in the search bar. Figure 10B The interface shown displays three target search contents, with corresponding content titles as "Experts on X competition: Zhang San performed stably and has hope of winning a medal...", "On xx, Zhang San won his first medal in X competition", and "The latest medal list of X competition, Zhang San won again...". The search information, target primary search tags, and target secondary search tags are highlighted (in bold) in the content titles.
[0195] The above listed Figure 10A and Figure 10B , refers to an example of a process of refreshing the interface based on a default target secondary search tag.
[0196] In addition, the object can switch the target secondary search label by swiping left or right. Figure 11AAs shown, it is a schematic diagram of a gesture trajectory of an interactive gesture in an embodiment of the present application, wherein the gesture trajectory indicates that the object slides down the first screen of the search result page to display Figure 11A Of the three primary search tags shown, the first one is selected by default as the target primary search tag. The subject then continues to swipe right, and the target primary search tag remains X Competition. The subject then swipes downward, revealing three secondary search tags associated with X Competition (the first secondary search tag is selected by default, meaning the target secondary search tag is Medals). Without releasing the swipe, the subject swipes a certain distance to the left. This time, based on the mapping relationship, the target secondary search tag is determined to be Schedule.
[0197] Then, the subject lets go, ending the interaction operation. The client responds to the end instruction for the interaction operation and presents a second search result interface based on the default selected target primary search tag and target secondary search tag.
[0198] like Figure 11B As shown, it is a schematic diagram of the third second search result interface in an embodiment of the present application. Figure 11B In the search bar, the information to be searched "Zhang San", the target first-level search label "X competition", and the target second-level search label "schedule" are presented. Figure 11B The interface shown displays three target search contents, with corresponding content titles as "X Competition Zhang San Schedule - Latest Information", "[X Competition is Coming] Zhang San's Last Schedule Opens", and "Today's X Competition Schedule Quick Overview, Zhang San...". The information to be searched, the target primary search label, and the target secondary search label are highlighted (highlighted in bold) in the content titles.
[0199] It should be noted that, taking the second operation direction as right as an example, if on this basis, the object slides 30px to the left, it means sliding -30px to the right, and vice versa. The repetitions will not be repeated.
[0200] Optionally, based on the target search tag obtained from at least two search tags, when presenting the second search result interface, the search box (such as a search box) in the second search result interface can also synchronously present the information to be searched and the target search tag.
[0201] For example, when the subject releases his finger, a refresh is triggered, and the selected target primary search tag and target secondary search tag are brought into the search box and added after the search keyword. Figure 7 As shown in (b), the search box shows "Zhang San X competition"; Figure 10B As shown in the figure, the search box shows "Zhang San X competition medal"; Figure 11B As shown, "Zhang San X game schedule" is displayed in the search box.
[0202] Of course, if there are search tags at a finer level, the same method can be used to determine the target search tag, and the repetitions will not be repeated.
[0203] It should be noted that this article does not make any specific restrictions on the order of various search tags. It can be based on object preferences, degree of relevance to current hot spots, preset dimension order, etc.
[0204] Optionally, the object can further switch the target search tag in the second search result interface by swiping left or right, etc., to update the second search result interface.
[0205] Specifically, in response to the interactive operation of moving along the second operation direction triggered on the second search result interface, the client determines the switched target search tag according to the movement result; and updates the target search content in the second search result interface according to the switched target search tag.
[0206] In this way, when determining the target search tag after switching based on the movement results, it can be determined based on the order of each search tag and the number of slides. In addition, in this way, the switching of the search tags at the most detailed level is generally targeted. For example, the current search box displays the information to be searched, the target first-level search tag and the target second-level search tag, then the most detailed level is the second level. The target second-level search tag can be switched by sliding left and right to update the second search result interface.
[0207] like Figure 12 As shown, it is a schematic diagram of an update method of the second search result interface in an embodiment of the present application. Figure 12 (a) The interface shown switches to Figure 12 (b) When the interface is shown, the "Medals" and "Schedules" are as shown above (as shown above). Figure 11A ) in the tab bar, you can swipe left once. Figure 13 As shown, it is a schematic diagram of another updating method of the second search result interface in the embodiment of the present application. Figure 13 (a) The interface shown switches to Figure 13 (b) When the interface is shown, "Medals" and "Playback" are as shown above (as shown above Figure 11A ) are located in the first and third of the three secondary search tabs in the tab bar. In this way, you can swipe right twice to switch the target secondary search tab and update the second search result interface.
[0208] In the above embodiment, the object can switch the target search tag in the second search result interface through simple interactive operations to further refine the search results. This process does not require the object to re-enter the search term, which can effectively reduce the operation path for the object to obtain more effective information.
[0209] Optionally, on the second search result interface, you can also refresh the search results by pulling down. Figure 1 (a) is similar, such as scrolling down to the bottom of the page. In addition, to further improve the effectiveness of information positioning, the object can also use the same method to present search tags (also called extended tags) in the second search result interface:
[0210] In response to the interactive operation triggered on the second search result interface, the client displays at least two extended tags in the second search result interface to update the target search content based on the target extended tag among the at least two extended tags; each extended tag is: supplementary search information obtained after expanding the search information and the target search tag.
[0211] Specifically, the search tags presented in the second search results interface further expand and refine the searched information and target search tags. The triggering method of the tag bar, switching methods of search tags, and access methods are similar to those in the above embodiment, differing only in the "further expansion and refinement of the searched information and target search tags" and "further expansion and refinement of the searched information." The repetitions are not repeated here.
[0212] like Figure 14 , which is a schematic diagram of the fourth second search result interface in an embodiment of the present application. Figure 14 In the second search results interface (a), scrolling down 140px will display the second search results interface (b). In interface (b), a tab bar will be displayed, which displays the search tags obtained by expanding "Zhang San X game replay". Similarly, the object can be continued to be pulled down, swiped left and right, or released, etc. The specific process is similar to the above embodiment, and the repeated parts will not be repeated here.
[0213] In this way, the object can directly view more detailed search tags in the second search result interface, without returning to the previous interface, to search for more accurate information, thus reducing the object operation path.
[0214] The following is a brief introduction to the information search method in the embodiment of the present application from the server side:
[0215] See Figure 15 FIG. 1 is a flowchart of an implementation of an information search method provided in an embodiment of the present application. Taking a server as an example, the specific implementation process of the method is as follows:
[0216] S151: After receiving the search request sent by the client, the server determines the initial search content that matches the information to be searched in the search request and feeds it back to the client, so that the client presents a first search result interface including at least one initial search content.
[0217] like Figure 4 As shown, after the client responds to the search operation for the information to be searched triggered by the object, a search request can be sent to the server. The search request can include the information to be searched input by the object, and then the server performs initial content screening, and finds content matching the information to be searched from the content library as the initial search content. These initial search contents can also be sorted according to certain rules and fed back to the client, and the client displays the top-ranked initial search contents in the current first search result interface.
[0218] For example, the server uses a search index algorithm to obtain the object search query (i.e., the information to be searched), completes word segmentation, queries the transposed index, and obtains the initial screening results of the "character matching" pages from the web library as the initial search content. Then, the server scores and sorts the initial screening results, returns the search results of the first search result interface after sorting, and is displayed by the client, such as Figure 4 The interface (b) is shown in .
[0219] It should be noted that this article does not specifically limit the algorithm for result scoring and sorting, such as using a rank scoring and sorting algorithm or other algorithms.
[0220] S152: After the server receives the interaction request triggered by the client through the interactive operation on the first search result interface, it determines at least two search tags of different dimensions based on the moving distance of the first operation direction included in the interactive operation and feeds back to the client, so that the client displays at least two search tags in the first search result interface.
[0221] Each search tag is supplementary search information obtained by expanding the information to be searched based on the initial search content, and each dimension corresponds to an information expansion direction.
[0222] Optionally, the search tag includes a first-level search tag; in step S152, the first-level search tag is determined and fed back in the following manner:
[0223] First, the server segments the content tags of the initial search content according to different dimensions to obtain at least two first-level search tags; then, when the server detects a movement event and moves along the first operation direction to a distance corresponding to the first threshold, it feeds back at least two first-level search tags to the client.
[0224] For example, if the first operation direction is vertical and the first threshold is 140px, when the server determines that the vertical movement distance of the first screen has reached 140, it can read data from the web library and perform first-level search tag segmentation (build_index algorithm) based on the query's attributes, outputs, and relationships. For the query "Zhang San" as an example, the three first-level search tags corresponding to the attributes, outputs, and relationships are Encyclopedia, X Competition, and Family.
[0225] Optionally, the search tag includes a primary search tag and a secondary search tag; in step S152, the secondary search tag is determined and fed back in the following manner:
[0226] First, based on the initial search content that matches the target primary search tag, at least two secondary search tags associated with the target primary search tag are determined. Specifically, this process can be performed after determining the primary search tag and then pre-extracted in combination with each primary search tag. Furthermore, upon detecting a motion event and movement along a first operation direction to a distance corresponding to a second threshold, the server feeds back the at least two secondary search tags to the client, where the second threshold is greater than the first threshold. For detailed implementations, please refer to the above embodiments, and any repetitions will not be repeated.
[0227] Taking an interactive gesture as an example, a touch screen gesture triggers a touch event, and thus the touch event can be detected based on the underlying HyperText Markup Language 5.0 (HTML5).
[0228] In the embodiment of the present application, the behaviors that need to be detected are long tap and move, which are analyzed as follows:
[0229] Decomposition of long tap: If no touchmove or touchend event occurs within a long period of time after touchstart occurs, it can be determined that a long press gesture has been triggered.
[0230] Decomposition of move: After touchstart occurs, a touchmove event occurs to determine that a move gesture (slide gesture) is triggered. When the touchmove event occurs, the moving direction and moving distance can be detected to further trigger the client to display the search tag and switch the search tag. The specific process of displaying the search tag and switching the search tag according to the moving direction and moving distance can be found in the above embodiment, and the repeated parts will not be repeated.
[0231] S153: After the server filters out the target search content from the initial search content based on the target search tag obtained from at least two search tags, sorts it, and then feeds it back to the client, so that the client presents a second search result interface including at least one target search content in response to an end instruction for an interaction operation.
[0232] Among them, the target search tag is selected from at least two search tags based on the moving distance of the second operation direction included in the interaction operation.
[0233] In the embodiment of the present application, the determination of the target search tag can be specifically executed by the client (that is, determined by the client based on the moving distance of the second operation direction included in the interaction operation), or can be executed by the server (that is, determined by the server based on the moving distance of the second operation direction included in the interaction operation). The following mainly takes the server execution as an example:
[0234] Optionally, the target search tag obtained from at least two search tags is determined by the following method:
[0235] When the server detects a movement event and along the second operation direction, it determines the mapping relationship between the moving distance and the size of the tag area for displaying search tags; furthermore, based on the mapping relationship and the positions of each search tag, it determines the target search tag selected from at least two search tags. For the specific implementation method, reference can be made to the above embodiments, and the repeated parts will not be elaborated.
[0236] Refer to Figure 16 As shown, it is an interaction timing diagram between a client and a server in an embodiment of the present application, which is mainly introduced briefly from two aspects: object terminal presentation (client) and background technology (server). The specific implementation process of this method is as follows:
[0237] First, the object inputs a search term to trigger a search; the client transmits information to the server (such as the search request listed above); furthermore, the server identifies the search term and obtains a preliminary screening search result page; the server returns the display information related to the preliminary screening search result page to the client; the client displays the search result page (that is, the first search result interface).
[0238] Taking the search term "Zhang San" as an example for illustration: The object inputs the search term "Zhang San" on the search start page to trigger a search. At this time, the server identifies the search term and obtains a preliminary screening search result page. The object enters the preliminary screening search result page, and the regular search results are displayed by default, and the tags are not displayed by default.
[0239] The subject then scrolls down the page; the client sends a command to the server (such as the interactive request described above); the server detects the direction and distance of the subject's finger movement on the screen in real time; after determining that the vertical movement distance on the home screen is 140 pixels, the server parses the search term and extracts the first-level search tags: A, B, C, and their corresponding second-level search tags: A-1, A-2, A-3, B-1, B-2, B-3, C-1, C-2, C-3. The server then returns these first-level search tags as display information to the client, which then presents the first-level search tag bar.
[0240] Specifically, when an object slides down from the first screen, and the server detects that the coordinate position difference between the two displacement points of the vertically moving touchmove event is ≥140px and ≤180px, the server decomposes the first-level search tag and its corresponding second-level search tag according to the three dimensions of query word attributes, output, and relationship, displays the first-level search tags on the front end, and selects the first tag by default.
[0241] Take the query term "Zhang San" as an example: the three first-level search tags corresponding to the three dimensions of attributes, outputs, and relationships are: X competition (A), Encyclopedia (B), and Family (C). The second-level search tags corresponding to the first-level search tag X competition are: Medals (A-1), Schedule (A-2), and Replay (A-3).
[0242] On this basis, the object can be swiped left or right to switch between the three first-level search tags. For example, if the object is swiped left or right to select a first-level search tag A, then the subsequent operations can be divided into the following two cases:
[0243] Case a: The subject releases his finger, a touchend event is detected, the page is refreshed, and the search results filtered by the selected first-level search tag A are displayed.
[0244] Case b: The object continues to slide down. When the coordinate difference between the two displacement points of the touchmove event is detected to be ≥180px, the secondary search label is displayed.
[0245] In case b, the user continues to slide down, and the client sends instructions to the server. The server detects the direction and distance of the object's finger moving on the screen in real time; the server determines that the vertical movement distance on the first screen is 180px, and sends display information to the client (secondary search tags A-1, A-2, A-3); the client presents the secondary search tag bar (displaying secondary search tags A-1, A-2, A-3); the object slides left or right to select a secondary search tag A-1, releases the finger, and the client sends instructions to the server (such as the end instruction for the interactive operation). The server scores and ranks the results of the initial screening, and feeds back the display information (referring to the score ranking) to the client. Finally, the client presents the new search results (i.e., the second search result interface).
[0246] In the embodiment of the present application, a sliding gesture and semantic analysis of keywords are used to quickly switch search results of different dimensions. The convenient gesture is combined with semantic analysis and recommendation algorithms to efficiently present information, helping users reduce the operation path and quickly locate useful information.
[0247] Based on the same inventive concept, the embodiment of the present application also provides an information search device. Figure 17 As shown, it is a schematic diagram of the structure of an information search device 1700, which may include:
[0248] A first response unit 1701 is configured to present a first search result interface in response to a search operation for the information to be searched, where the first search result interface includes: at least one initial search content that matches the information to be searched;
[0249] Second response unit 1702 is configured to, in response to an interactive operation triggered on the first search results interface, display at least two search tags of different dimensions on the first search results interface based on a movement distance in a first operation direction included in the interactive operation; and determine, based on a movement distance in a second operation direction included in the interactive operation, a target search tag selected from the at least two search tags; wherein the number of search tags displayed is associated with the movement distance in the first operation direction; each search tag is supplementary search information obtained by expanding the search information based on the initial search content, with each dimension corresponding to an information expansion direction;
[0250] Display unit 1703 is used to respond to the end instruction for the interactive operation and present a corresponding second search result interface based on the target search tag. The second search result interface includes at least one target search content, which is filtered from the initial search content based on the target search tag.
[0251] Optionally, the number of displayed search tags is positively correlated with the moving distance in the first operation direction.
[0252] Optionally, the search tag includes a first-level search tag; the second response unit 1702 is specifically configured to:
[0253] If the moving distance in the first operation direction is the first distance, at least two first-level search tags of different dimensions are displayed in the tag area of the first search result interface;
[0254] Among them, the first-level search tag is: obtained by segmenting the content tag of the initial search content according to different dimensions; the first distance is not less than the first threshold and less than the second threshold, and the second threshold is greater than the first threshold.
[0255] Optionally, the search tag includes a primary search tag and a secondary search tag; the second response unit 1702 is specifically configured to:
[0256] If the moving distance in the first operation direction is the second distance, then when it is determined that the movement reaches the distance corresponding to the first threshold, at least two first-level search tags of different dimensions are displayed in the tag area of the first search result interface, and when it is determined that the movement continues to reach the distance corresponding to the second threshold, at least two second-level search tags associated with the target first-level search tag are displayed in the tag area;
[0257] Among them, the first-level search tag is obtained by segmenting the content tag of the initial search content according to different dimensions; the second-level search tag is determined based on the initial search content matching the target first-level search tag; the second distance is not less than the second threshold, and the second threshold is greater than the first threshold.
[0258] Optionally, the target search tag is a target first-level search tag; the display unit 1703 is specifically used to:
[0259] A second search result interface is presented based on a target first-level search tag among the at least two first-level search tags; wherein the target search content is obtained by filtering from the initial search content based on the target first-level search tag.
[0260] Optionally, the target search tag includes a target primary search tag and a target secondary search tag; the display unit 1703 is specifically configured to:
[0261] A second search result interface is presented based on a target first-level search tag among at least two first-level search tags and a target second-level search tag among at least two second-level search tags; wherein the target search content is obtained by filtering from the initial search content based on the target first-level search tag and the target second-level search tag.
[0262] Optionally, the display unit 1703 is further configured to determine the target search tag by at least one of the following methods:
[0263] If the moving distance in the second operation direction is less than a third threshold, the search tag in a specified order among the at least two search tags is used as a target search tag;
[0264] If the moving distance in the second operation direction is not less than the third threshold, the selected target search tag is determined according to the moving result and the positions of the various search tags.
[0265] Optionally, the display unit 1703 is specifically configured to:
[0266] If the target search tag includes a target first-level search tag, the first-level search tag in the first specified order among the at least two first-level search tags is used as the target first-level search tag; the first-level search tag is obtained by segmenting the content tag of the initial search content according to different dimensions;
[0267] If the target search tag includes a target secondary search tag, the secondary search tag in the second specified order among the at least two secondary search tags is used as the target secondary search tag; the secondary search tag is determined based on the initial search content matching the target primary search tag.
[0268] Optionally, the first responding unit 1701 is further configured to:
[0269] The search box in the first search result interface displays the information to be searched;
[0270] The display unit 1703 is also used for:
[0271] The search box in the second search result interface presents the information to be searched and the target search tag.
[0272] Optionally, the second responding unit 1702 is further configured to:
[0273] The target search tag is highlighted in the first search result interface.
[0274] Optionally, the device further comprises:
[0275] A first updating unit 1704 is configured to, in response to an interactive operation of moving along a second operation direction triggered on the second search result interface, determine a target search tag after switching according to the movement result;
[0276] According to the switched target search tag, the target search content in the second search result interface is updated.
[0277] Optionally, the device further comprises:
[0278] The second updating unit 1705 is used to display at least two extended tags in the second search result interface in response to the interactive operation triggered on the second search result interface, so as to update the target search content based on the target extended tag among the at least two extended tags; each extended tag is: supplementary search information obtained after expanding the search information and the target search tag.
[0279] Based on the same inventive concept, the embodiment of the present application also provides an information search device. Figure 18 As shown, it is a schematic diagram of the structure of another information search device 1800, which may include:
[0280] The first feedback unit 1801 is configured to, upon receiving a search request sent by a client, determine initial search content that matches the information to be searched in the search request, and feed back the content to the client, so that the client presents a first search result interface including at least one initial search content;
[0281] The second feedback unit 1802 is configured to, upon receiving an interaction request triggered by an interaction operation on the first search result interface by the client, determine at least two search tags of different dimensions based on a movement distance in a first operation direction included in the interaction operation, and feed the tags back to the client, so that the client displays at least two search tags on the first search result interface, each search tag being supplementary search information obtained by expanding the search information based on the initial search content, with each dimension corresponding to an information expansion direction;
[0282] The third feedback unit 1803 is used to filter and sort the target search content from the initial search content based on the target search tag obtained from the at least two search tags, and then feed it back to the client, so that the client responds to the end instruction of the interactive operation and presents a second search result interface including at least one target search content; wherein the target search tag is selected from the at least two search tags based on the moving distance of the second operation direction included in the interactive operation.
[0283] Optionally, the search tag includes a first-level search tag; the second feedback unit 1802 is further configured to determine and feedback the first-level search tag in the following manner:
[0284] Segment the content tags of the initial search content according to different dimensions to obtain at least two first-level search tags;
[0285] When a movement event is detected and the user moves along the first operation direction to a distance corresponding to a first threshold, at least two first-level search tags are fed back to the client.
[0286] Optionally, the search tag includes a primary search tag and a secondary search tag; the second feedback unit 1802 is further configured to determine and feedback the secondary search tag in the following manner:
[0287] Determining at least two secondary search tags associated with the target primary search tag based on the initial search content matching the target primary search tag;
[0288] When a motion event is detected and the user moves along the first operation direction to a distance corresponding to a second threshold, at least two secondary search tags are fed back to the client, and the second threshold is greater than the first threshold.
[0289] Optionally, the third feedback unit 1803 is further configured to determine a target search tag obtained from the at least two search tags by:
[0290] When detecting a movement event and the movement is in a second operation direction, determining a mapping relationship between a movement distance in the second operation direction and a size of a label area, where the label area is used to display a search label;
[0291] Based on the mapping relationship and the positions of the various search tags, a selected target search tag is determined.
[0292] In the present application, not only can the preliminary screening results be displayed through the first search result interface, but search tags for different dimensions of the information to be searched can also be further presented in the first search result interface based on the interactive operation of the object in the first search result interface; and the presented search tags are supplementary search information obtained after expanding the information to be searched based on the initial search content, that is, the present application can expand and refine the information to be searched and present it in the first search result interface in the form of search tags. In addition, the number of search tags displayed in the first search result interface is associated with the moving distance along the first operation direction in the interactive operation of the object. In this way, the object can also directly control the number of supplementary search information to be viewed through interactive operations, and the object can directly search for the target tag among these search tags, thereby searching more accurately. In this process, the object does not need to repeatedly click the search box and manually enter the supplementary search information in the search box. Instead, based on the moving distance along the second operation direction, the object selects the search tag to supplement the search term to achieve automatic supplementation of the search term. In this way, the object can directly select the search tag to refresh the interface and quickly switch between search results of different dimensions. Therefore, the location rate of effective information can be improved while reducing the path of the object operation.
[0293] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0294] After introducing the information search method and apparatus according to an exemplary embodiment of the present application, an electronic device according to another exemplary embodiment of the present application will be introduced next.
[0295] Those skilled in the art will appreciate that various aspects of the present application can be implemented as systems, methods, or program products. Therefore, various aspects of the present application can be specifically implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation that combines hardware and software aspects, which may be collectively referred to herein as a "circuit," "module," or "system."
[0296] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server, such as Figure 2 In this embodiment, the structure of the electronic device can be as follows: Figure 19 As shown, it includes a memory 1901 , a communication module 1903 and one or more processors 1902 .
[0297] Memory 1901 is used to store computer programs executed by processor 1902. Memory 1901 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and programs required for running instant messaging functions, while the data storage area may store various instant messaging messages and operating instruction sets.
[0298] Memory 1901 may be a volatile memory, such as random-access memory (RAM); a non-volatile memory, such as read-only memory, flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or any other medium capable of carrying or storing a desired computer program in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 1901 may be a combination of the aforementioned memories.
[0299] The processor 1902 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 1902 is configured to implement the above-mentioned information search method when calling the computer program stored in the memory 1901 .
[0300] The communication module 1903 is used to communicate with terminal devices and other servers.
[0301] The specific connection medium between the memory 1901, the communication module 1903 and the processor 1902 is not limited in the embodiment of the present application. Figure 19 In the embodiment, the memory 1901 and the processor 1902 are connected via a bus 1904. Figure 19 The connections between the other components are shown in bold lines for illustration only and are not intended to be limiting. The bus 1904 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 19 The diagram shows a single thick line, but this does not indicate that there is only one bus or one type of bus.
[0302] The memory 1901 stores a computer storage medium, which stores computer executable instructions. The computer executable instructions are used to implement the information search method of the embodiment of the present application. The processor 1902 is used to execute the above-mentioned information search method, such as Figure 15 shown.
[0303] In another embodiment, the electronic device may also be other electronic devices, such as Figure 2 The terminal device 210 shown in FIG. In this embodiment, the structure of the electronic device can be as follows: Figure 20 As shown, it includes: a communication component 2010, a memory 2020, a display unit 2030, a camera 2040, a sensor 2050, an audio circuit 2060, a Bluetooth module 2070, a processor 2080 and other components.
[0304] The communication component 2010 is used to communicate with the server. In some embodiments, it may include a wireless fidelity (WiFi) module. The WiFi module is a short-range wireless transmission technology. Electronic devices can help users send and receive information through the WiFi module.
[0305] The memory 2020 can be used to store software programs and data. The processor 2080 executes various functions and data processing of the terminal device 210 by running the software programs or data stored in the memory 2020. The memory 2020 may include a high-speed random access memory and may also include a non-volatile memory, such as at least two disk storage devices, a flash memory device, or other volatile solid-state storage devices. The memory 2020 stores an operating system that enables the terminal device 210 to run. In the present application, the memory 2020 can store the operating system and various application programs, and may also store a computer program that executes the information search method of the embodiment of the present application.
[0306] The display unit 2030 can also be used to display information input by the user or provided to the user, as well as a graphical user interface (GUI) of various menus of the terminal device 210. Specifically, the display unit 2030 may include a display screen 2032 disposed on the front of the terminal device 210. The display screen 2032 may be configured in the form of a liquid crystal display, a light-emitting diode, etc. The display unit 2030 can be used to display the search result interface (such as the first search result interface and the second search result interface) in the embodiments of the present application.
[0307] The display unit 2030 can also be used to receive input digital or character information and generate signal input related to the user settings and function control of the terminal device 210. Specifically, the display unit 2030 may include a touch screen 2031 arranged on the front of the terminal device 210, which can collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.
[0308] The touch screen 2031 can be covered on the display screen 2032, or the touch screen 2031 and the display screen 2032 can be integrated to realize the input and output functions of the terminal device 210. The integrated display screen can be simply called a touch screen. In this application, the display unit 2030 can display applications and corresponding operation steps.
[0309] Camera 2040 can be used to capture still images, and users can publish images captured by camera 2040 through an application. Camera 2040 can be one or more. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to processor 2080 for conversion into a digital image signal.
[0310] The terminal device may further include at least one sensor 2050, such as an acceleration sensor 2051, a distance sensor 2052, a fingerprint sensor 2053, and a temperature sensor 2054. The terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.
[0311] The audio circuit 2060, speaker 2061, and microphone 2062 provide an audio interface between the user and the terminal device 210. The audio circuit 2060 can convert received audio data into electrical signals and transmit them to the speaker 2061, which then converts the signals into sound signals for output. The terminal device 210 may also be equipped with a volume button for adjusting the volume of the sound signals. Meanwhile, the microphone 2062 converts the collected sound signals into electrical signals, which are then received by the audio circuit 2060 and converted into audio data. The audio data is then output to the communication component 2010 for transmission to, for example, another terminal device 210, or to the memory 2020 for further processing.
[0312] The Bluetooth module 2070 is used to exchange information with other Bluetooth devices having a Bluetooth module through the Bluetooth protocol. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 2070 to exchange data.
[0313] The processor 2080 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing software programs stored in the memory 2020 and calling data stored in the memory 2020, it performs various functions of the terminal device and processes data. In some embodiments, the processor 2080 may include one or more processing units; the processor 2080 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 2080. In this application, the processor 2080 can run the operating system, application programs, user interface display and touch response, as well as the information search method of the embodiment of the application. In addition, the processor 2080 is coupled to the display unit 2030.
[0314] In some possible implementations, various aspects of the information search method provided by the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to perform the steps of the information search method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device may perform the following steps: Figure 2 or Figure 15 Follow the steps shown in .
[0315] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0316] The program product of the embodiment of the present application may be a portable compact disc read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with a command execution system, apparatus, or device.
[0317] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with a command execution system, apparatus, or device.
[0318] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0319] The computer program for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The computer program can be executed entirely on the user electronic device, partially on the user electronic device, as a separate software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In cases involving remote electronic devices, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).
[0320] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0321] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. An information search method, characterized in that: The method includes: In response to a search operation for the information to be searched, presenting a first search result interface, the first search result interface including: at least one initial search content matching the information to be searched; In response to an interactive operation triggered on the first search result interface, at least two search tags of different dimensions are displayed on the first search result interface based on a movement distance in a first operation direction included in the interactive operation; and based on a movement distance in a second operation direction included in the interactive operation, a target search tag is determined to be selected from the at least two search tags; wherein the number of search tags displayed is associated with the movement distance in the first operation direction; each search tag is: supplementary search information obtained by expanding the information to be searched based on the initial search content, and each dimension corresponds to an information expansion direction; In response to an end instruction for the interactive operation, a corresponding second search result interface is presented based on the target search tag, and the second search result interface includes at least one target search content, and the target search content is filtered from the initial search content according to the target search tag.
2. The method according to claim 1, wherein The number of displayed search tags is positively correlated with the moving distance of the first operation direction.
3. The method according to claim 1, wherein The search tags include a primary search tag; The displaying of at least two search tags of different dimensions in the first search result interface based on the moving distance of the first operation direction included in the interactive operation includes: If the moving distance of the first operation direction is the first distance, at least two first-level search tags of different dimensions are displayed in the tag area of the first search result interface; The first-level search tag is obtained by segmenting the content tag of the initial search content according to the different dimensions; the first distance is not less than a first threshold and less than a second threshold, and the second threshold is greater than the first threshold.
4. The method according to claim 1, wherein The search tags include primary search tags and secondary search tags; The displaying of at least two search tags of different dimensions in the first search result interface based on the moving distance of the first operation direction included in the interactive operation includes: If the moving distance in the first operation direction is the second distance, then when it is determined that the movement reaches the distance corresponding to the first threshold, at least two first-level search tags of different dimensions are displayed in the tag area of the first search result interface, and when it is determined that the movement continues to reach the distance corresponding to the second threshold, at least two second-level search tags associated with the target first-level search tag are displayed in the tag area; Among them, the first-level search tag is obtained by segmenting the content tag of the initial search content according to the different dimensions; the second-level search tag is determined based on the initial search content that matches the target first-level search tag; the second distance is not less than the second threshold, and the second threshold is greater than the first threshold.
5. The method according to claim 3, wherein The target search tag is a target first-level search tag; and presenting a second search result interface based on the target search tag includes: The second search result interface is presented according to a target first-level search tag among the at least two first-level search tags; wherein the target search content is obtained by filtering from the initial search content according to the target first-level search tag.
6. The method according to claim 4, wherein The target search tag includes the target primary search tag and the target secondary search tag; and presenting the second search result interface based on the target search tag includes: The second search result interface is presented based on the target first-level search tag among the at least two first-level search tags and the target second-level search tag among the at least two second-level search tags; wherein the target search content is filtered from the initial search content based on the target first-level search tag and the target second-level search tag.
7. The method according to any one of claims 1 to 6, wherein: The determining, based on the moving distance of the second operation direction included in the interactive operation, a target search tag selected from the at least two search tags includes: If the moving distance in the second operation direction is less than a third threshold, the search tag in the specified order among the at least two search tags is used as the target search tag; If the moving distance of the second operation direction is not less than a third threshold, the selected target search tag is determined according to the moving result and the positions of each search tag.
8. The method according to claim 7, wherein The step of using the search tags in a specified order among the at least two search tags as the target search tag includes: If the target search tag includes a target first-level search tag, the first-level search tag in the first specified order among the at least two first-level search tags is used as the target first-level search tag; the first-level search tag is obtained by segmenting the content tag of the initial search content according to the different dimensions; If the target search tag includes a target secondary search tag, the secondary search tag located in the second specified order among at least two secondary search tags is used as the target secondary search tag; the secondary search tag is determined based on the initial search content matching the target primary search tag.
9. The method according to any one of claims 1 to 6, wherein: The presenting of the first search result interface in response to the search operation for the information to be searched further includes: The search box in the first search result interface presents the information to be searched; The presenting of a second search result interface based on the target search tag obtained from the at least two search tags further includes: The search box in the second search result interface presents the information to be searched and the target search tag.
10. The method according to any one of claims 1 to 6, wherein: The method further comprises: The target search tag is highlighted in the first search result interface.
11. The method according to any one of claims 1 to 6, wherein: The method further comprises: In response to an interactive operation of moving along a second operation direction triggered on the second search result interface, determining a target search tag after switching according to the movement result; The target search content in the second search result interface is updated according to the switched target search tag.
12. The method according to any one of claims 1 to 6, wherein: The method further comprises: In response to an interactive operation triggered on the second search result interface, at least two extended tags are displayed in the second search result interface to update the target search content based on a target extended tag among the at least two extended tags; each extended tag is: supplementary search information obtained after expanding the information to be searched and the target search tag.
13. An information search method, characterized in that: The method includes: After receiving a search request sent by a client, determining initial search content that matches the information to be searched in the search request, and feeding back the content to the client, so that the client presents a first search result interface including at least one of the initial search content; Upon receiving an interaction request triggered by the client through an interaction operation on the first search result interface, at least two search tags of different dimensions are determined based on a movement distance in a first operation direction included in the interaction operation, and the tags are fed back to the client, so that the client displays the at least two search tags on the first search result interface, each search tag being supplementary search information obtained by expanding the information to be searched based on the initial search content, with each dimension corresponding to an information expansion direction; Based on the target search tag obtained from the at least two search tags, the target search content is screened and sorted from the initial search content, and then fed back to the client, so that the client responds to the end instruction for the interactive operation and presents a second search result interface including at least one of the target search contents; wherein, the target search tag is selected from the at least two search tags based on the moving distance of the second operation direction included in the interactive operation.
14. The method according to claim 13, wherein The search tag includes a primary search tag; and determining at least two search tags of different dimensions based on the movement distance of the first operation direction included in the interactive operation and feeding back the results to the client includes: Segmenting the content tags of the initial search content according to the different dimensions to obtain at least two first-level search tags; When a movement event is detected and the user moves along the first operation direction to a distance corresponding to a first threshold, the at least two first-level search tags are fed back to the client.
15. The method according to claim 14, wherein The search tags include a primary search tag and a secondary search tag; and determining at least two search tags of different dimensions based on the movement distance of the first operation direction included in the interactive operation and feeding back the results to the client include: Determining at least two secondary search tags associated with the target primary search tag based on initial search content matching the target primary search tag; When a movement event is detected and the user moves along the first operation direction to a distance corresponding to a second threshold, the at least two secondary search tags are fed back to the client, and the second threshold is greater than the first threshold.
16. The method according to any one of claims 13 to 15, wherein: Determine the target search tag selected from the at least two search tags by: When detecting a movement event and the movement is in a second operation direction, determining a mapping relationship between a movement distance in the second operation direction and a size of a label area, the label area being used to display a search label; Based on the mapping relationship and the positions of the various search tags, the selected target search tag is determined.
17. An information search device, characterized in that: include: A first response unit, configured to present a first search result interface in response to a search operation for the information to be searched, wherein the first search result interface includes: at least one initial search content matching the information to be searched; a second response unit for, in response to an interactive operation triggered on the first search result interface, displaying at least two search tags of different dimensions in the first search result interface based on a movement distance in a first operation direction included in the interactive operation; and determining, based on a movement distance in a second operation direction included in the interactive operation, a target search tag selected from the at least two search tags; wherein the number of search tags displayed is associated with the movement distance in the first operation direction; each search tag is: supplementary search information obtained by expanding the information to be searched based on the initial search content, and each dimension corresponds to an information expansion direction; A display unit is used to present a corresponding second search result interface based on the target search tag in response to an end instruction for the interactive operation, wherein the second search result interface includes at least one target search content, and the target search content is filtered from the initial search content according to the target search tag.
18. An information search device, characterized in that: include: A first feedback unit is configured to, upon receiving a search request sent by a client, determine initial search content that matches the information to be searched in the search request, and feed back the content to the client, so that the client presents a first search result interface including at least one of the initial search content; a second feedback unit configured to, upon receiving an interaction request triggered by the client through an interaction operation on the first search result interface, determine at least two search tags of different dimensions based on a movement distance in a first operation direction included in the interaction operation, and feed the tags back to the client, so that the client displays the at least two search tags on the first search result interface, each search tag being supplementary search information obtained by expanding the information to be searched based on the initial search content, with each dimension corresponding to an information expansion direction; A third feedback unit is configured to filter and sort target search content from the initial search content based on the target search tag obtained from the at least two search tags, and then feed the target search content back to the client, so that the client presents a second search result interface including at least one of the target search contents in response to an end instruction for the interactive operation; wherein the target search tag is selected from the at least two search tags based on a moving distance in a second operation direction included in the interactive operation.
19. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to perform the steps of any one of the methods of claims 1 to 16.
20. A computer-readable storage medium, characterized in that The method comprises a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the methods of claims 1 to 16.
21. A computer program product, characterized in that The method comprises a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the methods described in claims 1 to 16.
Citation Information
Patent Citations
Search method, search device and mobile terminal
CN104462423A
Search result display method and device, equipment and medium
CN113486253A