CN112347324A - Document query method and device, electronic equipment and storage medium - Google Patents

Document query method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112347324A
CN112347324A CN201910731463.8A CN201910731463A CN112347324A CN 112347324 A CN112347324 A CN 112347324A CN 201910731463 A CN201910731463 A CN 201910731463A CN 112347324 A CN112347324 A CN 112347324A
Authority
CN
China
Prior art keywords
document
target
content
list
query
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910731463.8A
Other languages
Chinese (zh)
Inventor
黄伟铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910731463.8A priority Critical patent/CN112347324A/en
Publication of CN112347324A publication Critical patent/CN112347324A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a document query method, a document query device, electronic equipment and a storage medium. The document query method comprises the following steps: obtaining a query instruction for querying a document according to the content of the document, wherein the query instruction carries a keyword; searching a target document of which the document content comprises a keyword from each document under the document type supported by the document processing client; and when the target document is searched, taking the searched target document as a query result. The invention can realize document inquiry on the premise of not depending on the document name.

Description

Document query method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data retrieval technologies, and in particular, to a document query method, an apparatus, an electronic device, and a storage medium.
Background
In the field of data retrieval technology, many document processing clients generally have a function of finding a document in addition to a document editing function.
In the prior art, a document query method applied to a document processing client includes: and receiving a keyword input by a user, searching a document with a document name containing the keyword from each document under the document type supported by the document processing client, and taking the searched document as a query result.
However, when the user forgets the document name, the existing document query method cannot provide the document query service for the user. Therefore, how to realize document query on the premise of not depending on document names is an urgent problem to be solved.
Disclosure of Invention
Embodiments of the present invention provide a document query method, an apparatus, an electronic device, and a storage medium, so as to implement document query without relying on a document name. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a document query method, which is applied to a document processing client, and includes:
obtaining a query instruction for querying a document according to the content of the document, wherein the query instruction carries a keyword;
searching a target document of which the document content comprises the keyword from each document under the document type supported by the document processing client;
and when the target document is searched, taking the searched target document as a query result.
Optionally, the step of searching for a target document whose document content includes the keyword from each document in the document types supported by the document processing client includes:
for each document in the document types supported by the document processing client, reading the document content of the document, and searching a target paragraph containing the keyword from the read document content; and when the target paragraph is found, taking the document as a target document containing the keyword.
Optionally, the step of reading the document content of the document includes:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
Optionally, the method further comprises:
and displaying the document name, the document path and the target paragraph of the searched target document.
Optionally, the displaying the document name, the document path, and the target paragraph of the searched target document includes:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
Optionally, after the step of presenting the document list with the document name, the document path, and the target paragraph of the found target document as list contents, the method further includes:
and when a click instruction aiming at any list item in the document list is received, opening a target document with the document name included by the list item according to the document path included by the list item.
In a second aspect, an embodiment of the present invention provides a document querying device, where the document querying device is applied to a document processing client, and the document querying device includes:
the acquisition module is used for acquiring a query instruction for querying the document according to the content of the document, wherein the query instruction carries a keyword;
the searching module is used for searching a target document of which the document content comprises the keyword from each document under the document type supported by the document processing client;
and the determining module is used for taking the searched target document as a query result when the target document is searched.
Optionally, the search module includes a search sub-module and a determination sub-module:
the searching sub-module is used for reading the document content of each document under the document type supported by the document processing client, and searching a target paragraph containing the keyword from the read document content;
and the determining sub-module is used for taking the document as a target document containing the keyword when the target paragraph is found by the searching sub-module.
Optionally, the reading, by the search sub-module, the document content of the document includes:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
Optionally, the apparatus further comprises: a display module;
and the display module is used for displaying the document name, the document path and the target paragraph of the searched target document.
Optionally, the display module is specifically configured to:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
Optionally, the apparatus further comprises: a document opening module;
and the document opening module is used for opening a target document with the document name included by the list item according to the document path included by the list item when receiving a click instruction aiming at any list item in the document list.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the document query methods when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above-described document query methods.
In yet another aspect of the present invention, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned document query methods.
According to the scheme provided by the embodiment of the invention, the method can be extended into the document content to search for the query keyword; and when the document content contains the query key words, finding the target document. In this way, even in the case where the user has forgotten the document name, the document can be queried using the word or sentence in the document content as the query keyword. Therefore, the scheme can realize document query on the premise of not depending on the document name. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart of a document query method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a document querying device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to realize document query without depending on document names, the embodiment of the invention provides a document query method, a document query device, electronic equipment and a storage medium.
It should be noted that the execution subject of the document query method provided by the embodiment of the present invention may be a document query device, and the device may be applied to an electronic device. It is understood that the apparatus is a software function module of a document processing client in the electronic device. In a particular application, the electronic device may be a smartphone, a computer, a tablet device, a medical device, an entertainment device, a fitness device, or a personal digital assistant, among others.
In addition, the document query method provided by the embodiment of the present invention may be directed to a document with a suffix of wps, doc, docx, txt, rtf, ppt, et, xls, html, pdf, or the like.
First, a document query method provided by an embodiment of the present invention is explained in detail. As shown in fig. 1, the method may include the steps of:
s101: and acquiring a query instruction for querying the document according to the content of the document, wherein the query instruction carries the key words.
There are various ways in which a user issues a query instruction for querying a document according to the content of the document.
For example, in one implementation, an input box may be provided in the document processing client, and a button for querying a document by a document name and a button for querying a document by a document content may be provided in the vicinity of the input box, respectively; the user can select different content query modes by selecting different buttons. If the user inputs the key words in the input box and clicks a button for inquiring the document according to the content of the document, a query instruction for inquiring the document according to the content of the document is sent out; accordingly, the document processing client can obtain a query instruction for querying the document according to the content of the document, and the query instruction carries the key words input by the user in the input box.
For example, in another implementation, an input box may be provided in the document processing client, and only one button may be provided near the input box. If the user inputs the key words in the input box and clicks the button, sending out a query instruction carrying the key words; accordingly, the document processing client may obtain the query instruction, and the default query instruction is a query instruction for querying the document according to the content of the document.
For example, in another implementation manner, a voice input button for inquiring about the document according to the content of the document can be arranged in the document processing client. If the user operates the voice input button and inputs voice, sending out a query instruction carrying a keyword corresponding to the voice; accordingly, the document processing client may obtain the query instruction, and the query instruction is a query instruction for querying the document by the content of the document by default.
In a specific application, the input box may be, in the vicinity of: a position spaced apart from the left, right, upper, or lower side of the input frame by a predetermined distance, which may be set according to actual circumstances, and is not limited herein. In addition, it is understood that the document content of the document may include a document name, and therefore, the function of querying the document by the document content may be realized together with the function of querying the document by the document name.
S102: and searching a target document of which the document content contains the keyword from each document under the document type supported by the document processing client.
Here, the document type supported by the document processing client may be a document type that the document processing client can open and read the document content.
There are various specific implementation ways for searching a target document with document content including the keyword from each document in the document types supported by the document processing client. For example, in an implementation manner, finding a target document whose document content includes the keyword from among documents in document types supported by the document processing client may include:
reading the document content of each document under the document type supported by the document processing client, and searching a target paragraph containing a keyword from the read document content; and when the target paragraph is found, taking the document as a target document containing the key words.
The target paragraphs containing the keywords may be: in the document content, a character string is formed by the first m characters of the position of the keyword, the keyword and the last n characters of the position of the keyword. Here, m and n may be equal, for example, m and n may both be equal to 20, although m and n may not be equal. Alternatively, the target paragraph containing the keyword may be a sentence in which the keyword is located in the document content. Wherein, the sentences in the document content can be divided by punctuation marks.
In another implementation manner, searching for a target document whose document content includes the keyword from documents in document types supported by the document processing client may include:
reading the document content of each document under the document type supported by the document processing client, and judging whether the read document content contains the keyword or not; if so, the document is taken as a target document containing keywords. Of course, the specific implementation manner of searching for the target document whose document content includes the keyword from each document in the document types supported by the document processing client is not limited to the above two.
In practical application, when searching for a target document, two empty document sets may be created in advance, one for recording documents under the document types supported by the traversed document processing client, and the other for recording the searched target document. For ease of distinction, these two sets may be named separately. For example, a set for recording the found target documents is named "result _ list", and another set is named "file _ list".
When a target document is searched, performing recursive traversal on a local disk of the electronic device provided with the document processing client, and recording a document path and a document name of a document to the file _ list set every time the document under a document type supported by the document processing client is traversed; alternatively, the document path of the document is recorded into the "file _ list" set. After traversing is finished, sequentially determining whether each document recorded by the file _ list set is a target document according to the information recorded by the file _ list set; when any document is determined to be a target document, recording a document path and a document name of the target document into the 'result _ list' set; alternatively, the document path, document name, and target paragraph of the target document may be recorded into the "result _ list" set. Of course, the target document is also removed from the "file _ list" set.
It is understood that the document path described above is a physical path in the local disk. Also, when the "file _ list" set records only a document path, the physical path may be a physical path that can be located to a document, that is, with which one document can be uniquely located.
S103: and when the target document is searched, taking the searched target document as a query result.
It is understood that there may be more than one target document whose document content includes the keyword, and therefore, taking the found target document as the query result herein means taking all the found target documents as the query result. In addition, after the searched target document is used as a query result, the searched target document can be output.
The document query method provided by the embodiment of the invention can be used for entering the document content to search query keywords; and when the document content contains the query key words, finding the target document. In this way, even in the case where the user has forgotten the document name, the document can be queried using the word or sentence in the document content as the query keyword. Therefore, the scheme can realize document query on the premise of not depending on the document name.
In addition, since the user is more concerned about the search result, in a specific application, the process of searching the target document can be shielded from the user, so that the excessive query process is prevented from being displayed to the user. Based on the processing idea, in an implementation manner, the step of reading, for each document in the document types supported by the document processing client, the document content of the document may include:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
Of course, any specific implementation manner capable of implementing background opening of the document may be adopted as the specific implementation manner for opening the document in the background opening manner, which is not limited herein.
Optionally, in an implementation manner, on the basis of an implementation manner in which a target document is searched by searching for a target paragraph, after taking the searched target document as a query result, the method may further include:
and displaying the document name, the document path and the target paragraph of the searched target document.
There may be a plurality of specific display modes for displaying the document name, the document path, and the target paragraph of the searched target document. Illustratively, the displaying the document name, the document path and the target paragraph of the searched target document may include:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
For any target document, when the number of target paragraphs in the document target is large, one target paragraph may be selected from the target document and displayed in the document list. Specifically, a first target paragraph in the document content of the target document may be selected; alternatively, when the target paragraph is a sentence in which the keyword is located, it is reasonable to select the target paragraph with the smallest number of words, and the like.
In addition, during the presentation, the keywords in the presented target paragraph may be presented in a color different from other characters in the target paragraph.
In practical applications, each list item in the document list may be a row of the document list or a column of the document list.
In an implementation manner, after displaying a document list in which a document name, a document path, and a target paragraph of a found target document are used as list contents, the document query method provided in the embodiment of the present invention may further include:
and when a click instruction for any list item in the document list is received, opening a target document with the document name included in the list item according to the document path included in the list item.
Here, the click instruction may be issued by a user of the document processing client.
In practical application, each list item in the document list can be set as a clickable list item; clicking the jump address of the list item to obtain the document path included by the list item; when a list item is clicked, a target document having a document name included in the list item may be opened according to the jump address. Alternatively, the document path in the list item may be set as a link address, so that when an instruction to click the link address is received, the target document having the document name included in the list item may be opened according to the link address.
For the sake of clarity of the scheme, a specific embodiment is taken as an example to describe the document query method provided by the embodiment of the present invention, and the embodiment may specifically include the following steps:
step 1: obtaining a query instruction for querying a document according to the content of the document, wherein the query instruction carries a keyword;
step 2: performing recursive traversal on a local disk of the electronic equipment provided with the document processing client, and recording a document path and a document name of a document to the file _ list set every time when the document is traversed to the document in a document type supported by the document processing client; after the recursion traversal is completed, turning to step 3;
and step 3: for each document in the 'file _ list' set, opening the document in a background opening mode, reading document contents from the opened document, and searching a target paragraph containing the keyword from the read document contents; when the target paragraph is found, recording the document path and the document name of the target document into the 'result _ list' set; or recording the document path, the document name and the target paragraph of the target document into the "result _ list" set; removing the target document from the "file _ list" set;
and 4, step 4: showing a document list with the document name, the document path and the target paragraph of the target document in the 'result _ list' set as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document; and when displaying, displaying the keywords in the displayed target paragraph in a color different from other characters in the target paragraph.
Optionally, in one implementation, whenever a target document is newly added to the "result _ list" set, a list item formed by the document name, the document path, and the target paragraph of the target document is generated and presented in real time. It is understood that when all the documents in the "file _ list" set are removed, all the list items generated by the target documents constitute the document list of the target documents.
Optionally, in an implementation manner, when a click instruction for any list item in the document list is received, the embodiment may further include step 5: and opening the target document with the name of the document included in the list item according to the path of the document included in the list item.
According to the specific embodiment, the document query can be realized on the premise of not depending on the document name, even if the user forgets the document name, the document query can be realized, and compared with the existing document query method, the application range of the document query is expanded.
Corresponding to the above-mentioned document query method, an embodiment of the present invention further provides a document query apparatus, as shown in fig. 2, the apparatus includes:
an obtaining module 201, configured to obtain a query instruction for querying a document according to content of the document, where the query instruction carries a keyword;
a searching module 202, configured to search, from each document in the document types supported by the document processing client, a target document whose document content includes the keyword;
and the determining module 203 is configured to, when the target document is found, take the found target document as a query result.
It is understood that there may be more than one target document whose document content includes the keyword, and therefore, taking the found target document as the query result herein means taking all the found target documents as the query result.
Optionally, the searching module 202 may include: a search submodule and a determination submodule:
the searching sub-module is used for reading the document content of each document under the document type supported by the document processing client, and searching a target paragraph containing the keyword from the read document content;
and the determining sub-module is used for taking the document as a target document containing the keyword when the target paragraph is found by the searching sub-module.
Optionally, the reading, by the search sub-module, the document content of the document may include:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
Optionally, the apparatus may further include: a display module;
and the display module is used for displaying the document name, the document path and the target paragraph of the searched target document.
Optionally, the display module may be specifically configured to:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
In practical applications, each list item in the document list may be a row of the document list or a column of the document list.
In addition, during the presentation, the keywords in the presented target paragraph may be presented in a color different from other characters in the target paragraph.
Optionally, the apparatus may further include: a document opening module;
and the document opening module is used for opening a target document with the document name included by the list item according to the document path included by the list item when receiving a click instruction aiming at any list item in the document list.
Here, the click instruction may be issued by a user of the document processing client.
The document inquiry device provided by the embodiment of the invention can be extended into the document content to search inquiry keywords; and when the document content contains the query key words, finding the target document. In this way, even in the case where the user has forgotten the document name, the document can be queried using the word or sentence in the document content as the query keyword. Therefore, the scheme can realize document query on the premise of not depending on the document name.
The embodiment of the present invention further provides an electronic device, as shown in fig. 3, which includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301, when executing the program stored in the memory 303, implements the following steps:
obtaining a query instruction for querying a document according to the content of the document, wherein the query instruction carries a keyword;
searching a target document of which the document content comprises the keyword from each document under the document type supported by the document processing client;
and when the target document is searched, taking the searched target document as a query result.
Optionally, the step of searching for a target document whose document content includes the keyword from each document in the document types supported by the document processing client includes:
for each document in the document types supported by the document processing client, reading the document content of the document, and searching a target paragraph containing the keyword from the read document content; and when the target paragraph is found, taking the document as a target document containing the keyword.
Optionally, the step of reading the document content of the document includes:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
Optionally, the method further comprises:
and displaying the document name, the document path and the target paragraph of the searched target document.
Optionally, the displaying the document name, the document path, and the target paragraph of the searched target document includes:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
Optionally, after the step of presenting the document list with the document name, the document path, and the target paragraph of the found target document as list contents, the method further includes:
and when a click instruction aiming at any list item in the document list is received, opening a target document with the document name included by the list item according to the document path included by the list item.
The electronic equipment provided by the embodiment of the invention can be deeply inserted into the document content to search the query key words; and when the document content contains the query key words, finding the target document. In this way, even in the case where the user has forgotten the document name, the document can be queried using the word or sentence in the document content as the query keyword. Therefore, the scheme can realize document query on the premise of not depending on the document name.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the instructions are executed on a computer, the instructions cause the computer to execute the document query method in any one of the above embodiments.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the document query method of any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the computer-readable storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. A document query method is applied to a document processing client, and comprises the following steps:
obtaining a query instruction for querying a document according to the content of the document, wherein the query instruction carries a keyword;
searching a target document of which the document content comprises the keyword from each document under the document type supported by the document processing client;
and when the target document is searched, taking the searched target document as a query result.
2. The method according to claim 1, wherein the step of searching for the target document with the document content containing the keyword from the documents in the document types supported by the document processing client comprises:
for each document in the document types supported by the document processing client, reading the document content of the document, and searching a target paragraph containing the keyword from the read document content; and when the target paragraph is found, taking the document as a target document containing the keyword.
3. The method of claim 2, wherein the step of reading the document content of the document comprises:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and displaying the document name, the document path and the target paragraph of the searched target document.
5. The method according to claim 4, wherein the displaying the document name, the document path and the target paragraph of the searched target document comprises:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
6. The method of claim 5, wherein after the step of presenting the document list with the document name, the document path, and the target paragraph of the found target document as list content, the method further comprises:
and when a click instruction aiming at any list item in the document list is received, opening a target document with the document name included by the list item according to the document path included by the list item.
7. A document query device, applied to a document processing client, the device comprising:
the acquisition module is used for acquiring a query instruction for querying the document according to the content of the document, wherein the query instruction carries a keyword;
the searching module is used for searching a target document of which the document content comprises the keyword from each document under the document type supported by the document processing client;
and the determining module is used for taking the searched target document as a query result when the target document is searched.
8. The apparatus of claim 7, wherein the lookup module comprises a lookup sub-module and a determination sub-module:
the searching sub-module is used for reading the document content of each document under the document type supported by the document processing client, and searching a target paragraph containing the keyword from the read document content;
and the determining sub-module is used for taking the document as a target document containing the keyword when the target paragraph is found by the searching sub-module.
9. The apparatus of claim 8, wherein the lookup submodule reads document content of the document, comprising:
opening the document in a background opening mode, and reading document content from the opened document;
the background opening mode is a document opening mode for hiding the opened document from a user.
10. The apparatus of claim 8 or 9, further comprising: a display module;
and the display module is used for displaying the document name, the document path and the target paragraph of the searched target document.
11. The device of claim 10, wherein the display module is specifically configured to:
displaying a document list with the document name, the document path and the target paragraph of the searched target document as list content; each list item in the document list comprises a document name, a document path and a target paragraph of a target document.
12. The apparatus of claim 11, further comprising: a document opening module;
and the document opening module is used for opening a target document with the document name included by the list item according to the document path included by the list item when receiving a click instruction aiming at any list item in the document list.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN201910731463.8A 2019-08-08 2019-08-08 Document query method and device, electronic equipment and storage medium Pending CN112347324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910731463.8A CN112347324A (en) 2019-08-08 2019-08-08 Document query method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910731463.8A CN112347324A (en) 2019-08-08 2019-08-08 Document query method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112347324A true CN112347324A (en) 2021-02-09

