CN109885654A - Online document modifies treating method and apparatus - Google Patents
Online document modifies treating method and apparatus Download PDFInfo
- Publication number
- CN109885654A CN109885654A CN201910102749.XA CN201910102749A CN109885654A CN 109885654 A CN109885654 A CN 109885654A CN 201910102749 A CN201910102749 A CN 201910102749A CN 109885654 A CN109885654 A CN 109885654A
- Authority
- CN
- China
- Prior art keywords
- document
- destination document
- destination
- modification
- online
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The disclosure proposes a kind of online document modification treating method and apparatus, wherein, method includes: and according to predetermined period query messages queue judges whether that online document modification message can be obtained, and the online document of acquisition modification message is parsed, obtain the destination document modified and change type;The destination document typelib for determining the destination document ownership, obtains modification content corresponding with the destination document according to the change type in the destination document typelib;Modification content corresponding with the destination document is stored into distributed search engine, corresponding document searching result is fed back with the document searching information inputted according to user.By this method, the quick lookup of online document can be realized, save the time for searching destination document, improve document searching efficiency, the technical issues of solving to search online document in the prior art time-consuming.
Description
Technical field
This disclosure relates to which technical field of internet application more particularly to a kind of online document modify treating method and apparatus.
Background technique
With the development of internet technology, the application of the Internet bearer becomes increasingly abundant, and online document is Internet application
A kind of important form.Online document is extension of the conventional desktop text processing application in Internet application, online document technology
Dependence of the user for processing software is gradually eliminated.
Online document application provides a user documents editing and look facility, and with increasing for online document, user is checked
When required online document, need to expend longer time to find out required online document.Therefore, how to help user quick
Required document is found as urgent problem to be solved.
Summary of the invention
The disclosure provides a kind of online document modification treating method and apparatus, solves to search online document consumption in the prior art
The technical issues of duration.
For this purpose, disclosure first aspect proposes a kind of online document modification processing method, to realize the fast of online document
Quick checking is looked for, and the time for searching destination document is saved, and improves document searching efficiency, promotes user experience.
Disclosure second aspect proposes a kind of online document modification processing unit.
The disclosure third aspect proposes a kind of electronic equipment.
Disclosure fourth aspect proposes a kind of non-transient computer readable storage medium.
The 5th aspect of the disclosure proposes a kind of computer program product.
Disclosure first aspect embodiment proposes a kind of online document modification processing method, comprising:
According to predetermined period query messages queue, judge whether that online document modification message can be obtained, and to acquisition
Online document modification message is parsed, and the destination document modified and change type are obtained;
The destination document typelib for determining the destination document ownership, according to the change type in the destination document class
Modification content corresponding with the destination document is obtained in type library;
Modification content corresponding with the destination document is stored into distributed search engine, with what is inputted according to user
Document searching information feeds back corresponding document searching result.
The online document of the embodiment of the present disclosure modifies processing method, by according to predetermined period query messages queue, judgement
Online document modification message whether can be obtained, and the online document of acquisition modification message is parsed, what acquisition was modified
Destination document and change type, determine the destination document typelib of destination document ownership, according to change type in destination document class
Modification content corresponding with destination document is obtained in type library, and modification content corresponding with destination document is stored to distributed search
In engine, corresponding document searching result is fed back with the document searching information inputted according to user.As a result, by will acquire with
The corresponding modification content storage of destination document allows users to the root in distributed search engine into distributed search engine
Destination document is quickly found according to document searching information, the quick lookup of online document is realized, saves lookup destination document
Time, improve document searching efficiency, the user experience is improved;By receiving online document modification letter using message queue
Message, to online document modification message parse obtain the destination document modified and change type, be conducive to it is subsequent
The extension of on-line documentation type, improves scalability.
Disclosure second aspect embodiment proposes a kind of online document modification processing unit, comprising:
Enquiry module, for according to predetermined period query messages queue, judging whether that can obtain online document modification disappears
Breath, and the online document of acquisition modification message is parsed, obtain the destination document modified and change type;
Determining module, for determining the destination document typelib of the destination document ownership;
Module is obtained, for obtaining in the destination document typelib according to the change type and the destination document
Corresponding modification content;
Memory module, for storing modification content corresponding with the destination document into distributed search engine, with
Corresponding document searching result is fed back according to the document searching information of user's input.
The online document of the embodiment of the present disclosure modifies processing unit, by according to predetermined period query messages queue, judgement
Online document modification message whether can be obtained, and the online document of acquisition modification message is parsed, what acquisition was modified
Destination document and change type, determine the destination document typelib of destination document ownership, according to change type in destination document class
Modification content corresponding with destination document is obtained in type library, and modification content corresponding with destination document is stored to distributed search
In engine, corresponding document searching result is fed back with the document searching information inputted according to user.As a result, by will acquire with
The corresponding modification content storage of destination document allows users to the root in distributed search engine into distributed search engine
Destination document is quickly found according to document searching information, the quick lookup of online document is realized, saves lookup destination document
Time, improve document searching efficiency, the user experience is improved;By receiving online document modification letter using message queue
Message, to online document modification message parse obtain the destination document modified and change type, be conducive to it is subsequent
The extension of on-line documentation type, improves scalability.
Disclosure third aspect embodiment proposes a kind of electronic equipment, comprising: processor and memory;Wherein, described
Processor is corresponding with the executable program code to run by reading the executable program code stored in the memory
Program, with for realizing as described in first aspect embodiment online document modify processing method.
Disclosure fourth aspect embodiment proposes a kind of non-transient computer readable storage medium, is stored thereon with calculating
Machine program realizes that the online document as described in first aspect embodiment modifies processing method when the program is executed by processor.
The 5th aspect embodiment of the disclosure proposes a kind of computer program product, when in the computer program product
When instruction is executed by processor, executes the online document as described in first aspect embodiment and modify processing method.
The additional aspect of the disclosure and advantage will be set forth in part in the description, and will partially become from the following description
It obtains obviously, or recognized by the practice of the disclosure.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram that the online document that one embodiment of the disclosure proposes modifies processing method;
Fig. 2 is the flow diagram that the online document that another embodiment of the disclosure proposes modifies processing method;
Fig. 3 is that the online document of one specific embodiment of the disclosure modifies the treatment process exemplary diagram of processing method;
Fig. 4 is the structural schematic diagram that the online document that one embodiment of the disclosure proposes modifies processing unit;
Fig. 5 is the structural schematic diagram that the online document that another embodiment of the disclosure proposes modifies processing unit;
Fig. 6 is the structural schematic diagram of the electronic equipment for realizing the embodiment of the present disclosure;And
Fig. 7 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.
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 the online document modification treating method and apparatus of the embodiment of the present disclosure is described.
Fig. 1 is the flow diagram that the online document that one embodiment of the disclosure proposes modifies processing method, and this method can be with
The online document modification processing unit proposed by the embodiment of the present disclosure executes, and online document modification processing unit can be applied to
In the electronic equipments such as desktop computer, laptop, smart phone, tablet computer.
As shown in Figure 1, the online document modification processing method the following steps are included:
Step 101, according to predetermined period query messages queue, judge whether that online document modification message can be obtained, and
The online document modification message of acquisition is parsed, the destination document modified and change type are obtained.
Wherein, predetermined period can be preset, for example, predetermined period can be set to one day, one hour etc..Online
It may include message name in document modification message, the destination document modified, change type etc..Change type includes but unlimited
In new document, delete document, modification document content and modification Document Title.
In the present embodiment, when online document is modified, online document can send online document modification to message queue
Message.Online document modifies processing unit according to the predetermined period periodically query messages queue from message queue, and judges whether
Online document modification message can be got.
As an example, predetermined period is one day, and when storing online document modification message in message queue, record is received
To the receiving time of online document modification message.Online document modification processing unit is obtained from message queue in daily zero point
Take the online document modification message of the previous day.For example, online document, which modifies processing unit, obtains message team in 00:00 on December 26
The receiving time stored in column is that the online document of on December 25 this period of 00:00~24:00 modifies message, if message team
The online document modification message of this period is stored in column, it is determined that online document modification message can be got, and obtained
The online document of this period is taken to modify message;If not stored receiving time is 00:00~24 on December 25 in message queue:
00 online document modifies message, it is determined that can not get online document modification message.
In the present embodiment, after online document modification processing unit gets online document modification message, exist to acquisition
On-line documentation modification message is parsed, to obtain the destination document modified and change type.
Wherein, the title of destination document can be by the destination document modified that parsing obtains, destination document can be with
The type or other information for carrying document, for example, destination document can carry the type mark for marking destination document type
Know.
For example, the representation of the destination document obtained can be " destination document name doc ", wherein " .doc " is to take
The type of the document of band.In another example the representation of the destination document of acquisition can be " [1] destination document title ", wherein
" 1 " is the type identification carried.
Step 102, the destination document typelib for determining destination document ownership, according to change type in destination document typelib
It is middle to obtain modification content corresponding with destination document.
It, can be first according to the target of acquisition after obtaining the destination document modified and change type in the present embodiment
Document determines the destination document typelib of destination document ownership.
In a kind of possible implementation of the embodiment of the present disclosure, the destination document typelib of destination document ownership is determined
When, destination document typelib can be determined according to the suffix type of destination document.For example, the destination document obtained is that " curtain makes
The destination document type of destination document ownership can be determined according to the suffix type .doc that destination document carries with handbook .doc "
Library is doc document library.
In a kind of possible implementation of the embodiment of the present disclosure, the destination document typelib of destination document ownership is determined
When, the type identification that can be first carried according to destination document inquires the corresponding relationship of preset type identification and Doctype, really
Set the goal the Doctype of document, and then according to the Doctype of destination document, determines destination document typelib.For example, it is assumed that
The corresponding relationship of preset type identification and Doctype is 1 expression doc, and 2 indicate table (excel), and 3 indicate text (txt),
The destination document of acquisition is " [1] curtain service manual ".By inquiring the corresponding relationship of preset type identification and Doctype,
The Doctype that can determine the destination document is doc, and then can determine the destination document typelib of destination document ownership
For doc document library.
In turn, it is determined that, can be according to change type in target text after the destination document typelib of destination document ownership
Modification content corresponding with destination document is obtained in shelves typelib.
In a kind of possible implementation of the embodiment of the present disclosure, change type is new document, then according to change type
Modification content corresponding with destination document is obtained in destination document typelib, comprising: search mesh from destination document typelib
Document is marked, and obtains the title, creation time and founder of destination document.In this example, when changing type is new document,
It can determine and increase online document newly in destination document typelib, then according to the destination document of acquisition, from destination document type
The destination document is found in library, and obtains the title, creation time and founder of the destination document.Wherein, creation time can
To automatically generate and save when user creates the destination document, founder can be arranged in documents editing software according to user
User name determine.
In a kind of possible implementation of the embodiment of the present disclosure, change type is modification document content, then according to change
Type obtains modification content corresponding with destination document in destination document typelib, comprising: looks into from destination document typelib
Destination document is looked for, and obtains title, document content and the modification time of destination document.Wherein, document content not only includes target
The content of document, further includes the comment content for destination document, modification document content include modify destination document content and/
Or modification is directed to the comment content of the destination document.That is, when the comment content to a certain document is modified, online
Change type in document modification message is also modification document content.Modification time can be when user modifies destination document content
It automatically generates and saves.It, can be according to the target text of acquisition when the change type of acquisition is modification document content in this example
Grade, when finding the destination document from destination document typelib, and obtaining title, document content and the modification of the destination document
Between.
In a kind of possible implementation of the embodiment of the present disclosure, change type is modification Document Title, then acquisition and mesh
When marking the corresponding content of document, the title of destination document can be obtained from destination document typelib, alternatively, can also be from acquisition
Destination document in directly acquire modification content.For example, the destination document obtained is " curtain service manual .doc ", the class of acquisition
Type is modification Document Title, then " curtain service manual " can be determined as modification content corresponding with destination document.It saves as a result,
The process for having removed inquiry destination document typelib, saves process flow and time.
Step 103, modification content corresponding with destination document is stored into distributed search engine, with defeated according to user
The document searching information entered feeds back corresponding document searching result.
It, can will be corresponding with destination document after obtaining modification content corresponding with destination document in the present embodiment
Content storage is modified into distributed search engine, corresponding document searching is fed back with the document searching information inputted according to user
As a result.
As an example, the modification content that online document modification processing unit can will acquire is sent to distributed search
Engine is stored received modification content in memory by distributed search engine.
In the present embodiment, modification content corresponding with destination document is stored into distributed search engine, when user needs
When searching some document, the title for the document that user searches needed for can inputting in distributed search engine, distribution is searched
Index is held up to be scanned for according to the title of user's input, obtains the document searching result with the name-matches of user's input.
The online document of the present embodiment modifies processing method, by judging whether according to predetermined period query messages queue
Online document modification message can be obtained, and the online document of acquisition modification message is parsed, obtains the target modified
Document and change type, determine the destination document typelib of destination document ownership, according to change type in destination document typelib
It is middle to obtain modification content corresponding with destination document, modification content corresponding with destination document is stored to distributed search engine
In, corresponding document searching result is fed back with the document searching information inputted according to user.Pass through will acquire and target as a result,
The corresponding modification content storage of document allows users in distributed search engine into distributed search engine according to text
Shelves search information quickly find destination document, realize the quick lookup of online document, save search destination document when
Between, document searching efficiency is improved, the user experience is improved;Disappeared by receiving online document modification letter using message queue
Breath parses online document modification message to obtain the destination document modified and change type, is conducive to subsequent online
The extension of Doctype, improves scalability.
In a kind of possible implementation of the embodiment of the present disclosure, change type is to delete document, as shown in Fig. 2, such as
On the basis of embodiment illustrated in fig. 1, after step 101, can with the following steps are included:
Step 201, it according to destination document and change type, generates destination document and deletes message.
It is when it is to delete document that online document, which modifies the change type that processing unit obtains, then online literary in the present embodiment
Shelves modification processing unit generates destination document and deletes message according to the destination document and change type of acquisition.
Specifically, according to change type, it can determine deletion instruction, according to destination document, can determine text to be processed
The title of shelves, combining target document and change type, i.e., producible includes destination document and the destination document deletion for deleting instruction
Message.Wherein, destination document deletion message is used to indicate distributed search engine and deletes the destination document.
Step 202, to distributed search engine send destination document delete instruction so that distributed search engine delete with
The matched object content of destination document.
In the present embodiment, after online document modifies processing unit generation destination document deletion message, destination document is deleted
Except message is sent to distributed search engine.After distributed search engine receives destination document deletion message, to target text
Shelves are deleted message and are parsed, to obtain destination document to be deleted and delete instruction, and then to depositing in distributed search engine
The related content of the destination document of storage is deleted.
The online document of the present embodiment modifies processing method, when by the change type in acquisition to delete document, according to
Destination document and change type generate destination document and delete message, and send destination document deletion to distributed search engine and disappear
Breath is advantageously implemented distribution as a result, and searches so that distributed search engine is deleted and the matched object content of the destination document
Index holds up the synchronized update with online document, and can save the memory space of distributed search engine.
Fig. 3 is that the online document of one specific embodiment of the disclosure modifies the treatment process exemplary diagram of processing method.In Fig. 3,
Kafka is message queue;ElasticSearch is distributed search engine, for saving the data of user and providing retrieval
Service;RPC indicates remote procedure call protocol.As shown in figure 3, when user is to doc document, table, comment or other kinds of
When online document is modified, online document can send modification message to kafka, wherein include being altered in modification message
The information such as destination document, change type.Online document modifies processing unit and reads modification message from kafka, from modification message
Destination document and change type are obtained, and modification content is obtained from corresponding document library according to destination document and change type.
For example, user has created a doc document, then online document modification processing unit obtains new document from doc document library
Information, for example obtain the information such as title, creation time, document author of new document.If user has changed comment content,
Relevant change information is obtained from comment content library, alternatively, can be from the document library that the comment of change is directed to, obtaining includes changing
The document content of comment content after dynamic.The modification content that online document modification processing unit will acquire is sent to
In elasticSearch, modification content is stored by elasticSearch, so that user checks quickly fastly in distributed search engine
Online document is looked for, search speed and efficiency are improved.
In order to realize above-described embodiment, the disclosure also proposes a kind of online document modification processing unit.
Fig. 4 is the structural schematic diagram that the online document that one embodiment of the disclosure proposes modifies processing unit.
As shown in figure 4, online document modification processing unit 40 includes: enquiry module 410, determining module 420, obtains mould
Block 430 and memory module 440.
Wherein, enquiry module 410, for judging whether that online text can be obtained according to predetermined period query messages queue
Shelves modification message, and the online document of acquisition modification message is parsed, obtain the destination document modified and change type.
Determining module 420, for determining the destination document typelib of destination document ownership.
In a kind of possible implementation of the embodiment of the present disclosure, determining module 420 is used for the suffix according to destination document
Type determines destination document typelib;Alternatively, according to destination document carry type identification, inquire preset type identification with
The corresponding relationship of Doctype determines the Doctype of destination document, according to the Doctype of destination document, determines destination document
Typelib.
Module 430 is obtained, for obtaining repair corresponding with destination document in destination document typelib according to change type
Change content.
In a kind of possible implementation of the embodiment of the present disclosure, change type is new document, obtains module 430 and is used for
Destination document is searched from destination document typelib, and obtains the title, creation time and founder of destination document.
In a kind of possible implementation of the embodiment of the present disclosure, change type is modification document content, obtains module 430
For searching destination document from destination document typelib, and obtain title, document content and the modification time of destination document.
Memory module 440, for storing modification content corresponding with destination document into distributed search engine, with root
Corresponding document searching result is fed back according to the document searching information of user's input.
In a kind of possible implementation of the embodiment of the present disclosure, change type is to delete document, as shown in figure 5, such as
On the basis of embodiment illustrated in fig. 4, which modifies processing unit 40 further include:
Generation module 450, for generating destination document and deleting message according to destination document and change type.
Sending module 460 deletes message for sending destination document to distributed search engine, so that distributed search draws
Hold up deletion and the matched object content of destination document.
It is that destination document is generated according to destination document and change type and is deleted when deleting document by the change type in acquisition
Except message, and destination document is sent to distributed search engine and deletes message, so that distributed search engine is deleted and the mesh
The object content for marking document matches, is advantageously implemented the synchronized update of distributed search engine and online document, and energy as a result,
Enough save the memory space of distributed search engine.
It should be noted that the aforementioned explanation to online document modification processing method embodiment is also applied for the implementation
The online document of example modifies processing unit, and realization principle is similar, and details are not described herein again.
The online document of the embodiment of the present disclosure modifies processing unit, by according to predetermined period query messages queue, judgement
Online document modification message whether can be obtained, and the online document of acquisition modification message is parsed, what acquisition was modified
Destination document and change type, determine the destination document typelib of destination document ownership, according to change type in destination document class
Modification content corresponding with destination document is obtained in type library, and modification content corresponding with destination document is stored to distributed search
In engine, corresponding document searching result is fed back with the document searching information inputted according to user.As a result, by will acquire with
The corresponding modification content storage of destination document allows users to the root in distributed search engine into distributed search engine
Destination document is quickly found according to document searching information, the quick lookup of online document is realized, saves lookup destination document
Time, improve document searching efficiency, the user experience is improved;By receiving online document modification letter using message queue
Message, to online document modification message parse obtain the destination document modified and change type, be conducive to it is subsequent
The extension of on-line documentation type, improves scalability.
In order to realize above-described embodiment, the disclosure also proposes a kind of electronic equipment, comprising: processor and memory.Wherein,
Processor runs program corresponding with executable program code by reading the executable program code stored in memory, with
Processing method is modified for realizing online document as in the foregoing embodiment.
Below with reference to Fig. 6, it illustrates the structural representations for the electronic equipment 800 for being suitable for being used to realize the embodiment of the present disclosure
Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect
Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle
Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 6
Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.)
801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808
Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment
Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804
Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device
809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool
There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement 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 809, or from storage device 808
It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, 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
When sub- equipment executes, so that the electronic equipment: according to predetermined period query messages queue, judging whether that online document can be obtained
Message is modified, and the online document of acquisition modification message is parsed, obtains the destination document modified and change type;Really
The destination document typelib of the fixed destination document ownership, obtains in the destination document typelib according to the change type
Modification content corresponding with the destination document;Modification content storage corresponding with the destination document is drawn to distributed search
In holding up, corresponding document searching result is fed back with the document searching information inputted according to 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 module does not constitute the restriction to the module itself under certain conditions, for example, obtaining
Modulus block is also described as " being obtained in the destination document typelib according to the change type and the destination document
The module of corresponding modification content ".
In order to realize above-described embodiment, the disclosure also proposes a kind of non-transient computer readable storage medium, stores thereon
There is computer program, which realizes online document modification processing method as in the foregoing embodiment when being executed by processor.
Fig. 7 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in fig. 7, root
According to the computer readable storage medium 300 of the embodiment of the present disclosure, it is stored thereon with non-transient computer readable instruction 310.When this
When non-transient computer readable instruction 310 is run by processor, the online document modification of each embodiment of the disclosure above-mentioned is executed
The all or part of the steps of processing method.
In order to realize above-described embodiment, the disclosure also proposes a kind of computer program product, when the computer program product
In instruction when being executed by processor, realize online document modification processing method as in the foregoing embodiment.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the disclosure.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the disclosure, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the disclosure includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the disclosure
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the disclosure
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiment of the disclosure is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the disclosure
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of this disclosure
Type.
Claims (10)
1. a kind of online document modifies processing method, which comprises the following steps:
According to predetermined period query messages queue, judge whether that online document modification message can be obtained, and to the online of acquisition
Document modification message is parsed, and the destination document modified and change type are obtained;
The destination document typelib for determining the destination document ownership, according to the change type in the destination document typelib
It is middle to obtain modification content corresponding with the destination document;
Modification content corresponding with the destination document is stored into distributed search engine, with the document inputted according to user
It searches for information and feeds back corresponding document searching result.
2. the method as described in claim 1, which is characterized in that the destination document type of the determination destination document ownership
Library, comprising:
According to the suffix type of the destination document, the destination document typelib is determined;Or
According to the type identification that the destination document carries, the corresponding relationship of preset type identification and Doctype is inquired, really
The Doctype of the fixed destination document;
According to the Doctype of the destination document, the destination document typelib is determined.
3. the method as described in claim 1, which is characterized in that the change type is new document, described to change according to
Dynamic type obtains modification content corresponding with the destination document in the destination document typelib, comprising:
The destination document is searched from the destination document typelib, and obtains the title of the destination document, creation time
And founder.
4. the method as described in claim 1, which is characterized in that the change type is to delete document, is repaired in the acquisition
After the destination document and change type that change, further includes:
According to the destination document and the change type, generates destination document and delete message;
Send the destination document to the distributed search engine and delete message so that the distributed search engine delete with
The matched object content of destination document.
5. the method as described in claim 1, which is characterized in that the change type is modification document content, described according to institute
It states change type and obtains modification content corresponding with the destination document in the destination document typelib, comprising:
The destination document is searched from the destination document typelib, and obtains the title of the destination document, document content
And modification time.
6. a kind of online document modifies processing unit characterized by comprising
Enquiry module can obtain online document modification message for judging whether according to predetermined period query messages queue, and
The online document modification message of acquisition is parsed, the destination document modified and change type are obtained;
Determining module, for determining the destination document typelib of the destination document ownership;
Module is obtained, it is corresponding with the destination document for being obtained in the destination document typelib according to the change type
Modification content;
Memory module, for storing modification content corresponding with the destination document into distributed search engine, with basis
The document searching information of user's input feeds back corresponding document searching result.
7. device as claimed in claim 6, which is characterized in that the determining module is used for:
According to the suffix type of the destination document, the destination document typelib is determined;Or
According to the type identification that the destination document carries, the corresponding relationship of preset type identification and Doctype is inquired, really
The Doctype of the fixed destination document;
According to the Doctype of the destination document, the destination document typelib is determined.
8. device as claimed in claim 6, which is characterized in that the change type is to delete document, described device further include:
Generation module, for generating destination document and deleting message according to the destination document and the change type;
Sending module deletes message for sending the destination document to the distributed search engine, so that the distribution
Search engine is deleted and the matched object content of the destination document.
9. a kind of electronic equipment, which is characterized in that including processor and memory;
Wherein, the processor is run by reading the executable program code stored in the memory can be performed with described
The corresponding program of program code, to modify processing method for realizing online document according to any one of claims 1 to 5.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the program quilt
Processor realizes online document modification processing method according to any one of claims 1 to 5 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910102749.XA CN109885654A (en) | 2019-02-01 | 2019-02-01 | Online document modifies treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910102749.XA CN109885654A (en) | 2019-02-01 | 2019-02-01 | Online document modifies treating method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885654A true CN109885654A (en) | 2019-06-14 |
Family
ID=66927744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910102749.XA Pending CN109885654A (en) | 2019-02-01 | 2019-02-01 | Online document modifies treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885654A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275862A (en) * | 2019-06-26 | 2019-09-24 | 北京字节跳动网络技术有限公司 | Count the method and apparatus for having created number of files |
CN110489433A (en) * | 2019-07-11 | 2019-11-22 | 中国平安人寿保险股份有限公司 | A kind of message treatment method and device, electronic equipment based on MongoDB |
CN111262776A (en) * | 2020-01-10 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Method, device, electronic equipment and computer readable medium for sending notification message |
CN111582833A (en) * | 2020-05-13 | 2020-08-25 | 中国民航信息网络股份有限公司 | Document processing method and device based on life cycle and electronic equipment |
CN112347323A (en) * | 2019-07-22 | 2021-02-09 | 小船出海教育科技(北京)有限公司 | Document management method, document management apparatus, storage medium, and processor |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853288A (en) * | 2010-05-19 | 2010-10-06 | 马晓普 | Configurable full-text retrieval service system based on document real-time monitoring |
CN102262640A (en) * | 2010-05-31 | 2011-11-30 | 中国移动通信集团贵州有限公司 | Method and device for full-text retrieval of document database |
CN107038162A (en) * | 2016-02-03 | 2017-08-11 | 滴滴(中国)科技有限公司 | Real time data querying method and system based on database journal |
CN107943893A (en) * | 2017-11-16 | 2018-04-20 | 北京奇安信科技有限公司 | A kind of search processing method and device based on internet |
CN108363768A (en) * | 2018-02-07 | 2018-08-03 | 深圳壹账通智能科技有限公司 | A kind of document search method, storage medium and server based on Lucene |
-
2019
- 2019-02-01 CN CN201910102749.XA patent/CN109885654A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853288A (en) * | 2010-05-19 | 2010-10-06 | 马晓普 | Configurable full-text retrieval service system based on document real-time monitoring |
CN102262640A (en) * | 2010-05-31 | 2011-11-30 | 中国移动通信集团贵州有限公司 | Method and device for full-text retrieval of document database |
CN107038162A (en) * | 2016-02-03 | 2017-08-11 | 滴滴(中国)科技有限公司 | Real time data querying method and system based on database journal |
CN107943893A (en) * | 2017-11-16 | 2018-04-20 | 北京奇安信科技有限公司 | A kind of search processing method and device based on internet |
CN108363768A (en) * | 2018-02-07 | 2018-08-03 | 深圳壹账通智能科技有限公司 | A kind of document search method, storage medium and server based on Lucene |
Non-Patent Citations (1)
Title |
---|
黄江平: "基于Lucene的桌面搜索引擎的研究与应用", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275862A (en) * | 2019-06-26 | 2019-09-24 | 北京字节跳动网络技术有限公司 | Count the method and apparatus for having created number of files |
CN110489433A (en) * | 2019-07-11 | 2019-11-22 | 中国平安人寿保险股份有限公司 | A kind of message treatment method and device, electronic equipment based on MongoDB |
CN110489433B (en) * | 2019-07-11 | 2023-10-27 | 中国平安人寿保险股份有限公司 | MongoDB-based message processing method and device and electronic equipment |
CN112347323A (en) * | 2019-07-22 | 2021-02-09 | 小船出海教育科技(北京)有限公司 | Document management method, document management apparatus, storage medium, and processor |
CN111262776A (en) * | 2020-01-10 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Method, device, electronic equipment and computer readable medium for sending notification message |
CN111262776B (en) * | 2020-01-10 | 2021-05-07 | 北京字节跳动网络技术有限公司 | Method, device, electronic equipment and computer readable medium for sending notification message |
CN111582833A (en) * | 2020-05-13 | 2020-08-25 | 中国民航信息网络股份有限公司 | Document processing method and device based on life cycle and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109885654A (en) | Online document modifies treating method and apparatus | |
US8095555B2 (en) | Information processing apparatus and method and information system | |
CN109634598A (en) | A kind of page display method, device, equipment and storage medium | |
CN105988996B (en) | Index file generation method and device | |
JP2010522936A (en) | Search for multiple content sources on user devices | |
CN109413127A (en) | A kind of method of data synchronization and device | |
CN107491382B (en) | Log output method and device | |
JP6775510B2 (en) | Terminals, terminal control methods, and programs | |
KR20130126610A (en) | Identifiers for style sheets | |
JP2015521776A (en) | Electronic book providing method, system, and cloud server | |
CN102385605B (en) | Method and system for searching microblog messages and microblog server | |
CN110019080A (en) | Data access method and device | |
CN108965389A (en) | Method for showing information | |
KR20140089531A (en) | Routing query results | |
CN109558378A (en) | File management method, device, equipment and storage medium | |
CN109508361A (en) | Method and apparatus for output information | |
CN110889263A (en) | Document backlog generation method, device, equipment and storage medium | |
CN110019552A (en) | User pays close attention to the method and apparatus that state updates | |
CN113626223A (en) | Interface calling method and device | |
CN110110184A (en) | Information query method, system, computer system and storage medium | |
CN110020271A (en) | Method and system for cache management | |
CN109670028A (en) | Table search method and device in online document | |
CN105279221A (en) | Link preview management | |
CN105701231A (en) | Network resource search system and method | |
CN110704507A (en) | Method and device for storing data and method and device for querying data |
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 |