CN109697199A - A kind of office automation OA searching method and equipment based on solr realization - Google Patents

A kind of office automation OA searching method and equipment based on solr realization Download PDF

Info

Publication number
CN109697199A
CN109697199A CN201711000427.1A CN201711000427A CN109697199A CN 109697199 A CN109697199 A CN 109697199A CN 201711000427 A CN201711000427 A CN 201711000427A CN 109697199 A CN109697199 A CN 109697199A
Authority
CN
China
Prior art keywords
data
field
target
database
solr
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
CN201711000427.1A
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201711000427.1A priority Critical patent/CN109697199A/en
Publication of CN109697199A publication Critical patent/CN109697199A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of office automation OA searching method realized based on solr and equipment, which comprises establishes the configuration file for characterizing the mapping relations between the aiming field in OA system in the former field and target database of source database;When at the beginning of reaching data pick-up task, the corresponding initial data of source database Central Plains field is extracted according to the configuration file, and the initial data is stored in the target database of aiming field corresponding with original field place, form target data corresponding with the aiming field;Solr server is called, the index for searching for target data described in the target database is established.

Description

A kind of office automation OA searching method and equipment based on solr realization
Technical field
The present invention relates to database technical field more particularly to a kind of office automation OA searchers realized based on solr Method and equipment.
Background technique
OA (Office Automation, office automation) system is by modern office and computer network functions knot The novel working way of one kind altogether, using the advanced information processing technology, this traditional script that makes " to handle official business " is by people Activity to be embodied, which is gradually evolved by various equipment, various systems, to be assisted to complete to operate, and OA system has powerful Search function is consulted, the full-text search of keyword can be realized by the way that search condition is arranged, quickly search data, number for employee It is convenient according to equal offers, to improve the efficiency for collecting documents and materials.
The main of current office automation OA way of search includes two kinds: the first is based on the mould to Database field Paste matching retrieval, namely by keyword, directly inquired from source database, this method has very strong coupling, and search efficiency is low; Second method relies primarily on external full-text search kit to be realized, this method is needed according to specific application scenarios And business, the corresponding logic extracted and clean data is formulated, it is higher with the degree of coupling of business, need to customize service, to lead Cause program that can not be multiplexed, heavy workload, low efficiency.
So in the prior art, there are the low technical problems of office automation OA search efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of office automation OA searching method and equipment based on solr realization, for solving In the prior art, the technical problem low there are office automation OA search efficiency.
For this purpose, a kind of specific skill of office automation OA searching method realized based on solr provided in an embodiment of the present invention Art scheme is as follows:
It establishes for characterizing reflecting between the aiming field in OA system in the former field and target database of source database Penetrate the configuration file of relationship;
When at the beginning of reaching data pick-up task, source database Central Plains word is extracted according to the configuration file The corresponding initial data of section, and the initial data is stored in aiming field corresponding with original field place number of targets According in library, target data corresponding with the aiming field is formed;
Solr server is called, the index for searching for target data described in the target database is established.
Optionally, the calling solr server is established for searching for target data described in the target database Index, specifically includes:
It calls solr server to carry out word segmentation processing to the target data, obtains at least one participle data;
The corresponding relationship of at least one the participle data and the target data is established, so as in the solr server Searching interface in pass through at least one described participle data search to the target data.
Optionally, before the corresponding initial data according to configuration file acquisition source database Central Plains field, Include:
Determine the corresponding driving of the source database;
By loading the drive connection source database.
Optionally, when the data pick-up task is periodic duty, which comprises
When reaching the period distances of the data pick-up task, the data updated in the initial data are extracted;
The target data is updated using the data of the update;
The solr server is called, the index for searching for updated target data is established.
It optionally, further include the storage time of the target data in the data pick-up task, which comprises
When the storage time of the target data reaches, the target data is deleted.
Optionally, it is closed in described establish for characterizing the mapping in OA system between source database original field and aiming field Before the configuration file of system, further includes:
Determine the aiming field in the target database, the field name and field type of the aiming field.
On the other hand, the embodiment of the present application also provides a kind of office automation OA search equipment realized based on solr, packet It includes:
Module is established, for establishing for characterizing the target in OA system in the former field Yu target database of source database The configuration file of mapping relations between field;
Abstraction module, when at the beginning of reaching data pick-up task, according to configuration file extraction The corresponding initial data of source database Central Plains field, and the initial data is stored in target corresponding with the original field Where field in target database, target data corresponding with the aiming field is formed;
Calling module is established for calling solr server for searching for target data described in the target database Index.
Optionally, the calling module is also used to:
It calls solr server to carry out word segmentation processing to the target data, obtains at least one participle data;
The corresponding relationship of at least one the participle data and the target data is established, so as in the solr server Searching interface in pass through at least one described participle data search to the target data.
Optionally, the equipment further include:
Determining module, for determining the corresponding driving of the source database;
Loading module, for by loading the drive connection source database.
Optionally, the equipment further include:
First extracts submodule, for extracting the original number when reaching the period distances of the data pick-up task According to the data of middle update;
Update module, for updating the target data using the data of the update;
First calls submodule, for calling the solr server, establishes for searching for updated target data Index.
Optionally, the equipment further include:
Removing module, for deleting the target data when the storage time of the target data reaches.
Optionally, the equipment further include:
Second determines submodule, for determining the aiming field in the target database, the field of the aiming field Title and field type.
In another aspect, the embodiment of the present invention also provides a kind of office automation OA search equipment realized based on solr, packet It includes:
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one The instruction that device is stored by executing the memory is managed, the office automation OA search realized as described above based on solr is executed Method.
In another aspect, the embodiment of the present invention also provides a kind of computer readable storage medium:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers When, so that computer executes the office automation OA searching method realized as described above based on solr.
Due to the technical solution in the embodiment of the present application, before being extracted to source data, first for source database in OA system The configuration file for being used for data pick-up is established, the mapping of source data original field and search field is realized by configuration file, in turn It, can be automatically according to configuration file to corresponding source database Central Plains field pair when at the beginning of reaching data pick-up task The initial data answered carries out, and the initial data is stored in aiming field corresponding with original field place number of targets According in library, target data corresponding with the aiming field is formed, then recalls solr server, is established described for searching for The index of target data described in target database, and then search target data can be combined by the search of solr server, So effective solution office automation OA search efficiency existing in the prior art low technical problem, realizes to improve and do The beneficial effect of public affairs automation OA search efficiency.
Again due to this method can free configuration data extract the execution time of task, period interval time, extraction data The parameters such as storage path be not necessarily to manual intervention, while visualization circle can also be passed through so that each extraction task orderly carries out Task Progress, details, state and error information are checked in face, so, more convenient flexible automation compared with prior art, while Further improve office automation OA search efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, embodiment will be described below Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment.
Fig. 1 is a kind of process of office automation OA searching method realized based on solr provided by the embodiments of the present application Figure;
Fig. 2 is the structure mapped between the data extraction process Central Plains field provided and aiming field in the embodiment of the present application Schematic diagram;
Fig. 3 is the flow chart for some steps that can also carry out before executing step S102 in the embodiment of the present application;
Fig. 4 is the flow chart of the specific implementation of step S103 in the embodiment of the present application;
Fig. 5 is the flow chart for other steps that can also carry out in the embodiment of the present application;
Fig. 6 is that the structure that a kind of office automation OA realized based on solr provided by the embodiments of the present application searches for equipment is shown It is intended to.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical solution of the present invention is clearly and completely described, it is clear that described embodiment is skill of the present invention A part of the embodiment of art scheme, instead of all the embodiments.Based on the embodiment recorded in present specification, this field is general Logical technical staff every other embodiment obtained without creative efforts, belongs to the technology of the present invention side The range of case protection.
Referring to FIG. 1, for a kind of office automation OA searching method realized based on solr provided by the embodiments of the present application, Include:
Step S101: it establishes for characterizing the aiming field in OA system in the former field Yu target database of source database Between mapping relations configuration file;
Step S102: when at the beginning of reaching data pick-up task, the source number is extracted according to the configuration file Aiming field corresponding with the original field is stored according to the corresponding initial data of library Central Plains field, and by the initial data In the target database of place, target data corresponding with the aiming field is formed;
Step S103: solr server is called, the rope for searching for target data described in the target database is established Draw.
Step S101 is first carried out in the above method in the embodiment of the present invention, namely establishes for characterizing source number in OA system According to the configuration file of the mapping relations between the aiming field in the former field and target database in library.
In practical applications, the source database for mainly including in OA system has Domino database and MySQL database, when It so can also include that other kinds of source database is specifically in the present embodiment in OA system with the source database for including For Domino database and MySQL database, to be illustrated to the above method in the embodiment of the present invention.
During concrete practice, following steps can also be performed before executing above-mentioned steps S101:
Determine the aiming field in the target database, the field name and field type of the aiming field.
Again include multiple libraries nsf in Domino database or MySQL database, includes different type in each library nsf Language, may include title division in different types of language, day part and content part etc., then, different languages In belong to same type and such as belong to the parts of topic Types and be potentially stored under the former field of different names, for example, working as language 1 Entitled " notice ", entitled " fine inventory " of language 2, when entitled " written request for leave " of language 3, as shown in Table 1, Title " notice " and " fine inventory " are stored under the former field of entitled " title ", and title " written request for leave " is stored in title For under the former field of " title ".
Table one:
Therefore, before being extracted to Domino database or the corresponding initial data of MySQL database Central Plains field, The corresponding initial data of former field for belonging to same type but different names that can first determine to be extracted is stored in target In database under which field, the field in target database is known as aiming field in order to describe to facilitate here, for example, The former field " title " and " title " for belonging to topic Types in MySQL database correspond to entitled title in target database Aiming field " title ", thus can be by the corresponding original number of former field for belonging to same type but different names of extraction According to being stored in target database under an aiming field, it is, of course, also possible to provide the length etc. of aiming field, it is just different herein One lists.
Then, so that it may according to the aiming field determined be Domino database and MySQL database in every nsf Library establishes one for characterizing the configuration file of the mapping relations between the library nsf Central Plains field and aiming field, here, to establish For corresponding first configuration file in the first library nsf in Domino database, referring to FIG. 2, assuming in Domino database The first library nsf in belong to the former field of topic Types include " title " field and " title " field, wherein header field pair Initial data X is answered, title field corresponds to initial data Y, then, the first nsf can be set in the first configuration file The former field " title " in library and " title " correspond to the aiming field " title " in target database.
Certainly, in practical applications, the version in the corresponding library nsf can also be set in configuration file, address, user name, Password etc. namely source database information may be used also according to the address in the library nsf, user name and password, to go to access the library nsf The version of target database, address, user name, password etc., so that the data of extraction are stored in the target database is arranged In.
It, can also be to establishing after establishing corresponding first configuration file in the first library nsf during concrete practice First configuration file test, such as examine whether first configuration file meets xml reference format, configuration file content Whether comprising the database informations such as Database Systems, version, user name, password, IP check in former field configuration comprising title, in Whether literary fame establishes the contents such as index, storage, participle, after verification passes through, so that it may pass through wound according to first configuration file Task is built to extract the data in the first library nsf.
After having executed above-mentioned steps S101, the method in the embodiment of the present application carries out step S102, Ye Ji When at the beginning of arrival data pick-up task, field corresponding original in the source database Central Plains is extracted according to the configuration file Beginning data, and the initial data is stored in the target database of aiming field corresponding with original field place, shape At target data corresponding with the aiming field.
Specifically, after establishing each corresponding configuration file in the library nsf, so that it may formulate for certain in OA system One library nsf carries out the task of data pick-up, it is assumed here that the data pick-up task of formulation is for the first library nsf in OA system Data pick-up is carried out, then at the beginning of just containing the data pick-up task in the data pick-up task, and with the Corresponding first configuration file in one library nsf, then, when reaching at the beginning of the data pick-up task, so that it may according to this The first configuration file in data pick-up task carries out data pick-up to the first library nsf.
Referring to FIG. 3, after when at the beginning of reaching the data pick-up task, according in the data pick-up task Before first configuration file carries out data pick-up to the first library nsf, following steps can also be performed:
Step S501: the corresponding driving of the source database is determined;
Step S502: by loading the drive connection source database.
That is, after when at the beginning of reaching above-mentioned data pick-up task, first determine in Domino database The driving in the first library nsf can set driving mapping table in practical applications in systems in advance, in the driving mapping table Each corresponding driving in the library nsf in Domino database is set, then, at the beginning of reaching above-mentioned data pick-up task When, so that it may driving corresponding with the first library nsf is first determined by the driving mapping table, then by loading the driving, into And realize the connection with the first library nsf, then, so that it may which the corresponding original of the first library nsf Central Plains field is extracted according to configuration file Beginning data.
Here, specifically including " title " field and " title " continuing with the former field in the first library nsf shown in Fig. 2 Field, wherein header field corresponds to initial data X, and title field corresponds to initial data Y, the first library nsf corresponding The former field " title " in the first library nsf and " title " aiming field in target database is corresponded in one configuration file " to mark Topic ".
, it is possible to extract title field pair from the corresponding initial data X of the first library nsf extracting header field Initial data Y, then, by the aiming field " title " in the initial data X of extraction and initial data Y stored target database Under, and then by initial data X and initial data Y shape at the corresponding target data of aiming field in target database " title ".
Certainly, in practical applications, the initial data of extraction in above-mentioned data pick-up task, can also be arranged, and there are mesh Mark database in storage duration, namely extract initial data formed target data effective time, when reach storage when Between when, just delete the data, for example, for the first library nsf data pick-up task in, the initial data X for setting extraction exists Resting period in target database is 1 month, then when the initial data X of extraction is stored in target word in target database After section " title ", begin to timing, as soon as when timing to month when, initial data X in delete target database.
In concrete practice process, when at the beginning of reaching above-mentioned data pick-up task, executes above-mentioned data pick-up and appoint When business, the executive condition of the data pick-up task can also be checked by visualization interface, such as with reference to extraction progress, execute shape State, if report an error.If being performed simultaneously having at the same time for the multiple library nsf data pick-up tasks, then, it can also look at For the extraction state in each library nsf.Certainly, in practical applications, it is also possible to be opened executing some data pick-up task Before beginning or in implementation procedure, the case where meeting system maintenance and upgrading, at this moment can urgent offline subtask execution.
Method in the embodiment of the present invention carries out step S103 after executing the step S102, namely calls Solr server establishes the index for searching for target data described in the target database.
Referring to FIG. 4, in practical applications, above-mentioned steps S103 can also be embodied in the following way:
Step S201: calling solr server to carry out word segmentation processing to the target data, obtains at least one participle number According to;
Step S202: the corresponding relationship of at least one the participle data and the target data is established, so as to described Pass through at least one described participle data search to the target data in the searching interface of solr server.
According to the initial data X of extraction and initial data Y shape at the corresponding mesh of aiming field in target database " title " After mark data, so that it may it calls solr server to carry out word segmentation processing to target data, obtains multiple participle data, for example, When initial data X is specially " comrade about comrade's Zhang San job transfer ", initial data Y is specially " to cause the apology of Li Si Book ", then, the corresponding target data of aiming field " title " in target database is just " to work and adjust about comrade Zhang San Dynamic notice " and " the apology book for causing Li Si ", then, so that it may call solr server respectively to target data " about Zhang San The notice of comrade's job transfer " and " the apology book for causing Li Si " carry out word segmentation processing, it is assumed that target data is " about the same volunteer of Zhang San After the notice that work is transferred " word segmentation processing, " Zhang San " is obtained, " job transfer " and " notice " these three participles, it is possible to Solr server is called to establish " Zhang San " " job transfer " and " notice " these three participles with target data " about comrade Zhang San Corresponding relationship between the notice of job transfer ", then, " Zhang San " is inputted in the searching interface of solr server or " work is adjusted It is dynamic " or " notice " target data " notice about comrade's Zhang San job transfer " can be searched.
Likewise, solr server can be called " " to cause Li Si about comrade's Zhang San job transfer to target data respectively Apology book " carry out word segmentation processing, it is assumed that after target data the apology book of Li Si " cause " word segmentation processing, obtain " Li Si ", " apology These three participles of book " and " cause ", it is possible to solr server is called to establish " Li Si ", " apology book " and " cause " this Corresponding relationship between three participles and target data " the apology book for causing Li Si ", then, in the searching interface of solr server Input " Li Si " or " apology book " or " cause " can search target data " the apology book for causing Li Si ".
Certainly, in practical applications, multiple keywords can also be inputted simultaneously to search for target data, for example, can be same When in the searching interface of solr server input " Li Si " and " apology book " simultaneously, to search for the target data " apology of cause Li Si Book ".If in target data including " the apology book for causing Li Si ", " the job transfer arrangement of Li Si ", and " brochure of Li Si ", When the searching interface in solr server inputs keyword " Li Si ", all data in target data comprising Li Si may all can It shows, namely " the apology book for causing Li Si ", " the job transfer arrangement of Li Si ", and " brochure of Li Si ", it at this moment, can It is screened with further inputting keyword in the result showed, such as input keyword " apology book " can be from upper It states and filters out target data " the apology book for causing Li Si " in result.
In practical applications, when scanning for the target data in bibliographic database, log system can also be passed through The relevant information of search, such as all kinds of error informations of search are recorded, the keyword etc. of search can also be according in log system Record summarizes the keyword popularity in certain a period of time, provides hot word seniority among brothers and sisters, Optimizing Search experience etc..
Referring to FIG. 5, in practical applications, when the above-mentioned data pick-up task for being directed to the first library nsf is periodic duty, Following steps can also be performed:
Step S301: it when reaching the period distances of the data pick-up task, extracts and is updated in the initial data Data;
Step S302: the target data is updated using the data of the update;
Step S303: calling the solr server, establishes the index for searching for updated target data.
In practical applications, the above-mentioned data pick-up task for being directed to the first library nsf can be single task, namely only need benefit The corresponding initial data of the first library nsf Central Plains field once extract with configuration file, it is of course also possible to for week When phase task, namely when being reached at the beginning of being directed to the data pick-up task in the first library nsf, using configuration file to this The corresponding initial data of one library nsf Central Plains field carries out after once extracting, will be to extraction every a cycle interval time Updated initial data in the corresponding initial data of first library nsf Central Plains field.
In practical applications, the end time that task can be extracted each time by recording, then compare initial data note The last update time of record and last time extract the time to judge whether the document is to collect rear updated data, example last time Such as, first of the initial data X under the first library nsf Central Plains field " title " extracts the time as on October 13rd, 2017, works as interval When a cycle interval time, the renewal time of the initial data X under the first library nsf Central Plains field " title " is 2017 October 15 can extract updated initial data it is judged that the data are updated after extracting first again X。
So before being extracted to source data, first being established for source database in OA system by the above method and being used for data The configuration file of extraction is realized the mapping of source data original field and search field by configuration file, and then taken out reaching data It, can be automatically according to configuration file to the corresponding initial data of corresponding source database Central Plains field when taking at the beginning of task It carries out, and the initial data is stored in the target database of aiming field corresponding with original field place, formed Then target data corresponding with the aiming field recalls solr server, establish for searching for the target database Described in target data index, and then can by the search of solr server combine search target data, so, effectively It solves the low technical problem of office automation OA search efficiency existing in the prior art, realizes that improving office automation OA searches The beneficial effect of rope efficiency.
Again due to this method can free configuration data extract the execution time of task, period interval time, extraction data The parameters such as storage path be not necessarily to manual intervention, while visualization circle can also be passed through so that each extraction task orderly carries out Task Progress, details, state and error information are checked in face, so, more convenient flexible automation compared with prior art, while Further improve office automation OA search efficiency.
Based on the same inventive concept, the embodiment of the present application also provides a kind of office automation OA search realized based on solr The specific implementation of equipment, the office automation OA searching method of the equipment realized based on solr can be found in above method embodiment Partial description, overlaps will not be repeated, referring to FIG. 6, the equipment includes:
Module 10 is established, for establishing for characterizing the mesh in OA system in the former field Yu target database of source database The configuration file of mapping relations between marking-up section;
Abstraction module 11 when at the beginning of reaching data pick-up task, extracts institute according to the configuration file The corresponding initial data of source database Central Plains field is stated, and the initial data is stored in mesh corresponding with the original field Where marking-up section in target database, target data corresponding with the aiming field is formed;
Calling module 12 is established for calling solr server for searching for number of targets described in the target database According to index.
Optionally, the calling module is also used to:
It calls solr server to carry out word segmentation processing to the target data, obtains at least one participle data;
The corresponding relationship of at least one the participle data and the target data is established, so as in the solr server Searching interface in pass through at least one described participle data search to the target data.
Optionally, the equipment further include:
Determining module, for determining the corresponding driving of the source database;
Loading module, for by loading the drive connection source database.
Optionally, the equipment further include:
First extracts submodule, for extracting the original number when reaching the period distances of the data pick-up task According to the data of middle update;
Update module, for updating the target data using the data of the update;
First calls submodule, for calling the solr server, establishes for searching for updated target data Index.
Optionally, the equipment further include:
Removing module, for deleting the target data when the storage time of the target data reaches.
Optionally, the equipment further include:
Second determines submodule, for determining the aiming field in the target database, the field of the aiming field Title and field type.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of office automation OA search realized based on solr Equipment, comprising:
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one The instruction that device is stored by executing the memory is managed, the office automation OA search realized as described above based on solr is executed Method.
Based on the same inventive concept, a kind of computer readable storage medium is provided in the embodiment of the present invention:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers When, so that computer executes the office automation OA searching method realized as described above based on solr.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (9)

1. a kind of office automation OA searching method realized based on solr characterized by comprising
It establishes and is closed for characterizing the mapping between the aiming field in OA system in the former field and target database of source database The configuration file of system;
When at the beginning of reaching data pick-up task, source database Central Plains field pair is extracted according to the configuration file The initial data answered, and the initial data is stored in aiming field corresponding with original field place target database In, form target data corresponding with the aiming field;
Solr server is called, the index for searching for target data described in the target database is established.
2. the method as described in claim 1, which is characterized in that the calling solr server is established for searching for the mesh The index for marking target data described in database, specifically includes:
It calls solr server to carry out word segmentation processing to the target data, obtains at least one participle data;
The corresponding relationship of at least one the participle data and the target data is established, so as to searching in the solr server Pass through at least one described participle data search to the target data in rope interface.
3. method according to claim 1 or 2, which is characterized in that obtain the source database according to configuration file described Before the corresponding initial data of Central Plains field, comprising:
Determine the corresponding driving of the source database;
By loading the drive connection source database.
4. method according to claim 1 or 2, which is characterized in that described when the data pick-up task is periodic duty Method includes:
When reaching the period distances of the data pick-up task, the data updated in the initial data are extracted;
The target data is updated using the data of the update;
The solr server is called, the index for searching for updated target data is established.
5. the method as described in claim 1, which is characterized in that further include the target data in the data pick-up task Storage time, which comprises
When the storage time of the target data reaches, the target data is deleted.
6. the method as described in claim 1, which is characterized in that in the foundation for characterizing source database original word in OA system Before the configuration file of mapping relations between section and aiming field, further includes:
Determine the aiming field in the target database, the field name and field type of the aiming field.
7. a kind of office automation OA realized based on solr searches for equipment characterized by comprising
Module is established, for establishing for characterizing the aiming field in OA system in the former field Yu target database of source database Between mapping relations configuration file;
Abstraction module when at the beginning of reaching data pick-up task, extracts the source number according to the configuration file Aiming field corresponding with the original field is stored according to the corresponding initial data of library Central Plains field, and by the initial data In the target database of place, target data corresponding with the aiming field is formed;
Calling module establishes the rope for searching for target data described in the target database for calling solr server Draw.
8. a kind of office automation OA realized based on solr searches for equipment characterized by comprising
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, at least one described processor By executing the instruction of the memory storage, as the method according to claim 1 to 6 is executed.
9. a kind of computer readable storage medium, it is characterised in that:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers, So that computer executes such as method of any of claims 1-6.
CN201711000427.1A 2017-10-24 2017-10-24 A kind of office automation OA searching method and equipment based on solr realization Pending CN109697199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711000427.1A CN109697199A (en) 2017-10-24 2017-10-24 A kind of office automation OA searching method and equipment based on solr realization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711000427.1A CN109697199A (en) 2017-10-24 2017-10-24 A kind of office automation OA searching method and equipment based on solr realization

