Information retrieval method, device, electronic device and storage medium
Through the multi-stage search method of serial configuration and filtering conditions, the problem of incomplete search results in the existing technology is solved, and more efficient and accurate acquisition of information retrieval results is achieved.
Patent Information
- Application Number
- CN202210482905.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2042-05-05
AI Technical Summary
In the prior art, when a user uses keywords or key identifiers to search, the search results are incomplete and multiple searches are required to obtain the required results, resulting in poor user experience.
By introducing concatenated configuration and filtering conditions into the information retrieval method, multi-stage searches are performed, including initial search and concatenated searches, and conditional updates are performed using concatenated keywords and search rules until the final result is obtained.
It improves user retrieval efficiency, reduces user operation difficulty, and ensures the integrity and accuracy of search results.
Smart Images

Figure CN114817296B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an information retrieval method, device, electronic device, and storage medium. Background Art
[0002] In many actual business scenarios, when users use keywords or key identifiers to search, the content of the search results obtained may not be complete, or the user may need to perform multiple searches to obtain the required search results, resulting in a poor user experience. Summary of the Invention
[0003] Embodiments of the present disclosure provide an information retrieval method, apparatus, electronic device, and storage medium.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for information retrieval, the method comprising:
[0005] Searching a preset database according to the received search request to obtain a search result, and using the search result as the search result of the current stage;
[0006] Obtaining a corresponding filtering condition from the concatenation configuration corresponding to the search results of the current stage, and selecting at least one record from the search results of the current stage as a parent record according to the filtering condition;
[0007] Obtaining the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, and obtaining the value of the concatenation keyword from the selected parent record, and using the obtained concatenation keyword value and the next-stage search rule as new search conditions;
[0008] Search the database according to the new search conditions to obtain new search results;
[0009] The final retrieval result is obtained according to the retrieval result of the current stage and the new retrieval result.
[0010] In a second aspect, an embodiment of the present disclosure provides an information retrieval device, the information retrieval device comprising: a retrieval module, a screening module, and a determination module;
[0011] The retrieval module is used to search the preset database according to the received retrieval request to obtain the retrieval result, and use the retrieval result as the retrieval result of the current stage; and is also used to search the database according to the new retrieval condition to obtain a new retrieval result;
[0012] The filtering module is configured to obtain a corresponding filtering condition from the concatenation configuration corresponding to the search results of the current stage, select at least one record from the search results of the current stage as a parent record based on the filtering condition; obtain a corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain a value of the concatenation keyword from the selected parent record, use the obtained value of the concatenation keyword and the next-stage search rule as a new search condition, and send the new search condition to the search module;
[0013] The determining module is used to obtain the final retrieval result based on the retrieval result of the current stage and the new retrieval result.
[0014] In a third aspect, an embodiment of the present disclosure provides an information retrieval method, the method comprising:
[0015] Pre-setting at least one search scenario, and pre-setting at least one filter item for each search scenario;
[0016] Selecting at least one search scenario and corresponding filter items from pre-set search scenarios based on the search information associated with the received work order;
[0017] Generate a corresponding search request based on the determined search scenario, filter items, and filter values entered by the user;
[0018] Perform a search based on the generated search request to obtain search results.
[0019] In a fourth aspect, an embodiment of the present disclosure provides an information retrieval device, the information retrieval device comprising: a configuration module and a retrieval module;
[0020] The configuration module is configured to pre-set at least one search scenario and pre-set at least one filter item for each search scenario; select at least one search scenario and corresponding filter item from the pre-set search scenarios based on the search information associated with the received work order; and generate a corresponding search request based on the determined search scenario, filter item, and filter value input by the user;
[0021] The retrieval module is used to perform retrieval according to the generated retrieval request to obtain retrieval results.
[0022] In a fifth aspect, an embodiment of the present disclosure provides an electronic device comprising a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the information retrieval method as described in the first and third aspects are implemented.
[0023] In a sixth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the information retrieval method as described in the first and third aspects.
[0024] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.
[0026] Figure 1 The figure is a flowchart of an information retrieval method in a specific embodiment of the present disclosure.
[0027] Figure 2 The figure is a flowchart of an information retrieval method in another specific embodiment of the present disclosure.
[0028] Figure 3 This is a schematic diagram of the first query scenario in the first specific implementation mode of the present disclosure.
[0029] Figure 4 This is a schematic diagram of the second query scenario in the second specific implementation mode of the present disclosure.
[0030] Figure 5 It is a structural diagram of an information retrieval device in a specific embodiment of the present disclosure.
[0031] Figure 6 A flowchart of an information retrieval method in a specific embodiment of the present disclosure
[0032] Figure 7 Schematic diagram of the structure of an information retrieval device in a specific embodiment of the present disclosure.
[0033] Figure 8 Schematic diagram of the structure of an electronic device in a specific embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present disclosure belongs.
[0035] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or combinations thereof.
[0036] In the absence of conflict, the embodiments of the present disclosure and the features thereof may be combined with each other.
[0037] In order to make the technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0038] Figure 1 FIG. 1 is a flow chart of an information retrieval method in a specific embodiment of the present disclosure. Figure 1 As shown, the information retrieval method in a specific embodiment of the present disclosure includes the following steps:
[0039] Step 101: Search a preset database according to the received search request to obtain a search result, which is used as the search result of the current stage.
[0040] In an embodiment of the present disclosure, after receiving a search request, a corresponding initial search may be performed on a pre-set database according to the received search request, thereby obtaining a search result (which may be referred to as an initial search result). At this time, the initial search result may be used as the search result of the current stage.
[0041] In addition, as an example, in a possible implementation of the present disclosure, the step 101 may further include: receiving a search request.
[0042] Specifically, in a possible implementation of the present disclosure, when a user needs to retrieve or query relevant data, a corresponding retrieval request will be sent.
[0043] For example, in one possible embodiment of the present disclosure, a user may send a search request to a server via a client, or may directly input a search request on the server. Thus, a search may be performed on a preset database according to the received search request to obtain a search result.
[0044] For another example, as an example, in a possible implementation of the present disclosure, when it is necessary to retrieve log information, the retrieval request may be: a retrieval request for log information.
[0045] Of course, in the embodiment of the present disclosure, the above-mentioned search request may also be a search request for other information that needs to be retrieved, which will not be described in detail here.
[0046] Step 102: Obtain corresponding filtering conditions from the concatenation configuration corresponding to the search results of the current stage, and select at least one record from the search results of the current stage as a parent record according to the filtering conditions.
[0047] In an embodiment of the present disclosure, when performing information retrieval, different stages of different retrieval scenarios may have different retrieval requirements. Therefore, corresponding serial configurations may be set in advance for each serial stage of each retrieval scenario. For example, assuming that a certain retrieval scenario may have N serial stages, N serial configurations may be pre-set for the above-mentioned retrieval scenario, corresponding to the N serial stages respectively. Among them, the serial stage can be understood as: after performing the first retrieval, it is necessary to perform a retrieval stage of the second retrieval based on the results of the first retrieval, such as a retrieval stage of performing the retrieval again after the initial retrieval. Among them, the second retrieval can be called a serial retrieval.
[0048] In addition, when performing information retrieval, the retrieval results at different stages of the same retrieval scenario (for example, the initial retrieval results, the second retrieval results, the third retrieval results, etc.) may also have different filtering conditions for filtering parent records. Therefore, corresponding filtering conditions can be pre-set for the corresponding retrieval results in the serial configuration of each stage.
[0049] For example, as an example, in one possible implementation of the present disclosure, when the retrieval scenario is the first query, assuming that the first query may only have one serial stage (indicating that after the initial retrieval, another serial retrieval may be required), then a serial configuration can be pre-set for the retrieval scenario of the first query, corresponding to the serial stage, and corresponding filtering conditions can be pre-set for the corresponding retrieval results in the serial configuration of the serial stage.
[0050] For another example, as an example, in a possible implementation of the present disclosure, when the retrieval scenario is the second type of query, assuming that the second type of query may have two serial stages (indicating that after the initial retrieval, two more serial searches may be required, and each serial stage corresponds to a serial search), then two serial configurations can be pre-set for the retrieval scenario of the second type of query, corresponding to the two serial stages respectively, and corresponding filtering conditions can be pre-set for the corresponding retrieval results in the serial configurations of the two serial stages respectively.
[0051] Therefore, when obtaining the retrieval results of the current stage, if the retrieval scenario has a serial configuration corresponding to the retrieval results of the current stage, the filtering conditions corresponding to the retrieval results of the current stage can be obtained from the serial configuration corresponding to the retrieval results of the current stage, and then at least one record can be selected from the retrieval results of the current stage as the parent record according to the filtering conditions.
[0052] For example, after performing an initial search and obtaining the initial search results, if another search is required, the cascade phase will be entered. In each cascade phase, a corresponding cascade configuration is set up; in each cascade phase, one search is performed. The search performed in the cascade phase can be called a cascade search.
[0053] After obtaining the initial search results, if further search is required, the initial search results can be used as the search results for the current stage, and then the first series connection stage can be entered. At this time, the series connection stage corresponding to the initial search results is the first subsequent series connection stage, and the corresponding series connection configuration is the series connection configuration of the first series connection stage. Therefore, the corresponding filtering conditions can be obtained from the series connection configuration of the first series connection stage.
[0054] After searching in the first series connection phase and obtaining search results, if further search is required, the second series connection phase will be entered. Therefore, the search results of the first series connection phase can be used as the search results of the current phase, and then the second series connection phase will be entered. At this time, the series connection phase corresponding to the search results of the first series connection phase is the subsequent second series connection phase, and the corresponding series connection configuration is the series connection configuration of the second series connection phase. Therefore, the corresponding filtering conditions can be obtained from the series connection configuration of the second series connection phase.
[0055] The subsequent situations can be deduced in the same way, so I will not go into details one by one.
[0056] Step 103: Obtain the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, and use the obtained concatenation keyword value and next-stage search rule as new search conditions.
[0057] In an embodiment of the present disclosure, after selecting the parent record, it is possible to further obtain the corresponding next stage retrieval rules (for example, the stage value is a preset value, that is, the value of K1 is a preset value) and the concatenation keyword (K2) from the current concatenation configuration (that is, the concatenation configuration corresponding to the retrieval result of the current stage), and obtain the value of the concatenation keyword from the selected parent record, so that the obtained concatenation keyword value and the next stage retrieval rules can be used as new retrieval conditions to facilitate the next stage retrieval.
[0058] Step 104: Search the database according to the new search conditions to obtain new search results.
[0059] In an embodiment of the present disclosure, after obtaining a new search condition, the database may be searched according to the new search condition to obtain a new search result.
[0060] Step 105: Obtain the final search result based on the search result of the current stage and the new search result.
[0061] In an embodiment of the present disclosure, after obtaining a new search result, a final search result may be obtained based on the search result of the current stage and the new search result.
[0062] Therefore, through the above steps 101 to 105, a serial search can be implemented and the final search results can be obtained. When a user uses the above method to search, more relevant search results can be obtained through the above initial search and one or more serial search stages, thereby reducing the user's workload, lowering the user's operational difficulty, and improving the user's search efficiency.
[0063] In addition, in the embodiment of the present disclosure, the above step 105 can be implemented through a variety of specific implementations. The following will take several specific implementations as examples to introduce the technical solution of the present disclosure in detail.
[0064] For example, in one possible implementation of the present disclosure, step 105 may include:
[0065] The new search result is processed with the initial search result obtained in step 101, for example, merged, to obtain a final search result.
[0066] For another example, in another possible implementation of the present disclosure, step 105 may also include the following steps:
[0067] Step 51: Use the new search result as the search result of the current stage.
[0068] Step 52, when the retrieval scenario has a serial configuration corresponding to the retrieval result of the current stage, return to execute step 102; when the retrieval scenario does not have a serial configuration corresponding to the retrieval result of the current stage, all retrieval results are processed as the final retrieval result.
[0069] In an embodiment of the present disclosure, after obtaining a new retrieval result and using the new retrieval result as the retrieval result of the current stage, it is further determined whether the retrieval scenario has a serial configuration corresponding to the retrieval result of the current stage.
[0070] If the search scenario has a cascade configuration corresponding to the search results of the current stage, it indicates that the next stage of information retrieval is required. In this case, the process returns to step 102 to obtain the corresponding filtering conditions from the cascade configuration corresponding to the search results of the current stage, and selects at least one record from the search results of the current stage as a parent record based on the filtering conditions.
[0071] If the searched scene does not have a tandem configuration corresponding to the search results of the current stage, it means that there is no need to search for information in the next stage. In this case, all the search results obtained so far (i.e., the search results of each stage currently obtained) can be processed, for example, merged, and the processed search results are used as the final search results.
[0072] Therefore, through the above steps 51 to 52, the above step 105 can be implemented to obtain the final search result.
[0073] In addition, as an example, in a possible implementation of the present disclosure, the information retrieval method may further include:
[0074] The elements in the final search results are sorted according to a preset sorting method, so that the sorted final search results can be displayed and / or sent to the corresponding users, making it easier for the users to read and search the search results.
[0075] For example, in a possible implementation of the present disclosure, the preset sorting method may include sorting according to the order of the timestamps of the elements, thereby facilitating the user to search in the search results according to the timestamps.
[0076] In addition, as an example, in one possible implementation of the present disclosure, after the elements in the final search results are sorted according to a preset sorting method, the sorted search results can be displayed and / or output, so that the sorted final search results can be displayed and / or sent to the corresponding user.
[0077] In addition, in some embodiments of the present disclosure, another information retrieval method is proposed.
[0078] Figure 2 FIG. 1 is a flow chart of an information retrieval method in another specific embodiment of the present disclosure. Figure 2 As shown, the information retrieval method in another specific embodiment of the present disclosure includes the following steps:
[0079] Step 201: Search a preset database according to the received search request to obtain a search result, which is used as the search result of the current stage.
[0080] In the embodiment of the present disclosure, step 201 may refer to part of step 101 in the aforementioned embodiment, and will not be repeated here.
[0081] Step 202 , determining whether the retrieval scenario has a serial configuration corresponding to the retrieval result of the current stage, if yes, executing step 203 ; otherwise, executing step 206 .
[0082] In the embodiment of the present disclosure, after the initial search is performed and the initial search results are obtained, if another search is required, a series connection phase will be entered. In each series connection phase, one search will be performed (which may be referred to as a series connection search), so each series connection phase is respectively provided with a corresponding series connection configuration.
[0083] For example, after obtaining the initial search results, if further search is required, the initial search results can be used as the search results for the current stage, and then the first series connection stage can be entered. At this time, the series connection stage corresponding to the initial search results is the first subsequent series connection stage, and the corresponding series connection configuration is the series connection configuration of the first series connection stage. Therefore, it can be determined that the series connection configuration corresponding to the search results for the current stage is present.
[0084] By analogy, in a possible embodiment of the present disclosure, after obtaining the retrieval results of the current stage (for example, the initial retrieval results, the second retrieval results, the third retrieval results, etc.), it is possible to first determine whether the retrieval scenario has a serial configuration corresponding to the retrieval results of the current stage. If the retrieval scenario has a serial configuration corresponding to the retrieval results of the current stage, it means that the next stage of information retrieval is still required, so step 203 is executed. If the retrieval scenario does not have a serial configuration corresponding to the retrieval results of the current stage, it means that the next stage of information retrieval is no longer required, so step 206 can be executed to process all the retrieval results currently obtained (that is, the retrieval results of each stage currently obtained), for example, by merging them, and use the processed retrieval results as the final retrieval results.
[0085] Step 203: Obtain corresponding filtering conditions from the series configuration corresponding to the search results of the current stage, and select at least one record from the search results of the current stage as a parent record according to the filtering conditions.
[0086] In the embodiment of the present disclosure, step 203 may refer to part of step 102 in the aforementioned embodiment, and will not be described in detail here.
[0087] Step 204: Obtain the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, and use the obtained concatenation keyword value and next-stage search rule as new search conditions.
[0088] In the embodiment of the present disclosure, step 204 may refer to part of step 103 in the aforementioned embodiment, and will not be described in detail here.
[0089] Step 205 , searching the database according to the new search conditions to obtain new search results, taking the new search results as the search results of the current stage, and returning to step 202 .
[0090] In an embodiment of the present disclosure, after obtaining a new search condition, the database can be searched according to the new search condition to obtain a new search result; then, the new search result is used as the search result of the current stage, and the process returns to step 202.
[0091] Step 206: All search results are processed and used as the final search results.
[0092] In a possible implementation of the present disclosure, when there is no need to perform the next step of information retrieval, all the retrieval results currently obtained (i.e., the retrieval results of each stage currently obtained) can be processed, for example, merged, and the processed retrieval results can be used as the final retrieval results.
[0093] Through the above steps 201 to 206, a serial search can be implemented and the final search result can be obtained.
[0094] When a user uses the above method to search, he or she can obtain more relevant search results through the above initial search and one or more serial search stages, thereby reducing the user's workload, lowering the user's operating difficulty, and improving the user's search efficiency.
[0095] In addition, as an example, in a possible implementation of the present disclosure, the information retrieval method may further include:
[0096] Step 27: sort the elements in the final search result according to a preset sorting method.
[0097] For example, as an example, in a possible implementation of the present disclosure, the preset sorting method may include: sorting in the order of the timestamps of each element, so that the sorted final search results can be displayed and / or sent to the corresponding user, making it easier for the user to read and search the search results.
[0098] In addition, as an example, in one possible implementation of the present disclosure, after the elements in the final search results are sorted according to a preset sorting method, the sorted search results can be displayed and / or output, so that the sorted search results can be displayed and / or sent to the corresponding user.
[0099] In addition, in the specification of the present disclosure, the technical solution of the present disclosure will be further introduced in detail by taking the following two specific implementation methods as examples.
[0100] Specific implementation method 1: the first query scenario
[0101] 1) Search the preset database according to the received search request to obtain the search results, and use the search results as the search results of the current stage.
[0102] In the first query scenario, it is assumed that the search condition in the received search request includes: using information identification (ID) as a keyword. Therefore, after searching according to the search request, the initial search results are obtained. For example, the initial search results include: record 1 and record 2 (both record 1 and record 2 have IDs), such as Figure 3 At this point, the initial search results can be used as the search results for the current stage.
[0103] 2) Determine whether the retrieval scenario has a serial configuration corresponding to the retrieval result of the current stage.
[0104] In this embodiment, the first query scenario has one serial stage after the initial retrieval (i.e., one serial retrieval is required), and a corresponding serial configuration has been set in advance for this serial stage, and the corresponding filtering conditions have been pre-set in this serial configuration for the retrieval results of the current stage.
[0105] Therefore, after obtaining the initial search results, another search is required. Therefore, the initial search results can be used as the search results for the current stage, and then the first series connection stage can be entered. At this point, the series connection stage corresponding to the initial search results is the first subsequent series connection stage, and therefore the corresponding series connection configuration is the series connection configuration of the first series connection stage. Therefore, it can be determined that there is a series connection configuration corresponding to the search results for the current stage, and a series connection search is still required.
[0106] 3) Obtain corresponding filtering conditions from the series configuration corresponding to the search results of the current stage, and select at least one record from the search results of the current stage as a parent record according to the filtering conditions.
[0107] In this embodiment, in the serial configuration corresponding to the initial search result, it is assumed that the screening condition corresponding to the initial search result includes: the stage value is 4 (ie, K1=4). Therefore, the parent record can be selected from record 1 and record 2 in the initial search result according to the screening condition.
[0108] Specifically, since K1=3 in record 1 in the initial search result and K1=4 in record 2, record 2 in the initial search result can be used as the parent record according to the above filtering conditions.
[0109] 4) Obtain the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, and use the obtained concatenation keyword value and next-stage search rule as new search conditions.
[0110] In this embodiment, in the serial configuration corresponding to the initial retrieval result, it is assumed that the next stage retrieval rules corresponding to the initial retrieval result include: the stage value is 5 (i.e. K1=5), and the serial keyword (K2) in record 2, which is the parent record, is the event identifier (eventID). Therefore, after taking record 2 as the parent record, the value of the serial keyword eventID can be obtained from record 2, and the next stage retrieval rules (i.e. K1=5) can be obtained from the serial configuration; then, the value of eventID and K1=5 are used as new retrieval conditions.
[0111] 5) Search the database according to the new search conditions to obtain new search results, and use the new search results as the search results of the current stage.
[0112] In this embodiment, since the new search conditions include the value of eventID and K1=5, after searching the database according to the new search conditions, a new search result (i.e., the second search result) can be obtained. For example, the second search result includes record 3 (record 3 has the value of eventID and K1=5).
[0113] 6) Return to step 2).
[0114] In this embodiment, after the second search result is used as the search result of the current stage, the process returns to step 2) to continue determining whether the search scenario has a serial configuration corresponding to the search result of the current stage.
[0115] Since the current retrieval scenario is the first query scenario, there is only one serial connection stage after the initial retrieval, and there is no second serial connection stage. One serial connection retrieval has been performed (the retrieval result of the current stage is the second retrieval result). Therefore, it can be determined that there is no serial connection configuration corresponding to the retrieval result of the current stage, so there is no need to perform the next stage of serial connection retrieval.
[0116] 7) The retrieval results of each stage are processed, such as merged, to serve as the final retrieval results.
[0117] Since there is no need to conduct a next-stage serial search, the search results of each stage, such as all the search results, can be combined and processed as the final search result. For example, the initial search result and the second search result can be combined, and then the combined search result can be used as the final search result. In this case, the final search result includes: record 1, record 2, and record 3.
[0118] Through the above steps, the serial retrieval of the first query scenario can be completed and the final retrieval results can be obtained.
[0119] Specific implementation method 2: the second query scenario
[0120] 1) Search the preset database according to the received search request to obtain the search results, and use the search results as the search results of the current stage.
[0121] In the second query scenario, assume that the search condition in the received search request includes: open event identifier (openEventID) as a keyword. Therefore, after searching according to the search request, the initial search result is obtained. For example, the initial search result includes: record 3 (record 3 has openEventID), such as Figure 4 At this point, the initial search results can be used as the search results for the current stage.
[0122] 2) Determine whether the retrieval scenario has a serial configuration corresponding to the retrieval result of the current stage.
[0123] In this embodiment, it is assumed that the second query scenario has two serial stages after the initial retrieval (that is, two serial searches are required), and corresponding serial configurations have been set in advance for these two serial stages, and corresponding filtering conditions have been pre-set for the retrieval results of the two stages in these two serial configurations.
[0124] Therefore, after obtaining the initial search results, another search is required. Therefore, the initial search results can be used as the search results for the current stage, and then the first series connection stage can be entered. At this point, the series connection stage corresponding to the initial search results is the first subsequent series connection stage, and therefore the corresponding series connection configuration is the series connection configuration of the first series connection stage. Therefore, it can be determined that there is a series connection configuration corresponding to the search results for the current stage, and a series connection search is still required.
[0125] 3) Obtain corresponding filtering conditions from the series configuration corresponding to the search results of the current stage, and select at least one record from the search results of the current stage as a parent record according to the filtering conditions.
[0126] In this embodiment, in the serial configuration corresponding to the initial search result, it is assumed that the screening condition corresponding to the initial search result includes: the stage value is 5 (ie, K1=5). Therefore, the parent record can be selected from the initial search result according to the screening condition.
[0127] Specifically, since K1=5 in record 3 in the initial search result, record 3 in the initial search result can be used as the parent record according to the above filtering conditions.
[0128] 4) Obtain the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, and use the obtained concatenation keyword value and next-stage search rule as new search conditions.
[0129] In this embodiment, in the serial configuration corresponding to the initial retrieval result, it is assumed that the next stage retrieval rules corresponding to the initial retrieval result include: the stage value is 4 (i.e., K1=4), and the serial keyword (K2) in record 3 as the parent record is the event identifier (eventID). Therefore, after taking record 3 as the parent record, the value of the serial keyword eventID can be obtained from record 3, and the next stage retrieval rules (i.e., K1=4) can be obtained from the serial configuration; then, the value of eventID and K1=4 can be used as new retrieval conditions.
[0130] 5) Search the database according to the new search conditions to obtain new search results, and use the new search results as the search results of the current stage.
[0131] In this embodiment, since the new search conditions include eventID and K1=4, after searching the database according to the new search conditions, a new search result (i.e., the second search result) can be obtained. For example, the second search result includes record 2 (record 2 has the value of eventID and K1=4).
[0132] 6) Return to step 2).
[0133] In this embodiment, after the second search result is used as the search result of the current stage, the process returns to step 2) to continue determining whether the search scenario has a serial configuration corresponding to the search result of the current stage.
[0134] Since the current search scenario is the second query scenario, there are two or more serial phases after the initial search. Therefore, after completing one serial search (the search result of the current phase is the second search result), it is necessary to enter the second serial phase and perform a second search. At this time, the serial phase corresponding to the second search result is the subsequent second serial phase, so the corresponding serial configuration is the serial configuration of the second serial phase, and so on. Therefore, it can be determined that there is a serial configuration corresponding to the search result of the current phase, and a serial search is still required.
[0135] 7) Obtain corresponding filtering conditions from the series configuration corresponding to the search results of the current stage, and select at least one record from the search results of the current stage as a parent record according to the filtering conditions.
[0136] In this embodiment, in the serial configuration corresponding to the second search result, assuming that the screening condition corresponding to the first search result includes: the stage value is 4 (ie, K1=4), therefore, the parent record can be selected from the second search result according to the screening condition.
[0137] Specifically, since K1=4 in record 2 in the second search result, according to the above screening condition, record 2 in the second search result can be used as the parent record.
[0138] 8) Obtain the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, and use the obtained concatenation keyword value and next-stage search rule as new search conditions.
[0139] In this embodiment, in the serial configuration corresponding to the second search result, it is assumed that the next stage retrieval rules corresponding to the second search result include: the stage value is 3 or 2 (i.e., K1=3 or 2), and the serial keyword in record 2 as the parent record is the information identifier (msgID). Therefore, after taking record 2 as the parent record, the value of the serial keyword msgID can be obtained from record 2, and the next stage retrieval rules (i.e., K1=3 or 2) can be obtained from the serial configuration; then, the value of msgID and K1=3 or 2 can be used as new retrieval conditions.
[0140] 9) Search the database according to the new search conditions to obtain new search results, and use the new search results as the search results of the current stage.
[0141] In this embodiment, since the new search conditions include: msgID value and K1 = 3 or 2, after searching the database according to the new search conditions, a new search result (i.e., the third search result) can be obtained. For example, the third search result includes: record 1 (record 1 has the value of msgID and K1 = 3).
[0142] 10) Return to step 2).
[0143] In this embodiment, after the third retrieval result is used as the retrieval result of the current stage, the process returns to step 2) to continue determining whether the retrieval scenario has a serial configuration corresponding to the retrieval result of the current stage.
[0144] Since the current retrieval scenario is the second query scenario, there are two serial stages after the initial retrieval, and two serial searches have been performed (the retrieval result of the current stage is the third retrieval result). Therefore, it can be determined that there is no serial configuration corresponding to the retrieval result of the current stage, so there is no need to perform the next stage of serial search.
[0145] 11) The retrieval results of each stage are processed and used as the final retrieval results.
[0146] Since there is no need to perform a concatenated search in the next stage, the search results of each stage can be processed and used as the final search result. For example, all search results can be combined as the final search result. For example, the initial search results, the second search results, and the third search results can be combined first, and then the combined search results can be used as the final search result. In this case, the final search result includes: record 1, record 2, and record 3.
[0147] Through the above steps, the serial retrieval of the second query scenario can be completed and the final retrieval results can be obtained.
[0148] In addition, in an embodiment of the present disclosure, an information retrieval device is also proposed.
[0149] Figure 5 FIG. 1 is a schematic diagram of the structure of an information retrieval device in a specific embodiment of the present disclosure. Figure 5 As shown, an information retrieval device 500 in a specific embodiment of the present disclosure includes: a retrieval module 501, a screening module 502 and a determination module 503;
[0150] The retrieval module 501 is used to search the preset database according to the received retrieval request to obtain the retrieval result, and use the retrieval result as the retrieval result of the current stage; and is also used to search the database according to the new retrieval condition to obtain a new retrieval result;
[0151] The filtering module 502 is configured to obtain a corresponding filtering condition from the concatenation configuration corresponding to the search result of the current stage, select at least one record from the search result of the current stage as a parent record based on the filtering condition; obtain a corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, use the obtained concatenation keyword value and the next-stage search rule as a new search condition, and send the new search condition to the search module 501;
[0152] The determining module 503 is configured to obtain a final retrieval result based on the retrieval result of the current stage and the new retrieval result.
[0153] In addition, as an example, in a possible implementation of the present disclosure, the information retrieval device may further include: a sorting module;
[0154] The sorting module is used to sort the elements in the final search result according to a preset sorting method.
[0155] In addition, as an example, in a possible implementation of the present disclosure, the information retrieval device may further include: an output module;
[0156] The output module is used to display and / or output the sorted search results, so that the sorted final search results can be displayed and / or sent to the corresponding users.
[0157] In addition, the information retrieval device provided in the above embodiments of the present disclosure can be used to execute the technical solutions of the above method embodiments. Its implementation principles and technical effects are similar and will not be repeated here.
[0158] Furthermore, when using a system (e.g., a software system), users may often report problems to the system provider (e.g., the software system developer). Currently, the primary way system providers troubleshoot system problems is to retrieve relevant information from the user request link (e.g., common operation logs such as message sending and event push notifications), and then determine the cause of the problem based on the printed information.
[0159] However, the above method has the following problems:
[0160] 1. High threshold for use: The above method is generally only used by professional technicians. For non-professional technicians, the above system has the following problems: unfriendly user interface, inconvenient query, manual input of specific keywords each time, need to find the relevant code location for viewing and copying, high operation threshold, low efficiency, and difficult to understand the found content.
[0161] 2. Low efficiency: Even professional technicians often need to conduct a second or even more searches based on the search results, and the operation is repetitive. Moreover, the relevant information retrieved is relatively messy, and the cost of screening and selecting is high.
[0162] Therefore, in some embodiments of the present disclosure, a method for information retrieval is also proposed.
[0163] Figure 6 FIG. 1 is a flow chart of an information retrieval method in a specific embodiment of the present disclosure. Figure 6 As shown, the information retrieval method in a specific embodiment of the present disclosure includes the following steps:
[0164] Step 601: pre-set at least one search scenario, and pre-set at least one filter item for each search scenario.
[0165] In the embodiments of the present disclosure, one or more search scenarios can be pre-set according to the needs of the actual application environment, and one or more optional filter items can be pre-set for each search scenario, so that different search conditions can be configured for different search scenarios.
[0166] In addition, as an example, in a possible implementation of the present disclosure, after setting the search scenario and the corresponding filter items, the set search scenario and the corresponding filter items may be output and / or displayed for use by the user.
[0167] In addition, as an example, in a possible implementation of the present disclosure, the filter item may include: a value-type filter item or an enumeration-type filter item;
[0168] When the filter item is a value-based filter item, the data entered by the user can be used as the filter value of the filter item;
[0169] When the filter item is an enumeration filter item, the value corresponding to the enumeration item selected by the user can be used as the filter value of the filter item.
[0170] After setting the above-mentioned search scenarios and corresponding filter items, when the user needs to perform a search, he or she can first select the required search scenario according to his or her actual needs; after selecting the search scenario, he or she can select one or more required filter items according to actual needs, and enter and / or select the corresponding filter values.
[0171] For example, when the retrieval scenario the user needs to use is an event push scenario, he can select the "event push" scenario from the multiple retrieval scenarios provided by the system, and select "pusher" from the multiple filter items corresponding to the "event push" scenario (for example, pusher, recipient, etc.), and then enter the filter value related to the "pusher" (for example, pusher ID, etc.).
[0172] In addition, as an example, in a possible implementation of the present disclosure, retrieval scenarios and filter items corresponding to the retrieval scenarios can be pre-set by regular matching, so that the filtering and display methods of non-fixed formatted logs can be configured according to the needs of actual applications.
[0173] Step 602 : Select at least one search scenario and corresponding filter items from pre-set search scenarios based on the received search information associated with the work order.
[0174] In an embodiment of the present disclosure, after setting the above-mentioned search scenario, if the user needs to use the above-mentioned search scenario, he or she generally needs to provide a corresponding work order (for example, a work order for information processing failure or event processing failure, etc.).
[0175] After receiving the corresponding work order, associated retrieval information can be obtained from the work order (for example, preset fields are extracted from the work order, and then associated retrieval information is obtained based on the content of the extracted fields), and at least one retrieval scenario and corresponding filter items are selected from the pre-set retrieval scenarios based on the associated retrieval information for selection by the user or system.
[0176] In addition, in the embodiments of the present disclosure, the correspondence between the content of the above-mentioned preset fields and each search scenario can be pre-set according to the needs of the actual application scenario, so that at least one search scenario and the corresponding filter item can be automatically selected from the pre-set search scenarios more conveniently according to the content of the preset field, without the need for the user to make a selection or narrow the scope of the user's selection.
[0177] Step 603: Generate a corresponding search request according to the determined search scenario, filter items, and filter values input by the user.
[0178] In an embodiment of the present disclosure, after the required retrieval scenario and the required filter items are determined (for example, automatically determined by the system or determined by the user's selection), and the corresponding filter values are entered in the selected filter items, a corresponding retrieval request can be generated based on the determined retrieval scenario, the corresponding filter items, and the filter values entered by the user.
[0179] Step 604: perform a search according to the generated search request to obtain a search result.
[0180] In an embodiment of the present disclosure, after a search request is generated, a search may be performed according to the generated search request to obtain a search result.
[0181] Through the above steps 601 to 604, scenario-customized information retrieval can be achieved. The user can select the required search scenario, select the corresponding filter item and fill in the corresponding filter value to complete a quick query, thereby lowering the usage threshold of the search operation, so that non-technical personnel can also perform search operations conveniently, thereby improving the user's operation efficiency; moreover, the search conditions for different scenarios can be customized in advance, so that different search conditions can be configured and used in different scenarios; and, since the selectable search scenarios need to be determined based on the work order information, different search scenarios usually correspond to different information retrieval ranges, so the corresponding information retrieval range can also be adapted according to the work order information, thereby improving the search efficiency and ensuring information security.
[0182] In addition, as an example, in a possible implementation of the present disclosure, before performing the search, the above-mentioned information search method may further include:
[0183] Use the preset format to format the information you want to retrieve.
[0184] In common application scenarios, the amount of information in the system is very large. Therefore, we usually need to select a portion of the system information for retrieval or query. For example, the amount of commonly used log information in the system is very large, so it is usually necessary to select a portion of the log data from the massive log information for retrieval or query. For example, when some data or operations on a user's request link fail, we can usually first select a portion of the log data related to the user's request link from the database (for example, operation log data such as information sending and event push), and then search or query in these selected log data.
[0185] However, the information in the system is usually not in a unified format, which brings a lot of difficulties to subsequent retrieval or query.
[0186] Therefore, in the embodiment of the present disclosure, before performing a search, the information to be retrieved may be formatted in advance using a preset format, thereby facilitating efficient retrieval of the information in subsequent operations.
[0187] In the embodiments of the present disclosure, the information to be retrieved may be formatted in a variety of specific implementations.
[0188] For example, in a possible implementation of the present disclosure, formatting the information to be retrieved using a preset format may include:
[0189] When the information to be retrieved is log information, the log information is formatted into a structured log, thereby facilitating subsequent retrieval or query.
[0190] Of course, in the embodiment of the present disclosure, the preset format may also be other suitable formats, which will not be described in detail here.
[0191] In addition, in the embodiments of the present disclosure, when performing a search, either a common search method or the above-mentioned information search method can be used.
[0192] Furthermore, when search results need to be output and / or displayed, they are typically directly output and / or displayed to the user. However, the content of the directly obtained search results is generally disorganized, with various information mixed together and the key points not being highlighted. Users are required to search for or extract key information from the various information, which increases the user experience, makes it difficult to view and understand, and reduces the user experience.
[0193] Therefore, in the embodiment of the present disclosure, after obtaining the search results, the search results may be processed first, and then the processed search results may be output and / or displayed.
[0194] For example, in one possible implementation of the present disclosure, the above method may further include:
[0195] Use the simplified template corresponding to the search scenario to process the search results to obtain simplified search results;
[0196] Use preset display styles to output and / or display simplified search results.
[0197] In addition, since information in certain scenarios (for example, log information in certain scenarios) needs to be stored for a long time, if the content of the information needs to be modified midway, the original simplified template may no longer be applicable.
[0198] Therefore, as an example, in a possible implementation of the present disclosure, the above method may further include:
[0199] One or more simplified templates are set in advance for each search scenario.
[0200] Therefore, when the content of information changes, an identifier (e.g., version parameter, etc.) can be set in the corresponding information (e.g., log information). When a simplified template is needed to process the search results, the identifier in the corresponding information in the search results can be obtained first, and then a simplified template corresponding to the search scenario and identifier can be selected based on the identifier. The selected simplified template is then used to process the search results to obtain simplified search results.
[0201] In addition, in the embodiments of the present disclosure, the simplified template described above may be implemented in a variety of specific ways.
[0202] For example, in a possible implementation of the present disclosure, the simplified template may be: a pre-configured specific code string.
[0203] By utilizing the characteristic of scripting language that it can be directly interpreted and executed without compilation, the search results can be processed using the above-mentioned specific code string to obtain simplified search results.
[0204] In addition, in the embodiments of the present disclosure, a variety of display styles can be pre-set.
[0205] For example, in one possible implementation of the present disclosure, the display style may include:
[0206] The same text content is displayed in the same style (for example, highlighted or in a preset color), and different text content is displayed in different styles.
[0207] For example, as an example, in a possible implementation of the present disclosure, preset keywords may be displayed in a highlighted manner.
[0208] For example, in a software system, the preset keywords may be important fields that are likely to be frequently searched. By highlighting the keywords, the user can easily see the more important content or the content that the user is generally concerned about when viewing the search results.
[0209] For another example, in one possible implementation of the present disclosure, various processes and / or steps may be identified by a plurality of preset colors.
[0210] For example, in a software system, for one or more key stages in the information life cycle (for example, sending a message, sending a message queue, consuming a message queue, pushing an event bus, pushing to a user device, etc.), different preset colors can be used to identify each stage, so that users can easily distinguish which stages the message they care about has gone through and which stage it is finally in, thereby speeding up problem location efficiency.
[0211] For another example, in a software system, for one or more key stages in the event life cycle (e.g., event sending, event storage, event push, etc.), different preset colors can be used to identify each stage, so that users can easily distinguish the information they are interested in. Among them, event storage can be understood as storing the event in the database.
[0212] For another example, in a software system, when a certain stage in the process of a business scenario fails, the error information can also be displayed in a highlighted manner, so that the error information can be directly highlighted in the query interface, which can help users quickly locate the problem and speed up the problem location efficiency.
[0213] For another example, in a software system, the entire process of a preset scene can be output and / or displayed separately in a preset form (for example, a flow chart form, a front-end page specialized form, etc.), so that the content presentation dimension can be optimized.
[0214] Through the above method, the search results can be converted into a preset display style according to a preset method, and the presentation effect of the search results can be optimized, so that the presented search results are simplified, popularized, highlighted, and easy to view and understand, which greatly improves the user experience.
[0215] In addition, as an example, in a possible implementation of the present disclosure, a jump link may be further provided in the simplified search results.
[0216] After setting the above jump link, the user can perform the preset jump operation by clicking the above jump link.
[0217] For example, as an example, in a possible embodiment of the present disclosure, a jump link can be set on the log ID in the key log in the software system. When the jump link is clicked, it will automatically jump to the corresponding log platform and perform asynchronous retrieval of the corresponding log keyword.
[0218] For another example, in one possible implementation of the present disclosure, a jump link can be set on a result element in the search results in the software system. When the jump link is clicked, the user can automatically jump to and view relevant files for the corresponding scenario, for example, automatically view the description information for the corresponding scenario, or automatically consult a pre-configured troubleshooting manual or other file.
[0219] In addition, in the embodiments of the present disclosure, after the user searches based on specific conditions and obtains search results, the user can also choose whether to directly share the corresponding search results with others via a link.
[0220] For example, in one possible implementation of the present disclosure, after obtaining the search results, the above method may further include:
[0221] A corresponding query template is generated according to the search scenario selected by the user, the corresponding filter item, and the filter value input by the user, and a corresponding sharing link is generated for the query template.
[0222] Therefore, users can send the above-mentioned sharing link to other users they need to send it to. When other users click on the sharing link, the query template corresponding to the sharing link will be used to display the search scenarios and corresponding filter items included in the query template to the user. When the user enters the corresponding filter value based on the filter item, a corresponding search request can be generated based on the search scenario in the query template, the corresponding filter item, and the filter value entered by the user; then, a search can be performed based on the search request to obtain the search results.
[0223] Therefore, users who use the above-mentioned sharing link no longer need to select the search scenario and the corresponding filter items. They can complete the quick search function by entering the corresponding filter values to obtain the required search results, so that users can perform search operations very conveniently, which can greatly improve the user experience.
[0224] In addition, as an example, in a possible implementation of the present disclosure, generating a corresponding query template according to the search scenario selected by the user, the corresponding filter item, and the filter value input by the user may include:
[0225] The search scenario selected by the user, the corresponding filter items, and the filter values entered by the user are saved in the object as a query template.
[0226] In addition, as an example, in a possible implementation of the present disclosure, after the query template is generated, the query template may be further stored in a database.
[0227] Therefore, when the user needs to use the query template, the query template can also be directly read from the above database.
[0228] In addition, in the embodiment of the present disclosure, after sharing the query template with other users, what is actually shared is the search conditions rather than the search results. Therefore, in the above method, further, the shared person may need to authenticate before viewing the corresponding search results.
[0229] For example, in one possible implementation of the present disclosure, the above method may further include:
[0230] When searching using a query template, it is confirmed whether the user using the query template has the corresponding query authority.
[0231] When the user using the query template has the corresponding query authority, it can be considered that the authentication is passed. At this time, the corresponding search request can be generated according to the search scenario in the query template, the corresponding filter items and the filter values entered by the user.
[0232] If the user using the query template does not have the corresponding query authority, it is considered that the authentication has failed, so the subsequent search operation is not performed and a prompt is given that the authority is insufficient.
[0233] For example, in a possible implementation of the present disclosure, confirming whether the user using the query template has the corresponding query authority may include:
[0234] When the first search condition includes the second search condition, the user using the query template has the query authority; otherwise, the user using the query template does not have the query authority.
[0235] Wherein, the first search condition includes: a search condition that a user using the query template is entitled to select;
[0236] The second search condition includes: the search condition included in the search scenario in the query template.
[0237] Therefore, through the above method, different personnel can be granted the right to perform log retrieval in different scenarios according to the scenario dimension. Through the above scenario-based authorization method, the visible scope of the log can be flexibly controlled to ensure information security.
[0238] For example, the associated condition options required for searching under specific role users and corresponding search scenarios (ie, all search conditions that must be specified) can be pre-set.
[0239] Furthermore, when using a system (e.g., a software system), users may often report issues to the system provider (e.g., the software developer). For example, why does a message appear to be sent successfully, but the recipient doesn't receive it? In these scenarios, locating the problem and its cause typically requires technical R&D personnel to review service logs. This multi-party investigation, which consumes significant time and manpower, ultimately leads to a lack of a quick, non-disruptive, and reliable way to find the root cause.
[0240] Therefore, in an embodiment of the present disclosure, before retrieving information, the fault information sending location can be set in advance in a typical high-frequency problem scenario, and the corresponding fault information data can be triggered to be reported when a problem occurs, thereby facilitating accurate positioning of the problem.
[0241] For example, in one possible implementation of the present disclosure, before performing the search, the above method may further include:
[0242] Set the fault information sending location in advance under preset scenarios (for example, typical high-frequency problem scenarios, etc.);
[0243] Setting the type of fault information data for each fault information sending location according to the status of the node and / or information object in the preset scenario;
[0244] When the status of the nodes and / or information objects in the preset scenario meets the preset trigger conditions, the corresponding fault information data is sent; wherein the preset trigger conditions include: a failure in information processing or a failure in event processing.
[0245] In addition, as an example, in a possible implementation manner of the present disclosure, the above method may further include: storing the received fault information data.
[0246] For example, as an example, in a possible implementation of the present disclosure, in a software system, the preset scenario may be: typical high-frequency problem scenarios such as information lifecycle scenarios and / or event lifecycle scenarios.
[0247] In the above-mentioned information life cycle scenario, the entire record of information from the entry of information sending (updating information) request to the final push to a certain user device can be detected.
[0248] Taking sending information through the open platform interface as an example, the whole process includes:
[0249] 1.1. Users send messages by calling open interfaces;
[0250] 1.2. The open layer successfully calls the underlying information service capability to send a message;
[0251] 1.3. Information services are pushed asynchronously, first pushed online;
[0252] 1.4. If the user's device is offline, switch to offline push;
[0253] 1.5. The user's device receives online push / offline push.
[0254] In addition, in the above event lifecycle scenario, the entire record of the event from the occurrence of the action to the successful push can be detected.
[0255] For example, taking the sending of information event as an example, the whole process includes:
[0256] 2.1. The message was sent successfully;
[0257] 2.2. The information enters the asynchronous sending information queue;
[0258] 2.3. Consume the events in the asynchronous message queue and push the consumed events to the eventbus;
[0259] 2.4. Push events in eventbus to the preset server;.
[0260] The inventors discovered that in the aforementioned scenarios, each node frequently encounters information during processing, leading to a high probability of information failure. Furthermore, the information processing process is lengthy, requiring the coordination of multiple modules to complete. Consequently, when information transmission fails and troubleshooting is necessary, troubleshooting becomes difficult, often requiring staff from multiple modules or departments to collaborate on troubleshooting and locating the problem. This creates a significant workload and is prone to inaccurate troubleshooting or incomplete information.
[0261] Therefore, in some embodiments, a corresponding fault information sending location can be set for each of the above-mentioned preset scenarios, and the type of fault information data can be set for each fault information sending location. For example, a fault information sending location is set in each link of 1.1-1.5 or each link of 2.1-2.4 above, so that when a fault occurs, the fault can be located and repaired based on the fault-related information uploaded by these related fault information sending locations, thereby improving the efficiency and accuracy of fault troubleshooting and improving system stability.
[0262] For example, in one possible implementation of the present disclosure, the types of the fault information data may include: general data and scenario-specific data.
[0263] For example, as an example, in one possible implementation of the present disclosure, the general data may include: the first module identifier that performs information processing, timestamp, request ID, tenant ID, device ID that initiates the request, application version, request initiating platform type, the second module identifier that performs the information processing, and other data.
[0264] For another example, as an example, in a possible implementation of the present disclosure, in the above-mentioned information life cycle scenario, the scenario-specific data may include: information ID, sender ID, and device ID to which the information is pushed;
[0265] In the above event lifecycle scenario, the scenario-specific data may include: information ID, operator ID and event ID.
[0266] In addition, in the embodiment of the present disclosure, when the fault information data reported by each fault information sending location is received, the received fault information data will be stored. In order to facilitate the storage and / or retrieval of the fault information data, a storage protocol for the fault information data can be pre-set.
[0267] For example, as an example, in one possible implementation of the present disclosure, a storage protocol for fault information data may be pre-set in the form of a software development kit (SDK).
[0268] At this point, the access party needs to provide the key and value of the fault information data. The key can be specified in the form of a structure array. The structure array can also include the key name and key value. The value format is a universal interface type that can support content in any format.
[0269] In the above method, since the fault information data is stored according to the pre-set storage protocol of the fault information data, when the fault information data needs to be called subsequently, the stored fault information data can be directly retrieved according to the above protocol, thereby improving the retrieval speed and the accuracy of the retrieval results.
[0270] In addition, in the embodiments of the present disclosure, various methods may be used to store the above-mentioned fault information data.
[0271] For example, in one possible implementation of the present disclosure, storing the received fault information data may include:
[0272] According to preset rules, such as storage data volume, data importance priority, etc., the fault information data is stored hierarchically, for example, divided into three levels of storage, and the fault information data is stored in the first storage device, the second storage device and the third storage device respectively.
[0273] In addition, we can pre-set different expiration times for different storage devices, so that the fault information data stored in different storage devices can have different expiration times.
[0274] For example, as an example, in one possible implementation of the present disclosure, the expiration time of the first storage device can be set to a first duration; the expiration time of the second storage device can be set to a second duration; and the expiration time of the third storage device can be set to a third duration.
[0275] In the above method, different storage methods can be used according to the situation of the fault information data. The fault information data stored in different storage devices have different expiration times, which can facilitate the staff to obtain the required fault information data from different storage devices according to the actual situation, so as to minimize the delay of the retrieval operation and minimize the cost of data storage.
[0276] In addition, in an embodiment of the present disclosure, an information retrieval device is also proposed.
[0277] Figure 7 FIG. 1 is a schematic diagram of the structure of an information retrieval device in a specific embodiment of the present disclosure. Figure 7 As shown, the information retrieval device 700 in a specific embodiment of the present disclosure includes: a configuration module 701 and a retrieval module 702;
[0278] The configuration module 701 is configured to pre-set at least one search scenario and pre-set at least one filter item for each search scenario; select at least one search scenario and corresponding filter item from the pre-set search scenarios based on a search request received in a work order; and generate a corresponding search request based on the determined search scenario, filter item, and filter value entered by the user;
[0279] The retrieval module 702 is used to perform retrieval according to the generated retrieval request to obtain retrieval results.
[0280] In addition, as an example, in a possible implementation of the present disclosure, the information retrieval device may further include: a simplification module and an output module;
[0281] The simplification module is used to process the search results using a simplified template corresponding to the search scenario to obtain simplified search results;
[0282] The output module is used to output and / or display simplified search results using a preset display style.
[0283] In addition, the information retrieval device provided in the above embodiments of the present disclosure can be used to execute the technical solutions of various embodiments of the above-mentioned information retrieval method. Its implementation principles and technical effects are similar and will not be repeated here.
[0284] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown.
[0285] like Figure 8 As shown, the electronic device may include a processor 801, a memory 802, a bus 803, and a computer program stored in the memory 802 and executable on the processor 801, wherein the processor 801 and the memory 802 communicate with each other via the bus 803. When the processor 801 executes the computer program, the steps of the above method are implemented, for example, including: searching a preset database according to a received search request to obtain a search result, and using the search result as the search result of the current stage; obtaining a corresponding filtering condition from a concatenation configuration corresponding to the search result of the current stage, and selecting at least one record from the search result of the current stage as a parent record according to the filtering condition; obtaining a corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, and obtaining a value of the concatenation keyword from the selected parent record, and using the obtained value of the concatenation keyword and the next-stage search rule as a new search condition; searching the database according to the new search condition to obtain a new search result; and obtaining a final search result based on all the search results.
[0286] Another example includes: pre-setting at least one search scenario and pre-setting at least one filter item for each search scenario; selecting at least one search scenario and corresponding filter item from the pre-set search scenarios based on the preset fields in the received work order; generating a corresponding search request based on the determined search scenario, filter item and filter value input by the user; performing a search based on the generated search request to obtain a search result.
[0287] In addition, in one embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented, for example, including: searching a preset database according to a received search request to obtain search results, and using the search results as the search results of the current stage; obtaining corresponding filtering conditions from the serial configuration corresponding to the search results of the current stage, and selecting at least one record as a parent record from the search results of the current stage according to the filtering conditions; obtaining corresponding next-stage retrieval rules and serial keywords from the current serial configuration, and obtaining the value of the serial keyword from the selected parent record, and using the obtained serial keyword value and next-stage retrieval rules as new retrieval conditions; searching the database according to the new retrieval conditions to obtain new retrieval results; and obtaining the final retrieval results based on all retrieval results.
[0288] Another example includes: pre-setting at least one search scenario and pre-setting at least one filter item for each search scenario; selecting at least one search scenario and corresponding filter item from the pre-set search scenarios based on the preset fields in the received work order; generating a corresponding search request based on the determined search scenario, filter item and filter value input by the user; performing a search based on the generated search request to obtain a search result.
[0289] To sum up, in some embodiments of the present disclosure, the preset database is first searched according to the received search request to obtain the initial search results; then it is determined whether the search scenario has a serial configuration corresponding to the search results of the current stage; if so, the next stage of serial search can be performed according to the serial configuration: first select the parent record from the search results of the current stage, and then use the value of the serial keyword in the parent record and the search rules of the next stage as new search conditions, and then search the database to obtain new search results; when the serial search of each stage is completed, all the search results are merged to obtain the final search results; therefore, when the user is searching, more related search results can be retrieved through the above-mentioned initial search and one or more stages of serial search, which can greatly reduce the user's workload, reduce the user's operation difficulty, and improve the user's search efficiency.
[0290] In addition, in some embodiments of the present disclosure, scenario-customized information retrieval can also be implemented. Users can select the required retrieval scenario, select the corresponding filter items and fill in the corresponding filter values to complete a quick query, thereby lowering the usage threshold of the retrieval operation, allowing non-technical personnel to easily perform retrieval operations and improving user operating efficiency; moreover, the retrieval conditions for different scenarios can be customized in advance, so that different retrieval conditions can be configured and used in different scenarios.
[0291] In addition, in some embodiments of the present disclosure, the search results can be processed using a simplified template corresponding to the search scenario to obtain simplified search results, and the simplified search results can be output and / or displayed using a preset display style, thereby optimizing the presentation effect of the search results, making the presented search results simplified, popular, focused, easy to view and understand, and greatly improving the user experience.
[0292] In addition, in some embodiments of the present disclosure, before retrieving information, the fault information sending location can be set in advance in typical high-frequency problem scenarios, and the corresponding fault information data can be triggered to be reported in the corresponding situation, so as to facilitate accurate positioning of the problem.
[0293] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for information retrieval, characterized in that: The method comprises: Searching a preset database according to the received search request to obtain a search result, and using the search result as the search result of the current stage; Obtaining a corresponding filtering condition from a concatenation configuration corresponding to the search results of the current stage, and selecting at least one record from the search results of the current stage as a parent record based on the filtering condition; wherein the concatenation configuration is a configuration corresponding to a concatenation stage, and the concatenation stage is a retrieval stage in which an Nth search is performed based on the results of the N-1th search after the N-1th search; Obtaining the corresponding next-stage search rule and concatenation keyword from the current concatenation configuration, and obtaining the value of the concatenation keyword from the selected parent record, and using the obtained concatenation keyword value and the next-stage search rule as new search conditions; Search the database according to the new search conditions to obtain new search results; The final retrieval result is obtained according to the retrieval result of the current stage and the new retrieval result.
2. The method according to claim 1, characterized in that Obtaining the final search result based on the search result of the current stage and the new search result includes: Using the new search results as the search results of the current stage; When the search scenario has a series configuration corresponding to the search results of the current stage, returning to execute the step of obtaining the corresponding filtering condition from the series configuration corresponding to the search results of the current stage, and selecting at least one record from the search results of the current stage as a parent record according to the filtering condition; When the retrieval scenario does not have a series configuration corresponding to the retrieval results of the current stage, all retrieval results are processed and used as the final retrieval results.
3. The method according to claim 1, characterized in that The method further comprises: Sort the elements in the final search results according to the preset sorting method.
4. The method according to claim 3, characterized in that The preset sorting methods include: Sort by the order of the timestamps of each element.
5. The method according to claim 1, wherein The method further comprises: Determine whether the retrieval scenario has a tandem configuration corresponding to the retrieval result of the current stage; If yes, executing the step of obtaining a corresponding filtering condition from the concatenation configuration corresponding to the search result of the current stage, and selecting at least one record from the search result of the current stage as a parent record according to the filtering condition; Otherwise, all search results are processed and used as the final search results.
6. The method according to claim 1, characterized in that The next stage search rule includes: the stage value is a preset value.
7. An information retrieval device, characterized in that: The device comprises: a retrieval module, a screening module and a determination module; The retrieval module is used to search the preset database according to the received retrieval request, obtain the retrieval result, and use the retrieval result as the retrieval result of the current stage; The filtering module is configured to obtain a corresponding filtering condition from a concatenation configuration corresponding to the search results of the current stage, and select at least one record from the search results of the current stage as a parent record based on the filtering condition; wherein the concatenation configuration is a configuration corresponding to a concatenation stage, and the concatenation stage is a retrieval stage in which an Nth search is performed based on the results of the N-1th search after the N-1th search; The filtering module is further configured to obtain the corresponding next-stage search rule and the concatenation keyword from the current concatenation configuration, obtain the value of the concatenation keyword from the selected parent record, and use the obtained value of the concatenation keyword and the next-stage search rule as new search conditions; The retrieval module is further configured to search the database according to the new retrieval condition to obtain new retrieval results; The determining module is used to obtain the final retrieval result based on the retrieval result of the current stage and the new retrieval result.
8. A method for information retrieval, characterized in that: The method comprises: Pre-setting at least one search scenario, and pre-setting at least one filter item for each search scenario; Selecting at least one search scenario and corresponding filter items from pre-set search scenarios based on the search information associated with the received work order; Generate a corresponding search request based on the determined search scenario, filter items, and filter values input by the user; the search request is generated according to the information retrieval method according to any one of claims 1 to 6; Perform a search based on the generated search request to obtain search results.
9. The method according to claim 8, characterized in that The method further comprises: Use the preset format to format the information you want to retrieve.
10. The method according to claim 8, characterized in that The method further comprises: Use the simplified template corresponding to the search scenario to process the search results to obtain simplified search results; Use preset display styles to output and / or display simplified search results.
11. The method according to claim 10, characterized in that The method further comprises: One or more simplified templates are set in advance for each search scenario.
12. The method according to claim 10, characterized in that The display styles include: Pre-set built-in cascading style sheets styles and built-in utility functions; Alternatively, preset keywords may be displayed by highlighting; Alternatively, various processes and / or steps can be identified by a variety of pre-set colors.
13. The method according to claim 10, characterized in that The method further comprises: Set jump links in simplified search results.
14. The method according to claim 8, characterized in that After obtaining the search results, the method further includes: Generate a corresponding query template based on the search scenario selected by the user, the corresponding filter item, and the filter value entered by the user, and generate a corresponding sharing link for the query template; When a user uses a query template to perform a search, it is confirmed whether the user using the query template has the corresponding query authority.
15. The method according to claim 14, characterized in that The step of confirming whether the user using the query template has the corresponding query authority includes: When the first search condition includes the second search condition, the user using the query template has the query permission; otherwise, the user using the query template does not have the query permission; Wherein, the first search condition is: a search condition that a user using the query template is entitled to select; The second search condition is: the search condition included in the search scenario in the query template.
16. The method according to claim 8, characterized in that Before performing the search, the method further includes: Pre-set the fault information sending location under a preset scenario; the preset scenario includes: information life cycle scenario and / or event life cycle scenario; Setting the type of fault information data for each fault information sending location according to the status of the node and / or information object in the preset scenario; When the status of the nodes and / or information objects in the preset scenario meets the preset trigger conditions, the corresponding fault information data is reported; wherein the preset trigger conditions include: a failure in information processing or a failure in event processing.
17. An information retrieval device, characterized in that: The device includes: a configuration module and a retrieval module; The configuration module is configured to pre-set at least one search scenario and pre-set at least one filter item for each search scenario; select at least one search scenario and corresponding filter item from the pre-set search scenarios based on the received search information associated with the work order; generate a corresponding search request based on the determined search scenario, filter item, and filter value input by the user; the search request is generated according to the information retrieval method according to any one of claims 1 to 6; The retrieval module is used to perform retrieval according to the generated retrieval request to obtain retrieval results.
18. An electronic device comprising a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the information retrieval method according to any one of claims 1 to 6 or 8 to 16 are implemented.
19. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the information retrieval method according to any one of claims 1 to 6 or 8 to 16 are implemented.
Citation Information
Patent Citations
Method and device for customizing retrieval conditions in manuscript system
CN102193945A
POI (Point Of Interest) searching method and device, server and storage medium
CN110388933A