Family

ID=74366816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910731463.8A Pending CN112347324A (en) 2019-08-08 2019-08-08 Document query method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112347324A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113435847A (en) * 2021-06-30 2021-09-24 珠海金山办公软件有限公司 Information display method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488145A (en) * 2008-01-11 2009-07-22 株式会社理光 Document searching apparatus, document searching method, and computer-readable recording medium
CN102902688A (en) * 2011-07-27 2013-01-30 汉王科技股份有限公司 Method and device for displaying results of keyword search
US20160078102A1 (en) * 2014-09-12 2016-03-17 Nuance Communications, Inc. Text indexing and passage retrieval
CN107391535A (en) * 2017-04-20 2017-11-24 阿里巴巴集团控股有限公司 The method and device of document is searched in document application
CN109299244A (en) * 2018-11-15 2019-02-01 天津字节跳动科技有限公司 A kind of online document search method, device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488145A (en) * 2008-01-11 2009-07-22 株式会社理光 Document searching apparatus, document searching method, and computer-readable recording medium
CN102902688A (en) * 2011-07-27 2013-01-30 汉王科技股份有限公司 Method and device for displaying results of keyword search
US20160078102A1 (en) * 2014-09-12 2016-03-17 Nuance Communications, Inc. Text indexing and passage retrieval
CN107391535A (en) * 2017-04-20 2017-11-24 阿里巴巴集团控股有限公司 The method and device of document is searched in document application
CN109299244A (en) * 2018-11-15 2019-02-01 天津字节跳动科技有限公司 A kind of online document search method, device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113435847A (en) * 2021-06-30 2021-09-24 珠海金山办公软件有限公司 Information display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11068547B2 (en) Dynamic search set creation in a search engine
CN103177075B (en) The detection of Knowledge based engineering entity and disambiguation
US20160179816A1 (en) Near Real Time Auto-Suggest Search Results
US9418128B2 (en) Linking documents with entities, actions and applications
US9361317B2 (en) Method for entity enrichment of digital content to enable advanced search functionality in content management systems
US20100185600A1 (en) Apparatus and method for integration search of web site
US20140047315A1 (en) Method for identifying potential defects in a block of text using socially contributed pattern/message rules
US20090271388A1 (en) Annotations of third party content
US8359307B2 (en) Method and apparatus for building sales tools by mining data from websites
AU2016228246B2 (en) System and method for concept-based search summaries
US20140181099A1 (en) User management of electronic documents
CN110969022B (en) Semantic determining method and related equipment
CN105637509A (en) Searching and annotating within images
CN111309970A (en) Data retrieval method and device, electronic equipment and storage medium
US11886477B2 (en) System and method for quote-based search summaries
US8862556B2 (en) Difference analysis in file sub-regions
US20180113583A1 (en) Device and method for providing at least one functionality to a user with respect to at least one of a plurality of webpages
US8001138B2 (en) Word relationship driven search
CN112836126A (en) Recommendation method and device based on knowledge graph, electronic equipment and storage medium
CN112347324A (en) Document query method and device, electronic equipment and storage medium
JP2012141681A (en) Query segment position determining device
KR20110132849A (en) Device and method for transformation url
CN112035596A (en) Text submission method, device, equipment and storage medium
CN112579937A (en) Character highlight display method and device
CN110929048A (en) Bookmark generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination