CN108681593A - Service data retrieval method and device - Google Patents
Service data retrieval method and device Download PDFInfo
- Publication number
- CN108681593A CN108681593A CN201810468567.XA CN201810468567A CN108681593A CN 108681593 A CN108681593 A CN 108681593A CN 201810468567 A CN201810468567 A CN 201810468567A CN 108681593 A CN108681593 A CN 108681593A
- Authority
- CN
- China
- Prior art keywords
- retrieval
- parameter
- server
- business datum
- search engine
- 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
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a kind of service data retrieval method and device, retrieval server is that the business datum in service server has been pre-created index file, and the search engine for being deployed in retrieval server carries out full-text search to index file, the method includes:Retrieval parameter is obtained, retrieval parameter is used to indicate the business datum of request retrieval;Retrieval parameter is encapsulated to the retrieval parameter object being pre-created, retrieval parameter object is the object that search engine carries out that calling is supported in full-text search;According to retrieval parameter object requests retrieval server calling search engine;Receive the business datum that search engine returns to index file progress full-text search according to the retrieval parameter in retrieval parameter object.The recall precision of business datum can be effectively improved using service data retrieval method provided by the present invention and device.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of service data retrieval methods and device.
Background technology
With the continuous accumulation of business datum, the traditional Relational DataBase disposed in service server is in processing magnanimity industry
When data of being engaged in, recall precision is substantially reduced.
It is proposed to this end that being carried out using third party's search engine (such as Solr, Lucene, Elasticsearch etc.)
The retrieval of business datum, however, since third party's search engine itself is complex, and existing industry can not be directly integrated in
Business system also needs to be transformed, although recall precision increases, consumes a large amount of time and efforts of developer,
It is unfavorable for reducing development cost.
From the foregoing, it will be observed that the recall precision for how improving business datum under the premise of not improving development cost still urgently solves
Certainly.
Invention content
In order to solve the above-mentioned technical problem, it is an object of the present invention to provide a kind of service data retrieval method and dresses
It sets.
Wherein, the technical solution adopted in the present invention is:
A kind of service data retrieval method, retrieval server are that the business datum in service server has been pre-created index
File, the search engine for being deployed in the retrieval server carry out full-text search, the method packet to the index file
It includes:Retrieval parameter is obtained, the retrieval parameter is used to indicate the business datum of request retrieval;The retrieval parameter is encapsulated to pre-
The retrieval parameter object first created, the retrieval parameter object are pairs that described search engine carries out that calling is supported in full-text search
As;Described search engine is called according to retrieval server described in the retrieval parameter object requests;Receive described search engine root
The business datum that full-text search is carried out to the index file according to the retrieval parameter in the retrieval parameter object and is returned.
A kind of business datum retrieval device, retrieval server are that the business datum in service server has been pre-created index
File, the search engine for being deployed in the retrieval server carry out full-text search, described device packet to the index file
It includes:Parameter acquisition module, for obtaining retrieval parameter, the retrieval parameter is used to indicate the business datum of request retrieval;Parameter
Package module, for encapsulating the retrieval parameter to the retrieval parameter object being pre-created, the retrieval parameter object is institute
It states search engine and carries out the object that calling is supported in full-text search;Request retrieval module, for according to the retrieval parameter object
The retrieval server is asked to call described search engine;As a result receiving module, for receiving described search engine according to
The business datum that retrieval parameter in retrieval parameter object returns to index file progress full-text search.
A kind of business datum retrieves device, including processor and memory, is stored on the memory computer-readable
Instruction, the computer-readable instruction realize service data retrieval method as described above when being executed by the processor.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Service data retrieval method as described above is realized when row.
In the above-mentioned technical solutions, retrieval server is that the business datum in service server is pre-created index file,
Search engine for being deployed in retrieval server carries out full-text search to index file, and then improves the retrieval effect of business datum
Rate, meanwhile, the encapsulation of retrieval parameter is carried out on the basis of search engine, the problem for avoiding search engine excessively complicated with this.
Specifically, obtaining the retrieval parameter for the business datum for being used to indicate request retrieval, and this retrieval parameter is encapsulated
Search engine is called to the retrieval parameter object being pre-created, and then according to this retrieval parameter object requests retrieval server, with
Receive the business number that search engine returns to index file progress full-text search according to the retrieval parameter in retrieval parameter object
According to, since retrieval parameter object is the object that search engine carries out that calling is supported in full-text search, for developer
Speech, or else must pay close attention to how search engine runs, and only need to provide retrieval parameter to retrieval parameter object, you can pass through
The calling of retrieval parameter object and directly invoke search engine carry out business datum retrieval, to be effectively improved business number
According to recall precision, while avoiding excessively high development cost.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is the schematic diagram according to implementation environment according to the present invention.
Fig. 2 is the hardware block diagram according to a kind of electronic equipment shown in an exemplary embodiment.
Fig. 3 is a kind of flow chart of service data retrieval method shown according to an exemplary embodiment.
Fig. 4 be in Fig. 3 corresponding embodiments step 310 in the flow chart of one embodiment.
Fig. 5 is the flow chart of another service data retrieval method shown according to an exemplary embodiment.
Fig. 6 is the flow chart of another service data retrieval method shown according to an exemplary embodiment.
Fig. 7 is the flow chart of another service data retrieval method shown according to an exemplary embodiment.
Fig. 8 is a kind of flow chart of service data retrieval method shown according to an exemplary embodiment.
Fig. 9 is the system architecture schematic diagram of search engine framework in an application scenarios.
Figure 10 is a kind of specific implementation schematic diagram of service data retrieval method in an application scenarios.
Figure 11 is a kind of block diagram of business datum retrieval device shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail, these attached drawings
It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate idea of the invention.
Specific implementation mode
Here will explanation be executed to exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of schematic diagram of the implementation environment involved by service data retrieval method.The implementation environment includes retrieval
Server 110, service server 130 and business datum retrieve device 150.
Wherein, business datum retrieval device 150 can be deployed in retrieval server 110, and can also be deployed in can be with inspection
Other any electronic equipments 170 that rope server 110 interacts, such as laptop etc. provide for developer based on inspection
Index the full article retrieval held up.It can be application program that this business datum, which retrieves device 150, can also be development kit
(SDK), it is not limited herein.
Retrieval server 110 pre-establishes wireless or wired network connection with service server 130, passes through this network
It connects in order to which retrieval server 110 is pre-created index file for the business datum in service server 130.
Further, business datum retrieval device 150 is initiated according to the business datum of request retrieval to retrieval server 110
Request, to ask 110 calling search engine 111 of retrieval server.
For retrieval server 110, can calling search engine 111 to index file carry out full-text search, with to
Business datum retrieves the business datum that device 150 returns to request retrieval.
It should be noted that according to the needs actually operated, retrieval server 110 and service server 130 can also be whole
It closes in same server cluster so that business datum retrieval is completed by the same server cluster.
Fig. 2 is the hardware block diagram according to a kind of electronic equipment shown in an exemplary embodiment.It should be noted that
The electronic equipment is an example for adapting to the present invention, must not believe that there is provided any of the use scope to the present invention
Limitation.The electronic equipment can not be construed to the illustrative electronic equipment shown in Figure 2 that needs to rely on or must have
One or more component in 200.
The hardware configuration of the electronic equipment 200 can generate larger difference due to the difference of configuration or performance, such as Fig. 2 institutes
Show, electronic equipment 200 includes:Power supply 210, interface 230, at least a memory 250 and an at least central processing unit (CPU,
Central Processing Units)270。
Wherein, power supply 210 is used to provide operating voltage for each hardware device on electronic equipment 200.
Interface 230 includes an at least wired or wireless network interface 231, at least a string and translation interface 233, at least one defeated
Enter output interface 235 and at least USB interface 237 etc., is used for and external device communication.
The carrier that memory 250 is stored as resource can be read-only memory, random access memory, disk or CD
Deng the resource stored thereon includes operating system 251, application program 253 and data 255 etc., and storage mode can be of short duration
It stores or permanently stores.Wherein, operating system 251 be used for manage and control electronics 200 on each hardware device and
Application program 253 can be Windows to realize calculating and processing of the central processing unit 270 to mass data 255
ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Application program 253 be based on operating system 251 it
The upper computer program for completing at least one particular job, may include an at least module (being not shown in Fig. 2), each module
The series of computation machine readable instruction to electronic equipment 200 can be separately included.Data 255 can be stored in disk
Photo, picture etc..
Central processing unit 270 may include the processor of one or more or more, and be set as through bus and memory
250 communications, for operation and the mass data 255 in processing memory 250.
As described in detail above, storage will be read by central processing unit 270 by being applicable in the electronic equipment 200 of the present invention
The form of the series of computation machine readable instruction stored in device 250 carrys out finishing service data retrieval method.
In addition, also can equally realize the present invention by hardware circuit or hardware circuit combination software, therefore, this hair is realized
The bright combination for being not limited to any specific hardware circuit, software and the two.
Referring to Fig. 3, in one exemplary embodiment, a kind of service data retrieval method is suitable for implementing ring shown in Fig. 1
The business datum in border retrieves device, which retrieves the hardware knot of the disposed electronic equipment of device (such as retrieval server)
Structure can be as shown in Figure 2.
This kind of service data retrieval method can retrieve device by business datum and execute, and may comprise steps of:
Step 310, retrieval parameter is obtained.
Wherein, retrieval parameter is used to indicate the business datum of request retrieval.
As previously mentioned, retrieval server has been pre-created index file for the business datum in service server, for portion
Be deployed on the search engine of retrieval server and full-text search carried out to index file, it should be understood that search engine to index file into
Row full-text search is that the business datum of retrieval is asked for developer.As a result, before carrying out full-text search, need to know out
Hair personnel ask the business datum of retrieval.
Specifically, business datum retrieval device will provide an access entry for developer, if developer needs
The retrieval of business datum is carried out, relevant operation can be triggered by this access entry, so that business datum retrieves device
Retrieval parameter is obtained, the business datum of request retrieval is indicated with this.
Step 330, retrieval parameter is encapsulated to the retrieval parameter object being pre-created.
Wherein, retrieval parameter object is the object that search engine carries out that calling is supported in full-text search.
As previously mentioned, search engine itself is complex, and need to be transformed and with existing operation system can be melted
It closes, for example, the object configured to search engine itself extend etc., this is unfavorable for reduction development cost.
For this purpose, in the present embodiment, it is pre-created retrieval parameter object, this retrieval parameter object is that search engine carries out full text
The object called is supported in retrieval.It is also understood that retrieval parameter object is different from the object that search engine itself is configured,
It is that the syntax rule supported according to search engine additionally creates, is avoided to search engine itself and its pair configured with this
As being transformed, so that developer no longer needs to pay close attention to the carrying out practically of search engine.
After the establishment for completing retrieval parameter object, retrieval parameter can be packaged according to retrieval parameter object,
As a result, by the calling of retrieval parameter object, packaged by retrieval parameter can be passed to search engine so that search engine is pressed
Retrieval parameter carries out full-text search to index file and then returns to the business datum indicated by retrieval parameter like this.
Step 350, according to retrieval parameter object requests retrieval server calling search engine.
As previously mentioned, retrieval parameter object is the object that search engine carries out that calling is supported in full-text search, and therefore, retrieval
Server needs not necessarily need to be based on the object that search engine itself is configured, but directly invokes search by the calling of retrieval parameter object
Engine carries out the retrieval of business datum.
Step 370, it receives search engine and full text inspection is carried out to index file according to the retrieval parameter in retrieval parameter object
Rope and the business datum returned.
For search engine, the retrieval parameter packaged by retrieval parameter object will be obtained, and then join according to this retrieval
It is several that full-text search is carried out to index file, you can to retrieve the business datum of this retrieval parameter instruction, and be back to business datum
Retrieve device.
Based on this, business datum retrieval device can receive the business datum of request retrieval, the inspection of finishing service data
Rope.
By process as described above, traditional Relational DataBase processing sea is substantially increased by the introducing of search engine
The ability of business datum is measured, and then is effectively improved the recall precision of business datum.
In addition, search engine, which need not be transformed, in developer can be realized quickly melting for search engine and existing business system
It closes, it is simple and efficient.
Referring to Fig. 4, in one exemplary embodiment, step 310 may comprise steps of:
Step 311, search key is obtained according to the keyword input operation that triggering carries out.
As previously mentioned, in order to obtain retrieval parameter, business datum retrieval device will provide an access entry for developer,
Indicate that business datum retrieves the business that device asks retrieval in order to which developer triggers relevant operation by this access entry
Data.
For example, access entry is an input dialogue frame, correspondingly, if developer needs to carry out the inspection of business datum
Rope, just in this input dialogue frame input with the relevant search key of business datum, then this keyword input operation be open
The relevant operation that hair personnel carry out in access entry triggering.
Step 313, judge search key whether comprising Chinese.
Step 315 is executed if it is, redirecting.
Step 315, it calls Chinese word segmentation plug-in unit to carry out Chinese word segmentation to search key, obtains retrieval parameter.
It should be noted that search engine itself configuration primary participle plug-in unit for character for, for example, retrieve
Keyword is " Smart TV ", then, by the calling of primary participle plug-in unit, search engine is the business that would know that request retrieval
Data are related with " Smart " and/or " TV ", and then retrieve relevant business datum according to " Smart " and/or " TV ", protected with this
Demonstrate,prove the accuracy of business datum retrieval.
However, if search key includes Chinese, for example, " intelligent TV set ", then search engine can not be to this retrieval
Keyword carry out text analyzing, then, carry out full-text search when only for " intelligent TV set ", and have ignored with " intelligence " or
" television set " relevant business datum, this may influence the accuracy of business datum retrieval.
For this purpose, in the present embodiment, Chinese word segmentation plug-in unit is configured for search engine, for example, IK segmenter, so that search engine
This Chinese word segmentation plug-in unit can be called to carry out text analyzing to search key, thus obtain instruction request retrieval service data
Retrieval parameter.
Assuming that search key is " intelligent TV set ", then retrieval parameter includes " intelligent TV set ", " intelligence ", " TV
Machine ".
Under the action of above-described embodiment, search engine supports Chinese word segmentation, and enough retrievals are provided for full-text search
Parameter, and then advantageously ensure that the accuracy of business datum retrieval.
Referring to Fig. 5, in one exemplary embodiment, before step 350, method as described above can also include following
Step:
Step 410, search condition is obtained.
It is appreciated that therefore search engine retrieves item according to the possible more than one of business datum that retrieval parameter is returned
Part, substantially in order to which the business datum returned to search engine is filtered and how to return to business datum and is arranged
Condition.
Wherein, search condition includes but not limited to:Whether highlighted, highlighted object highlights preposition/postposition, sequence, filtering
Whether domain returns and starts line number, return to line number, display line number, total page number, polymerize etc..
For this purpose, business datum retrieval device will provide an inlet porting for developer, if developer needs to filter
Business datum, and/or, the mode etc. that specified services data return can trigger relevant operation by this inlet porting, so that
The business datum that search engine returns meets search condition.
Step 430, search condition is added to retrieval parameter object, so that the business datum that search engine returns meets inspection
Search condition in rope parameter object.
As search condition is added, when retrieval parameter object reference, this search condition can be passed to search engine, make
Search engine is obtained the business datum obtained by full-text search is filtered and is returned according to this search condition.
For example, search condition includes whether to highlight, then in the business datum that search engine returns, it is consistent with search key
The content of conjunction is shown as highlighted.
Or it is 10 rows, the then business datum that search engine returns, in electronic equipment that search condition, which includes display line number,
It will be shown in a manner of every page of 10 rows in the display screen provided.
By the above process, the business datum that search engine is returned is that the actual demand with developer is consistent,
Further ensure the accuracy of business datum retrieval.
Referring to Fig. 6, in one exemplary embodiment, before step 350, method as described above can also include following
Step:
Step 510, it calls service to start interface and carries out retrieval server parameter configuration.
Step 530, start full article retrieval in the retrieval server for completing parameter configuration, so that retrieval server energy
Enough calling search engines carry out full-text search to index file.
It should be appreciated that it is in order to which retrieval server is able to carry out corresponding function, since retrieval server needs that service, which starts,
There are many function to be executed, and in order to ensure the booting efficiency of retrieval server, and not all service is all with retrieval server
It is switched on and starts.In other words, retrieval server can start corresponding service just now when needing to execute some function.
Based on this, full article retrieval starts, and is adjusted in order to which retrieval server is able to carry out business datum search function
Full-text search is carried out to index file with search engine.
When retrieval server needs startup full article retrieval, the calling that will start interface by service make retrieval server
Parameter is passed to business datum and retrieves device, and then completes retrieval server parameter configuration in business datum retrieves device, to accuse
Which retrieval server what is known business datum retrieval device interacts is.Wherein, retrieval server parameter includes but not limited to:
Retrieval server title, retrieval server domain name, retrieval server IP address etc..
Retrieval server parameter configuration to be done, business datum retrieval device just can be interacted with retrieval server, that is, be asked
Retrieval server calling search engine is asked to execute business datum search function.
In above process, by servicing the calling of start-up mode command deployment engine, be conducive to improve retrieval server
Treatment effeciency, avoid unnecessary memory from being lost.
Referring to Fig. 7, in one exemplary embodiment, before step 350, method as described above can also include following
Step:
Step 610, query interface is monitored, by monitoring the transmission between query interface foundation and retrieval server
Connection.
Step 630, the request of carrying retrieval parameter object is initiated to retrieval server by the transmission connection of foundation.
Query interface establishes transmission connection, to realize industry for being retrieved in business datum between device and retrieval server
The data transmission being engaged between data searcher and retrieval server.
Transmission connection based on foundation, business datum are retrieved device and will be initiated to retrieval server according to retrieval parameter object
Request is asked and calling search engine so that retrieval server responds this, and then returns to what search engine was obtained by full-text search
Business datum.
It is noted that either service starts interface or query interface, it is that business datum retrieval device provides
Api interface so that retrieval server retrieves device by the calling of this api interface, for business datum and executes corresponding function.
Referring to Fig. 8, in one exemplary embodiment, method as described above can also include the following steps:
Step 710, when service server updates business datum, retrieval server is added to the concordance list being pre-created to be become
More information.
Wherein, modification information is used for update of the record traffic data in service server.
It should be appreciated that when search engine carries out full-text search to index file, if the business number in service server
According to update, developer needs to keep the consistency of index file and business datum, and in the process, developer needs actively
Whether business datum is updated in identification service server, and this not only adds the operating pressure of developer, Er Qiecun
In the risk that update is missed, it is difficult to ensure the accuracy of business datum retrieval.
For this purpose, in the present embodiment, concordance list is pre-created in retrieval server, this concordance list is the collection of modification information
It closes, would know which update is business datum carried out in service server by the modification information in concordance list, this update packet
It includes but is not limited to the newly-increased of business datum, deletion, modification etc..
For service server, the update of business datum can be reported by trigger timing, it can also be with industry
The update real-time report for data of being engaged in, is not defined herein.
Step 730, it is added to modification information in concordance list when monitoring, then index file is carried out according to modification information same
Walk update processing.
As a result, with the addition of modification information, retrieval server will know in time in service server business datum into
It has gone which update, and then the update that business datum is carried out has been synchronized to index file, index file and business are ensured with this
The consistency of data.
Under the action of above-described embodiment, realizes retrieval server and be actively indexed the same of file by modification information
Step update, avoids manually realizing, not only increases update efficiency, and has fully ensured the accuracy of business datum retrieval.
In addition, developer does not consider further that the synchronized update of index file, it is only necessary to provide retrieval to retrieval parameter object
Parameter and/or search condition, further advantageously reduce development cost.
Fig. 9~Figure 10 is a kind of specific implementation schematic diagram of service data retrieval method in an application scenarios.The applied field
Jing Zhong, search engine framework include service server 801, retrieval server 802 and the industry for being deployed in retrieval server 802
Business data searcher 803.Wherein, Solr search engines 804 are also deployed in retrieval server 802.
As shown in Figure 10, business datum 806 of the service server as the offer magnanimity of " data source " 805, and retrieval service
Device is that the business datum 806 of magnanimity creates index file 807, so that Solr is searched then based on the Solr search engines 804 disposed
Index holds up 804 carry out business datum retrievals.
For the developer as user 808, device 803 will be retrieved by business datum and sent out to retrieval server
Request is played, to call Solr search engines 804 to carry out full-text search to index file 807, and finally obtains Solr search engines
804 business datums returned.
In this application scene, the business datum retrieval based on Solr search engines is realized, it can be by 1,000,000 business numbers
According to the average response time of fuzzy search 1s is foreshortened to by 30s, greatly improve the recall precision of business datum.
In addition, for developer, it is to retrieve device direct interaction with business datum, business datum is retrieved
Interaction unaware between device and retrieval server, and then be conducive to promote retrieval experience.
Following is apparatus of the present invention embodiment, can be used for executing service data retrieval method according to the present invention.It is right
The undisclosed details in apparatus of the present invention embodiment, the method for please referring to service data retrieval method according to the present invention are real
Apply example.
1 is please referred to Fig.1, in one exemplary embodiment, a kind of business datum retrieval device 900 includes but not limited to:Ginseng
Number acquisition module 910, parameter package module 930, request retrieval module 950 and result receiving module 970.
Wherein, parameter acquisition module 910 is used to indicate the business number of request retrieval for obtaining retrieval parameter, retrieval parameter
According to.
Parameter package module 930 is for encapsulating retrieval parameter to the retrieval parameter object being pre-created, retrieval parameter pair
As if search engine carries out full-text search and supports the object called.
Request retrieval module 950 is used for according to retrieval parameter object requests retrieval server calling search engine.
As a result receiving module 970 is for receiving search engine according to the retrieval parameter in retrieval parameter object to index file
The business datum for carrying out full-text search and returning.
In one exemplary embodiment, the parameter acquisition module 910 includes but not limited to:Keyword acquiring unit is closed
Key word judging unit and Chinese word segmentation unit.
Wherein, keyword acquiring unit, the keyword input operation for being carried out according to triggering obtain search key.
Keyword judging unit, for judging the search key whether comprising Chinese.If it is, notice Chinese point
Word unit.
Chinese word segmentation unit obtains institute for calling Chinese word segmentation plug-in unit to carry out Chinese word segmentation to the search key
State retrieval parameter.
In one exemplary embodiment, device 900 as described above further includes but is not limited to:Search condition acquisition module and
Search condition add module.
Wherein, search condition acquisition module, for obtaining search condition.
Search condition add module, for the search condition to be added to the retrieval parameter object, so that described search
The business datum that index holds up return meets search condition in the retrieval parameter object.
In one exemplary embodiment, device 900 as described above further includes but is not limited to:Interface calling module and service
Starting module.
Wherein, interface calling module carries out retrieval server parameter configuration for calling service to start interface.
Starting module is serviced, for starting full article retrieval in the retrieval server for completing parameter configuration, with
Enable the retrieval server that described search engine to be called to carry out full-text search to the index file.
In one exemplary embodiment, device 900 as described above further includes but is not limited to:Interface monitors module and request
Initiation module.
Wherein, interface monitors module, for monitoring query interface, by monitoring the query interface foundation and institute
State the transmission connection between retrieval server.
Initiation module is asked, initiates to carry the inspection to the retrieval server for connecting by the transmission of foundation
The request of rope parameter object.
In one exemplary embodiment, device 900 as described above further includes but is not limited to:Information add module with it is synchronous
Update module.
Wherein, information add module, for the service server update business datum when, the retrieval server to
The concordance list addition modification information being pre-created, the modification information is for record traffic data in the service server
Update.
Synchronized update module is added to the modification information, then according to the change for working as to monitor in the concordance list
More information synchronizes update processing to the index file.
It should be noted that the business datum that above-described embodiment is provided retrieves device when carrying out business datum retrieval,
It only the example of the division of the above functional modules, can be as needed and by above-mentioned function distribution in practical application
It is completed by different function modules, i.e. the internal structure of business datum retrieval device will be divided into different function modules, with complete
At all or part of function described above.
In addition, the embodiment for the business datum retrieval device and service data retrieval method that above-described embodiment is provided belongs to
The concrete mode that same design, wherein modules execute operation is described in detail in embodiment of the method, herein
It repeats no more.
In one exemplary embodiment, a kind of business datum retrieves device, including processor and memory.
Wherein, it is stored with computer-readable instruction on memory, which realizes when being executed by processor
Service data retrieval method in the various embodiments described above.
In one exemplary embodiment, a kind of computer readable storage medium, is stored thereon with computer program, the calculating
The service data retrieval method in the various embodiments described above is realized when machine program is executed by processor.
The above, only preferable examples embodiment of the invention, are not intended to limit embodiment of the present invention, this
Field those of ordinary skill central scope according to the present invention and spirit can be carried out very easily corresponding flexible or repaiied
Change, therefore protection scope of the present invention should be subject to the protection domain required by claims.
Claims (10)
1. a kind of service data retrieval method, which is characterized in that retrieval server is that the business datum in service server is advance
Index file is created, the search engine for being deployed in the retrieval server carries out full-text search to the index file,
The method includes:
Retrieval parameter is obtained, the retrieval parameter is used to indicate the business datum of request retrieval;
The retrieval parameter is encapsulated to the retrieval parameter object being pre-created, the retrieval parameter object is described search engine
It carries out full-text search and supports the object called;
Described search engine is called according to retrieval server described in the retrieval parameter object requests;
It receives described search engine and full text inspection is carried out to the index file according to the retrieval parameter in the retrieval parameter object
Rope and the business datum returned.
2. the method as described in claim 1, which is characterized in that the acquisition retrieval parameter, including:
Search key is obtained according to the keyword input operation that triggering carries out;
Judge the search key whether comprising Chinese;
If it is, Chinese word segmentation plug-in unit is called to carry out Chinese word segmentation to the search key, the retrieval parameter is obtained.
3. the method as described in claim 1, which is characterized in that described to be taken according to retrieval described in the retrieval parameter object requests
It is engaged in before device calling described search engine, the method further includes:
Obtain search condition;
The search condition is added to the retrieval parameter object, so that the business datum that described search engine returns meets institute
State the search condition in retrieval parameter object.
4. the method as described in claim 1, which is characterized in that described to be taken according to retrieval described in the retrieval parameter object requests
It is engaged in before device calling described search engine, the method further includes:
It calls service to start interface and carries out retrieval server parameter configuration;
Start full article retrieval in the retrieval server for completing parameter configuration, so that the retrieval server can be adjusted
Full-text search is carried out to the index file with described search engine.
5. the method as described in claim 1, which is characterized in that described to be taken according to retrieval described in the retrieval parameter object requests
It is engaged in before device calling described search engine, the method further includes:
Query interface is monitored, is connected by monitoring the transmission that the query interface is established between the retrieval server
It connects;
The request for initiating to carry the retrieval parameter object to the retrieval server is connected by the transmission of foundation.
6. such as method described in any one of claim 1 to 5, which is characterized in that the method further includes:
When the service server updates business datum, the retrieval server is believed to the concordance list addition change being pre-created
Breath, the modification information are used for update of the record traffic data in the service server;
The modification information is added in the concordance list when monitoring, then according to the modification information to the index file into
The processing of row synchronized update.
7. a kind of business datum retrieves device, which is characterized in that retrieval server is that the business datum in service server is advance
Index file is created, the search engine for being deployed in the retrieval server carries out full-text search to the index file,
Described device includes:
Parameter acquisition module, for obtaining retrieval parameter, the retrieval parameter is used to indicate the business datum of request retrieval;
Parameter package module, for encapsulating the retrieval parameter to the retrieval parameter object being pre-created, the retrieval parameter
Object is the object that described search engine carries out that calling is supported in full-text search;
Request retrieval module, for calling described search engine according to retrieval server described in the retrieval parameter object requests;
As a result receiving module, for receiving described search engine according to the retrieval parameter in the retrieval parameter object to the rope
Quotation part carries out full-text search and the business datum that returns.
8. device as claimed in claim 7, which is characterized in that described device further includes:
Interface calling module carries out retrieval server parameter configuration for calling service to start interface;
Starting module is serviced, for starting full article retrieval in the retrieval server for completing parameter configuration, so that institute
Stating retrieval server can call described search engine to carry out full-text search to the index file.
9. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor
Such as service data retrieval method according to any one of claims 1 to 6 is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Such as service data retrieval method according to any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810468567.XA CN108681593A (en) | 2018-05-16 | 2018-05-16 | Service data retrieval method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810468567.XA CN108681593A (en) | 2018-05-16 | 2018-05-16 | Service data retrieval method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108681593A true CN108681593A (en) | 2018-10-19 |
Family
ID=63806817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810468567.XA Pending CN108681593A (en) | 2018-05-16 | 2018-05-16 | Service data retrieval method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108681593A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110807038A (en) * | 2019-09-18 | 2020-02-18 | 国网江苏省电力有限公司 | CMDB information full-text retrieval method based on elastic search |
CN111078682A (en) * | 2019-10-17 | 2020-04-28 | 贝壳技术有限公司 | Service data index construction method and system |
CN111125176A (en) * | 2019-12-20 | 2020-05-08 | 北京百度网讯科技有限公司 | Service data searching method and device, electronic equipment and storage medium |
CN111143404A (en) * | 2019-12-04 | 2020-05-12 | 北京城市网邻信息技术有限公司 | Service processing method and device |
CN111460023A (en) * | 2020-04-29 | 2020-07-28 | 上海东普信息科技有限公司 | Service data processing method, device, equipment and storage medium based on elastic search |
CN111522918A (en) * | 2020-04-24 | 2020-08-11 | 天津易维数科信息科技有限公司 | Data aggregation method and device, electronic equipment and computer readable storage medium |
CN118312603A (en) * | 2024-06-07 | 2024-07-09 | 广州讯鸿网络技术有限公司 | Intelligent multi-mode customer service interaction method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101685459A (en) * | 2008-09-28 | 2010-03-31 | 华为技术有限公司 | Multi-media searching method and device |
CN102045371A (en) * | 2009-10-20 | 2011-05-04 | 中兴通讯股份有限公司 | Business processing device and video querying and searching method |
CN102129461A (en) * | 2011-03-11 | 2011-07-20 | 南京新模式软件集成有限公司 | Method for quickly retrieving enterprise data |
CN103198067A (en) * | 2012-01-06 | 2013-07-10 | 卓望数码技术(深圳)有限公司 | Business searching method and system |
CN106202451A (en) * | 2016-07-11 | 2016-12-07 | 浙江大华技术股份有限公司 | A kind of data query method and device |
CN107103011A (en) * | 2016-02-23 | 2017-08-29 | 阿里巴巴集团控股有限公司 | The implementation method and device of terminal data search |
-
2018
- 2018-05-16 CN CN201810468567.XA patent/CN108681593A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101685459A (en) * | 2008-09-28 | 2010-03-31 | 华为技术有限公司 | Multi-media searching method and device |
CN102045371A (en) * | 2009-10-20 | 2011-05-04 | 中兴通讯股份有限公司 | Business processing device and video querying and searching method |
CN102129461A (en) * | 2011-03-11 | 2011-07-20 | 南京新模式软件集成有限公司 | Method for quickly retrieving enterprise data |
CN103198067A (en) * | 2012-01-06 | 2013-07-10 | 卓望数码技术(深圳)有限公司 | Business searching method and system |
CN107103011A (en) * | 2016-02-23 | 2017-08-29 | 阿里巴巴集团控股有限公司 | The implementation method and device of terminal data search |
CN106202451A (en) * | 2016-07-11 | 2016-12-07 | 浙江大华技术股份有限公司 | A kind of data query method and device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110807038A (en) * | 2019-09-18 | 2020-02-18 | 国网江苏省电力有限公司 | CMDB information full-text retrieval method based on elastic search |
CN111078682A (en) * | 2019-10-17 | 2020-04-28 | 贝壳技术有限公司 | Service data index construction method and system |
CN111143404A (en) * | 2019-12-04 | 2020-05-12 | 北京城市网邻信息技术有限公司 | Service processing method and device |
CN111143404B (en) * | 2019-12-04 | 2023-08-11 | 北京城市网邻信息技术有限公司 | Service processing method and device |
CN111125176A (en) * | 2019-12-20 | 2020-05-08 | 北京百度网讯科技有限公司 | Service data searching method and device, electronic equipment and storage medium |
CN111125176B (en) * | 2019-12-20 | 2023-10-03 | 北京百度网讯科技有限公司 | Service data searching method and device, electronic equipment and storage medium |
CN111522918A (en) * | 2020-04-24 | 2020-08-11 | 天津易维数科信息科技有限公司 | Data aggregation method and device, electronic equipment and computer readable storage medium |
CN111460023A (en) * | 2020-04-29 | 2020-07-28 | 上海东普信息科技有限公司 | Service data processing method, device, equipment and storage medium based on elastic search |
CN111460023B (en) * | 2020-04-29 | 2023-06-09 | 上海东普信息科技有限公司 | Method, device, equipment and storage medium for processing service data based on elastic search |
CN118312603A (en) * | 2024-06-07 | 2024-07-09 | 广州讯鸿网络技术有限公司 | Intelligent multi-mode customer service interaction method and system |
CN118312603B (en) * | 2024-06-07 | 2024-08-30 | 广州讯鸿网络技术有限公司 | Intelligent multi-mode customer service interaction method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108681593A (en) | Service data retrieval method and device | |
WO2020063019A1 (en) | Information processing method, device, storage medium, electronic device and system | |
US10963040B2 (en) | Generating storyboard for a knowledge base in virtual mobile management | |
WO2018086580A1 (en) | Extensible heterogeneous cloud platform adaptation method and system thereof | |
CN109522386B (en) | Method and system for generating spatial information service across GIS platform | |
CN106649488B (en) | Method and device for calling multi-data-source interactive interface | |
CN106716371B (en) | Application opening method, electronic equipment and management server | |
CN108737243A (en) | Conversation message quality detecting method and device | |
WO2010130165A1 (en) | Method and system for generating open telecommunication service based on internet | |
CN103353860B (en) | EMS memory management process and device | |
CN116016702B (en) | Application observable data acquisition processing method, device and medium | |
US20240045879A1 (en) | Presentation method, apparatus and electronic device | |
WO2016127577A1 (en) | Event processing method and apparatus | |
CN102420709A (en) | Method and equipment for managing scheduling task based on task frame | |
CN103838851B (en) | The rendering intent and device of three-dimensional scene models file | |
CN112130865A (en) | Model management method and system | |
CN112783614A (en) | Object processing method, device, equipment, storage medium and program product | |
CN114124916A (en) | Data transmission method and device, electronic equipment and storage medium | |
WO2022245291A2 (en) | Method and apparatus for managing resources, computer device and storage medium | |
CN111488286B (en) | Method and device for independently developing Android modules | |
CN113626438A (en) | Data table management method and device, computer equipment and storage medium | |
CN103645896B (en) | Method and device for achieving application function based on HTML5 | |
CN113849686A (en) | Video data acquisition method and device, electronic equipment and storage medium | |
CN107391354A (en) | The method and system of automatic monitoring terminal performance, storage device | |
CN107169024A (en) | The operation system and service implementation method of a kind of compatible type |
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: 20181019 |