Specific embodiment
Embodiment of the disclosure is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the disclosure, and should not be understood as the limitation to the disclosure.
Below with reference to the accompanying drawings online document search method, device and the electronic equipment of the embodiment of the present disclosure are described.
Description based on background technique, it is understandable to be, existing present document storage mode either store pressure,
Reading speed still has technological deficiency in terms of scalability, and in order to improve the technological deficiency, present disclose provides one kind to change
Into online document search method stored for table content and content of text, mitigated as a result, respectively in the method
The storage pressure of searching system, and by individually storing form data, improve the extension convenience of table.
Specifically, Fig. 2 is according to the flow chart of the online document search method of an embodiment of the present disclosure, such as Fig. 2 institute
Show, this method comprises:
Step 101, when online document is in online editing state, the form data and text in current online document are obtained
This information, wherein text information includes the address of document and content of text of place online document, and form data includes that place is online
The address of document and table content of document.
Wherein, form data is table content information, and text information includes the text information of non-form data, document name
Title, Document Title, pictorial information etc..
Specifically, when online document is in online editing state, the form data and text in current online document are obtained
This information, to be recorded in real time to form data and document information, wherein table can be distinguished based on the information attribute in online document
Lattice information and document information, wherein text information table includes the address of document and content of text of online document where it, table
For information the address of document and table content that include document where form data, which is the text information in table,
And the address of document of document can be document links, document id etc. can uniquely orient the information of online document.
Certainly, it is contemplated that user may be not intended to the current online document of real-time storage in some cases, thus, can be with
The table in current online document is obtained when the storage for receiving user operates by the storage of user's active control online document
Lattice information and document information.
In one embodiment of the present disclosure, in order to further increase storage efficiency, on-line documentation sheet can be only stored in
The information of secondary update, i.e., by form data and text information, respectively with stored for the last time in searching system and online document
Corresponding history table information and history text information are compared, and are obtained according to comparison result and are updated form data and update literary
This information, in turn, by more new information to the history table corresponding with online document stored for the last time in searching system before
Information and history text information are updated.
Step 102, form data is stored in the first storage location of searching system, and second in searching system stores position
Set storage text information.
Specifically, after getting form data and text information, in order to which the extension for breaking global storage is restricted, and
Mitigation system stores pressure and improves retrieval rate, the first form data is stored in the first storage location of searching system, the
Two storage locations store text information, wherein the first storage location and the second storage location can be the difference in searching system
The corresponding position of memory, for example, the first storage location can be some hardware memory in searching system, the second storage location
It can be Cloud Server etc..
It should be noted that form data is stored in the first storage location of searching system according to the difference of application scenarios,
And it is different in the mode of the second storage location of searching system storage text information, as a kind of possible implementation, such as Fig. 3
It is shown, text information and form data are individually stored in the form of a list, wherein content of text is corresponding with online document mark to be deposited
Storage, table content storage corresponding with place online document mark, when storing form data, is stored as unit of table,
The storage corresponding with place online document mark of each table, thus, either the change of text information or form data be more
Change, storage change pressure is smaller, and scalability is stronger.
It in this example, further include table mark in form data, such as including table ID, thus, it obtains and updates table
Update table mark in information obtains target histories table content corresponding with table mark is updated in the first storage location,
According to the update table content updated in form data, target histories table content is updated, as a result, other tables in online document
Lattice information and text information are not necessarily to the operation of any adaptability, update table content can be realized, operating efficiency greatly improves.
It is identified between different online documents as alternatively possible embodiment in order to further mitigate storage pressure
Same section is stored for identical part duplicate removal, for example, as shown in figure 4, for being A+B, text comprising table content
Content is the online document 1 of a, and, to being A+C comprising table content, content of text is the online document 2 of a+c when being stored,
It is then stored for table content A duplicate removal, online document 1 and 2 two online document address is set for table content A, likewise,
For content of text a, online document 1 and 2 two online document address is set.
Step 103, the table content and content of text by user in the term and searching system that searching system inputs
It is matched.
Specifically, the term that user inputs in searching system is obtained, it will be in the table in term and searching system
Hold and content of text is matched, in order to search out the online document for meeting user's search condition.
Wherein, the term inaccuracy in order to avoid user for input leads to not search user's intention search
Online document, in embodiment of the disclosure, may further determine that with the matched synonym of term, near synonym etc., according to current inspection
Rope word and matched synonym and near synonym are retrieved, alternatively, entangling to obviously having basis after vicious term is corrected
Term after just scans for.
Step 104, the target table content of successful match is obtained, and/or, the corresponding destination document of target text content
Location, and destination document address is fed back into user.
Specifically, have in content of text with the matched keyword of term, in the table content of insertion without and term
Matched keyword, the second address of document where returned text content, in content of text not with the matched key of term
Word, have in the table content of insertion with the matched keyword of term, then return to the first address of document where table content, text
Have in this content with the matched keyword of term, have in the table content of insertion with the matched keyword of term, then return
Merge duplicate removal, the first address of document or the second address of document are fed back into user, it is not matched with term in content of text
Keyword does not get even and matches with term also not with the matched keyword of term in the table content of insertion
Target table content and target text content, then to user feedback retrieve failure notification information, the retrieval failure notification information
In may include currently without the notification message for retrieving matched document, and, prompt user replace term prompt disappear
Breath etc..
In practical implementation, it can be identified the address of displaying target address of document on search interface, for user
Identified according to the address and obtain the corresponding online document in destination document address, alternatively, directly by destination document address it is corresponding
On-line documentation is supplied to user.
To sum up, the online document search method of the embodiment of the present disclosure is obtained when online document is in online editing state
Form data and text information in current online document, wherein text information include place online document address of document and
Content of text, form data include the address of document and table content of place online document, and first in searching system stores position
Storage form data is set, and stores text information in the second storage location of searching system, user is inputted in searching system
Term in searching system table content and content of text matched, in turn, obtain in the target table of successful match
Hold, and/or, the corresponding destination document address of target text content, and destination document address is fed back into user.It is distributed as a result,
Formula stores online document, alleviates the storage pressure of searching system, and by individually storing form data, improves the expansion of table
Open up convenience.
In order to realize above-described embodiment, the disclosure also proposes a kind of online document retrieval device.
Fig. 5 is the structural schematic diagram that device is retrieved according to the online document of an embodiment of the present disclosure, as shown in figure 5, should
Online document retrieval device includes: to obtain module 10, memory module 20, matching module 30 and retrieval feedback module 40, wherein
Module 10 is obtained, for obtaining the table in current online document when online document is in online editing state
Information and text information, wherein text information includes the address of document and content of text of place online document, and form data includes
The address of document and table content of place online document.
In one embodiment of the present disclosure, as shown in fig. 6, as shown in Figure 5 on the basis of, obtain module 10 include than
Compared with unit 11 and the first updating unit 12, wherein
Comparing unit 11, for by form data and text information, respectively with stored for the last time in searching system with
The corresponding history table information of online document and history text information are compared.
First updating unit 12 updates form data and update text information for obtaining according to comparison result.
Memory module 20 stores form data for the first storage location in searching system, and the of searching system
Two storage locations store text information.
In one embodiment of the present disclosure, as shown in fig. 7, on the basis of as shown in Figure 5, memory module 20 includes the
One acquiring unit 21, second acquisition unit 22 and the second updating unit 23, wherein
First acquisition unit 21, for obtaining the update table mark updated in form data.
Second acquisition unit 22, for obtaining target histories table corresponding with table mark is updated in the first storage location
Content.
Second updating unit 23, for updating target histories table according to the update table content updated in form data
Content.
Matching module 30, for the table content and text by user in the term and searching system that searching system inputs
This content is matched.
Feedback module 40 is retrieved, for obtaining the target table content of successful match, and/or, target text content is corresponding
Destination document address, and destination document address is fed back into user.
In one embodiment of the present disclosure, feedback module 40 is retrieved, is specifically used for:
Compare corresponding first address of document of target table content and corresponding second address of document of target text content is
It is no consistent;
When the first address of document is consistent with the second address of document, the first address of document or the second address of document are fed back to
User.
In one embodiment of the present disclosure, as shown in figure 8, on the basis of as shown in Figure 5, the device further include: mention
Show module 50, wherein cue module 50, for not getting and the matched target table content of term and target text
When content, failure notification information is retrieved to user feedback.
It should be noted that the aforementioned explanation to online document search method embodiment is also applied for the embodiment
Online document retrieves device, and details are not described herein again.
To sum up, the online document of the embodiment of the present disclosure retrieves device, when online document is in online editing state, obtains
Form data and text information in current online document, wherein text information include place online document address of document and
Content of text, form data include the address of document and table content of place online document, and first in searching system stores position
Storage form data is set, and stores text information in the second storage location of searching system, user is inputted in searching system
Term in searching system table content and content of text matched, in turn, obtain in the target table of successful match
Hold, and/or, the corresponding destination document address of target text content, and destination document address is fed back into user.It is distributed as a result,
Formula stores online document, alleviates the storage pressure of searching system, and by individually storing form data, improves the expansion of table
Open up convenience.
In order to realize above-described embodiment, the disclosure also proposes a kind of electronic equipment, comprising: at least one processor;And
The memory being connect at least one processor communication;
Wherein, memory is stored with the instruction that can be executed by least one processor, and instruction is arranged to be used in execution
State the online document search method of embodiment proposition.Below with reference to Fig. 9, it illustrates be suitable for being used to realizing the embodiment of the present disclosure
The structural schematic diagram of electronic equipment.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, pen
Remember that this computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (put by portable multimedia broadcasting
Device), the mobile terminal of car-mounted terminal (such as vehicle mounted guidance terminal) etc. and such as number TV, desktop computer etc. consolidate
Determine terminal.Electronic equipment shown in Fig. 9 is only an example, should not function to the embodiment of the present disclosure and use scope bring
Any restrictions.
As shown in figure 9, electronic equipment may include processing unit (such as central processing unit, graphics processor etc.) 901,
Random access storage device can be loaded into according to the program being stored in read-only memory (ROM) 902 or from storage device 908
(RAM) program in 903 and execute various movements appropriate and processing.In RAM 903, it is also stored with electronic device institute
The various programs and data needed.Processing unit 901, ROM 902 and RAM 903 are connected with each other by bus 904.Input/defeated
(I/O) interface 905 is also connected to bus 904 out.
In general, following device can connect to I/O interface 905: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 906 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 907 of dynamic device etc.;Storage device 908 including such as tape, hard disk etc.;And communication device 909.Communication device
909, which can permit electronic equipment, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 9, which is shown, to be had respectively
The electronic equipment of kind device, it should be understood that being not required for implementing or having all devices shown.It can be alternatively real
Apply or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 909, or from storage device 908
It is mounted, or is mounted from ROM 902.When the computer program is executed by processing unit 901, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
Sub- equipment and when executing so that the electronic equipment: when online document is in online editing state, obtaining in current online document
Form data and text information, wherein the text information include place online document address of document and content of text, institute
State the address of document and table content that form data includes place online document;
The form data is stored in the first storage location of searching system, and second in the searching system stores position
Set the storage text information;
By user in the term that the searching system inputs and the table content in the searching system and described
Content of text is matched;
The target table content of successful match is obtained, and/or, the corresponding destination document address of target text content, and will
The destination document address feeds back to the user.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs
When being executed by the electronic equipment, so that the electronic equipment:
When online document is in online editing state, the form data and text information in current online document are obtained,
Wherein, the text information includes the address of document and content of text of place online document, and the form data includes that place exists
The address of document and table content of on-line documentation;
The form data is stored in the first storage location of searching system, and second in the searching system stores position
Set the storage text information;
By user in the term that the searching system inputs and the table content in the searching system and described
Content of text is matched;
The target table content of successful match is obtained, and/or, the corresponding destination document address of target text content, and will
The destination document address feeds back to the user.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
In order to realize above-described embodiment, the disclosure also proposes a kind of non-transient computer readable storage medium, this is non-transient
Computer-readable recording medium storage computer instruction, computer instruction are mentioned for making computer execute disclosure above-described embodiment
Figure 10 out is the schematic diagram for illustrating non-transient computer readable storage medium according to an embodiment of the present disclosure.Such as Figure 10 institute
Show, according to the non-transient computer readable storage medium 1000 of the embodiment of the present disclosure, is stored thereon with computer instruction 1001.When
When the computer instruction 1001 is run by processor, the complete of the online document search method of each embodiment of the disclosure above-mentioned is executed
Portion or part steps.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product can store in non-transient storage media, as magnetic disk, CD, read-only memory (ROM) or with
Machine storage memory (RAM) etc., including some instructions are used so that a computer equipment (can be personal computer, take
Be engaged in end or the network equipment etc.) execute each embodiment or embodiment certain parts method.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the disclosure, rather than its limitations;Although
The disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, each embodiment technical solution of the disclosure that it does not separate the essence of the corresponding technical solution spirit and
Range.