Method, device and electronic equipment for optimizing document search

By adjusting the display position of target document information using a path library in the document search system, the problem of low search efficiency caused by insufficient customer input conditions is solved, enabling rapid location of historically matched document information and improving document search efficiency.

CN115374061BActive Publication Date: 2025-12-09BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211031844.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2025-12-09
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

Existing document search systems suffer from inaccurate search results due to insufficient user input, requiring extensive page flipping to find the desired document, resulting in low search efficiency.

Method used

By obtaining search keywords from document search requests and adjusting the display position of target document information using historical search paths in the path library, the document search path is optimized to improve search efficiency, making historically matched document information visible in the current search results.

Benefits of technology

By adjusting the display position of document information, users can quickly find previously found documents, reducing page-turning operations and improving document search efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115374061B_ABST
    Figure CN115374061B_ABST
Patent Text Reader

Abstract

The application discloses an optimization processing method and device of document search and electronic equipment, which can be applied to the field of big data. The method comprises the following steps: obtaining a document search request containing a search keyword; obtaining a document search result in a document library according to the search keyword; the document search result contains a plurality of target documents; outputting document information corresponding to the target documents through a search page, and a target page in the search page is in a visible state; obtaining a target search path matched with the search keyword in a path library; the path library contains a plurality of document search paths, and the document search path at least represents a document position of document information corresponding to a corresponding historical document in a historical search result; according to the document position represented by the target search path, at least the search page where the document information corresponding to the target document is located is adjusted, so that the document information corresponding to a first document corresponding to the target search path in the target document is displayed in the target page.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and particularly relates to a document search optimization processing method and device and electronic equipment. BACKGROUND

[0002] When different customers use a document library to search, the same or different search conditions may be input, and the document library inevitably cannot accurately search due to the insufficient input conditions of the customers, so that a large number of pages need to be turned to find the required document results, and the search efficiency of the document is low.

[0003] Therefore, a technical solution capable of improving the document search efficiency is urgently needed. SUMMARY

[0004] Therefore, the present application provides a document search optimization processing method and device and electronic equipment to solve the technical problem of low document search rate. As follows:

[0005] A document search optimization processing method, the method comprising:

[0006] obtaining a document search request, wherein the document search request comprises at least one search keyword;

[0007] obtaining a document search result in a document library according to the search keyword, wherein the document search result comprises a plurality of target documents;

[0008] outputting document information corresponding to the target documents through at least two search pages, and a target page in the at least two search pages is in a visible state;

[0009] obtaining a target search path matched with the search keyword in a path library, wherein the path library comprises a plurality of document search paths, and the document search path at least represents a document position of document information corresponding to a corresponding historical document in a historical search result;

[0010] adjusting at least a search page where the document information corresponding to the target document is located according to the document position represented by the target search path, so that the document information corresponding to a first document corresponding to the target document in the target search path is displayed in the target page.

[0011] The above method preferably further comprises:

[0012] obtaining a historical keyword and a historical document hit by the historical keyword;

[0013] generating the historical keyword and a document search path corresponding to the historical document according to at least a number of page turning of a search page corresponding to the historical keyword, a search page where document information corresponding to the historical document is located, and a document position of the document information corresponding to the historical document in the search page where the document information is located;

[0014] adding the document search path to the path library.

[0015] The method, preferably, further comprises:

[0016] obtaining a document keyword of the historical document;

[0017] obtaining a keyword supplement item corresponding to the historical keyword from the document keyword;

[0018] adding the keyword supplement item to the document search path corresponding to the historical document.

[0019] The method, preferably, adjusting at least a search page where document information corresponding to the target document is located according to the document position represented by the target search path, comprises:

[0020] determining a first document corresponding to the target search path in the target document according to the document position represented by the target search path;

[0021] adjusting document information corresponding to the first document from a current page where the document information is located to a first position on the target page, so that a document corresponding to the first position and documents after the first position in the document search result are arranged after the first document.

[0022] The method, preferably, after adjusting the document information corresponding to the first document from the current page to the first position on the target page, further comprises:

[0023] monitoring whether a hit determination operation for the first document is received;

[0024] generating a document search path corresponding to the search keyword and the first document according to the search keyword, the first document and the first position, in a case where the hit determination operation for the first document is received.

[0025] The method, preferably, further comprises:

[0026] monitoring whether a hit discard operation for the first document is received;

[0027] In a case that a hit discard operation for the first document is received, a second document satisfying an association relationship with the first document is obtained in the target document;

[0028] The document information corresponding to the second document is adjusted from a current page where the second document is located to a second position associated with the first position.

[0029] Preferably, the second position is a position after the first position and adjacent to the first position in the document search result, so that the second document and documents after the second document in the document search result are arranged after the second document.

[0030] The method further comprises:

[0031] Monitoring whether a hit determination operation for the second document is received;

[0032] In a case that a hit determination operation for the second document is received, a document search path corresponding to the search keyword and the second document is generated according to the search keyword, the second document and the second position.

[0033] Preferably, the association relationship comprises:

[0034] The document identifier corresponding to the first document contains the document identifier corresponding to the second document.

[0035] An optimization processing device for document search, the device comprises:

[0036] A request obtaining unit is configured to obtain a document search request, the document search request containing at least one search keyword;

[0037] A result obtaining unit is configured to obtain a document search result in a document library according to the search keyword, the document search result containing a plurality of target documents;

[0038] A page output unit is configured to output document information corresponding to the target documents through at least two search pages, and a target page in the at least two search pages is in a visible state;

[0039] A path obtaining unit is configured to obtain a target search path matched with the search keyword in a path library, the path library containing a plurality of document search paths, and each document search path representing at least a document position of document information corresponding to a historical document in a historical search result;

[0040] adjust at least a search page where the document information corresponding to the target document is located according to the document position represented by the target search path, so that the document information corresponding to a first document corresponding to the target search path in the target document is displayed in the target page.

[0041] An electronic device comprises:

[0042] A memory for storing a computer program and data generated by running of the computer program;

[0043] A processor for executing the computer program to achieve: obtaining a document search request, the document search request containing at least one search keyword; obtaining a document search result in a document library according to the search keyword; the document search result containing a plurality of target documents; outputting the document information corresponding to the target document through at least two search pages, and a target page in the at least two search pages being in a visible state; obtaining a target search path matching the search keyword in a path library; the path library containing a plurality of document search paths, the document search path representing at least the document position of the document information corresponding to the historical document corresponding to the document search path in the historical search result; adjusting at least the search page where the document information corresponding to the target document is located according to the document position represented by the target search path, so that the document information corresponding to a first document corresponding to the target search path in the target document is displayed in the target page.

[0044] As can be seen from the above technical solutions, in the optimization method, device and electronic device for document search disclosed by the present application, after obtaining a document search request, a plurality of target documents are obtained in a document library according to a search keyword therein, the document information corresponding to the plurality of target documents is displayed through a plurality of search pages, and only the document information in a target page among the plurality of search pages is in a visible state, then a document search path corresponding to the search keyword is obtained, and the document position of the document information corresponding to the document hit in the historical search represented by the document search path in the historical search result is used to adjust the search page where the document information corresponding to the target document is located, so that the document information corresponding to a first document hit in the historical search by the search keyword is in a visible state. It can be seen that in the present application, the document information corresponding to the hit document in the historical search is positioned in the document information in the current document search result according to the document position of the document information corresponding to the hit document in the historical search in the historical search result, and then the positioned document information is sorted in the search page in the document search result which is in a visible state, so that the user can find the document information corresponding to the hit document in the historical search in time, and the search efficiency of the document is improved. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0046] Figure 1 A flow chart of an optimization processing method of document search provided by the first embodiment of the present application;

[0047] Figure 2 、 Figure 3 、 Figure 4 、 Figure 5 、 Figure 6 A partial flow chart of an optimization processing method of document search provided by the first embodiment of the present application;

[0048] Figure 7 A structure schematic diagram of an optimization processing device of document search provided by the second embodiment of the present application;

[0049] Figure 8 Another structure schematic diagram of an optimization processing device of document search provided by the second embodiment of the present application;

[0050] Figure 9 A structure schematic diagram of an electronic device provided by the third embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solutions of the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.

[0052] Reference Figure 1 The implementation flow chart of an optimization processing method of document search provided by the first embodiment of the present application is shown in the drawing, which can be applied to an electronic device capable of data processing, such as a computer or a server. The technical solution in the present embodiment is mainly used to improve the efficiency of document search.

[0053] Specifically, the method in the present embodiment can include the following steps:

[0054] Step 101: Obtain a document search request.

[0055] The document search request contains at least one search keyword. The search keyword can be a word or a character in the name or title of the document to be searched. There can be one or more search keywords.

[0056] For example, the document search request contains search keywords such as "interest rate", "interest rate adjustment", "bank", "enterprise", and "aid".

[0057] Step 102: Obtain the document search result in the document library according to the search keywords.

[0058] The document search result contains a plurality of target documents.

[0059] Specifically, the document library is a database storing a plurality of documents. After receiving the document search request, the document library can search for documents matching the search keywords in the document library according to the search keywords, and then obtain a plurality of target documents. The target document matching the search keyword means that the target document contains the search keyword, or the similarity between the document character in the target document and the search keyword is higher than a similarity threshold.

[0060] For example, 100 target documents matching the search keywords "interest rate", "interest rate adjustment", "bank", "enterprise", and "aid" are retrieved in the document library according to the search keywords.

[0061] Step 103: Output the document information corresponding to the target document through at least two search pages, and the target page in the at least two search pages is in a visible state.

[0062] The document information can be a jump link of the corresponding document, which is used to point to the storage location of the corresponding document, so that the corresponding document can be read and output to the user when the jump link is clicked.

[0063] In addition, due to the limitation of the output area of the electronic device, the plurality of target documents can be displayed in pages, and only one target page is in a visible state in the plurality of search pages formed by the pages. Correspondingly, the search page corresponds to a page turning control. When the page turning control is clicked, the search page is switched so that the selected search page is in a visible state as a target page.

[0064] For example, in this embodiment, the 100 target documents retrieved are output according to the display mode of 10 jump links per page. Therefore, the 100 target documents are output through 10 search pages, and at any moment, only the 10 jump links of the target documents on one of the pages are in a visible state.

[0065] Step 104: Obtain the target search path matching the search keywords in the path library.

[0066] The path library includes a plurality of document search paths. The document search path represents at least a document position of the document information corresponding to the historical document in the historical search result. The document position includes an order of the search page in the historical search result when the document information corresponding to the historical document is hit in the historical search and an order in the search page.

[0067] For example, when the document A is hit in the historical search, the jump link of the document A is in the third row of the second page. The document search path corresponding to the document A represents that the jump link of the document A is in the third row of the second search page in the historical search result.

[0068] According to the above, in the embodiment, the path library can be used to search the document search path matching the search keyword, i.e., the target search path, according to the search keyword.

[0069] In step 105, according to the document position represented by the target search path, at least the search page where the document information corresponding to the target document is located is adjusted, so that the document information corresponding to the first document corresponding to the target search path in the target document is displayed in the target page.

[0070] Specifically, in the embodiment, the document information corresponding to the first document corresponding to the target search path in the target document can be adjusted from the current page to the target page, so that the document information of the first document is in the visible state.

[0071] As can be seen from the above technical solution, in the document search optimization method provided by the embodiment, after obtaining the document search request, a plurality of target documents are obtained in the document library according to the search keyword. The document information corresponding to the plurality of target documents is displayed through a plurality of search pages, and only the document information in one target page is in the visible state. Then, the document search path corresponding to the search keyword is obtained, and the document position of the document information corresponding to the document hit in the historical search result is obtained according to the document search path represented by the document search path, so that the search page where the document information corresponding to the target document is located is adjusted, so that the document information corresponding to the first document hit in the historical search is in the visible state. It can be seen that, in the embodiment, the document information in the current document search result is positioned according to the document position of the document information corresponding to the document hit in the historical search result in the historical search, and the positioned document information is sorted in the search page in the visible state in the document search result, so that the user can find the document information corresponding to the historical hit in time, and the document search efficiency is improved.

[0072] In an implementation manner, the embodiment can further include the following steps to establish the path library, as shown in the following. Figure 2 ​

[0073] Step 201: obtaining a history keyword and a history document hit by the history keyword.

[0074] The history keyword is an original input keyword of a user in a history search, and the history document hit by the history keyword is a document determined by searching a document library using the history keyword in the history search.

[0075] Specifically, in the embodiment, the history keyword and the history document hit by the history keyword can be obtained by reading history search records of the document.

[0076] Step 202: generating a document search path corresponding to the history keyword and the history document according to at least a search page turning number corresponding to the history keyword, a search page where document information corresponding to the history document is located, and a document position of the document information corresponding to the history document in the search page where the document information is located.

[0077] In the embodiment, information such as a history keyword of a user, a document information point selection record, a search page turning number, and a target result (a history document hit) in a history search is recorded to obtain a history search record. The document information point selection record can be understood as follows: before the target result is hit, the user selects one or more document information to check whether the corresponding document is a required document, and finally selects the history document as the target result. Based on this, in the embodiment, the document information point selection record, the search page turning number, and the history document hit corresponding to the history keyword can be obtained from the history search record. Then, the information is analyzed to determine a page order of a search page where the document information corresponding to the history document hit is located in all search pages, and to determine a document position of the document information corresponding to the history document hit in the search page where the document information is located. Based on this, the document search path corresponding to the history keyword and the history document can be generated in the embodiment. The document search path can represent the page order of the search page where the document information corresponding to the history document hit is located and the document position of the document information corresponding to the history document hit in the search page.

[0078] Step 203: adding the document search path to a path library.

