CN109815351A - Information query method and Related product - Google Patents
Information query method and Related product Download PDFInfo
- Publication number
- CN109815351A CN109815351A CN201811613723.3A CN201811613723A CN109815351A CN 109815351 A CN109815351 A CN 109815351A CN 201811613723 A CN201811613723 A CN 201811613723A CN 109815351 A CN109815351 A CN 109815351A
- Authority
- CN
- China
- Prior art keywords
- search condition
- query result
- business
- query
- gopher
- 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.)
- Granted
Links
Abstract
The embodiment of the present application discloses a kind of information query method and Related product, is applied to Gopher, Gopher includes radar sensor;Method includes: when detecting the inquiry request for the first business, determine the first search condition set and the second search condition set of the first business, the first query result is cached in the memory of Gopher, the first query result is Gopher search result according to obtained from the database of the first search condition collection query disk;The second query result is obtained according to the database that the second search condition set accesses disk;It executes access operation and obtains the first query result and the second query result, determine that the intersection of the first query result and the second query result is the target query result of the first facial image.The embodiment of the present application is conducive to improve efficiency and real-time that Gopher executes inquiry operation under the constraint of more search conditions.
Description
Technical field
This application involves information query technique fields, and in particular to a kind of information query method and Related product.
Background technique
Traditional face retrieval is that text based attribute filtering+image feature value inquiry database is filtered, and is filtered
The more more precision retrieved accordingly of condition are also higher, but can have disk input and output expense due to inquiring every time all, thus mistake
More filter conditions limit the inquiry velocity of equipment.
Summary of the invention
The embodiment of the present application provides a kind of information query method and Related product, exists to improve Gopher
More lower efficiency and real-time for executing inquiry operation of search condition constraint.
In a first aspect, the embodiment of the present application provides a kind of information query method, it is applied to Gopher, the side
Method includes:
When detecting the inquiry request for the first business, determine first business the first search condition set and
Second search condition set, the first search condition set include the general search condition of first business, the information
Be cached with the first query result in the memory of query service device, first query result be the Gopher according to
Search result obtained from the database of the first search condition collection query disk;
The second query result is obtained according to the database that the second search condition set accesses the disk;
It executes access operation and obtains first query result and second query result, determine the first inquiry knot
The intersection of fruit and second query result is the target query result of first facial image.
Second aspect, the embodiment of the present application provide a kind of information query device, are applied to Gopher, the letter
Ceasing inquiry unit includes processing unit and communication unit, wherein
The processing unit, for determining first business when detecting the inquiry request for the first business
First search condition set and the second search condition set, the first search condition set include the general of first business
Search condition is cached with the first query result in the memory of the Gopher, and first query result is described
Gopher search result according to obtained from the database of the first search condition collection query disk;And it is logical
It crosses the communication unit and the second inquiry knot is obtained according to the database that the second search condition set accesses the disk
Fruit;And access operation is executed by the communication unit and obtains first query result and second query result, really
The intersection of fixed first query result and second query result is the target query result of first facial image.
The third aspect, the embodiment of the present application provide a kind of Gopher, including processor, memory, communication connect
Mouthful and one or more program, wherein said one or multiple programs are stored in above-mentioned memory, and be configured by
Above-mentioned processor executes, and above procedure is included the steps that for executing the finger in the embodiment of the present application first aspect either method
It enables.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable
Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as
Step some or all of described in the embodiment of the present application second aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product
Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate
Machine executes the step some or all of as described in the embodiment of the present application second aspect either method.The computer program product
It can be a software installation packet.
As can be seen that Gopher is detecting the inquiry request for the first business in the embodiment of the present application
When, it is first determined the first search condition set and the second search condition set of the first business, wherein the first search condition set
General search condition including the first business, the second search condition set include the exclusive search condition of the first business, and information is looked into
It askes and is cached with the first query result in the memory of server, the first query result is Gopher according to the first retrieval item
Search result obtained from the database of part collection query disk;Secondly, Gopher is according to the second search condition collection
The database for closing access disk obtains the second query result, looks into finally, executing access operation and obtaining the first query result and second
It askes as a result, the intersection of determining first query result and the second query result is the target query result of the first facial image.As it can be seen that
Gopher in the embodiment of the present application can be multiplexed corresponding first retrieval of general search condition in retrieving
As a result, being not necessarily based on whole search conditions executes search operaqtion, retrieval complexity is reduced, and since first search result caches
In memory, it can be called directly without accessing disk, avoid excessive disk access operation overhead, be conducive to improve information inquiry
Server executes the efficiency and real-time of search operaqtion under more search condition restraint conditions.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of Gopher provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of information query method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of Gopher provided by the embodiments of the present application;
Fig. 4 is a kind of functional unit composition block diagram of information query device provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have
It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap
Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is that the embodiment of the present application provides a kind of system architecture schematic diagram of service query system 100,
The service query system 100 includes Gopher 110, communication network 120, information inquiry terminal 130, and the information is looked into
It askes terminal 130 and is communicated to connect by the communication network 120 with the Gopher 110, the information inquiry terminal
130, for acquiring data to be identified (such as: facial image, fingerprint image, identity information, equipment identification information etc.), generate
The information inquiring request of corresponding type of service, communication network 120 can be cordless communication network or wireline communication network (such as light
Fine networking etc.), wherein cordless communication network include wireless wide area network (such as: cellular network etc.) and WLAN (such as: nothing
Line high-fidelity Wi-Fi network etc.), the Gopher 120 may include various hand-held with wireless communication function
Equipment, wearable device, calculates equipment, server or other processing equipments for being connected to radio modem at mobile unit,
And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device
(terminal device) etc..Different equipment forms can be corresponded to specific reference to the type of service of the first business, such as first
Business is the recognition of face business of security system, then the Gopher can be the server of public security system, for another example the
One business is telephone number query business, then Gopher can be the proxy server etc. of communication operator.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of information query method, it is applied to
Gopher as described in Figure 1, as shown, this information query method includes:
S201, Gopher determine first business when detecting the inquiry request for the first business
The first search condition set and the second search condition set, the first search condition set includes the logical of first business
With search condition, it is cached with the first query result in the memory of the Gopher, first query result is institute
State Gopher search result according to obtained from the database of the first search condition collection query disk;
Wherein, first business can be the common business of Gopher high-frequency therapeutic treatment, such as public security system
Directory enquiry service etc. in the recognition of face business or the communication server of server, in the specific implementation, police can be with
Collected facial image to be identified and other search conditions, information inquiry terminal root are uploaded by information inquiry terminal
Inquiry request is generated according to facial image and other search conditions, and sends the inquiry request to Gopher.
Wherein, the general search condition refers to that each inquiry request includes in the multiple inquiry request of the first business
Identical filter condition, the second search condition set include the exclusive search condition of first business, the exclusive retrieval
Condition refers to the individuation search condition of strong association current queries request, such as the inquiry based on facial image in recognition of face business
Request, the image feature value search condition of the facial image belong to exclusive search condition.In the specific implementation, first business can
To include facial image identification business;The general search condition may include following at least one: state status retrieves item
Part, type type search condition, class class search condition;The exclusive search condition may include following at least one: image
Characteristic value search condition, time search condition.
Wherein, the database is for storing basic business data, and the basic business data are according to the difference of type of service
It can be stored in disk in different forms, and the basic business data general data amount is larger.
S202, the Gopher access the data of the disk according to the second search condition set
Library obtains the second query result;
In the specific implementation, Gopher ceaselessly executes the inquiry operation for the first business, in addition to for the
First inquiry request of one business, Gopher are needed according to the data in the first search condition set reading disk
Library after obtaining the first search result, in the case where confirming the accurate situation of the first search result, can delay first search result
There are in the memory of local terminal.
Further, since the memory of Gopher is limited, and the same Gopher can prop up
The type of service held not only includes the first business, it is also possible to which the N business including second, third ..., N are positive integer, also
It is to say, for Gopher, if being directed to the first search result of caching of each business equal all the period of time, internally
The consumption deposited is still larger, and therefore, Gopher can be provided dynamic based on the characteristic of business for the first query result
The caching of state, differentiation, specifically, Gopher obtain the multiple of the multi-traffic that local terminal can be supported
After first search result, in the corresponding relationship and the first search result of disk storage type of service and the first search result, and
The time response and concurrent characteristic for statisticalling analyze multi-traffic, obtain the corresponding relationship between period and type of service set, from
And Gopher is subsequent can be according to the corresponding relationship, the only corresponding type of service collection of caching present period in memory
Corresponding first search result of type of service in conjunction.
S203, the Gopher execute access operation and obtain first query result and second inquiry
As a result, the intersection of determining first query result and second query result is the target query of first facial image
As a result.
In the specific implementation, Gopher is after obtaining target query result, it can be according to the target query result
Query response message is generated, and pushes the query response message to information inquiry terminal.
As can be seen that Gopher is detecting the inquiry request for the first business in the embodiment of the present application
When, it is first determined the first search condition set and the second search condition set of the first business, wherein the first search condition set
General search condition including the first business, the second search condition set include the exclusive search condition of the first business, and information is looked into
It askes and is cached with the first query result in the memory of server, the first query result is Gopher according to the first retrieval item
Search result obtained from the database of part collection query disk;Secondly, Gopher is according to the second search condition collection
The database for closing access disk obtains the second query result, looks into finally, executing access operation and obtaining the first query result and second
It askes as a result, the intersection of determining first query result and the second query result is the target query result of the first facial image.As it can be seen that
Gopher in the embodiment of the present application can be multiplexed corresponding first retrieval of general search condition in retrieving
As a result, being not necessarily based on whole search conditions executes search operaqtion, retrieval complexity is reduced, and since first search result caches
In memory, it can be called directly without accessing disk, avoid excessive disk access operation overhead, be conducive to improve information inquiry
Server executes the efficiency and real-time of search operaqtion under more search condition restraint conditions.
In a possible example, the Gopher determines the first search condition collection of first business
It closes and the second search condition set, comprising: the Gopher determines institute according to the information that the inquiry request carries
State whole search conditions of inquiry request;It is that the search condition of search condition is raw according to label in whole search conditions
At the first search condition set;It is generated according to the search condition in whole search conditions in addition to the general search condition
Second search condition set.
It wherein, may include part search condition of the information with the information of comparison to be identified in the inquiry request, it should
Part search condition can be labeled with general or specific identity.
In the specific implementation, the information that Gopher can handle the comparison to be identified generates required exclusive inspection
Rope condition.It, can be according to Face image synthesis face characteristic value expression formula for search such as in face inquiry business.All inspections
Rope condition includes the exclusive search condition of above-mentioned part search condition and generation.
As it can be seen that Gopher can generate whole search conditions based on inquiry request, and according to this in this example
The condition identities of whole search conditions generates the one the second search condition set, quickly and efficiently.
In a possible example, the Gopher determines the first search condition collection of first business
It closes and the second search condition set, comprising: the Gopher determines institute according to the information that the inquiry request carries
State whole search conditions of inquiry request;It is inquiry mark with first business, inquires preset mapping relations set, obtains
The corresponding general search condition of first business, the mapping relations set includes between business and general search condition
Corresponding relationship;The first search condition set is generated according to the general search condition;It is removed according in whole search conditions
Search condition except the general search condition generates the second search condition set.
Wherein, the information that the inquiry request carries includes the information of identification to be compared, the information of the identification to be compared with
The type of service of first business is corresponding, does not do unique restriction herein.It is described whole search condition include general search condition and specially
Belong to search condition, which does not make marks.
As it can be seen that inquiry request reduces the quantity of inquiry request, mentions without carrying general search condition information in this example
High data transmission efficiency.
In a possible example, the method also includes: the Gopher shows first business
General search condition set interface;It is determined according to developer by the search condition of the search condition set interface typing
The corresponding general search condition of first business, and the first business described in the mapping relations set conditional and institute
State the corresponding relationship between general search condition.
Wherein, the general search condition set interface may include search condition typing region and search condition viewing area
Domain, developer can choose the search condition of display as general search condition, or can oneself typing it is general to generate
Search condition.
As it can be seen that in this example, developer can pass through objective interface that Gopher is shown, flexible setting
The general search condition of first business improves setting versatility and flexibility.
In a possible example, the method also includes: the Gopher, which receives, carrys out self-information inquiry
Request is arranged in the search condition of terminal, and the search condition setting request includes first business and the general retrieval item
Part;Corresponding relationship between the first business described in the mapping relations set conditional and the general search condition.
Wherein, general user can be applicable in by the information inquiry terminal flexible setting general search condition, such mode
Scene, such as train query, ticket query are inquired in more flexible information.
Under this implementation framework, the flexibility and otherness due to the general search condition of user setting are strong, letter
The general search condition that breath inquiry terminal is supported should be constrained based on business feature, so can just guarantee server side
The quantity of first search condition set is controllable.Specifically it can be configured and be pushed in advance by server side developer
Information inquiry terminal.
As it can be seen that Gopher can be supported to handle the general search condition by general user's typing in this example,
Using flexible and convenience can be improved.
In a possible example, the method also includes: the Gopher obtains first business
Multiple history retrieve record, each history retrieval record in the multiple history retrieval record includes first business
Search condition expression formula used in retrieving;Statistically analyze multiple search conditions expression of the multiple history retrieval record
Formula obtains the identical general search condition that each search condition expression formula includes;First business is established to lead to described
With the corresponding relationship of search condition, and the first business described in the mapping relations set conditional and the general search condition
Between corresponding relationship.
Wherein, Gopher is directed to the first business, can periodically count general search condition, and update,
It is primary to improve accuracy.
As it can be seen that Gopher local terminal can be based on data statistic analysis in this example, intelligent screening goes out general inspection
Rope condition, and the treatment mechanism of evolution local terminal improve intelligence and efficiency.
In a possible example, the Gopher is according to the second search condition set access
After the database of disk obtains the second query result, the execution access operation obtains first query result and institute
Before stating the second query result, the method also includes: the Gopher stores described second in the disk
Query result;
The Gopher executes access operation and obtains first query result and second query result,
It include: that the Gopher reads first query result from the memory;Described in being read from the disk
Second query result.
Wherein, in the lesser situation of the memory size of Gopher, Gopher can be by second
Query result is buffered in disk.
As it can be seen that the second query result can be stored in disk by Gopher in this example, when subsequent use
It reads again, guarantees the service efficiency and resources balance of memory size.
In a possible example, the Gopher is according to the second search condition set access
After the database of disk obtains the second query result, the execution access operation obtains first query result and institute
Before stating the second query result, the method also includes: the Gopher caches described second in the memory
Query result;
The Gopher executes access operation and obtains first query result and second query result,
It include: that the Gopher reads first query result and second query result from the memory.
Wherein, in the biggish situation of the memory size of Gopher, Gopher can be by second
Query result caches in memory, in order to call directly and do and operation below with the first inquiry unlock, obtains target query
As a result.
As it can be seen that in this example, Gopher can avoid executing the one the second by caching the second query result
Search result with operation when again go execute reading disk operation, guarantee memory size while improve data call efficiency.
It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 3, Fig. 3 is provided by the embodiments of the present application
A kind of structural schematic diagram of Gopher 300, as shown, the Gopher 300 includes application processing
Device 310, memory 320, communication interface 330 and one or more programs 321, wherein one or more of 321 quilts of program
It is stored in above-mentioned memory 320, and is configured to be executed by above-mentioned application processor 310, one or more of programs 321
Including the instruction for executing following steps;
When detecting the inquiry request for the first business, determine first business the first search condition set and
Second search condition set, the first search condition set include the general search condition of first business, the information
Be cached with the first query result in the memory of query service device, first query result be the Gopher according to
Search result obtained from the database of the first search condition collection query disk;
The second query result is obtained according to the database that the second search condition set accesses the disk;
It executes access operation and obtains first query result and second query result, determine the first inquiry knot
The intersection of fruit and second query result is the target query result of first facial image.
As can be seen that Gopher is detecting the inquiry request for the first business in the embodiment of the present application
When, it is first determined the first search condition set and the second search condition set of the first business, wherein the first search condition set
General search condition including the first business, the second search condition set include the exclusive search condition of the first business, and information is looked into
It askes and is cached with the first query result in the memory of server, the first query result is Gopher according to the first retrieval item
Search result obtained from the database of part collection query disk;Secondly, Gopher is according to the second search condition collection
The database for closing access disk obtains the second query result, looks into finally, executing access operation and obtaining the first query result and second
It askes as a result, the intersection of determining first query result and the second query result is the target query result of the first facial image.As it can be seen that
Gopher in the embodiment of the present application can be multiplexed corresponding first retrieval of general search condition in retrieving
As a result, being not necessarily based on whole search conditions executes search operaqtion, retrieval complexity is reduced, and since first search result caches
In memory, it can be called directly without accessing disk, avoid excessive disk access operation overhead, be conducive to improve information inquiry
Server executes the efficiency and real-time of search operaqtion under more search condition restraint conditions.
In a possible example, retrieved in the first search condition set of the determination first business and second
In terms of set of circumstances, the instruction in described program is specifically used for executing following operation: the information carried according to the inquiry request
Determine whole search conditions of the inquiry request;And it marks according in whole search conditions as search condition
Search condition generates the first search condition set;And according in whole search conditions in addition to the general search condition
Search condition generate the second search condition set.
In a possible example, retrieved in the first search condition set of the determination first business and second
In terms of set of circumstances, the instruction in described program is specifically used for executing following operation: the information carried according to the inquiry request
Determine whole search conditions of the inquiry request;And identified with first business for inquiry, it inquires preset mapping and closes
Assembly is closed, and obtains the corresponding general search condition of first business, the mapping relations set include business with it is general
Corresponding relationship between search condition;And the first search condition set is generated according to the general search condition;And according to
Search condition in the whole search condition in addition to the general search condition generates the second search condition set.
In a possible example, described program further includes instructions for performing the following operations: display described first
The general search condition set interface of business;And the retrieval of the search condition set interface typing is passed through according to developer
Condition determines the corresponding general search condition of first business, and first described in the mapping relations set conditional
Corresponding relationship between business and the general search condition.
In a possible example, described program further includes instructions for performing the following operations: receiving and carrys out self-information
Request is arranged in the search condition for inquiring terminal, and the search condition setting request includes first business and the general retrieval
Condition;And the corresponding pass between the first business described in the mapping relations set conditional and the general search condition
System.
In a possible example, described program further includes instructions for performing the following operations: obtaining described first
Multiple history of business retrieve record, and each history retrieval record in the multiple history retrieval record includes first industry
Search condition expression formula used in the retrieving of business;And multiple retrievals of the multiple history retrieval record of statistical analysis
Conditional expression obtains the identical general search condition that each search condition expression formula includes;And establish described first
The corresponding relationship of business and the general search condition, and the first business described in the mapping relations set conditional with it is described
Corresponding relationship between general search condition.
In a possible example, described program further includes instructions for performing the following operations: described according to
After the database that second search condition set accesses the disk obtains the second query result, the execution access operation
Before obtaining first query result and second query result, second query result is stored in the disk;
In terms of the execution access operation obtains first query result and second query result, described program
In instruction be specifically used for executing following operation: first query result is read from the memory;And from the disk
It is middle to read second query result.
In a possible example, described program further includes instructions for performing the following operations: described according to
After the database that second search condition set accesses the disk obtains the second query result, the execution access operation
Before obtaining first query result and second query result, second query result is cached in the memory;
In terms of the execution access operation obtains first query result and second query result, described program
In instruction be specifically used for executing following operation: first query result and the second inquiry knot are read from the memory
Fruit.
In a possible example, first business includes facial image identification business;
The general search condition comprises at least one of the following: state status search condition, type type search condition,
Class class search condition;
The exclusive search condition comprises at least one of the following: image feature value search condition, time search condition.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that
, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for Gopher
Part module.Those skilled in the art should be readily appreciated that, describe in conjunction with embodiment presented herein each exemplary
Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully
Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution
Condition.Professional technician can specifically realize described function to each using distinct methods, but this
It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit, example according to above method example to Gopher
Such as, each functional unit of each function division can be corresponded to, two or more functions can also be integrated at one
It manages in unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be in the form of software functional units
It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of unit in the embodiment of the present application
Point, there may be another division manner in actual implementation.
Fig. 4 is the functional unit composition block diagram of information query device 400 involved in the embodiment of the present application.The information is looked into
It askes device 400 and is applied to Gopher, which includes processing unit 410 and communication unit 420,
Wherein,
The processing unit 410, for determining first business when detecting the inquiry request for the first business
The first search condition set and the second search condition set, the first search condition set includes the logical of first business
With search condition, it is cached with the first query result in the memory of the Gopher, first query result is institute
State Gopher search result according to obtained from the database of the first search condition collection query disk;And
Second is obtained according to the database that the second search condition set accesses the disk by the communication unit 420 to look into
Ask result;And access operation is executed by the communication unit 420 and obtains first query result and second inquiry
As a result, the intersection of determining first query result and second query result is the target query of first facial image
As a result.
Wherein, the information query device 400 further includes memory 430, and processing unit 410 can be processor, communication
Unit 420 can be internal or external communication interface, and storage unit 430 can be disk.
As can be seen that Gopher is detecting the inquiry request for the first business in the embodiment of the present application
When, it is first determined the first search condition set and the second search condition set of the first business, wherein the first search condition set
General search condition including the first business, the second search condition set include the exclusive search condition of the first business, and information is looked into
It askes and is cached with the first query result in the memory of server, the first query result is Gopher according to the first retrieval item
Search result obtained from the database of part collection query disk;Secondly, Gopher is according to the second search condition collection
The database for closing access disk obtains the second query result, looks into finally, executing access operation and obtaining the first query result and second
It askes as a result, the intersection of determining first query result and the second query result is the target query result of the first facial image.As it can be seen that
Gopher in the embodiment of the present application can be multiplexed corresponding first retrieval of general search condition in retrieving
As a result, being not necessarily based on whole search conditions executes search operaqtion, retrieval complexity is reduced, and since first search result caches
In memory, it can be called directly without accessing disk, avoid excessive disk access operation overhead, be conducive to improve information inquiry
Server executes the efficiency and real-time of search operaqtion under more search condition restraint conditions.
In a possible example, retrieved in the first search condition set of the determination first business and second
In terms of set of circumstances, the processing unit 410 is specifically used for: determining that the inquiry is asked according to the information that the inquiry request carries
The whole search conditions asked;And the is generated according to the search condition that label in whole search conditions is search condition
One search condition set;And it is generated according to the search condition in whole search conditions in addition to the general search condition
Second search condition set.
In a possible example, retrieved in the first search condition set of the determination first business and second
In terms of set of circumstances, the processing unit 410 is specifically used for: determining that the inquiry is asked according to the information that the inquiry request carries
The whole search conditions asked;And with first business be inquiry mark, preset mapping relations set is inquired, described in acquisition
The corresponding general search condition of first business, the mapping relations set include pair between business and general search condition
It should be related to;And the first search condition set is generated according to the general search condition;And according to whole search conditions
In search condition in addition to the general search condition generate the second search condition set.
In a possible example, the processing unit 410 is also used to: the general retrieval item of display first business
Part set interface;And described first is determined by the search condition of the search condition set interface typing according to developer
The corresponding general search condition of business, and the first business described in the mapping relations set conditional and the general inspection
Corresponding relationship between rope condition.
In a possible example, the processing unit 410 is also used to: receiving the retrieval item from information inquiry terminal
Part setting request, the search condition setting request includes first business and the general search condition;And described
Corresponding relationship between first business described in mapping relations set conditional and the general search condition.
In a possible example, the processing unit 410 is also used to: obtaining multiple history inspection of first business
Suo Jilu, it includes used in the retrieving of first business that the multiple history, which retrieves each history retrieval record in record,
The search condition expression formula arrived;And multiple search condition expression formulas of the multiple history retrieval record of statistical analysis, it obtains
The identical general search condition that each search condition expression formula includes;And establish first business and the general inspection
The corresponding relationship of rope condition, and between the first business described in the mapping relations set conditional and the general search condition
Corresponding relationship.
In a possible example, the processing unit 410 is by the communication unit 420 according to second retrieval
After the database that set of circumstances accesses the disk obtains the second query result, executed by the communication unit 420
Before access operation obtains first query result and second query result, it is also used to: stores institute in the disk
State the second query result;
First query result and the second inquiry knot are obtained executing access operation by the communication unit 420
In terms of fruit, the processing unit 410 is specifically used for: reading described first from the memory by the communication unit 420 and looks into
Ask result;And second query result is read from the disk by the communication unit 420.
In a possible example, the processing unit 410 is by the communication unit 420 according to second retrieval
After the database that set of circumstances accesses the disk obtains the second query result, executed by the communication unit 420
Before access operation obtains first query result and second query result, it is also used to: caches institute in the memory
State the second query result;
First query result and the second inquiry knot are obtained executing access operation by the communication unit 420
In terms of fruit, the processing unit 410 is specifically used for: first query result and second inquiry are read from the memory
As a result.
In a possible example, first business includes facial image identification business;
The general search condition comprises at least one of the following: state status search condition, type type search condition,
Class class search condition;
The exclusive search condition comprises at least one of the following: image feature value search condition, time search condition.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment
Some or all of method step, above-mentioned computer include Gopher.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either record method step in method embodiment.The computer program product can be a software installation
Packet, above-mentioned computer includes Gopher.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application
Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English:
Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (10)
1. a kind of information query method, which is characterized in that be applied to Gopher, which comprises
When detecting the inquiry request for the first business, the first search condition set and second of first business is determined
Search condition set, the first search condition set include the general search condition of first business, the information inquiry
The first query result is cached in the memory of server, first query result is the Gopher according to
Search result obtained from the database of first search condition collection query disk;
The second query result is obtained according to the database that the second search condition set accesses the disk;
Execute access operation and obtain first query result and second query result, determine first query result and
The intersection of second query result is the target query result of first facial image.
2. the method according to claim 1, wherein the first search condition collection of the determination first business
It closes and the second search condition set, comprising:
Whole search conditions of the inquiry request are determined according to the information that the inquiry request carries;
It is that the search condition of search condition generates the first search condition set according to label in whole search conditions;
The second search condition collection is generated according to the search condition in whole search conditions in addition to the general search condition
It closes.
3. the method according to claim 1, wherein the first search condition collection of the determination first business
It closes and the second search condition set, comprising:
Whole search conditions of the inquiry request are determined according to the information that the inquiry request carries;
It is inquiry mark with first business, inquires preset mapping relations set, obtains the corresponding institute of first business
General search condition is stated, the mapping relations set includes the corresponding relationship between business and general search condition;
The first search condition set is generated according to the general search condition;
The second search condition collection is generated according to the search condition in whole search conditions in addition to the general search condition
It closes.
4. according to the method in claim 2 or 3, which is characterized in that the method also includes:
Show the general search condition set interface of first business;
Determine that first business is corresponding by the search condition of the search condition set interface typing according to developer
The general search condition, and between the first business described in the mapping relations set conditional and the general search condition
Corresponding relationship.
5. according to the method in claim 2 or 3, which is characterized in that the method also includes:
It receives the search condition from information inquiry terminal and request is set, the search condition setting request includes first industry
Business and the general search condition;
Corresponding relationship between the first business described in the mapping relations set conditional and the general search condition.
6. according to the method in claim 2 or 3, which is characterized in that the method also includes:
Multiple history retrieval record of first business is obtained, each history in the multiple history retrieval record retrieves note
Record includes search condition expression formula used in the retrieving of first business;
The multiple search condition expression formulas for statisticalling analyze the multiple history retrieval record, it is equal to obtain each search condition expression formula
The identical general search condition for including;
The corresponding relationship of first business Yu the general search condition is established, and in mapping relations set conditional institute
State the corresponding relationship between the first business and the general search condition.
7. method according to claim 1-6, which is characterized in that described according to the second search condition set
Access the disk the database obtain the second query result after, the execution access operation obtains first inquiry
As a result and before second query result, the method also includes:
Second query result is stored in the disk;
The execution access operation obtains first query result and second query result, comprising:
First query result is read from the memory;
Second query result is read from the disk.
8. method according to claim 1-6, which is characterized in that described according to the second search condition set
Access the disk the database obtain the second query result after, the execution access operation obtains first inquiry
As a result and before second query result, the method also includes:
Second query result is cached in the memory;
The execution access operation obtains first query result and second query result, comprising:
First query result and second query result are read from the memory.
9. method according to claim 1-8, which is characterized in that first business includes facial image identification
Business;
The general search condition comprises at least one of the following: state status search condition, type type search condition, class
Class search condition;
The exclusive search condition comprises at least one of the following: image feature value search condition, time search condition.
10. a kind of information query device, which is characterized in that be applied to Gopher, the information query device includes
Processing unit and communication unit, wherein
The processing unit, for determining the first of first business when detecting the inquiry request for the first business
Search condition set and the second search condition set, the first search condition set include the general retrieval of first business
Condition is cached with the first query result in the memory of the Gopher, and first query result is the information
Query service device search result according to obtained from the database of the first search condition collection query disk;And pass through institute
It states communication unit and the second query result is obtained according to the database that the second search condition set accesses the disk;With
And access operation is executed by the communication unit and obtains first query result and second query result, determine described in
The intersection of first query result and second query result is the target query result of first facial image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811613723.3A CN109815351B (en) | 2018-12-27 | 2018-12-27 | Information query method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811613723.3A CN109815351B (en) | 2018-12-27 | 2018-12-27 | Information query method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109815351A true CN109815351A (en) | 2019-05-28 |
CN109815351B CN109815351B (en) | 2020-11-24 |
Family
ID=66601722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811613723.3A Active CN109815351B (en) | 2018-12-27 | 2018-12-27 | Information query method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109815351B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143404A (en) * | 2019-12-04 | 2020-05-12 | 北京城市网邻信息技术有限公司 | Service processing method and device |
CN111914171A (en) * | 2020-07-23 | 2020-11-10 | 北京祥龙博瑞保险代理有限公司 | Product retrieval method, device, system and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154230A (en) * | 2006-09-30 | 2008-04-02 | 中兴通讯股份有限公司 | Responding method for large data volume specified searching web pages |
CN102110126A (en) * | 2009-12-29 | 2011-06-29 | 潘晓梅 | Information retrieval method and device |
CN102395965A (en) * | 2009-04-17 | 2012-03-28 | 弗兰霍菲尔运输应用研究公司 | Method for searching objects in a database |
CN103064960A (en) * | 2012-12-31 | 2013-04-24 | 华为技术有限公司 | Method and equipment for database query |
CN103246679A (en) * | 2012-02-13 | 2013-08-14 | 刘龙 | System and method for achieving location-based searching |
CN103473267A (en) * | 2013-08-09 | 2013-12-25 | 深圳市中科新业信息科技发展有限公司 | Data storage query method and system |
US20150227557A1 (en) * | 2014-02-10 | 2015-08-13 | Geenee Ug | Systems and methods for image-feature-based recognition |
US20160055156A1 (en) * | 2014-08-22 | 2016-02-25 | International Business Machines Corporation | Database query caching and reuse |
US20160371388A1 (en) * | 2010-02-11 | 2016-12-22 | Facebook, Inc. | Real-time content searching in social network |
CN106686428A (en) * | 2016-12-30 | 2017-05-17 | 广东欧珀移动通信有限公司 | Video playing method and device |
CN107515875A (en) * | 2016-06-16 | 2017-12-26 | 阿里巴巴集团控股有限公司 | Data query method and device |
CN108038175A (en) * | 2017-09-30 | 2018-05-15 | 用友金融信息技术股份有限公司 | Multidimensional data dynamically associates querying method, device, computer equipment and medium |
US20180293239A1 (en) * | 2017-04-11 | 2018-10-11 | Palantir Technologies Inc. | Systems and methods for constraint driven database searching |
-
2018
- 2018-12-27 CN CN201811613723.3A patent/CN109815351B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154230A (en) * | 2006-09-30 | 2008-04-02 | 中兴通讯股份有限公司 | Responding method for large data volume specified searching web pages |
CN102395965A (en) * | 2009-04-17 | 2012-03-28 | 弗兰霍菲尔运输应用研究公司 | Method for searching objects in a database |
CN102110126A (en) * | 2009-12-29 | 2011-06-29 | 潘晓梅 | Information retrieval method and device |
US20160371388A1 (en) * | 2010-02-11 | 2016-12-22 | Facebook, Inc. | Real-time content searching in social network |
CN103246679A (en) * | 2012-02-13 | 2013-08-14 | 刘龙 | System and method for achieving location-based searching |
CN103064960A (en) * | 2012-12-31 | 2013-04-24 | 华为技术有限公司 | Method and equipment for database query |
CN103473267A (en) * | 2013-08-09 | 2013-12-25 | 深圳市中科新业信息科技发展有限公司 | Data storage query method and system |
US20150227557A1 (en) * | 2014-02-10 | 2015-08-13 | Geenee Ug | Systems and methods for image-feature-based recognition |
US20160055156A1 (en) * | 2014-08-22 | 2016-02-25 | International Business Machines Corporation | Database query caching and reuse |
CN107515875A (en) * | 2016-06-16 | 2017-12-26 | 阿里巴巴集团控股有限公司 | Data query method and device |
CN106686428A (en) * | 2016-12-30 | 2017-05-17 | 广东欧珀移动通信有限公司 | Video playing method and device |
US20180293239A1 (en) * | 2017-04-11 | 2018-10-11 | Palantir Technologies Inc. | Systems and methods for constraint driven database searching |
CN108038175A (en) * | 2017-09-30 | 2018-05-15 | 用友金融信息技术股份有限公司 | Multidimensional data dynamically associates querying method, device, computer equipment and medium |
Non-Patent Citations (1)
Title |
---|
戴传飞等: "MongoDB分页技术优化研究", 《计算机技术与发展》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN111914171A (en) * | 2020-07-23 | 2020-11-10 | 北京祥龙博瑞保险代理有限公司 | Product retrieval method, device, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109815351B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103189836B (en) | For the method that the object in graph data stream is classified | |
Gao et al. | Evaluation and optimization of distributed machine learning techniques for internet of things | |
US20210026909A1 (en) | System and method for identifying contacts of a target user in a social network | |
JP6148732B2 (en) | Data indexing method and apparatus | |
CN109284380A (en) | Illegal user's recognition methods and device, electronic equipment based on big data analysis | |
CN111090807B (en) | Knowledge graph-based user identification method and device | |
CN111381902B (en) | APP starting acceleration method based on embedded heterogeneous network with attributes | |
CN109977320B (en) | Information pushing method and system | |
CN106354797B (en) | Data recommendation method and device | |
CN108205580A (en) | A kind of image search method, device and computer readable storage medium | |
CN105224560A (en) | Data cached lookup method and device | |
CN109815351A (en) | Information query method and Related product | |
US11115338B2 (en) | Intelligent conversion of internet domain names to vector embeddings | |
CN107977678A (en) | Method and apparatus for output information | |
CN112527843A (en) | Data query method, device, terminal equipment and storage medium | |
CN106446289B (en) | Information query method and device based on Pinpoint | |
CN110502607A (en) | A kind of electronic medical record system, the method and server for inquiring electronic health record | |
CN110059172A (en) | The method and apparatus of recommendation answer based on natural language understanding | |
US11016957B2 (en) | Sensor data based query results | |
CN112612901A (en) | Medical knowledge map intelligent management retrieval platform | |
CN109684566A (en) | Label engine implementation method, device, computer equipment and storage medium | |
CN111414528B (en) | Method and device for determining equipment identification, storage medium and electronic equipment | |
KR20170059546A (en) | Automatic analysis apparatus of IoT things and IoT services and method thereof | |
CN106202456B (en) | Send the method and device of picture | |
CN109271583A (en) | Service push method and relevant apparatus |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |