Search form generation method and search form-based query method and device

By analyzing and sorting user's historical search information, a multi-form card search form that is beautiful and conforms to user habits is generated, which solves the problems of unsightly and poor user experience in existing search forms, and improves the user's query experience.

CN119474484AActive Publication Date: 2025-02-18JIAHE MEIKANG BEIJING TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411067255.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2025-02-18
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing search forms look unsightly and have uneven layouts when there are many search terms, and do not consider the user's search habits, resulting in poor user experience.

Method used

By analyzing and sorting the user's historical form search information, a search form containing multiple form cards is generated, the form item sorting results are determined based on the search indicator values, and the most suitable content to be displayed is displayed.

Benefits of technology

The generated search form is beautiful in form, which is more in line with the user's search habits and improves the user's query experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474484A_ABST
    Figure CN119474484A_ABST
Patent Text Reader

Abstract

The invention provides a search form generation method and a search form-based query method and device. The method comprises the following steps: acquiring historical form search information of a user; counting a search index value of each search content under each form item according to historical form search information; according to the search index value of each search content under each form item, determining a form item sorting result and to-be-displayed content corresponding to each form item; the to-be-displayed content is used as target search information or search selection reference information; according to the form item sorting result, based on preset form item configuration data and the to-be-displayed content corresponding to each form item, a search form containing a plurality of form item cards is generated and displayed, and therefore a user can conduct a query process based on the search form. The mode is attractive in form and better fits the search habit of the user, data query of the user is facilitated, and the query experience of the user based on the search form is improved.
Need to check novelty before this filing date? Find Prior Art

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 assist users in quickly searching 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 length of search titles is inconsistent, which easily leads to uneven search form layout. Summary of the invention

[0003] The purpose of the present 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 of the user's historical form search information. The search form has an aesthetically pleasing form and is 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.

[0004] In a first aspect, the present application provides a method for generating a search form, the method comprising: obtaining historical form search information of a user; 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 them, so that the user can perform a query process based on the search form.

[0005] Furthermore, the above step of determining the form item sorting 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 a 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 sorting result.

[0006] Furthermore, the above-mentioned step of determining the content to be displayed corresponding to each form item in the table according to 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 a specified number of target contents with the latest search time as the third content to be displayed.

[0007] Further, the form item configuration data includes: style information corresponding to the form item, 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, a step of generating and displaying a search form including multiple form item cards includes: generating form item cards 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, sequentially arranging and displaying the form item cards corresponding to each form item, and 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, 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 to obtain the form item card; when the first content to be displayed and the second content to be displayed are consistent, only displaying the first content to be displayed.

[0009] Furthermore, the above-mentioned 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.

[0010] Furthermore, before the step of sequentially arranging and displaying the form item cards corresponding to the various 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 a 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 events 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 step of monitoring the search content change event in the search form and determining the target search content includes: 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 comprising: an information acquisition module, used to acquire the user's historical form search information; the historical form search information comprises: search form items and corresponding historical search content within a specified time period; a statistical module, 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 comprises one of the following: number of searches, search frequency; a sorting content determination module, used to determine the form item sorting result and the content to be displayed corresponding to each form item according to 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, used to generate and display 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, including 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, 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: number of searches, search frequency; according to 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 perform 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 of 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 drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. 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 paying 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 query method based on a search form 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 technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0028] 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 length of search titles is inconsistent, which easily leads to uneven search form layout. In addition, the user's search habits are not taken into account, 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 present embodiment, a 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-formatted 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 The flowchart of a method for generating a search form provided in an embodiment of the present application 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 affairs system, an accounting system, etc. The above-mentioned method for generating a search form specifically includes the following steps:

[0032] Step S102, 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;

[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, cardiovascular department, etc.

[0034] Step S104, based on the historical form search information, counting the search index value of each search content under each form item; the search index value includes one of the following: the number of searches, the search frequency;

[0035] Take the hospital area form item as an example to explain, and other form items are handled in the same way:

[0036] The multiple historical search contents included in the hospital area form item 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 to-be-displayed content corresponding to each form item according to the search index value of each search content under each form item; the to-be-displayed content 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 to-be-displayed content corresponding to each form item, a search form including multiple form item cards is generated and displayed, so that the user can perform a query process based on the search form.

[0041] The form item configuration data includes style information corresponding to the form item and the number of form items displayed in each row; for example, 4 form items or 6 form items are displayed in each row according to the regulations, and each form item is rendered and displayed in a card according to the preset style. Each form item card displays the content to be displayed as determined above.

[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 of the user's historical form search information. The search form has an aesthetically pleasing form and is 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] The embodiment of the present application also provides a method for generating a search form, and the embodiment focuses on describing the historical search information analysis process and the card display process.

[0044] The step of determining the form item ranking result according to 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; 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 total search index values ​​corresponding to different form items are sorted to obtain the form item sorting result.

[0047] Usually, form items with large 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 "Hot Word 1-Hot Word 5" displays the third content to be displayed. "Hot Word 1-Hot Word 5" displays the latest five search records. If it is the same search record, it is counted only once. For example, the latest search record is "other, hospitalization, outpatient, outpatient, hospitalization, emergency, emergency, physical examination, physical examination", and the latest five times should be physical examination, emergency, hospitalization, outpatient, and others. 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 item, 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, the step of generating a search form including multiple form item cards and displaying the same includes:

[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 respectively 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 sequentially arranged and displayed to generate a search form containing multiple form item cards.

[0056] During the 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 customizing 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 there are user search records, the front end will display the user's most frequently searched content in the past month and the most recent n (customizable) search records in the search form, and sort the search form items according to the frequency of use. When the form search item has not yet entered the content, the card will display the most frequently searched content prompt word and the most recent n (customizable) search content records, and the user can directly click on the search content to search. According to the frequency of use of each form search item, it is arranged from left to right on the page from high to low in frequency.

[0058] Furthermore, before the step of sequentially arranging and displaying the form item cards corresponding to the various 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] In 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 according to the display 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 in 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 associated attribute name and associated attribute value need to be configured for the affected form search item. 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) input or selected in form item B is "Yes", otherwise form item A will be hidden.

[0061] When the user logs in to the system and wants to search, the system will perform the 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 latest 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 the search operation 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 card rendering is performed 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 items displayed in the second row. The number can be customized as needed. For easy viewing, the first row displays the consultation information and the second row displays the patient information.

[0063] In the method for generating a search form provided in the embodiment of the present application, the search form is displayed in a card form, and supports customizing the number of rows and backgrounds for each display, and automatically expands and scales according to the amount of content displayed on each card. The user's search habits are associated with the form layout, and the user's usage behavior will affect the arrangement of the form and the displayed content.

[0064] Based on the above method embodiment, the present application also provides a query method based on a search form, wherein the search form is displayed 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 an input operation on the input box or a 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, the search content may be input in the form of a pop-up window, and the search content of the form item is input through the pop-up window and then displayed on the card.

[0069] The form item card in the above search form displays the first content to be displayed, the second content to be displayed and the 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; the step of monitoring the search content change event in the search form and determining the target search content may also 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 as above, a query may be further 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 changes in the search content are detected and the query results are determined, the current query results are directly updated to the query results just found.

[0074] The query method based on the search form provided by the embodiment of the present application can enable users to conveniently view the current search content of each form item, and quickly switch or input the search content, with a beautiful interface and convenient operation; in the process of using the search form, the used search form items, input or selected search content will be recorded and stored in the database, and the layout of the form items will be updated by analyzing and processing the data. Therefore, for the user, the search form displayed may be different each time after logging into the system, and it will be continuously updated according to the user's historical search content, and the search form that best meets the user's habits will be displayed for the user to search or view.

[0075] In this embodiment, firstly, based on the user's usage habits, the operation of the search form and the search content are associated with the user's behavior; by analyzing a series of user behaviors, the form items are sorted, and common prompt words are added according to the most frequently used search content by users, and historical search records are displayed, and it is supported to click on the history records to search directly. In terms of display form, the search form is displayed in a card form, and the number of form items displayed in each row can be customized. The search condition content is separated from the form. Under normal circumstances, the search condition content is only displayed in the form of text. When the mouse moves into the range of the search content element, the form item slides out and is displayed, which improves the aesthetics of the form 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 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 contents within a specified time period; a statistical module 64, which is used to count the search index value of each search content under each form item according to 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 according to the search index value of each search content under each form item; the content to be displayed is used as the target search information or as the search selection reference information; a generation and display module 68, which is used to generate and display a search form containing multiple form item cards 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, so that the user can perform a query process based on the search form.

[0078] Furthermore, the above-mentioned 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; sort 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 item, and the number of form items displayed in each row; a generating and displaying module 68, which is used to 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; and to 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 displayed in each row, so as to generate a search form including a plurality of 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, so as 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.

[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 it is detected 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 used 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 of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0085] Based on the above method embodiment, the present application embodiment 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, which is used to monitor the search content change event in the search form and determine the target search content; a query module 74, which is used to query based on the target search content and determine the query result.

[0086] 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 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 the second content to be displayed or the third content to be displayed as 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 of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0088] The present application also provides an electronic device, such as Figure 8 As shown, it is a schematic diagram of the structure 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 only one type of bus.

[0091] The processor 81 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 81. The above processor 81 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can 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 gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, 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 a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned 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. The specific implementation can be found in the method embodiments, which 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform 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 the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood 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 protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for generating a search form, characterized in that: The method comprises: 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; 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, the search frequency; According to the search index value of each search content under each form item, the form item sorting result and the to-be-displayed content corresponding to each form item are determined; the to-be-displayed content is used as target search information or as search selection reference information; According to the form item sorting result, based on the preset form item configuration data and the to-be-displayed content corresponding to each form item, a search form including multiple form item cards is generated and displayed, so that the user can perform a query process based on the search form.

2. The method according to claim 1, characterized in that The step of determining the form item ranking result according to 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 a total search index value under the form item; The form items are sorted according to the total search index value corresponding to each form item to obtain a form item sorting result.

3. The method according to claim 1, characterized in that The step of determining the content to be displayed corresponding to each form item in the table according to the search index value of each search content under each form item includes: For each form item, the search content with the highest search index value among all the historical search contents under the form item is determined as the first content to be displayed; Filter out the target content entered through the input box from all historical search contents, determine the content with the highest search index value among all target contents as the second content to be displayed; and determine the designated target content with the latest search time as the third content to be displayed.

4. The method according to claim 3, characterized in that The form item configuration data includes: style information corresponding to the form item, 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, a search form including multiple form item cards is generated and displayed, 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 a plurality of form item cards.

5. The method according to claim 4, 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 the form item card include: For each form item, based on 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.

6. The method according to claim 5, 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.

7. The method according to claim 4, characterized in that Before the step of sequentially arranging and displaying the form item cards corresponding to each form item, the step further includes: 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.

8. A query method based on a search form, characterized in that: A search form is displayed through a graphical user interface; the search form is generated by the method for generating a search form according to any one of claims 1 to 7; the method comprises: 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.

9. The method according to claim 8, characterized in that The form item card in the search form displays the first content to be displayed, the second content to be displayed and the 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.

10. 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, used to count the search index value of each search content under each form item according to the historical form search information; the search index value includes one of the following: the number of searches and the search frequency; A sorting content determination module is used to determine the sorting results of the form items and the to-be-displayed content corresponding to each form item according to the search index value of each search content under each form item; the to-be-displayed content 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 perform a query process based on the search form.

11. A query device based on a search form, characterized in that: A search form is displayed through a graphical user interface; the search form is generated by the method for generating a search form according to any one of claims 1 to 7; the device comprises: A monitoring module, used to monitor the search content change event in the search form and determine the 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

  • Recommending form fragments

    CN106095738A

  • Search processing method and device

    CN108197284A

  • Data search method and device

    CN111046304A

  • Method for automatically generating recommended detailed page and form page according to query page

    CN112540819A

  • Customer service work order platform generation method and device, equipment and storage medium

    CN113138821A