Search form generation method, search form-based query method and device
By analyzing the user's historical search information, a search form with multiple form item cards is generated and displayed, which solves the problems of uneven search form layout and poor user experience in the existing technology, and realizes a search experience that is beautiful and in line with user habits.
Patent Information
- Application Number
- CN202411067255.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-08-05
AI Technical Summary
Existing search forms have uneven layouts and poor aesthetics when there are many search items, and fail to conform to users' search habits, resulting in a poor user experience.
By analyzing the user's historical form search information, counting the search index value of each form item, generating and displaying a search form with multiple form item cards, adjusting the display order and content of the form items based on the index value sorting and user behavior data, and supporting card-based adaptive display.
The generated search form is beautiful in form, fits the user's search habits, improves the user's query experience, and facilitates data query.
Smart Images

Figure CN119474484B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a method for generating a search form, and a query method and device based on the search form. Background Art
[0002] Search forms can help users quickly search for content, but existing search forms usually include multiple forms such as title + input box, selection box, time selector, etc. When there are many search items, the search form does not look very beautiful. In addition, the inconsistent length of search titles easily leads to uneven search form layout. Summary of the Invention
[0003] The purpose of this application is to provide a method for generating a search form, a query method and device based on the search form, which generates and displays a search form including multiple form item cards by analyzing, sorting and other processing the user's historical form search information. The form is beautiful and more in line with the user's search habits, making it convenient for users to query data and improving the user's query experience based on the search form.
[0004] In a first aspect, the present application provides a method for generating a search form, the method comprising: obtaining a user's historical form search information; the historical form search information comprising: search form items and corresponding historical search content within a specified time period; based on the historical form search information, counting the search index value of each search content under each form item; the search index value comprising one of the following: number of searches, search frequency; based on the search index value of each search content under each form item, determining a form item sorting result and content to be displayed corresponding to each form item; the content to be displayed is used as target search information or as search selection reference information; according to the form item sorting result, based on preset form item configuration data and the content to be displayed corresponding to each form item, generating a search form containing multiple form item cards and displaying the cards, so that the user can perform a query process based on the search form.
[0005] Furthermore, the above-mentioned step of determining the form item ranking result based on the search index value of each search content under each form item includes: for each form item, summing the search index value of each search content under the form item to obtain the total search index value under the form item; and sorting according to the size of the total search index value corresponding to each form item to obtain the form item ranking result.
[0006] Furthermore, the above-mentioned step of determining the content to be displayed corresponding to each form item in the table based on the search index value of each search content under each form item includes: for each form item, determining the search content with the highest search index value among all historical search contents under the form item as the first content to be displayed; filtering out the target content entered through the input box from all historical search contents, and determining the content with the highest search index value among all target contents as the second content to be displayed; and determining the specified target content with the latest search time as the third content to be displayed.
[0007] Furthermore, the form item configuration data includes: style information corresponding to the form items, and the number of form items displayed per row; and the step of generating and displaying a search form including multiple form item cards according to the form item sorting result, based on preset form item configuration data, and the content to be displayed corresponding to each form item, includes: generating form item cards based on the style information corresponding to the form items and the content to be displayed corresponding to each form item; and sequentially arranging and displaying the form item cards corresponding to the respective form items according to the form item sorting result and the number of form items displayed per row, thereby generating a search form including multiple form item cards.
[0008] Furthermore, the step of generating a form item card based on the style information corresponding to the form item and the content to be displayed corresponding to each form item includes: for each form item, based on the style information corresponding to the form item, displaying the form item name, the first content to be displayed, the second content to be displayed, and the third content to be displayed at different positions of the initialization card, respectively, to obtain a form item card; and when the first content to be displayed and the second content to be displayed are consistent, displaying only the first content to be displayed.
[0009] Furthermore, the above-mentioned step of displaying the form item name, the first content to be displayed, the second content to be displayed, and the third content to be displayed at different positions of the initialization card includes: when it is detected that the content to be displayed on the initialization card exceeds the range of the initialization card, the width of the initialization card is automatically expanded, and the widths of other cards are reduced until all the content to be displayed does not exceed the range of the initialization card.
[0010] Furthermore, before the step of sequentially arranging and displaying the form item cards corresponding to the respective form items, the method further includes: detecting whether there is an associated form item in the form item configuration data; if so, generating a form item card corresponding to the associated form item.
[0011] In the second aspect, the present application also provides a query method based on a search form, which displays the search form through a graphical user interface; the search form is generated by the search form generation method as described in the first aspect; the method includes: monitoring the search content change event in the search form to determine the target search content; querying based on the target search content to determine the query results.
[0012] Furthermore, the form item cards in the above-mentioned search form display the first content to be displayed, the second content to be displayed, and the third content to be displayed; the steps of monitoring the search content change event in the search form and determining the target search content include: responding to the touch operation on the second content to be displayed or the third content to be displayed, updating the first content to be displayed to the second content to be displayed or the third content to be displayed, and determining the second content to be displayed or the third content to be displayed as the target search content.
[0013] In a third aspect, the present application also provides a search form generation device, the device including: an information acquisition module for acquiring the user's historical form search information; the historical form search information includes: search form items and corresponding historical search content within a specified time period; a statistics module for counting the search index value of each search content under each form item based on the historical form search information; the search index value includes one of the following: number of searches, search frequency; a sorting content determination module for determining the form item sorting result and the content to be displayed corresponding to each form item based on the search index value of each search content under each form item; the content to be displayed is used as target search information or as search selection reference information; a display generation module for generating and displaying a search form containing multiple form item cards according to the form item sorting result, based on preset form item configuration data, and the content to be displayed corresponding to each form item, so that the user can perform a query process based on the search form.
[0014] In a fourth aspect, the present application also provides a query device based on a search form, which displays the search form through a graphical user interface; the search form is generated by the search form generation method as described in the first aspect; the device includes: a monitoring module, which is used to monitor the search content change events in the search form and determine the target search content; a query module, which is used to query based on the target search content and determine the query results.
[0015] In a fifth aspect, the present application also provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the methods described in the first and second aspects above.
[0016] In a sixth aspect, the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the methods described in the first and second aspects above.
[0017] In the search form generation method, search form-based query method and device provided by the present application, the user's historical form search information is first obtained; the historical form search information includes: search form items and corresponding historical search content within a specified time period; then, based on the historical form search information, the search index value of each search content under each form item is counted; the search index value includes one of the following: number of searches, search frequency; based on the search index value of each search content under each form item, the form item sorting result and the content to be displayed corresponding to each form item are determined; the content to be displayed is used as target search information or as search selection reference information; finally, according to the form item sorting result, based on the preset form item configuration data and the content to be displayed corresponding to each form item, a search form containing multiple form item cards is generated and displayed for the user to conduct a query process based on the search form. The present application generates and displays a search form including multiple form item cards by analyzing, sorting and other processing the user's historical form search information. The form is beautiful and more in line with the user's search habits, which is convenient for users to query data and improves the user's query experience based on the search form. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 A flowchart of a method for generating a search form provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of content to be displayed in a form item card provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of a search representation provided in an embodiment of the present application;
[0022] Figure 4 A flowchart of a search form-based query method provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of a drop-down input box provided in an embodiment of the present application;
[0024] Figure 6 A structural block diagram of a search form generation device provided in an embodiment of the present application;
[0025] Figure 7A structural block diagram of a query device based on a search form provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will clearly and completely describe the technical solutions of this application in conjunction with the embodiments. 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.
[0028] Existing search forms usually include a title + input box, selection box, time selector, and other forms. When there are many search items, the search form does not look very attractive. In addition, the inconsistent length of search titles easily leads to an uneven search form layout. Moreover, it does not take into account the user's search habits, resulting in a poor user experience.
[0029] Based on this, the embodiment of the present application provides a method for generating a search form, a query method and a device based on the search form. To facilitate understanding of the embodiment, the method for generating a search form disclosed in the embodiment of the present application is first introduced in detail.
[0030] The backend processes the user search behavior data stored in the database and passes it to the frontend. The frontend displays the search form in the form of a card. The card-style form items support content adaptation and automatic width expansion. Based on the analysis of user behavior data, the form items are sorted by frequency of use. For each form item, the most recent n (customizable) search contents and the most frequently searched contents in the past month are displayed.
[0031] Figure 1 This is a flowchart of a method for generating a search form provided in an embodiment of the present application. This method can be applied to search engine systems in various scenarios, such as a doctor-specific system in the medical field, a system for recording or retrieving patient-related information, a government system, an accounting system, etc. The above-mentioned method for generating a search form specifically includes the following steps:
[0032] Step S102: Acquire the user's historical form search information; the historical form search information includes: search form items and corresponding historical search content within a specified time period;
[0033] For example, historical form search information includes search form items and corresponding historical search content within the past month. For a doctor-only system in the medical field, search form items may include: hospital district, visit type, visit department, visit number, visit time, discharge time, etc. The historical search content corresponding to the hospital district includes: test hospital, North Hospital, etc.; visit types include: outpatient department, inpatient department, etc.; visit departments include: orthopedics, gastroenterology, cardiology, etc.
[0034] Step S104: Counting the search index value of each search content under each form item based on the historical form search information; the search index value includes one of the following: the number of searches, the search frequency;
[0035] This article uses the hospital area form item as an example. The same applies to other form items:
[0036] The multiple historical search contents included in the hospital area form are: search content 1, search content 2, and search content 3; the search index value under each search content is counted separately, for example, the number of searches under the three search contents is: 1, 4, and 3.
[0037] Step S106: determining the form item ranking result and the content to be displayed corresponding to each form item based on the search index value of each search content under each form item; the content to be displayed is used as target search information or as search selection reference information;
[0038] In specific implementation, the total search index value corresponding to each form item can be further calculated based on the search index value of each search content under each form item counted in the previous step, and then sorted by size to determine the form item sorting result.
[0039] Further, based on the search index value of the search content under each form item, multiple contents to be displayed corresponding to each form item can be determined. For example, the content with the highest search index value among all historical search contents is determined as the first content to be displayed; the target content entered through the input box is filtered out from all historical search contents, and the content with the highest search index value among all target contents is determined as the second content to be displayed; and the specified target content with the latest search time is determined as the third content to be displayed.
[0040] Step S108 : According to the form item sorting result, based on the preset form item configuration data and the content to be displayed corresponding to each form item, a search form containing multiple form item cards is generated and displayed for the user to perform a query process based on the search form.
[0041] The form item configuration data includes style information corresponding to the form items and the number of form items to be displayed per row. For example, each row may display four or six form items as specified, and each form item is rendered as a card according to a preset style. Each form item card displays the content determined to be displayed.
[0042] The search form generation method provided in the embodiment of the present application generates and displays a search form including multiple form item cards by analyzing, sorting, and other processing the user's historical form search information. The form is beautiful in form and more in line with the user's search habits, making it convenient for the user to query data and improving the user's query experience based on the search form.
[0043] An embodiment of the present application also provides a method for generating a search form, which focuses on describing the historical search information analysis process and the card display process.
[0044] The above step of determining the form item ranking results based on the search index value of each search content under each form item includes:
[0045] For each form item, the search index value of each search content under the form item is summed to obtain the total search index value under the form item; and the form items are sorted according to the size of the total search index value corresponding to each form item to obtain the form item sorting result.
[0046] That is, the total search index values corresponding to different form items in all search form items within a specified time period are counted; and the form items are sorted according to the total search index values corresponding to the different form items to obtain the form item sorting results.
[0047] Usually, form items with larger search index values are displayed in front.
[0048] The above step of determining the content to be displayed corresponding to each form item according to the search index value of each search content under each form item includes:
[0049] For each form item, the search content with the highest search index value among all historical search contents under the form item is determined as the first content to be displayed; the target content entered through the input box is filtered out from all historical search contents, and the content with the highest search index value among all target contents is determined as the second content to be displayed; the specified target content with the latest search time is determined as the third content to be displayed.
[0050] like Figure 2As shown, in the form item "Consulting Department", "Orthopedics" is the first content to be displayed; the second content to be displayed is displayed after "Most Used", and the third content to be displayed is displayed after "Hot Word 1-Hot Word 5". "Hot Word 1-Hot Word 5" displays the five most recent search records. If it is the same search record, it is only counted once. For example, the most recent search record is "other, hospitalization, outpatient, outpatient, hospitalization, emergency, emergency, physical examination, physical examination", and the most recent five times should be physical examination, emergency, hospitalization, outpatient, and other. By displaying multiple contents at the same time according to the user's search habits, users can be assisted in quickly searching for related content.
[0051] Furthermore, the form item configuration data includes: style information corresponding to the form items, and the number of form items to be displayed per row; and the steps of generating and displaying a search form containing multiple form item cards based on the form item sorting results, the preset form item configuration data, and the content to be displayed corresponding to each form item, include:
[0052] (1) Generate a form item card based on the style information corresponding to the form item and the content to be displayed corresponding to each form item;
[0053] Specifically, for each form item, based on the style information corresponding to the form item, the form item name, the first content to be displayed, the second content to be displayed, and the third content to be displayed are displayed at different positions of the initialization card to obtain a form item card; when the first content to be displayed and the second content to be displayed are consistent, only the first content to be displayed is displayed.
[0054] When it is detected that the content to be displayed on the initialization card exceeds the range of the initialization card, the width of the initialization card is automatically expanded and the widths of other cards are reduced until all the content to be displayed does not exceed the range of the initialization card.
[0055] (2) According to the form item sorting results and the number of form items displayed in each row, the form item cards corresponding to each form item are arranged and displayed in sequence to generate a search form containing multiple form item cards.
[0056] During specific implementation, the front-end initializes the search form according to the form item configuration data and displays it in the form of a card. It supports customization of the number of form items displayed in each row and the background color of the card. The size of each initial card remains consistent. When it is detected that the text of a card exceeds the card range, the width of the card will be automatically expanded, and the width of other cards will be appropriately reduced until all search text content does not exceed the card, and the width of each row is always kept at 100%.
[0057] When a user search history exists, the front-end displays the user's most frequently searched content within the past month and the most recent n (customizable) search records in the search form, sorting the search form items by frequency of use. Before a search item is entered, the card displays the most frequently searched content prompt and the most recent n (customizable) search records. The user can directly click on the search content to search. Each search item is sorted from left to right on the page in descending order of frequency based on its frequency of use.
[0058] Furthermore, before the step of sequentially arranging and displaying the form item cards corresponding to the respective form items, the method further includes: detecting whether there is an associated form item in the form item configuration data; if so, generating a form item card corresponding to the associated form item.
[0059] During specific implementation, whether the associated items are displayed during the card generation process is determined in the following way: the form item configuration data is obtained from the backend, and the configuration data is stored in the database. After the frontend obtains the configuration data, it renders the search form and loads the corresponding form search item according to the form item category. The display and hiding of the corresponding form search item can be controlled based on whether to display the attribute in the configuration item. This attribute can be configured by clicking the configuration button in the upper right corner of the search form, and the configuration result is saved to the database. When the value of a form search item affects the display and hiding of another form search item (that is, there are associated form items as mentioned above), the affected form search item needs to be configured with the associated attribute name and associated attribute value. When the search content of the form item corresponding to the associated attribute name is the associated attribute value, the form search item will be loaded, otherwise it will be hidden.
[0060] For example, when the display and hiding of form item A is affected by form item B, the associated attribute name of form item A is "B". Assuming the associated attribute value is "Yes", form item A will be displayed only when the content (value) entered or selected in form item B is "Yes", otherwise form item A will be hidden.
[0061] When a user logs in to the system and wants to search, the system will perform a search form rendering process and display the search form to the user. The specific rendering process is as follows: the front-end obtains the query form item set to be displayed from the back-end (corresponding to the number of search form input conditions), obtains the user's most frequently searched search content and the most recent n (customizable) historical search records from the back-end, the front-end initializes the search form and displays it in the form of a card, the front-end sorts the query form and displays common words based on user behavior data, and the front-end interacts with the back-end through search operations on the query form. The query form item configuration set is obtained through the back-end interface. The configuration set includes the form item attribute name, form item attribute title, form item category (input box, radio button, drop-down box, time selector, etc.), whether to display, associated attribute name, associated attribute value, drop-down option data set (this attribute exists when the form item category is a drop-down box), and time format (this attribute exists when the form item category is a time selector), and then the form item is rendered in card form according to the above configuration content.
[0062] Figure 3 A search form generated based on a doctor's search habits is shown, in which multiple form items (hospital area, consultation type, consultation department, consultation number, consultation time, discharge time, patient name, patient ID, ID number, date of birth) are sorted in sequence, with 6 items displayed in the first row and 4 in the second row. The number can be customized as needed. For easy viewing, the first row displays consultation information and the second row displays patient information.
[0063] In the search form generation method provided in the embodiments of this application, the search form is displayed in a card-like format, with support for customizing the number of rows and background, and automatically expanding and scaling based on the content displayed on each card. By associating user search habits with the form layout, user behavior can influence the form's arrangement and displayed content.
[0064] Based on the above method embodiment, the present application also provides a query method based on a search form, which displays a search form through a graphical user interface; the search form is generated by the search form generation method described in the above embodiment; see Figure 4 As shown, the method includes:
[0065] Step S402: monitoring the search content change event in the search form to determine the target search content;
[0066] For example, in response to the mouse cursor moving to the area where the target form item card is located, an input box and / or selection control can be displayed at a specified position of the target form item card, such as Figure 5 As shown; then, in response to the input operation on the input box or the selection operation on the selection control, the corresponding target search content is displayed in the form item card.
[0067] In an embodiment of the present application, the search content is separated from the form (input box, selection box, time selector, etc.) input. Under normal circumstances, only the plain text of the search content is displayed in the card. When the mouse moves into the card range, the form input item slides down and is displayed, and then the form input operation can be performed.
[0068] In another optional implementation, a pop-up window may be used to input search content, and the search content of the form item may be input through the pop-up window and then displayed on the card.
[0069] The form item card in the search form displays first content to be displayed, second content to be displayed, and third content to be displayed; the first content to be displayed is used to represent the current content to be searched corresponding to the form item; and the step of monitoring the search content change event in the search form and determining the target search content may further include:
[0070] In response to a touch operation on the second content to be displayed or the third content to be displayed, the first content to be displayed is updated to the second content to be displayed or the third content to be displayed, and the second content to be displayed or the third content to be displayed is determined to be the target search content.
[0071] Step S404, performing a query based on the target search content and determining a query result;
[0072] After the target search content is determined above, a further query may be performed based on the target search content to determine the query result and update the query result.
[0073] For example, below the search form is the result display area, which initially displays the current query results. Then, when a change in the search content is detected and the query result is determined, the current query result is directly updated to the query result just found.
[0074] The search form-based query method provided by the embodiment of the present application allows users to conveniently view the current search content of each form item and quickly switch or enter search content. The interface is beautiful and easy to operate. During the use of the search form, the used search form items and the search content entered or selected are recorded and stored in the database. By analyzing and processing this data, the layout of the form items is updated. Therefore, for the user, the search form displayed may be different each time after logging into the system. It will be continuously updated based on the user's historical search content, displaying the search form that best suits the user's current habits for the user to search or view.
[0075] This embodiment first associates search form operations and search content with user behavior based on user habits. By analyzing a series of user behaviors, form items are sorted. Common prompts are added based on the user's most frequently used search content. Historical search records are displayed, and users can click on a history entry to directly search. In terms of display, the search form is presented as a card, with support for customizing the number of form items displayed per row. The search criteria are separated from the form, normally displaying only the search criteria in text form. When the mouse moves within the search content element, the form items slide out, improving the form's aesthetics to a certain extent.
[0076] This embodiment actually provides an automatic form query method based on user habits, which optimizes the existing query form function and presentation form, thereby achieving beautification of the query form's appearance and improvement of its operability, and can be developed using componentization.
[0077] Based on the above method embodiment, the present application embodiment also provides a search form generation device, see Figure 6 As shown, the device includes: an information acquisition module 62, which is used to obtain the user's historical form search information; the historical form search information includes: search form items and corresponding historical search content within a specified time period; a statistics module 64, which is used to count the search index value of each search content under each form item based on the historical form search information; the search index value includes one of the following: the number of searches, the search frequency; a sorting content determination module 66, which is used to determine the form item sorting result and the content to be displayed corresponding to each form item based on the search index value of each search content under each form item; the content to be displayed is used as target search information or as search selection reference information; a generation and display module 68, which is used to generate a search form containing multiple form item cards according to the form item sorting result, based on preset form item configuration data, and the content to be displayed corresponding to each form item, and display it for the user to perform a query process based on the search form.
[0078] Furthermore, the sorting content determination module 66 is used to sum the search index values of each search content under each form item to obtain the total search index value under the form item; and sort the form items according to the size of the total search index value corresponding to each form item to obtain the form item sorting result.
[0079] Furthermore, the above-mentioned sorting content determination module 66 is used to, for each form item, determine the search content with the highest search index value among all historical search contents under the form item as the first content to be displayed; filter out the target content entered through the input box from all historical search contents, and determine the content with the highest search index value among all target contents as the second content to be displayed; and determine the specified target content with the latest search time as the third content to be displayed.
[0080] Furthermore, the form item configuration data includes: style information corresponding to the form items and the number of form items to be displayed per row; a generating and displaying module 68 is configured to generate form item cards based on the style information corresponding to the form items and the content to be displayed corresponding to each form item; and sequentially arrange and display the form item cards corresponding to each form item according to the form item sorting result and the number of form items to be displayed per row, thereby generating a search form containing multiple form item cards.
[0081] Furthermore, the above-mentioned generation and display module 68 is used to display the form item name, the first content to be displayed, the second content to be displayed, and the third content to be displayed at different positions of the initialization card for each form item based on the style information corresponding to the form item, thereby obtaining a form item card; when the first content to be displayed and the second content to be displayed are consistent, only the first content to be displayed is displayed.
[0082] Furthermore, the above-mentioned generating and displaying module 68 is used to automatically expand the width of the initialization card and reduce the widths of other cards when detecting that the content to be displayed on the initialization card exceeds the range of the initialization card, until all the content to be displayed does not exceed the range of the initialization card.
[0083] Furthermore, the generating and displaying module 68 is configured to detect whether there is an associated form item in the form item configuration data; if so, generate a form item card corresponding to the associated form item.
[0084] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference can be made to the corresponding content in the aforementioned method embodiment.
[0085] Based on the above method embodiment, the embodiment of the present application also provides a query device based on a search form, which displays a search form through a graphical user interface; the search form is generated by the search form generation method described in the above embodiment; see Figure 7 As shown, the device includes: a monitoring module 72 for monitoring search content change events in the search form and determining target search content; a query module 74 for performing a query based on the target search content and determining a query result.
[0086] Furthermore, the form item card in the above-mentioned search form displays the first content to be displayed, the second content to be displayed and the third content to be displayed; the monitoring module 72 is used to respond to the touch operation on the second content to be displayed or the third content to be displayed, update the first content to be displayed to the second content to be displayed or the third content to be displayed, and determine that the second content to be displayed or the third content to be displayed is the target search content.
[0087] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference can be made to the corresponding content in the aforementioned method embodiment.
[0088] The present application also provides an electronic device, such as Figure 8 As shown, it is a structural diagram of the electronic device, wherein the electronic device includes a processor 81 and a memory 80, the memory 80 stores computer executable instructions that can be executed by the processor 81, and the processor 81 executes the computer executable instructions to implement the above method.
[0089] exist Figure 8 In the illustrated embodiment, the electronic device further includes a bus 82 and a communication interface 83 , wherein the processor 81 , the communication interface 83 and the memory 80 are connected via the bus 82 .
[0090] Among them, the memory 80 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 83 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 82 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 82 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0091] The processor 81 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 81 or by software instructions. The above processor 81 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor 81 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.
[0092] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the above-mentioned method. The specific implementation can be found in the above-mentioned method embodiment, which will not be repeated here.
[0093] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. For specific implementation, please refer to the method embodiments and will not be repeated here.
[0094] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0095] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute 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.
[0096] In the description of this application, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this application and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0097] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.
Claims
1. A method for generating a search form, characterized in that: The method comprises: Obtaining the user's historical form search information; the historical form search information includes: search form items and corresponding historical search content within a specified time period; According to the historical form search information, the search index value of each search content under each form item is counted; the search index value includes one of the following: the number of searches and the search frequency; Determining a form item ranking result and content to be displayed corresponding to each form item based on the search index value of each search content under each form item, including: for each form item, summing the search index value of each search content under the form item to obtain a total search index value under the form item; sorting the form items according to the size of the total search index value corresponding to each form item to obtain a form item ranking result; for each form item, determining the search content with the highest search index value among all historical search contents under the form item as the first content to be displayed; filtering out target content entered through the input box from all historical search contents, and determining the content with the highest search index value among all target contents as the second content to be displayed; determining a specified number of target contents with the latest search time as the third content to be displayed; the content to be displayed is used as target search information or as search selection reference information; According to the form item sorting results, based on the preset form item configuration data and the content to be displayed corresponding to each form item, a search form containing multiple form item cards is generated and displayed for the user to conduct a query process based on the search form; the card-formatted form items support content adaptation and automatic width expansion.
2. The method according to claim 1, characterized in that The form item configuration data includes: style information corresponding to the form items and the number of form items displayed in each row; according to the form item sorting result, based on the preset form item configuration data and the content to be displayed corresponding to each form item, generating a search form containing multiple form item cards and displaying the result, including: Generate a form item card based on the style information corresponding to the form item and the content to be displayed corresponding to each form item; According to the form item sorting result and the number of form items displayed in each row, the form item cards corresponding to the respective form items are sequentially arranged and displayed to generate a search form containing multiple form item cards.
3. The method according to claim 2, characterized in that Based on the style information corresponding to the form item and the content to be displayed corresponding to each form item, the steps of generating a form item card include: For each form item, based on the style information corresponding to the form item, the form item name, the first content to be displayed, the second content to be displayed, and the third content to be displayed are respectively displayed at different positions of an initialization card to obtain the form item card; when the first content to be displayed and the second content to be displayed are consistent, only the first content to be displayed is displayed.
4. The method according to claim 3, characterized in that The step of respectively displaying the form item name, the first content to be displayed, the second content to be displayed, and the third content to be displayed at different positions of the initialization card includes: When it is detected that the content to be displayed on the initialization card exceeds the range of the initialization card, the width of the initialization card is automatically expanded and the widths of other cards are reduced until all the content to be displayed does not exceed the range of the initialization card.
5. The method according to claim 2, characterized in that Before the step of sequentially arranging and displaying the form item cards corresponding to each form item, the following steps are also included: Check whether there is an associated form item in the form item configuration data; If yes, a form item card corresponding to the associated form item is generated.
6. A query method based on a search form, characterized in that: Presenting a search form via a graphical user interface; The search form is generated by the search form generation method according to any one of claims 1 to 5; the method comprising: Monitor the search content change event in the search form to determine the target search content; A query is performed based on the target search content to determine a query result.
7. The method according to claim 6, characterized in that The form item cards in the search form display first content to be displayed, second content to be displayed, and third content to be displayed; The step of monitoring the search content change event in the search form and determining the target search content includes: In response to a touch operation on the second content to be displayed or the third content to be displayed, the first content to be displayed is updated to the second content to be displayed or the third content to be displayed, and the second content to be displayed or the third content to be displayed is determined to be the target search content.
8. A device for generating a search form, characterized in that: The device comprises: An information acquisition module is used to acquire the user's historical form search information; the historical form search information includes: search form items and corresponding historical search content within a specified time period; A statistics module, configured to calculate a search index value of each search content under each form item based on the historical form search information; the search index value includes one of the following: number of searches, search frequency; The sorting content determination module is used to determine the form item sorting result and the content to be displayed corresponding to each form item based on the search index value of each search content under each form item, including: for each form item, summing the search index value of each search content under the form item to obtain the total search index value under the form item; sorting according to the size of the total search index value corresponding to each form item to obtain the form item sorting result; for each form item, determining the search content with the highest search index value among all historical search contents under the form item as the first content to be displayed; filtering out the target content entered through the input box from all historical search contents, and determining the content with the highest search index value among all target contents as the second content to be displayed; determining the specified target content with the latest search time as the third content to be displayed; the content to be displayed is used as target search information or as search selection reference information; A display generation module is used to generate and display a search form containing multiple form item cards according to the form item sorting results, based on preset form item configuration data and the content to be displayed corresponding to each form item, so that users can conduct a query process based on the search form; the card-formatted form items support content adaptation and automatic width expansion.
9. A query device based on a search form, characterized in that: Presenting a search form via a graphical user interface; The search form is generated by the search form generation method according to any one of claims 1 to 5; the device includes: A monitoring module, configured to monitor search content change events in the search form and determine target search content; The query module is used to perform a query based on the target search content and determine the query result.
Citation Information
Patent Citations
Dynamic form generation method and device, electronic equipment and medium
CN116048499A
Form-based data query method and device, equipment and storage medium
CN117216352A