CN106407337B - A kind of method and system of fast search - Google Patents
A kind of method and system of fast search Download PDFInfo
- Publication number
- CN106407337B CN106407337B CN201610801830.3A CN201610801830A CN106407337B CN 106407337 B CN106407337 B CN 106407337B CN 201610801830 A CN201610801830 A CN 201610801830A CN 106407337 B CN106407337 B CN 106407337B
- Authority
- CN
- China
- Prior art keywords
- client
- search
- condition
- server
- traversing result
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Abstract
The invention discloses a kind of method and system of fast search, method includes: that initial ranging condition is then sent to server by client;Server traverses data source according to initial ranging condition;In ergodic process, the new search condition of user's input is obtained;Client judges whether new search condition changes compared with initial ranging condition, if changing, then the first traversing result currently traversed is returned to client by server, client carries out secondary filter to the first traversing result received, and the second traversing result after server traverses not traversed data source using new search condition returns to client;If not changing, the first traversing result is quantitatively returned to client by server.The present invention only needs once to traverse data source when search condition meets rule, carries out secondary traversal by client, reduces and repeat to judge to mass data source, and reduce the interaction times between server and client, improve search efficiency.
Description
Technical field
The present invention relates to technical field of information communication more particularly to a kind of method and system of fast search.
Background technique
In traditional C/S model software architecture, search information is all to click search button by input search condition
Mode is completed, and server, which can carry out search condition returning result to client after database search, at this time be presented.
Such implementation is all not fully up to expectations in terms of the user friendly and in terms of search efficiency.
Such as when client needs to search for " Zhang San ", the search condition input condition of input be phonetic " zh " ->
" zhang " -> " zhangsan ", the condition that user inputs each time, server will traverse all data sources, wait take
After device last time of being engaged in traverses, client is sent the data to, has a large amount of data source to repeat to judge at this time, server and client
End needs repeatedly interaction, search efficiency low.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of the deficiencies in the prior art, it is an object of that present invention to provide a kind of method and system of fast search, it is intended to solve
When certainly when retrieval, user inputs multiple search in the prior art, a large amount of data source of server repeats to judge, and server
It is repeatedly interacted with client needs, the low defect of search efficiency.
Technical scheme is as follows:
A kind of method of fast search, wherein method includes:
A, when obtaining the initial ranging condition of user's input, initial ranging condition is then sent to server by client;
B, server traverses data source according to initial ranging condition;In ergodic process, user's input is obtained
New search condition;
C, client judges whether new search condition changes compared with initial ranging condition, if changing, takes
Device be engaged in for the first traversing result currently traversed return client, client carries out secondary mistake to the first traversing result received
Filter, the second traversing result after server traverses not traversed data source by using new search condition return to client
End;If not changing, the first traversing result is quantitatively returned to client by server.
The method of the fast search, wherein the A is specifically included:
The interface A1, UI obtains the search condition of user input every a predetermined time, obtains what user inputted for the first time
Search condition is the initial ranging condition of user's input, and the initial ranging condition that user inputs is sent to client;
A2, client create search sessions, when the initial ranging condition of client-side search acquisition conversation user input, visitor
Initial ranging condition is sent to server by family end search sessions.
The method of the fast search, wherein the B is specifically included:
B1, server create server search session corresponding with client, and server search session is according to initial ranging
Condition traverses data source;
B2, server search session, will be new when client obtains the new search condition of user's input in ergodic process
Search condition is sent to server search session.
The method of the fast search, wherein the C is specifically included:
C1, client-side search acquisition conversation new search condition, judge whether new search condition meets with initial ranging condition
Scheduled rule, if satisfied, C2 is then executed, if not satisfied, then executing C3;
C2, client-side search session judge whether new search condition changes compared with initial ranging condition, if occurring
Change, then the first traversing result currently traversed is returned to client-side search session, client pair by server search session immediately
The first traversing result received carries out secondary filter, and server search session is using new search condition to not traversed data source
It is traversed, the second traversing result generated after traversal is returned into client-side search session, client-side search session cache first
Traversing result and the second traversing result simultaneously merge;If not changing, server search session quantifies the first traversing result
Return to client, the first traversing result of client-side search session cache;
C3, client and server create new search sessions, and server traverses all numbers according to new search condition again
According to source.
The method of the fast search, wherein when detecting new search condition and initial ranging condition phase in the C2
It is specifically included when than changing:
The first traversal that C21, client-side search session waiting for server search sessions return is as a result, and tie the first traversal
Fruit initial ranging condition corresponding with the first traversing result is cached;
C22, when client-side search session detects that new search condition changes compared with initial ranging condition, client
End search sessions carry out local filter to the first traversing result cached immediately, and notify server search session;
The first traversing result currently traversed is returned to client-side search session by C23, server search session immediately, and is led to
It crosses server search session and not traversed data source is traversed using new search condition, second time will generated after traversal
It goes through result and returns to client-side search session;
C24, the second traversing result of client-side search session cache, and merge generation with pre-stored first traversing result
Final traversing result is back to the interface UI by final traversing result.
A kind of system of fast search, wherein system includes:
Initial ranging condition obtains module, for when obtaining the initial ranging condition of user's input, client then will be first
Beginning search condition is sent to server;
Data traversal module traverses data source according to initial ranging condition for server;In ergodic process,
Obtain the new search condition of user's input;
Judgement and control module, judge whether new search condition becomes compared with initial ranging condition for client
More, if changing, the first traversing result currently traversed is returned to client by server, and client is to the first pass received
Go through result carry out secondary filter, server not traversed data source is traversed by using new search condition after second
Traversing result returns to client;If not changing, the first traversing result is quantitatively returned to client by server.
The system of the fast search, wherein the initial ranging condition obtains module and includes:
Condition timing acquisition unit obtains the search condition of user input for the interface UI every a predetermined time,
Obtain the initial ranging condition that the search condition that user inputs for the first time is user's input, and the initial ranging condition that user is inputted
It is sent to client;
First data transmission unit creates search sessions for client, when client-side search acquisition conversation user inputs
Initial ranging condition when, initial ranging condition is sent to server by client-side search session.
The system of the fast search, wherein the data traversal module specifically includes:
First data traversal unit creates server search session corresponding with client for server, and server is searched
Rope session traverses data source according to initial ranging condition;
Second data transmission unit, for server search session in ergodic process, when client obtains user's input
New search condition when, new search condition is sent to server search session.
The system of the fast search, wherein the judgement is specifically included with control module:
Judging unit is used for client-side search acquisition conversation new search condition, judges new search condition and initial ranging item
Whether part meets scheduled rule;
Traversing result acquiring unit judges that new search condition is compared with initial ranging condition for client-side search session
No to change, if changing, the first traversing result currently traversed is returned to client by server search session immediately
Search sessions, client carry out secondary filter to the first traversing result received, and server search session uses new search condition
Not traversed data source is traversed, the second traversing result generated after traversal is returned into client-side search session, client
End search sessions cache the first traversing result and the second traversing result and merge;If not changing, server search session
First traversing result is quantitatively returned into client, the first traversing result of client-side search session cache;
Search sessions reconstruction unit creates new search sessions for client and server, and server is according to new search
Condition traverses all data sources again.
The system of the fast search, wherein the traversing result acquiring unit further include:
Traversing result cache unit, the first traversal knot returned for client-side search session waiting for server search sessions
Fruit, and the first traversing result initial ranging condition corresponding with the first traversing result is cached;
Data filtering units, for detecting that new search condition is sent out compared with initial ranging condition when client-side search session
When changing more, client-side search session carries out local filter to the first traversing result cached immediately, and server is notified to search
Rope session;
The first traversing result currently traversed is returned to visitor for server search session by the second data traversal unit immediately
Family end search sessions, and not traversed data source is traversed using new search condition by server search session, it will
The second traversing result generated after traversal returns to client-side search session;
Traversing result combining unit, is used for the second traversing result of client-side search session cache, and with pre-stored the
One traversing result, which merges, generates final traversing result, and final traversing result is back to the interface UI.
The present invention provides a kind of method and system of fast search, the present invention only needs pair when search condition meets rule
Data source is once traversed, and is carried out secondary traversal by client, is reduced and repeat to judge to mass data source, and reduce service
Interaction times between device and client, improve search efficiency.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the preferred embodiment of the method for fast search of the invention.
Fig. 2 is a kind of flow chart of the concrete application embodiment of the method for fast search of the invention.
Fig. 3 is a kind of functional schematic block diagram of the preferred embodiment of the system of fast search of the invention.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, below to the present invention further specifically
It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides the flow charts of the preferred embodiment of a kind of method of fast search, as shown in Figure 1, wherein side
Method includes:
Step S100, when obtaining the initial ranging condition of user's input, initial ranging condition is then sent to by client
Server.
When it is implemented, user inputs in search column when to search for the content of oneself needs and obtains initial ranging condition.
Specifically, the initial ranging condition of user's input is obtained by the text box at the interface UI.Client obtains initial ranging condition
It is sent to server.
In further embodiment, step S100 is specifically included:
Step S101, the interface UI obtains the search condition of user input every a predetermined time, obtains user for the first time
The search condition of input is the initial ranging condition of user's input, and the initial ranging condition that user inputs is sent to client
End;
Step S102, client creates search sessions, when the initial ranging item of client-side search acquisition conversation user input
When part, initial ranging condition is sent to server by client-side search session.
When it is implemented, UI layers will use timer timing (generally 600ms) to obtain and use in text box input condition
The condition of family input, and corresponding client-side search session is passed to, it avoids user's one character of every input from just modifying and once searches
Rope condition causes useless conditional search time-consuming.Server is sent to after client-side search acquisition conversation to initial ranging condition.
For the ease of multiplexing, we provide packaged text box (based on WPF technology) simultaneously, then when in use need to it is common
Text box is equally using the search effect more than can reach.WPF(Windows Presentation Foundation) it is micro-
The user interface frame based on Windows Vista of soft release, belongs to a part of .NET Framework 3.0.It is provided
Unified programming model, language and frame, have been truly realized the work of separating interface designer and developer;While it
Provide completely new multimedia interactive graphical interface of user.
Step S200, server traverses data source according to initial ranging condition;In ergodic process, user is obtained
The new search condition of input.
Start to data source, i.e., in database when it is implemented, server obtains initial ranging condition according to client
All resources are traversed, and in ergodic process, monitor the transmission information from client in real time, obtain newly searching for user's input
Rope condition.If continuing to traverse without new search condition.
In further embodiment, step S200 is specifically included:
Step S201, server creates server search session corresponding with client, and server search session is according to just
Beginning search condition traverses data source;
Step S202, server search session is in ergodic process, when client obtains the new search condition of user's input
When, new search condition is sent to server search session.
When it is implemented, client can all create corresponding search sessions object, server with server when searching for every time
Search sessions object is responsible for traversing resource, and client-side search session object is for caching the result searched out and executing binary search
Logic.
Step S300, client judges whether new search condition changes compared with initial ranging condition, if becoming
More, then server carries out the first traversing result currently traversed return client, client to the first traversing result received
Secondary filter, the second traversing result after server traverses not traversed data source by using new search condition are returned
Return client;If not changing, the first traversing result is quantitatively returned to client by server.
When it is implemented, client judges whether new search condition changes compared with initial ranging condition, new search
Condition and initial ranging condition will meet certain rule.
Server only once traverses data source in same search sessions, and the time is O (n), server ergodic condition
Variation being inputted with client and being changed, traversing result is quantified return client, notified after such as traversing N number of data source by server
Client;It is that client-cache receives every time as a result, and carry out secondary filter after condition change, the time is O (m1)+O
(m2)+...+O(mn),m1、m2、mnThe fruiting quantities returned every time for server;Client receives result every time and carries out secondary
Final qualified result is presented to the interface UI after filtering.
In further embodiment, step S300 is specifically included:
Step S301, client-side search acquisition conversation new search condition judges that new search condition is with initial ranging condition
It is no to meet scheduled rule, if satisfied, S302 is thened follow the steps, if not satisfied, thening follow the steps S303;
Step S302, client-side search session judges whether new search condition changes compared with initial ranging condition,
If changing, the first traversing result currently traversed is returned to client-side search session by server search session immediately, visitor
Family end carries out secondary filter to the first traversing result received, and server search session is using new search condition to not traversed
Data source is traversed, and the second traversing result generated after traversal is returned to client-side search session, client-side search session is slow
It deposits the first traversing result and the second traversing result and merges;If not changing, the first traversal is tied in server search session
Fruit quantitatively returns to client, the first traversing result of client-side search session cache;
Step S303, client and server creates new search sessions, and server traverses again according to new search condition
All data sources.
When it is implemented, since server only once traverses data source, so the condition of user's input must be
Meet certain rule, as needed to re-create new search sessions if being unsatisfactory for the condition of rule, new search sessions will again
Begin stepping through data source.
Same session scenario: a- > ab- > abc- > abcd- > ab- > a- > abcd
abc->abcd->ab->a
Non- same session scenario: a- > ab- > a- > ac (uses new search session) at this time.
For the first time it is a search sessions after input condition character, is the same session when successive character is incremented by one by one, if after
Precondition does not have inclusion relation (such as previous condition is ab, New Terms ac) to continuous condition therewith, then the conversation end, uses
New session scans for, and has not only provided good operability but also has improved search efficiency, has reduced the waiting time of user.
In further embodiment, step S302 is specifically included:
Step S321, the first traversal that client-side search session waiting for server search sessions return is as a result, and by first
Traversing result initial ranging condition corresponding with the first traversing result is cached;
Step S322, when client-side search session detects that new search condition changes compared with initial ranging condition
When, client-side search session carries out local filter to the first traversing result cached immediately, and notifies server search session;
Step S323, the first traversing result currently traversed is returned to client-side search meeting by server search session immediately
Words, and not traversed data source is traversed using new search condition by server search session, it will be generated after traversal
The second traversing result return client-side search session;
Step S324, the second traversing result of client-side search session cache, and closed with pre-stored first traversing result
And final traversing result is generated, final traversing result is back to the interface UI.
If when it is implemented, when new search condition and initial ranging conditional server the number of iterations when condition does not change
Reach specified quantity (quantity is configurable) and then notify a client search results (fruiting quantities >=0), is stood if condition change
It notifies a client search results, continues to traverse following resource using New Terms after notifying client, until traversal is completed.
Then waiting for server notifies search result after client-side search session initiation, and each search result is searched with this time
The corresponding condition of hitch fruit is cached, and the result is returned to UI immediately if first time receives result and is presented.Work as condition
When change, local filter is carried out to the result cached immediately, while server search session condition being notified to change.Work as server
After subsequent notification search result, client should cache this result and merge before as a result, the result returned to UI being again in
Existing
Because server only needs once to be traversed, therefore greatly reduces the pressure of server and reduce calculating time
Number, client carry out binary search to local data simultaneously during server search, have reached and concurrently located with server
Manage the effect at quick response interface.
The present invention also provides the flow charts of the preferred embodiment of a kind of method of fast search, as shown in Fig. 2, method packet
It includes:
Step S11, client starts to input search condition;
Step S12, client-side search session is created;
Step S13, searching request is initiated to server;
Step S14, server creates search sessions;
Step S15, searching resource is begun stepping through;
Step S16, judge whether resource meets conditions present, if met, then follow the steps S17, if not meeting, hold
Row step S18;
Step S17, the resource is recorded;
Step S18, judge whether to have traversed resource quantity, if being equal to 100, then follow the steps S19, if less than 100,
Execute step S20;
Step S19, the resource that notice client has searched;
Step S20, next resource judgment is carried out;
Step S21, whether there are also next resources, if so, S16 is thened follow the steps, if it is not, thening follow the steps S19;
Step S22, the resource that cache server searches;
Step S23, the interface UI is notified;
Step S24, the resource searched is shown;
Step S25, client continues input condition;
Step S26, whether New Terms meets lasting search rule, if so, S27 is thened follow the steps, if it is not, then executing step
Rapid S12;
Step S27, change request is initiated to server;
Step S28, current Rule of judgment is replaced;
Step S29, client carries out secondary judgement to local cache resource;
Step S30, the interface UI is notified;
Step S31, the resource searched is shown.
The present invention also provides a kind of functional schematic block diagrams of the preferred embodiment of the system of fast search, as shown in figure 3,
System includes:
Initial ranging condition obtains module 100, for when obtaining the initial ranging condition of user's input, client then will
Initial ranging condition is sent to server;Specifically as shown in embodiment of the method.
Data traversal module 200 traverses data source according to initial ranging condition for server;In ergodic process
In, obtain the new search condition of user's input;Specifically as shown in embodiment of the method.
Judgement and control module 300, judge whether new search condition occurs compared with initial ranging condition for client
Change, if changing, the first traversing result currently traversed is returned to client by server, and client is to first received
Traversing result carries out secondary filter, server not traversed data source is traversed by using new search condition after the
Two traversing results return to client;If not changing, the first traversing result is quantitatively returned to client by server;Specifically such as
Shown in embodiment of the method.
The system of the fast search, wherein the initial ranging condition obtains module and includes:
Condition timing acquisition unit obtains the search condition of user input for the interface UI every a predetermined time,
Obtain the initial ranging condition that the search condition that user inputs for the first time is user's input, and the initial ranging condition that user is inputted
It is sent to client;Specifically as shown in embodiment of the method.
First data transmission unit creates search sessions for client, when client-side search acquisition conversation user inputs
Initial ranging condition when, initial ranging condition is sent to server by client-side search session;Specifically such as embodiment of the method institute
Show.
The system of the fast search, wherein the data traversal module specifically includes:
First data traversal unit creates server search session corresponding with client for server, and server is searched
Rope session traverses data source according to initial ranging condition;Specifically as shown in embodiment of the method.
Second data transmission unit, for server search session in ergodic process, when client obtains user's input
New search condition when, new search condition is sent to server search session;Specifically as shown in embodiment of the method.
The system of the fast search, wherein the judgement is specifically included with control module:
Judging unit is used for client-side search acquisition conversation new search condition, judges new search condition and initial ranging item
Whether part meets scheduled rule;Specifically as shown in embodiment of the method.
Traversing result acquiring unit judges that new search condition is compared with initial ranging condition for client-side search session
No to change, if changing, the first traversing result currently traversed is returned to client by server search session immediately
Search sessions, client carry out secondary filter to the first traversing result received, and server search session uses new search condition
Not traversed data source is traversed, the second traversing result generated after traversal is returned into client-side search session, client
End search sessions cache the first traversing result and the second traversing result and merge;If not changing, server search session
First traversing result is quantitatively returned into client, the first traversing result of client-side search session cache;Specific such as embodiment of the method
It is shown.
Search sessions reconstruction unit creates new search sessions for client and server, and server is according to new search
Condition traverses all data sources again;Specifically as shown in embodiment of the method.
The system of the fast search, wherein the traversing result acquiring unit further include:
Traversing result cache unit, the first traversal knot returned for client-side search session waiting for server search sessions
Fruit, and the first traversing result initial ranging condition corresponding with the first traversing result is cached;Specific such as embodiment of the method
It is shown.
Data filtering units, for detecting that new search condition is sent out compared with initial ranging condition when client-side search session
When changing more, client-side search session carries out local filter to the first traversing result cached immediately, and server is notified to search
Rope session;Specifically as shown in embodiment of the method.
The first traversing result currently traversed is returned to visitor for server search session by the second data traversal unit immediately
Family end search sessions, and not traversed data source is traversed using new search condition by server search session, it will
The second traversing result generated after traversal returns to client-side search session;Specifically as shown in embodiment of the method.
Traversing result combining unit, is used for the second traversing result of client-side search session cache, and with pre-stored the
One traversing result, which merges, generates final traversing result, and final traversing result is back to the interface UI;Specifically such as embodiment of the method institute
Show.
In conclusion method includes: that client then will be initial the present invention provides a kind of method and system of fast search
Search condition is sent to server;Server traverses data source according to initial ranging condition;In ergodic process, obtain
The new search condition of user's input;Client judges whether new search condition changes compared with initial ranging condition, if hair
It changes more, then the first traversing result currently traversed is returned to client by server, and client is to the first traversing result received
Secondary filter is carried out, the second traversing result after server traverses not traversed data source using new search condition is returned
Return client;If not changing, the first traversing result is quantitatively returned to client by server.The present invention is full in search condition
It only needs once to traverse data source when foot rule, secondary traversal is carried out by client, reduces and mass data source is repeated to sentence
It is disconnected, and reduce the interaction times between server and client, improve search efficiency.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of method of fast search, which is characterized in that the described method includes:
A, when obtaining the initial ranging condition of user's input, initial ranging condition is then sent to server by client;
B, server traverses data source according to initial ranging condition;In ergodic process, newly searching for user's input is obtained
Rope condition;
C, client judges whether new search condition changes compared with initial ranging condition, if changing, server
The first traversing result currently traversed is returned into client, client carries out secondary filter, clothes to the first traversing result received
The second traversing result after business device traverses not traversed data source by using new search condition returns to client;If
It does not change, then the first traversing result is quantitatively returned to client by server.
2. the method for fast search according to claim 1, which is characterized in that the A is specifically included:
The interface A1, UI obtains the search condition of user input every a predetermined time, obtains the search that user inputs for the first time
Condition is the initial ranging condition of user's input, and the initial ranging condition that user inputs is sent to client;
A2, client create search sessions, when the initial ranging condition of client-side search acquisition conversation user input, client
Initial ranging condition is sent to server by search sessions.
3. the method for fast search according to claim 2, which is characterized in that the B is specifically included:
B1, server create server search session corresponding with client, and server search session is according to initial ranging condition
Data source is traversed;
B2, server search session are in ergodic process, when client obtains the new search condition of user's input, by new search
Condition is sent to server search session.
4. the method for fast search according to claim 3, which is characterized in that the C is specifically included:
C1, client-side search acquisition conversation new search condition, it is predetermined to judge whether new search condition meets with initial ranging condition
Rule, if satisfied, C2 is then executed, if not satisfied, then executing C3;
C2, client-side search session judge whether new search condition changes compared with initial ranging condition, if changing,
Then the first traversing result currently traversed is returned to client-side search session by server search session immediately, and client is to receiving
First traversing result carries out secondary filter, and server search session is using new search condition to not traversed data source progress time
It goes through, the second traversing result generated after traversal is returned into client-side search session, client-side search session cache passes through secondary mistake
The first traversing result and the second traversing result after filter simultaneously merge;If not changing, server search session is by first pass
It goes through result and quantitatively returns to client, the first traversing result of client-side search session cache;
C3, client and server create new search sessions, and server traverses all data sources according to new search condition again.
5. the method for fast search according to claim 4, which is characterized in that when detecting new search condition in the C2
It is specifically included when being changed compared with initial ranging condition:
C21, client-side search session waiting for server search sessions return first traversal as a result, and by the first traversing result with
The corresponding initial ranging condition of first traversing result is cached;
C22, when client-side search session detects that new search condition changes compared with initial ranging condition, client is searched
Rope session carries out local filter to the first traversing result cached immediately, and notifies server search session;
The first traversing result currently traversed is returned to client-side search session by C23, server search session immediately, and passes through clothes
Business device search sessions traverse not traversed data source using new search condition, and the generate after traversal second traversal is tied
Fruit returns to client-side search session;
C24, the second traversing result of client-side search session cache, and traversed with pre-stored first after secondary filter
As a result merge and generate final traversing result, final traversing result is back to the interface UI.
6. a kind of system of fast search, which is characterized in that system includes:
Initial ranging condition obtains module, for when obtaining the initial ranging condition of user's input, client then will to be searched initially
Rope condition is sent to server;
Data traversal module traverses data source according to initial ranging condition for server;In ergodic process, obtain
The new search condition of user's input;
Judgement and control module, judge whether new search condition changes compared with initial ranging condition for client, if
It changes, then the first traversing result currently traversed is returned to client by server, and client ties the first traversal received
Fruit carries out secondary filter, and second after server traverses not traversed data source by using new search condition traverses
As a result client is returned;If not changing, the first traversing result is quantitatively returned to client by server.
7. the system of fast search according to claim 6, which is characterized in that the initial ranging condition obtains module packet
It includes:
Condition timing acquisition unit obtains the search condition of user input for the interface UI every a predetermined time, obtains
The search condition that user inputs for the first time is the initial ranging condition of user's input, and the initial ranging condition of user's input is sent
To client;
First data transmission unit creates search sessions for client, at the beginning of client-side search acquisition conversation user input
When beginning search condition, initial ranging condition is sent to server by client-side search session.
8. the system of fast search according to claim 7, which is characterized in that the data traversal module specifically includes:
First data traversal unit creates server search session corresponding with client, server search meeting for server
Words traverse data source according to initial ranging condition;
Second data transmission unit, for server search session in ergodic process, when client obtains the new of user's input
When search condition, new search condition is sent to server search session.
9. the system of fast search according to claim 8, which is characterized in that the judgement is specifically wrapped with control module
It includes:
Judging unit is used for client-side search acquisition conversation new search condition, judges that new search condition is with initial ranging condition
It is no to meet scheduled rule;
Traversing result acquiring unit judges whether new search condition is sent out compared with initial ranging condition for client-side search session
It changes more, if changing, the first traversing result currently traversed is returned to client-side search by server search session immediately
Session, client carry out secondary filter to the first traversing result received, and server search session is using new search condition to not
Traversed data source is traversed, and the second traversing result generated after traversal is returned to client-side search session, client is searched
First traversing result and second traversing result of the rope session cache after secondary filter simultaneously merge;If not changing, take
First traversing result is quantitatively returned to client, the first traversing result of client-side search session cache by device search sessions of being engaged in;
Search sessions reconstruction unit creates new search sessions for client and server, and server is according to new search condition
Again all data sources are traversed.
10. the system of fast search according to claim 9, which is characterized in that the traversing result acquiring unit is also wrapped
It includes:
Traversing result cache unit, for client-side search session waiting for server search sessions return first traversal as a result,
And the first traversing result initial ranging condition corresponding with the first traversing result is cached;
Data filtering units, for detecting that new search condition becomes compared with initial ranging condition when client-side search session
When more, client-side search session carries out local filter to the first traversing result cached immediately, and notifies server search meeting
Words;
The first traversing result currently traversed is returned to client for server search session by the second data traversal unit immediately
Search sessions, and not traversed data source is traversed using new search condition by server search session, it will traverse
The second traversing result generated afterwards returns to client-side search session;
Traversing result combining unit is used for the second traversing result of client-side search session cache, and passes through two with pre-stored
Secondary filtered first traversing result, which merges, generates final traversing result, and final traversing result is back to the interface UI.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610801830.3A CN106407337B (en) | 2016-09-05 | 2016-09-05 | A kind of method and system of fast search |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610801830.3A CN106407337B (en) | 2016-09-05 | 2016-09-05 | A kind of method and system of fast search |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106407337A CN106407337A (en) | 2017-02-15 |
CN106407337B true CN106407337B (en) | 2019-08-20 |
Family
ID=57998438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610801830.3A Active CN106407337B (en) | 2016-09-05 | 2016-09-05 | A kind of method and system of fast search |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106407337B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391382B (en) * | 2017-08-08 | 2020-11-20 | 北京云测信息技术有限公司 | Target searching method and device |
CN110019261B (en) * | 2017-09-30 | 2021-11-23 | 北京国双科技有限公司 | Data query method and device |
CN109407916A (en) * | 2018-08-27 | 2019-03-01 | 华为技术有限公司 | Method, terminal, user images display interface and the storage medium of data search |
CN111600928B (en) * | 2020-04-07 | 2022-11-22 | 深圳震有科技股份有限公司 | Simulation service control method, intelligent terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120027680A (en) * | 2010-09-13 | 2012-03-22 | 이희찬 | Social-network building method for augmented reality |
CN102930022A (en) * | 2012-10-31 | 2013-02-13 | 中国运载火箭技术研究院 | User-oriented information search engine system and method |
CN104866617A (en) * | 2015-06-09 | 2015-08-26 | 苏州国云数据科技有限公司 | Method for inquiring time-dependent data based on visual time filter |
-
2016
- 2016-09-05 CN CN201610801830.3A patent/CN106407337B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120027680A (en) * | 2010-09-13 | 2012-03-22 | 이희찬 | Social-network building method for augmented reality |
CN102930022A (en) * | 2012-10-31 | 2013-02-13 | 中国运载火箭技术研究院 | User-oriented information search engine system and method |
CN104866617A (en) * | 2015-06-09 | 2015-08-26 | 苏州国云数据科技有限公司 | Method for inquiring time-dependent data based on visual time filter |
Non-Patent Citations (2)
Title |
---|
一种智能型元搜索引擎功能模型;颜晓玉;《福州大学学报(自然科学版)》;20080930;第122-124页 |
基于用户兴趣的个性化搜索引擎的设计;崔丽杰等;《计算机与现代化》;20080715(第07期);第1-4页 |
Also Published As
Publication number | Publication date |
---|---|
CN106407337A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106407337B (en) | A kind of method and system of fast search | |
US9946514B1 (en) | Systems and methods for generating functional application designs | |
CN110393921A (en) | Processing method, device, terminal, server and the storage medium of cloud game | |
KR0138845B1 (en) | Synchronization controller and control method for multimedia object in mheg engine | |
CN105956087B (en) | Data version management system and method | |
CN102866886A (en) | Web-based visual algorithm animation development system | |
US20130091491A1 (en) | Self-Documentation of Development Systems | |
WO2021228264A1 (en) | Machine learning application method, device, electronic apparatus, and storage medium | |
KR101936839B1 (en) | Method and apparatus for providing screenshot service on terminal device and storage medium and device | |
TW201732626A (en) | Method and device for acquiring application resource | |
CN107665170B (en) | Flow testing method and device | |
CN103412782B (en) | Dynamic resource loading method and system based on flash | |
CN110532159A (en) | Data decryptor method, apparatus, equipment and computer readable storage medium | |
CN110496395A (en) | It is a kind of for the assembly operating method of illusory engine, system and equipment | |
WO2018093800A1 (en) | Systems and methods for reducing download requirements | |
CN112783614A (en) | Object processing method, device, equipment, storage medium and program product | |
US20200394059A1 (en) | Real-time localization | |
CN106339235A (en) | Interface display method and device | |
CN103914292A (en) | RIA (Rich Internet Application) based user interface generation method and device | |
WO2023202361A1 (en) | Video generation method and apparatus, medium, and electronic device | |
CN103365559B (en) | A kind of method and mobile terminal for drawing sliding trace | |
Katoen et al. | Exponentially timed SADF: compositional semantics, reductions, and analysis | |
CN102142004B (en) | Service processing method and service engine | |
CN104392408B (en) | A kind of system and method showing image | |
WO2018205390A1 (en) | Control layout display control method, system, and apparatus, and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210415 Address after: 518000 zone a, 5th floor, Caixun technology building, 3176 Keyuan South Road, high tech community, Yuehai street, Shenzhen, Guangdong Province Patentee after: Shenzhen Zhenyou Software Technology Co.,Ltd. Address before: 518057 3rd floor, area C, Han's innovation building, 9018 Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province Patentee before: SHENZHEN GENEW TECHNOLOGY Co.,Ltd. |