Search method, device, and medium

By setting multiple filter options in the search bar and obtaining configuration information for cascading filter options, the space occupation and confusion of web search pages when there are too many conditions is solved, and the user experience is improved.

CN114329165BActive Publication Date: 2025-08-08GUANGDONG INSPUR BIG DATA RES CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111675317.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-08-08
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

When there are too many search conditions for web search pages, they take up more space and the page is confused, which affects the user experience.

Method used

Set multiple filter options in the same search bar. By detecting user operations, display filter options, obtain the configuration information of the filter options, determine whether there are cascading fields, obtain cascading filter options and search, and reduce page space usage.

Benefits of technology

It realizes the selection of multiple cascading filter options in the same search bar, reducing the page space occupied by search conditions, preventing page confusion, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114329165B_ABST
    Figure CN114329165B_ABST
Patent Text Reader

Abstract

The present application discloses a search method, device, and medium, including: when detecting the operation of a user clicking on a search bar, displaying all filter items so that the user can select the corresponding filter item. Obtaining the configuration information of the selected filter item so as to create the corresponding UI control and obtain the search keyword according to the filter item selected by the user. Determining whether there is a cascade field in the configuration information, if there is a cascade field, obtaining the cascade filter item according to the cascade field and obtaining the configuration information of the selected filter item again, thereby achieving the purpose of selecting multiple filter items in the same search bar. When the user finishes selecting, the search results are obtained according to the selected filter item and the cascade filter item. This solution sets multiple filter items in the same search bar, so that the user can select multiple filter items with a cascade relationship in the same search bar for search, thereby reducing the page space occupied by the search conditions and preventing the occurrence of disordered search pages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer search, and in particular to a search method, device, and medium. Background Art

[0002] With the development of computer technology, users are increasingly using web search functions in their daily lives. Currently, the search list on the web page generally consists of query controls, display controls, and operation controls. Figure 1 This is a schematic diagram of a commonly used web search page, such as Figure 1 As shown, conventional query controls usually display all search conditions on the search page. When there are many search conditions, more search page space will be occupied and the search page will be cluttered.

[0003] Therefore, it can be seen that how to provide a newer search method to solve the problem that too many search conditions take up too much space and the search page is messy is an issue that those skilled in the art need to solve urgently. Summary of the Invention

[0004] The purpose of this application is to provide a search method, device, and medium to solve the problem that too many search conditions take up too much space and cause disordered search pages, thereby improving the user experience.

[0005] To solve the above technical problems, the present application provides a search method, which includes:

[0006] When a user clicks on the search bar, filter options are displayed for easy selection.

[0007] Acquire configuration information of the selected filter item, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field;

[0008] Determining whether the cascade field exists in the configuration information;

[0009] If the cascade field exists, obtaining the cascade filter item according to the cascade field and returning to the step of obtaining the configuration information of the selected filter item;

[0010] If the cascade field does not exist, the search results are obtained according to the selected filter item and the cascade filter item.

[0011] Preferably, before the step of detecting the user clicking on the search bar, the method further includes:

[0012] Creating a mapping table between the UI control type and the UI control;

[0013] Render the corresponding UI control according to the UI control type of each filter item and the mapping table.

[0014] Preferably, after the step of creating a mapping table between the UI control type and the UI control, the method further includes:

[0015] Modify the styles of the UI controls to unify the styles of the UI controls.

[0016] Preferably, obtaining search results according to the selected filter item and the cascade filter item includes:

[0017] Determine whether the UI control type is an input control;

[0018] If it is an input control, when a search operation is detected, the search results are obtained according to the input keyword, and a search tag is generated according to the keyword;

[0019] If it is not an input control, when a selection operation is detected, the search results are obtained according to the keywords of the selected filter item and the cascade filter item, and the search tag is generated according to the keywords.

[0020] Preferably, the search operation includes: a search shortcut key or a search button is triggered.

[0021] Preferably, after the step of obtaining search results according to the selected filter item and the cascade filter item, the method further includes:

[0022] When the operation of clicking the search label is detected, the search results are cleared and the process returns to the step of detecting the operation of the user clicking the search bar.

[0023] Preferably, after the step of obtaining search results according to the selected filter item and the cascade filter item, the method further includes:

[0024] When an operation of deleting a search tag is detected, the keyword corresponding to the search tag is cleared and the search result is reacquired.

[0025] To solve the above technical problems, the present application further provides a search device, comprising:

[0026] A display module is used to display filter items for easy selection when detecting that a user clicks on the search bar;

[0027] An acquisition module, configured to acquire configuration information of a selected filter item, wherein the configuration information includes: a name of the filter item, a keyword of the filter item, a UI control type of the filter item, and a cascade field;

[0028] a determination module, configured to determine whether the cascade field exists in the configuration information; if so, obtain the cascade filter item according to the cascade field and return to the step of obtaining the configuration information of the selected filter item;

[0029] A search module is configured to obtain search results based on the selected filter item and the cascade filter item.

[0030] To solve the above technical problems, the present application further provides a search device, comprising a memory for storing a computer program;

[0031] A processor is used to implement the steps of the search method when executing the computer program.

[0032] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the search method are implemented.

[0033] The search method provided by the present application includes: when it is detected that the user clicks on the search bar, all filter items are displayed so that the user can select the corresponding filter item. The configuration information of the selected filter item is obtained, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field, so as to create the corresponding UI control and obtain the search keyword according to the filter item selected by the user. It is determined whether there is a cascade field in the configuration information. If there is a cascade field, the cascade filter item is obtained according to the cascade field and the configuration information of the selected filter item is obtained again, thereby achieving the purpose of selecting multiple filter items in the same search bar. When the user finishes selecting, the search results are obtained according to the selected filter item and the cascade filter item. It can be seen that the search method provided by the present application, by setting multiple filter items in the same search bar, enables the user to select multiple filter items with cascade relationships in the same search bar for search, reduces the page space occupied by the search conditions, and prevents the occurrence of disordered search pages.

[0034] In addition, the present application also provides a search device and medium, which correspond to the above method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0036] Figure 1 This is a schematic diagram of a commonly used web search page;

[0037] Figure 2 A schematic diagram of an application scenario of a search method provided in an embodiment of the present application;

[0038] Figure 3 A flowchart of a search method provided in an embodiment of the present application;

[0039] Figure 4 A structural diagram of a search device provided in an embodiment of the present application;

[0040] Figure 5 This is a structural diagram of another search device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0042] The core of this application is to provide a search method, device, and medium.

[0043] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0044] Figure 2 A schematic diagram of an application scenario of a search method provided in an embodiment of the present application is shown in FIG. Figure 2As shown, in the application scenario of the search method provided by the present application, a search bar is displayed on the search page. When it is detected that the user clicks on the search bar, all filter items are popped up for the user to select. After the user completes the selection operation, the configuration information of the selected filter item is obtained, and by judging whether there is a cascade field in the configuration information to determine whether there is a filter item cascaded with the filter item selected by the user, if so, all cascade filter items are popped up for the user to select, and the filter item selected by the user is displayed in the search bar in the form of a label. If there is a filter item associated with the popped-up cascade filter item, the corresponding cascade filter items are continued to pop up until there is no cascade field in the cascade filter item. Relevant information is searched according to the filter item selected by the user. In a specific implementation, in addition to the filter item that requires the user to select, the search page also supports the user to manually enter the search content. If the user manually enters the search content, when the user performs the search operation (for example, pressing the enter key or clicking the search button with the mouse), the query is performed according to the search content entered by the user; if the user searches through the filter item and does not manually enter the search content, the query is performed according to the filter item selected by the user after selecting the filter item.

[0045] Figure 3 A flowchart of a search method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, a search method provided by this application includes:

[0046] S10: When it is detected that the user clicks the search bar, filter items are displayed for easy selection.

[0047] In the specific implementation, the solution provided by this application encapsulates all search conditions in the search bar, such as Figure 2 As shown, only the search bar is displayed on the page to ensure a clear and neat search page. When a user clicks the search bar, all filter options are displayed for easy selection. It is understood that the filter options can be displayed in a drop-down menu that appears when clicking the search bar, can be displayed in the search bar, or can be displayed separately in other locations on the search page, and this is not limited here.

[0048] It is understandable that the filter items are the attributes of the information the user wants to find, such as: the resource domain to which the data belongs, the available partition, virtual data center, virtual private cloud, status, name, etc. to which the data belongs. It is understandable that the user can select one filter item or multiple filter items, and there is no limitation here.

[0049] S11: Acquire configuration information of the selected filter item, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field.

[0050] After the user selects a filter item, configuration information of the filter item is obtained. The user can select the filter item by clicking or by operating the keyboard.

[0051] It can be understood that the configuration information of the filter items is passed in by the front-end developer. The configuration information is stored in the form of an array, file, or linked list. Each filter item has attribute information such as label, model, type, show, linkage, option, etc.

[0052] Among them, the label attribute is the name of the filter item, which is used to indicate the field name of the filter item;

[0053] The model attribute is the keyword of the filter item, which is used to filter the keywords passed into the backend query conditions;

[0054] The type attribute is the UI control type of the filter item, which is used to indicate the query box component type. The query box component type is determined based on different type fields. The type fields include: input, select, checkbox, casader, and dateplcker. Input indicates an input control, select indicates a selection control, checkbox indicates a multiple-select control, casader indicates a cascade selection control, and dateplcker indicates a date selection control.

[0055] The show attribute is used to control the display of query items. The type of the show attribute is a Boolean value or a function;

[0056] The linkage attribute is the cascade field of the filter item, which is used to indicate the filter item cascaded with the current filter item;

[0057] The option attribute is an optional item for the filter item, which is used to represent the options in the select box. It can be understood that the option attribute value can be text data containing each option, and the text data can be stored in an array or a linked list; the option attribute value can also be a background interface, which will automatically trigger the execution operation to obtain option information and enter the option information into the selection box.

[0058] Furthermore, before the user selects a filter item, a mapping table between UI control types and UI controls needs to be created so as to render corresponding UI controls according to the UI control type of each filter item.

[0059] S12: Determine whether there is a cascade field in the configuration information.

[0060] S13: If there is a cascade field, obtain the cascade filter item according to the cascade field and return to the step of obtaining configuration information of the selected filter item.

[0061] S14: If the cascade field does not exist, obtain search results based on the selected filter item and the cascade filter item.

[0062] In a specific implementation, when it is detected that the user selects any filter item in the search bar, the system background performs the following operations:

[0063] Get the configuration information of the selected filter item, including: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field;

[0064] Retrieve the show attribute from the configuration to determine whether the filter item should be displayed. If true, retrieve the type attribute from the configuration and render the UI control corresponding to the filter item based on the type attribute. Note that if the UI control or the type attribute is a select or checkbox, retrieve the option attribute from the configuration. If the options attribute is an array, directly assign the data in the array to the select or checkbox. If options is a function or other backend interface, call that method or interface to retrieve the option information before writing it to the select box.

[0065] In order to ensure that cascade search is possible, it is also necessary to obtain the cascade field in the configuration information. If the cascade field has a value, obtain the cascade filter item corresponding to the cascade field, and obtain the attribute information of the cascade filter item again. Execute the above steps until there are no cascade filter items.

[0066] When there is no cascading filter item, the search results are obtained based on the currently selected filter item and the keywords in the cascading filter item.

[0067] Furthermore, in order to improve the aesthetics of the search page, after creating corresponding UI controls for multiple filter items, the styles of the UI controls may be modified to unify the styles of the UI controls.

[0068] It is understandable that when the user completes the selection, it is also necessary to determine whether the UI control type is an input control; if it is an input control, when a search operation is detected, the search results are obtained based on the input keywords, and a search tag is generated based on the keywords; if it is not an input control, when a selection operation is detected, the search results are obtained based on the keywords of the selected filter items and cascade filter items, and a search tag is generated based on the keywords.

[0069] In the present embodiment, a search method is provided, which includes: when it is detected that a user clicks on a search bar, all filter items are displayed so that the user can select the corresponding filter item. The configuration information of the selected filter item is obtained, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field, so as to create the corresponding UI control and obtain the search keyword according to the filter item selected by the user. It is determined whether there is a cascade field in the configuration information. If there is a cascade field, the cascade filter item is obtained according to the cascade field and the configuration information of the selected filter item is obtained again, thereby achieving the purpose of selecting multiple filter items in the same search bar. When the user finishes selecting, the search results are obtained according to the selected filter item and the cascade filter item. It can be seen that the search method provided by the present application, by setting multiple filter items in the same search bar, enables the user to select multiple filter items with a cascade relationship in the same search bar for search, reduces the page space occupied by the search conditions, and prevents the occurrence of disordered search pages.

[0070] In a specific implementation, in order to facilitate user operation, before the step of detecting the user clicking the search bar, the following steps are further included:

[0071] Create a mapping table between UI control types and UI controls;

[0072] Render the corresponding UI controls according to the UI control type and mapping table of each filter item.

[0073] Create a mapping table based on the correspondence between UI control types and UI controls, and specify the UI controls corresponding to the attribute information of different UI control types in the mapping table. For example: if the UI control type of the filter item (that is, the attribute information of the type field) is input, the filter item is rendered as an input control; if it is select, the filter item is rendered as a selection control; if it is checkbox, the filter item is rendered as a multiple-select control; if it is casader, the filter item is rendered as a cascade selection control; if it is dateplcker, the filter item is rendered as a date selection control.

[0074] Furthermore, the styles of the UI controls corresponding to the respective filter items may be modified to unify the styles of the UI controls. It is understood that users may select the appropriate style of the UI controls according to their preferences and usage habits.

[0075] In this embodiment, a mapping table between UI control types and UI controls is created, and the corresponding UI controls are rendered according to the UI control type and mapping table for each filter item. The styles of the UI controls are then modified to unify the styles of the UI controls. This improves the aesthetics of the search page and thus enhances the user experience.

[0076] It is understandable that after the user completes the selection, the type of UI control finally selected is different, and the corresponding system acquired operations are also different.

[0077] Based on the above embodiment, obtaining search results according to the selected filter item and the cascade filter items includes:

[0078] Determine whether the UI control type is an input control;

[0079] If it is an input control, when a search operation is detected, the search results are obtained based on the input keywords, and a search tag is generated based on the keywords;

[0080] If it is not an input control, when a selection operation is detected, the search results are obtained based on the keywords of the selected filter items and cascade filter items, and a search tag is generated based on the keywords.

[0081] It is understood that a search tag can be generated based on the keyword and displayed in the search bar to facilitate the user to determine whether the keyword corresponding to the current search result is incorrect. The keywords used in this embodiment are all the keywords selected by the user, that is, including the keywords of the selected filter item and all cascaded filter items connected to the selected filter item.

[0082] In a specific implementation, the search operation may include the user clicking a search button with a mouse, or the user pressing a search shortcut key, etc., which is not limited here, and further search shortcut keys can be set by the user.

[0083] In this embodiment, different search operations are performed on different filter items to further improve the user experience.

[0084] In a specific implementation, after the user completes the current search, he or she may not find satisfactory results or may want to search for other information.

[0085] Based on the above embodiment, after the step of obtaining search results according to the selected filter items and the cascade filter items, the method further includes:

[0086] When an operation of clicking the search label is detected, the search results are cleared and the process returns to the step of detecting the operation of the user clicking the search bar.

[0087] When the user wants to retype or reselect the search criteria, he only needs to click the search label in the search bar. The clicked search label will disappear, and the background system will re-render the UI control for the user to select.

[0088] Furthermore, when the user wants to delete a search condition, he needs to click the delete button of the search tag corresponding to the search condition or delete it directly through the shortcut key. When the background system detects the operation of deleting the search tag, it clears the keywords corresponding to the search tag and re-acquires the search results.

[0089] It is understandable that when the user modifies or deletes the search conditions, the user can also re-acquire keywords based on the current search conditions so as to obtain search results based on the new keywords without the user having to perform additional search operations.

[0090] In this embodiment, when a user clicks a search tag, the user is prompted to reselect search criteria. When a user deletes a search tag, the keyword corresponding to the search tag is cleared and search results are retrieved again. By providing different responses to different user actions, it is easier for the user to search again, thereby improving the user experience.

[0091] In the above embodiments, the search method is described in detail. This application also provides corresponding embodiments of the search device. It should be noted that this application describes the embodiments of the device from two perspectives: one is based on the functional module perspective, and the other is based on the hardware perspective.

[0092] Figure 4 A structural diagram of a search device provided in an embodiment of the present application, such as Figure 4 As shown, the device includes:

[0093] The display module 10 is used to display the filter items for easy selection when detecting that the user clicks the search bar;

[0094] An acquisition module 11 is configured to acquire configuration information of the selected filter item, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field;

[0095] A determination module 12 is configured to determine whether a cascade field exists in the configuration information. If a cascade field exists, the determination module 12 obtains the cascade filter item according to the cascade field and returns to the step of obtaining the configuration information of the selected filter item.

[0096] The search module 13 is configured to obtain search results according to the selected filter items and the cascade filter items.

[0097] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.

[0098] In addition, the search device provided in this embodiment further includes: a rendering unit, a format modification unit, a re-search unit, and a deletion unit;

[0099] The rendering unit is used to create a mapping table between UI control types and UI controls, and render corresponding UI controls according to the UI control type of each filter item and the mapping table.

[0100] The format modification unit is used to modify the style of the UI controls to unify the styles of the UI controls.

[0101] The re-retrieval unit is used to clear the search results and return to the step of detecting the user's click on the search bar when the operation of clicking the search label is detected.

[0102] The deleting unit is used to clear the keywords corresponding to the search tag and re-acquire the search results when an operation of deleting the search tag is detected.

[0103] The search device provided by the present application includes: when it is detected that the user clicks on the search bar, all filter items are displayed to facilitate the user to select the corresponding filter item. The configuration information of the selected filter item is obtained, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field, so as to create the corresponding UI control and obtain the search keyword according to the filter item selected by the user. It is determined whether there is a cascade field in the configuration information. If there is a cascade field, the cascade filter item is obtained according to the cascade field and the configuration information of the selected filter item is obtained again, thereby achieving the purpose of selecting multiple filter items in the same search bar. When the user finishes selecting, the search result is obtained according to the selected filter item and the cascade filter item. It can be seen that the search device provided by the present application, by setting multiple filter items in the same search bar, enables the user to select multiple filter items with a cascade relationship in the same search bar for search, reduces the page space occupied by the search conditions, and prevents the occurrence of disordered search pages.

[0104] Figure 5 A structural diagram of another search device provided in an embodiment of the present application, such as Figure 5 As shown, the search device includes: a memory 20 for storing computer programs;

[0105] The processor 21 is configured to implement the step of obtaining the search condition selected by the user as described in the above embodiment when executing the computer program.

[0106] The device provided in this embodiment that applies the search method provided in this application may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0107] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0108] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the search method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to attribute information of the filter items, etc.

[0109] In some embodiments, the search device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0110] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the search device, and may include more or fewer components than shown in the figure.

[0111] The search device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method:

[0112] When a user clicks on the search bar, filter options are displayed for easy selection.

[0113] Get the configuration information of the selected filter item, where the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field;

[0114] Determine whether there is a cascade field in the configuration information;

[0115] If there is a cascade field, then obtain the cascade filter item according to the cascade field and return to the step of obtaining the configuration information of the selected filter item;

[0116] If there is no cascading field, the search results are obtained based on the selected filter item and the cascading filter item.

[0117] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiment.

[0118] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0119] The above is a detailed introduction to a search method, device, and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0120] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

Claims

1. A search method, characterized in that: include: When a user clicks on the search bar, filter options are displayed for easy selection. Acquire configuration information of the selected filter item, wherein the configuration information includes: the name of the filter item, the keyword of the filter item, the UI control type of the filter item, and the cascade field; Determine whether the cascade field in the configuration information has a value; If the cascade field has a value, obtaining the cascade filter item corresponding to the cascade field, taking the cascade filter item as the selected filter item, and returning to the step of obtaining the configuration information of the selected filter item; If the cascade field has no value, obtaining search results according to the selected filter item and the cascade filter item; A search tag is generated based on the keyword used in the search, and the search tag is displayed in the search bar so that the user can determine whether the keyword corresponding to the current search result is incorrect.

2. The search method according to claim 1, wherein: Before the step of detecting the user clicking on the search bar, the method further includes: Creating a mapping table between the UI control type and the UI control; Render the corresponding UI control according to the UI control type of each filter item and the mapping table.

3. The search method according to claim 2, wherein: After the step of creating a mapping table between the UI control type and the UI control, the method further includes: Modify the styles of the UI controls to unify the styles of the UI controls.

4. The search method according to claim 1, wherein: The obtaining search results according to the selected filter item and the cascade filter item includes: Determine whether the UI control type is an input control; If it is the input control, when a search operation is detected, the search results are obtained according to the input keyword, and a search tag is generated according to the keyword; If it is not the input control, when a selection operation is detected, the search results are obtained according to the keywords of the selected filter item and the cascade filter item, and the search tag is generated according to the keywords.

5. The search method according to claim 4, characterized in that The search operation includes: a search shortcut key or a search button is triggered.

6. The search method according to claim 1, wherein: After the step of obtaining search results according to the selected filter item and the cascade filter item, the method further includes: When the operation of clicking the search label is detected, the search results are cleared and the process returns to the step of detecting the operation of the user clicking the search bar.

7. The search method according to claim 1, wherein: After the step of obtaining search results according to the selected filter item and the cascade filter item, the method further includes: When an operation of deleting a search tag is detected, the keyword corresponding to the search tag is cleared and the search result is reacquired.

8. A search device, characterized in that: include: A display module is used to display filter items for easy selection when detecting that a user clicks on the search bar; An acquisition module, configured to acquire configuration information of a selected filter item, wherein the configuration information includes: a name of the filter item, a keyword of the filter item, a UI control type of the filter item, and a cascade field; a determination module, configured to determine whether the cascade field in the configuration information has a value; if the cascade field has a value, obtain the cascade filter item corresponding to the cascade field, use the cascade filter item as the selected filter item, and return to the step of obtaining the configuration information of the selected filter item; if the cascade field has no value, obtain search results based on the selected filter item and the cascade filter item; A search module, configured to obtain search results based on the selected filter item and the cascade filter item; The search device is further configured to generate a search tag based on the keywords used during the search, and display the search tag in the search bar so that the user can determine whether the keyword corresponding to the current search result is incorrect.

9. A search device, characterized in that: including a memory for storing a computer program; A processor, configured to implement the steps of the search method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the search method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data display method and device and electronic equipment

    CN111124211A

  • Data search method, computing device and readable medium

    CN113254730A