Publications (1)

Publication Number Publication Date
CN109697199A true CN109697199A (en) 2019-04-30

Family

ID=66227637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711000427.1A Pending CN109697199A (en) 2017-10-24 2017-10-24 A kind of office automation OA searching method and equipment based on solr realization

Country Status (1)

Country Link
CN (1) CN109697199A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416929A (en) * 2020-11-17 2021-02-26 四川长虹电器股份有限公司 Retrieval library management and data retrieval method based on mysql and java

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737082A (en) * 2011-09-23 2012-10-17 新奥特(北京)视频技术有限公司 Method and system for dynamically updating file data indexes
CN103729463A (en) * 2014-01-14 2014-04-16 赛特斯信息科技股份有限公司 Method for implementing full-text retrieval based on Lucene and Solr
CN105205117A (en) * 2015-09-09 2015-12-30 郑州悉知信息科技股份有限公司 Data table migrating method and device
CN106503091A (en) * 2016-10-12 2017-03-15 济南浪潮高新科技投资发展有限公司 A kind of implementation method of changeable data structure automatic synchronization coupling
US20170140013A1 (en) * 2012-05-18 2017-05-18 Splunk Inc. Directly field searchable and indirectly searchable by inverted indexes raw machine datastore
CN107038207A (en) * 2017-02-20 2017-08-11 阿里巴巴集团控股有限公司 A kind of data query method, data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737082A (en) * 2011-09-23 2012-10-17 新奥特(北京)视频技术有限公司 Method and system for dynamically updating file data indexes
US20170140013A1 (en) * 2012-05-18 2017-05-18 Splunk Inc. Directly field searchable and indirectly searchable by inverted indexes raw machine datastore
CN103729463A (en) * 2014-01-14 2014-04-16 赛特斯信息科技股份有限公司 Method for implementing full-text retrieval based on Lucene and Solr
CN105205117A (en) * 2015-09-09 2015-12-30 郑州悉知信息科技股份有限公司 Data table migrating method and device
CN106503091A (en) * 2016-10-12 2017-03-15 济南浪潮高新科技投资发展有限公司 A kind of implementation method of changeable data structure automatic synchronization coupling
CN107038207A (en) * 2017-02-20 2017-08-11 阿里巴巴集团控股有限公司 A kind of data query method, data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭学清 等: "《商务智能》", 31 October 2006 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416929A (en) * 2020-11-17 2021-02-26 四川长虹电器股份有限公司 Retrieval library management and data retrieval method based on mysql and java

Similar Documents

Publication Publication Date Title
US20230126005A1 (en) Consistent filtering of machine learning data
US20220391763A1 (en) Machine learning service
US11100420B2 (en) Input processing for machine learning
US11182691B1 (en) Category-based sampling of machine learning data
US9886670B2 (en) Feature processing recipes for machine learning
US10339465B2 (en) Optimized decision tree based models
CN102402596B (en) A kind of reading/writing method of master slave separation database and system
CN104598550B (en) A kind of update method and device of Internet video index
US10698890B2 (en) Dual overlay query processing
US10353874B2 (en) Method and apparatus for associating information
WO2019161645A1 (en) Shell-based data table extraction method, terminal, device, and storage medium
CN105956087A (en) Data and code version management system and method
CN103914487A (en) Document collection, identification and association system
CN103914486A (en) Document search and display system
Deschamps et al. The cost of a WARC: Analyzing web archives in the cloud
US11237951B1 (en) Generating test data for application performance
JP2021508389A (en) Job management in a data processing system
CN109697199A (en) A kind of office automation OA searching method and equipment based on solr realization
CN103809915A (en) Read-write method and device of magnetic disk files
CN115857918A (en) Data processing method and device, electronic equipment and storage medium
CN110222105B (en) Data summarization processing method and device
CN107705089B (en) Service processing method, device and equipment
WO2024098755A1 (en) Interface development method and related device
CN109460346A (en) A kind of method, apparatus and storage medium of offline analysis feature data
CN104252486B (en) A kind of method and device of data processing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190430