[0079] Thus, with the increase of the number of history searches, the path library stores the document search path corresponding to each history keyword and the history document hit corresponding to the history keyword.

[0080] Based on the above implementation, the embodiment can further include the following steps after step 202, as shown in Figure 3

[0081] ​Step 204: obtaining the document keywords of the historical document.

[0082] In this embodiment, the detailed document content of the historical document can be extracted, such as the title name, keyword list, document label, etc. of the historical document. Then, keyword extraction is performed on these detailed contents to obtain the document keywords.

[0083] Step 205: obtaining the keyword supplement corresponding to the historical keyword in the document keywords.

[0084] In this embodiment, similarity calculation can be performed on the document keywords and the historical keywords, and then the document keywords with a similarity lower than a threshold to the historical keywords are taken as the keyword supplement corresponding to the historical keyword. For example, all the keywords in the document keywords that are different from the historical keywords are taken as the keyword supplement.

[0085] Step 206: adding the keyword supplement to the document search path corresponding to the historical document.

[0086] That is, in addition to the historical keywords, the document search path also contains other keywords in the historical document that are different from the historical keywords. Therefore, the document search path can be retrieved through more keywords.

[0087] In an implementation manner, when the search page where the document information corresponding to the target document is located is adjusted in step 105, the adjustment can be implemented in the following manner, as shown in step 105: Figure 4

[0088] Step 401: determining the first document corresponding to the target search path in the target document according to the document position represented by the target search path.

[0089] Step 402: adjusting the document information corresponding to the first document from the current page where it is located to the first position on the target page, so that the document corresponding to the first position and the documents with a ranking after the first position are ranked after the first document in the document search result.

[0090] The first position can be any position in the target page, or the first position can be the first N positions in the target page, N being a positive integer greater than or equal to 1, or the first position can be the last N positions in the target page.

[0091] ​It can be seen that in this embodiment, the document information corresponding to the first document is moved to the first position in the target page, so that the document information corresponding to other documents at the first position and subsequent positions is sequentially moved backward, that is, in the document search result, the first document is moved forward and the corresponding other documents are moved backward, so as to optimize the output position of the document information corresponding to the first document, so that the document information corresponding to the first document is in a visible state, so as to facilitate the user to view the document information corresponding to the first document in time.

[0092] For example, the target search path matched according to the search keyword, that is, the jump link representing the document A, is in the third row of the second search page in the historical search result. Based on this, in the current document search result, the jump link of the document A is located according to the target search path. Since the jump link of the document A is in the third row of the second search page and is not in a visible state, in this embodiment, the jump link of the document A is moved from the third row of the second search page to the second row of the first search page which is currently in a visible state, so that the jump links of other documents are moved backward by one order except the jump link of the document in the first row of the first search page. Therefore, the jump link of the document A is moved forward to a position visible to the user, without the need for the user to perform a page turning operation again.

[0093] In an implementation manner, after step 402, the embodiment can further include the following steps, as shown in step 402. Figure 5

[0094] Step 403: Monitor whether a hit determination operation for the first document is received. If the hit determination operation for the first document is received, step 404 is performed.

[0095] The hit determination operation can be understood as an operation of reading at least part of the document content of the first document, for example, an operation of clicking the document information of the first document and copying part of the text in the first document, for example, an operation of clicking the document information of the first document and downloading the first document; for example, an operation of downloading the first document. The hit determination operation indicates that the first document is the document required by the current search.

[0096] Step 404: Generating a document search path corresponding to the search keyword and the first document according to the search keyword, the first document and the first position.

[0097] The manner of generating the document search path in step 404 can refer to the corresponding content in the foregoing.

[0098] That is, after optimizing the output position of the document information corresponding to the first document, the document search path corresponding to the first document is optimized in this embodiment, and the optimized document search path corresponding to the search keyword and the first document is added in the document library.​

[0099] In an implementation manner, after step 402, the method in the embodiment can further include the following steps, as shown in the following steps 403-406: Figure 6

[0100] Step 405: Monitoring whether a hit discarding operation for the first document is received; in the case that the hit discarding operation for the first document is received, step 406 is executed.

[0101] The hit discarding operation can be an operation of ignoring the first document. For example, an operation of closing the document page of the first document after clicking the document information of the first document, for another example, an operation of clicking the document information of the first document and not performing browsing or closing the first document, for another example, an operation of browsing the search page where the first document is located but not clicking the first document. The hit discarding operation indicates that the first document is an unnecessary document for the current search.

[0102] Step 406: Obtaining a second document satisfying an association relationship with the first document in the target document.

[0103] The association relationship can be that the document identifier corresponding to the first document contains the document identifier corresponding to the second document, or the similarity between the document identifier corresponding to the first document and the document identifier corresponding to the second document is higher than an association threshold. Based on this, the second document associated with the first document is retrieved in the target document, and the second document can be understood as a document with a high relevance to the first document and is speculated to be a necessary document for the current search.

[0104] Specifically, the document identifier can be understood as a path identifier named document, such as a document ID, a name, etc.

[0105] Step 407: Adjusting the document information corresponding to the second document from the current page where the second document is located to a second position associated with the first position.

[0106] In an implementation manner, the second position can be a position adjacent to the first position in the document search result, so that the document corresponding to the second position and the documents with a ranking after the second position are ranked after the second document in the document search result.

[0107] Specifically, the adjustment manner of the second document can refer to the adjustment manner of the first document.

[0108] Based on the above implementation, the method in the embodiment can further monitor whether a hit determining operation for the second document is received, and in the case that the hit determining operation for the second document is received, generate a document search path corresponding to the search keyword and the second document according to the search keyword, the second document and the second position. ​

[0109] That is, if the second document is hit in the present embodiment, a corresponding new document search path is generated and added to the path library for next use.

[0110] In another implementation, the second position can be a position in the document search result before the first position and adjacent to the first position, so that the document corresponding to the first position and the documents ranked after the first position are ranked after the second document in the document search result.

[0111] It should be noted that since the position of the first document is adjusted, the document search path corresponding to the first document in the path library can be updated, that is, a new document search path is generated with the current new position of the first document and the search keyword.

[0112] Reference Figure 7 A structure diagram of an optimization processing device for document search provided by Embodiment Two of the present application. The device can be configured in an electronic device capable of data processing, such as a computer or a server. The technical solution in the present embodiment is mainly used to improve the efficiency of document search.

[0113] Specifically, the device in the present embodiment can include the following units:

[0114] The request obtaining unit 701 is configured to obtain a document search request, wherein the document search request contains at least one search keyword;

[0115] The result obtaining unit 702 is configured to obtain a document search result in a document library according to the search keyword; the document search result contains a plurality of target documents;

[0116] The page output unit 703 is configured to output document information corresponding to the target documents through at least two search pages, and a target page in the at least two search pages is in a visible state;

[0117] The path obtaining unit 704 is configured to obtain a target search path matching the search keyword in a path library; the path library contains a plurality of document search paths, and the document search path at least represents the document position of the document information corresponding to the historical document in the historical search result;

[0118] The page adjusting unit 705 is configured to adjust at least the search page where the document information corresponding to the target document is located according to the document position represented by the target search path, so that the document information corresponding to the first document in the target document corresponding to the target search path is displayed in the target page.

[0119] It can be seen from the technical solution that, after obtaining the document search request, the search keywords are obtained, and a plurality of target documents are obtained in the document library according to the search keywords. The document information corresponding to the plurality of target documents is displayed through a plurality of search pages, and only the document information in one target page is in a visible state. Then, the document search path corresponding to the search keywords is obtained, and the document information corresponding to the documents hit in the historical search is positioned in the document search result according to the document position of the document information corresponding to the documents hit in the historical search, which represented by the document search path. The search page where the document information corresponding to the target document is located is adjusted, so that the document information corresponding to the first document hit in the historical search is in a visible state. It can be seen that, in the embodiment, the document information corresponding to the documents hit in the historical search is positioned in the document search result according to the document position of the document information corresponding to the documents hit in the historical search in the historical search result, and then the positioned document information is sorted in the search page in the document search result which is in a visible state, so that the user can find the document information corresponding to the historical hit documents in time, and the document search efficiency is improved.

[0120] In an implementation manner, the apparatus in the embodiment can further include units as shown in the following table: Figure 8

[0121] The path processing unit 706 is configured to obtain a historical keyword and a historical document hit by the historical keyword, and generate a document search path corresponding to the historical keyword and the historical document according to at least the number of page turning of a search page corresponding to the historical keyword, a search page where the document information corresponding to the historical document is located, and a document position of the document information corresponding to the historical document in the search page where the document information is located. The document search path is added to the path library.

[0122] In an implementation manner, the path processing unit 706 is further configured to obtain a document keyword of the historical document, obtain a keyword supplement item corresponding to the historical keyword in the document keyword, and add the keyword supplement item to the document search path corresponding to the historical document.

[0123] In an implementation manner, the page adjusting unit 705 is specifically configured to determine a first document corresponding to the target search path in the target document according to the document position represented by the target search path, and adjust the document information corresponding to the first document from a current page where the document information is located to a first position on the target page, so that the documents corresponding to the first position and the documents sorted after the first position are sorted after the first document in the document search result.

[0124] ​In an implementation manner, the page adjusting unit 705 is further configured to: monitor whether a hit determination operation for the first document is received; and in response to receiving the hit determination operation for the first document, trigger the path processing unit 706 to generate a document search path corresponding to the search keyword and the first document according to the search keyword, the first document, and the first position.

[0125] In an implementation manner, the page adjusting unit 705 is further configured to: monitor whether a hit determination operation for the first document is received; and in response to receiving the hit determination operation for the first document, trigger the path processing unit 706 to generate a document search path corresponding to the search keyword and the first document according to the search keyword, the first document, and the first position.

[0126] In an implementation manner, the second position is a position in the document search result that is adjacent to the first position and is after the first position in the document search result, so that a document corresponding to the second position and documents after the second position in the document search result are arranged after the second document in the document search result.

[0127] In an implementation manner, the page adjusting unit 705 is further configured to: monitor whether a hit determination operation for the first document is received; and in response to receiving the hit determination operation for the first document, trigger the path processing unit 706 to generate a document search path corresponding to the search keyword and the first document according to the search keyword, the first document, and the first position.

[0128] In a preferred implementation manner, the association relationship includes that a document identifier corresponding to the first document contains a document identifier corresponding to the second document.

[0129] It should be noted that the specific implementation of each unit in this embodiment can refer to the corresponding content in the foregoing, which will not be described in detail here.

[0130] Reference Figure 9 A structural schematic diagram of an electronic device is provided in Embodiment Three of the present application. The electronic device can be an electronic device capable of data processing, such as a computer or a server. The technical solution in this embodiment is mainly used to improve the document search efficiency.

[0131] Specifically, the electronic device in this embodiment can include the following structure:

[0132] The memory 901 is configured to store a computer program and data generated by running of the computer program.

[0133] The processor 902 is configured to execute the computer program to obtain a document search request, the document search request comprising at least one search keyword; obtain a document search result in a document library according to the search keyword; the document search result comprising a plurality of target documents; output document information corresponding to the target documents through at least two search pages, and a target page in the at least two search pages is in a visible state; obtain a target search path matching the search keyword in a path library; the path library comprises a plurality of document search paths, and the document search paths at least represent document positions of document information corresponding to corresponding historical documents in historical search results; and at least adjust a search page where the document information corresponding to the target documents is located according to the document positions represented by the target search path, so that the document information corresponding to a first document corresponding to the target search path in the target documents is displayed in the target page.

[0134] As can be seen from the above technical solutions, after obtaining a document search request, a plurality of target documents are obtained in a document library according to search keywords in the document search request, and document information corresponding to the plurality of target documents is displayed through a plurality of search pages, and only document information in a target page of the search pages is in a visible state. Then, a document search path corresponding to the search keywords is obtained, and a search page where document information corresponding to a document hit in historical search represented by the document search path is located is adjusted, so that document information corresponding to a first document hit in the historical search is in a visible state. In this embodiment, document information corresponding to a document hit in historical search is positioned in a document search result according to a document position of the document information in the historical search result, and the positioned document information is sorted in a search page in the document search result that is in a visible state, so that a user can find document information corresponding to a document hit in the historical search in time, and the search efficiency of the document is improved.

[0135] Taking a search scenario of a customer to a bank document library as an example, different customers may input the same or different search conditions when searching in the document library. The document library inevitably cannot accurately search the results due to insufficient input conditions of the customers, so that a large number of pages need to be turned to find the required document results. The existing document library cannot record the process of turning pages or inputting supplementary keywords of the user dynamically, so as to provide support for subsequent similar customer searches, and the improvement of customer experience is affected.

[0136] Therefore, based on the present application, the document library playback search optimization scheme is proposed in the embodiment. After the customer search is completed, the search process is played back offline by the search history and operation action record of the customer. After the playback is completed, the document result path is optimized in a dynamic analysis manner for the input of the customer and the target result set. The path identification is generated for each optimized path. The path identification is matched in the online retrieval process of the customer, so as to optimize the document set of the customer, help the customer quickly locate the required document, and reduce the invalid operation times of the customer.

[0137] The scheme in the embodiment mainly contains two parts:

[0138] The offline playback module: the point selection path of the customer is dynamically optimized according to the input and hit result of the customer, and the path identification and association are generated according to the document sampling.

[0139] The online application module: the hit result set is optimized by the identification matching fast approximation method when the customer searches, and the customer is helped to quickly approach the target result.

[0140] Based on this, the document library playback search optimization method based on the retrieval history is established in the embodiment. The method can automatically play back the retrieval history of the customer, optimize the point selection path of the customer, and associate the hit set of the customer. The specific scheme is as follows:

[0141] When the customer searches by using the document library, the original input keyword of the customer, the document point selection record, the page turning times, the target result, the page code where the target result is located and the like are recorded. The record result is transmitted into the offline playback module. The module generates the optimization path table. When the customer subsequently searches by using the document library, the optimization path table is automatically matched and the result set point selection is optimized.

[0142] The offline playback module is responsible for the playback of the point selection record of the customer and the search optimization. The specific process is as follows: the search information recorded by the system is extracted. The original keyword M and the target result D are extracted. The retrieval path of the customer is generated as the original path of M and D according to the retrieval record. The target result D is obtained. The detailed content of the document including the title name, the keyword list, the label and the like is obtained. The above element items are calculated with M in the similarity. The element item value with the largest similarity difference is obtained as the supplementary item of M. The path from M to D is calculated again. The result is recorded as the supplementary keyword path p.

[0143] In the online application module, when the document element item to be searched is similar to the keyword result M, the page turning result in the hit result set is optimized. The paging item where D is located is moved forward. The result is recorded as the optimization path q.

[0144] In the process of optimizing the path p and q, the results in the document set are sampled, for example, the 5*n+1 document is sampled (n is the page number, and each page has 5 document information), the ID and the document name of the document are taken as the path identifier, and the identifiers of all the documents in p and q are compared, if the identifier of the optimized path 1 (that is, the sampled document) includes the identifier of the optimized path 2 (for example, the document corresponding to p), the path 1 and the path 2 are associated, that is, the optimized path 2 is optimized (the document is moved forward), if the optimized path 2 changes after the path 1, then the optimized path 1 is optimized.

[0145] The customer can apply the generated optimized path table online when using the system. The online application adopts the identifier matching fast approximation method to optimize the document set, and the specific method is as follows: first, the original matching method is used to search the document library, the document is dynamically sampled and the identifier is matched in the process of clicking, when the document in the clicking process hits the identifier result, the hit optimized path changes automatically, which is convenient for the customer to select the subsequent result set; if the document set does not hit, at this time, the related optimized path is hit and optimized according to the association relationship, until the customer needs the result set.

[0146] The document search optimization processing method, device and electronic equipment provided by the application can be used in big data or other fields, for example, can be used in the massive data search scene in the big data field. Other fields are any field except the financial field, for example, distributed field, cloud computing field, artificial intelligence field and Internet of Things field. The above are only examples, and do not limit the application field of the application name provided by the application.

[0147] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the related parts can be referred to the method part.

[0148] The skilled person can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the present text can be realized by electronic hardware, computer software or combination of the two. In order to clearly show the interchangeability of hardware and software, the composition and steps of each example have been described in the above description. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0149] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and

[0150] The above description of disclosed embodiments is intended to be illustrative and not restrictive. Many embodiments of the application will be apparent to those of skill in the art upon reviewing the above description. The scope of the application should, therefore, be determined not with reference to the above description, but instead should be given with reference to the appended claims, along with their full scope of equivalents.

Claims

1. A method of optimizing processing of a document search, characterized by, The method comprises: obtaining a document search request, the document search request containing at least one search keyword; obtaining a document search result in a document library according to the search keyword; the document search result contains a plurality of target documents; outputting document information corresponding to the target documents through at least two search pages, and a target page in the at least two search pages is in a visible state; obtaining a target search path matching the search keyword in a path library; the path library contains a plurality of document search paths, and the document search path at least represents a document position of document information corresponding to a historical document corresponding to the search keyword in a historical search result, the document position being an order of a search page in the historical search result when the historical document corresponding to the document information is hit in the historical search and an order in the search page; adjusting at least a search page where the document information corresponding to the target document is located according to the document position represented by the target search path, so that the document information corresponding to a first document corresponding to the target search path in the target document is displayed in the target page; wherein the method further comprises: obtaining a historical keyword and a historical document hit by the historical keyword; generating the historical keyword and a document search path corresponding to the historical document according to at least a search page flipping number corresponding to the historical keyword, a search page where the document information corresponding to the historical document is located, and a document position of the document information corresponding to the historical document in the search page where it is located; adding the document search path to the path library; wherein the adjusting at least the search page where the document information corresponding to the target document is located according to the document position represented by the target search path comprises: locating the first document corresponding to the target search path in the target document in the current document search result according to the document position represented by the target search path; adjusting the document information corresponding to the first document from the current page where it is located to a first position on the target page, so that the documents corresponding to the first position and the documents sorted after the first position are sorted after the first document in the document search result.

2. The method of claim 1, wherein, The method further comprises: obtaining a document keyword of the historical document; obtaining a keyword supplement item corresponding to the historical keyword in the document keyword; adding the keyword supplement item to the document search path corresponding to the historical document.

3. The method of claim 1, wherein, After adjusting the document information corresponding to the first document from the current page to the first position on the target page, the method further comprises: monitoring whether a hit determination operation for the first document is received; generating a document search path corresponding to the search keyword and the first document according to the search keyword, the first document, and the first position, in the case that the hit determination operation for the first document is received.

4. The method of claim 1, wherein, Further comprising: monitoring whether a hit discard operation for the first document is received; In a case that a hit discard operation for the first document is received, in the target document, a second document satisfying an association relationship with the first document is obtained; The document information corresponding to the second document is adjusted from a current page where the document information is located to a second position associated with the first position.

5. The method of claim 4, wherein, The second position is a position in the document search result after the first position and adjacent to the first position, so that the second position corresponding document and the documents after the second position in the document search result are ranked after the second document; The method further comprises: Monitoring whether a hit determination operation for the second document is received; In a case that the hit determination operation for the second document is received, generating a document search path corresponding to the search keyword and the second document according to the search keyword, the second document and the second position.

6. The method of claim 4, wherein, The association relationship comprises: The document identifier corresponding to the first document contains the document identifier corresponding to the second document.

7. An apparatus for optimizing processing of a document search, characterized by comprising: The device comprises: A request obtaining unit is configured to obtain a document search request, wherein the document search request contains at least one search keyword; A result obtaining unit is configured to obtain a document search result in a document library according to the search keyword, wherein the document search result contains a plurality of target documents; A page output unit is configured to output document information corresponding to the target documents through at least two search pages, and a target page in the at least two search pages is in a visible state; A path obtaining unit is configured to obtain a target search path matched with the search keyword in a path library, wherein the path library contains a plurality of document search paths, and each document search path represents at least a document position of document information corresponding to a historical document corresponding to the search keyword in a historical search result, wherein the document position is an order of a search page in a historical search result and an order in the search page when the document information corresponding to the historical document is hit in the historical search; A page adjusting unit is configured to adjust at least a search page where the document information corresponding to the target document is located according to a document position represented by the target search path, so that document information corresponding to a first document corresponding to the target search path in the target document is displayed in the target page; The device further comprises: obtaining a historical keyword and a historical document hit by the historical keyword; generating a document search path corresponding to the historical keyword and the historical document according to at least a search page flipping number corresponding to the historical keyword, a search page where document information corresponding to the historical document is located, and a document position of the document information corresponding to the historical document in the search page; and adding the document search path to the path library. The adjusting at least the search page where the document information corresponding to the target document is located according to the document position represented by the target search path comprises: According to the document position represented by the target search path, in the current document search result, locate the first document corresponding to the target search path in the target document; Adjust the document information corresponding to the first document from the current page where it is located to the first position on the target page, so that the documents corresponding to the first position and the documents after the first position in the target page are ranked after the first document in the document search result.

8. An electronic device, comprising: Comprise: Memory, for storing computer programs and data generated by running the computer programs; Processor, for executing the computer programs to achieve: obtaining a document search request, the document search request containing at least one search keyword; according to the search keyword, obtaining a document search result in the document library; the document search result contains a plurality of target documents; output the document information corresponding to the target document through at least two search pages, and the target page in the at least two search pages is in a visible state; in the path library, obtain the target search path matched with the search keyword; the path library contains a plurality of document search paths, the document search path at least represents the document position of the historical document information corresponding to the search keyword corresponding to the historical document in the historical search result, the document position is the order of the search page in the historical search result and the order in the search page where the historical document information corresponding to the historical document is hit in the historical search; according to the document position represented by the target search path, at least adjust the search page where the document information corresponding to the target document is located, so that the document information corresponding to the first document corresponding to the target search path in the target document is displayed in the target page; Wherein, the computer program further comprises: Obtain the historical keyword and the historical document hit by the historical keyword; At least according to the search page turning page number corresponding to the historical keyword, the search page where the document information corresponding to the historical document is located, and the document position of the document information corresponding to the historical document in the search page where it is located, generate the historical keyword and the document search path corresponding to the historical document; Add the document search path to the path library; Wherein, according to the document position represented by the target search path, at least adjust the search page where the document information corresponding to the target document is located, comprising: According to the document position represented by the target search path, in the current document search result, locate the first document corresponding to the target search path in the target document; Adjust the document information corresponding to the first document from the current page where it is located to the first position on the target page, so that the documents corresponding to the first position and the documents after the first position in the target page are ranked after the first document in the document search result.

Citation Information

Patent Citations

  • Semantic search method based on multi-semantic analysis and personalized sequencing

    CN103020164A

  • Candidate document sorting method and device

    CN109241243A