CN106407337A - Quick search method and system - Google Patents

Quick search method and system Download PDF

Info

Publication number
CN106407337A
CN106407337A CN201610801830.3A CN201610801830A CN106407337A CN 106407337 A CN106407337 A CN 106407337A CN 201610801830 A CN201610801830 A CN 201610801830A CN 106407337 A CN106407337 A CN 106407337A
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.)
Granted
Application number
CN201610801830.3A
Other languages
Chinese (zh)
Other versions
CN106407337B (en
Inventor
卫宣安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhenyou Software Technology Co.,Ltd.
Original Assignee
Shenzhen Genew Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN201610801830.3A priority Critical patent/CN106407337B/en
Publication of CN106407337A publication Critical patent/CN106407337A/en
Application granted granted Critical
Publication of CN106407337B publication Critical patent/CN106407337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a quick search method and system. The method comprises the steps that a client sends an initial search condition to a server; the server performs traversal on a data source according to the initial search condition; in the traversal process, a new search condition input by a user is obtained; the client judges whether the new search condition is changed relative to the initial search condition or not, and if the new search condition is changed, the server returns a first traversal result of current traversal to the client, the client performs secondary filtration on the received first traversal result, and a second traversal result after the server performs traversal on the non-traversed data source by using the new search condition is returned to the client; and if the new search condition is not changed, the server quantitatively returns the first traversal result to the client. According to the method and the system, when the search condition meets a rule, only the data source needs to be subjected to primary traversal, and the client performs secondary traversal, so that repeated judgment of a large amount of data sources is reduced, the interactive frequency between the server and the client is reduced, and the search efficiency is improved.

Description

A kind of method and system of fast search
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 technology
In traditional C/S model software architecture, search information is all to click on search button by inputting search condition Completing, now search condition can be carried out returning result to client after database search being presented mode by server. This kind of implementation is in terms of user friendly and all not fully up to expectations in terms of search efficiency.
For example 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 travel through to all data sources, waits to take After the last traversal of business device, send the data to client, now have substantial amounts of data source to repeat judgement, server and client End needs repeatedly to interact, and search efficiency is low.
Therefore, prior art has yet to be improved and developed.
Content of the invention
In view of the deficiencies in the prior art, present invention aim at provide a kind of method and system of fast search it is intended to solve In prior art of determining when retrieval during the multiple search of user input, the substantial amounts of data source of server repeats to judge, and server Need repeatedly to interact with client, the low defect of search efficiency.
Technical scheme is as follows:
A kind of method of fast search, wherein, method includes:
A, when obtain user input initial ranging condition when, client then sends initial ranging condition to server;
B, server are traveled through according to source according to initial ranging conditional log;In ergodic process, obtain newly searching of user input Rope condition;
C, client judge whether new search condition is changed compared with initial ranging condition, if changing, server First traversing result of current traversal is returned client, client carries out secondary filter to the first traversing result receiving, clothes The second traversing result after business device travels through to not traversed data source by using new search condition returns client;If Change, then the first traversing result is quantitatively returned client by server.
The method of described fast search, wherein, described A specifically includes:
A1, UI interface obtains the search condition of a user input every a scheduled time, obtains the search that user inputs first Condition is the initial ranging condition of user input, and the initial ranging condition of user input is sent to client;
A2, client create search sessions, when the initial ranging condition of client-side search acquisition conversation user input, client Search sessions send initial ranging condition to server.
The method of described fast search, wherein, described B specifically includes:
B1, server create server search session corresponding with client, and server search session is according to initial ranging condition Data source is traveled through;
B2, server search session in ergodic process, when client obtain user input new search condition when, by new search Condition sends to server search session.
The method of described fast search, wherein, described C specifically includes:
C1, client-side search acquisition conversation new search condition, judge whether new search condition and initial ranging condition meet predetermined Rule, if meet, execute C2, if being unsatisfactory for, execute C3;
C2, client-side search session judge whether new search condition is changed compared with initial ranging condition, if changing, Then the first traversing result of current traversal is returned 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 carried out to not traversed data source time using new search condition Go through, the second traversing result generating after traversal is returned client-side search session, client-side search session cache first traversal knot Fruit with the second traversing result and merges;If changing, the first traversing result is quantitatively returned visitor by server search session Family end, client-side search session cache first traversing result;
C3, client and server create new search sessions, and server travels through all data sources again according to new search condition.
The method of described fast search, wherein, when new search condition and initial ranging condition phase is detected in described C2 Ratio occurs to specifically include during change:
C21, client-side search session waiting for server search sessions return the first traversing result, and by the first traversing result with First traversing result corresponding initial ranging condition enters row cache;
C22, when client-side search session detect new search condition occur compared with initial ranging condition change when, client is searched Rope session carries out local filter to the first traversing result of caching immediately, and notifies server search session;
First traversing result of current traversal is returned client-side search session by C23, server search session immediately, and by clothes Business device search sessions are traveled through to not traversed data source using new search condition, by the generate after traversal second traversal knot Fruit returns client-side search session;
C24, client-side search session cache second traversing result, and merge generation with the first traversing result prestoring final Traversing result, final traversing result is back to UI interface.
A kind of system of fast search, wherein, system includes:
Initial ranging condition acquisition module, for when obtaining the initial ranging condition of user input, client is then initially searched Rope condition sends to server;
Data traversal module, is traveled through according to source according to initial ranging conditional log for server;In ergodic process, obtain The new search condition of user input;
Judge and control module, judge whether new search condition is changed compared with initial ranging condition for client, if Change, then the first traversing result of current traversal is returned client by server, client is to the first traversal knot receiving Fruit carries out secondary filter, and second after server travels through to not traversed data source by using new search condition travels through Result returns client;If changing, the first traversing result is quantitatively returned client by server.
The system of described fast search, wherein, described initial ranging condition acquisition module includes:
Condition timing acquisition unit, obtains the search condition of a user input for UI interface every a scheduled time, obtains The search condition that user inputs first is the initial ranging condition of user input, and the initial ranging condition of user input is sent To client;
First data transmission unit, creates search sessions for client, when at the beginning of client-side search acquisition conversation user input During beginning search condition, client-side search session sends initial ranging condition to server.
The system of described fast search, wherein, described data traversal module specifically includes:
First data traversal unit, creates server search session corresponding with client, server search meeting for server Words are traveled through according to source according to initial ranging conditional log;
Second data transmission unit, for server search session in ergodic process, when client obtains the new of user input During search condition, new search condition is sent to server search session.
The system of described fast search, wherein, described judgement is specifically included with control module:
Judging unit, for client-side search acquisition conversation new search condition, judges that new search condition with initial ranging condition is No meet predetermined rule;
For client-side search session, traversing result acquiring unit, judges whether new search condition is sent out compared with initial ranging condition Change more, if changing, the first traversing result of current traversal is returned client-side search by server search session immediately Session, client carries out secondary filter to the first traversing result receiving, and server search session uses new search condition to not Traversed data source is traveled through, and the second traversing result generating is returned client-side search session, client is searched after traversal Rope session cache first traversing result and the second traversing result simultaneously merge;If changing, server search session is by One traversing result quantitatively returns client, client-side search session cache first traversing result;
Search sessions reconstruction unit, creates new search sessions for client and server, server is according to new search condition Again all data sources are traveled through.
The system of described fast search, wherein, described traversing result acquiring unit also includes:
Traversing result buffer unit, the first traversing result returning for client-side search session waiting for server search sessions, And corresponding with the first traversing result for the first traversing result initial ranging condition is entered row cache;
Data filtering units, for becoming compared with initial ranging condition when client-side search session detects new search condition When more, client-side search session carries out local filter to the first traversing result of caching immediately, and notifies server search meeting Words;
First traversing result of current traversal is returned client for server search session by the second data traversal unit immediately Search sessions, and not traversed data source is traveled through using new search condition by server search session, will travel through The second traversing result generating afterwards returns client-side search session;
Traversing result combining unit, for client-side search session cache second traversing result, and with the first pass prestoring Go through result and merge the final traversing result of generation, final traversing result is back to UI interface.
The invention provides a kind of method and system of fast search, it is right that the present invention only needs when search condition meets rule Data source is once traveled through, and carries out secondary traversal by client, reduces and mass data source is repeated judge, and decreases service Interaction times between device and client, improve search efficiency.
Brief description
Fig. 1 is the flow chart of the preferred embodiment of a kind of method of fast search of the present invention.
Fig. 2 is the flow chart of the concrete application embodiment of a kind of method of fast search of the present invention.
Fig. 3 is a kind of functional schematic block diagram of the preferred embodiment of the system of fast search of the present invention.
Specific embodiment
For making the purpose of the present invention, technical scheme and effect clearer, clear and definite, below to the present invention further specifically Bright.It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The invention provides a kind of flow chart of the preferred embodiment of the method for fast search, as shown in figure 1, wherein, side Method includes:
Step S100, when obtain user input initial ranging condition when, client then sends initial ranging condition to service Device.
When being embodied as, user, when searching for the content of oneself needs, inputs in search column and obtains initial ranging condition. Specifically, the initial ranging condition of user input is obtained by the text box at UI interface.Client obtains initial ranging condition Send to server.
In further embodiment, step S100 specifically includes:
Step S101, UI interface obtains the search condition of a user input every a scheduled time, obtains user and inputs first Search condition be user input initial ranging condition, and the initial ranging condition of user input is sent to client;
Step S102, client create search sessions, when the initial ranging condition of client-side search acquisition conversation user input, Client-side search session sends initial ranging condition to server.
When being embodied as, UI layer will be obtained using timer timing (generally 600ms) in text box input condition and use The condition of family input, and passes to corresponding client-side search session, it is to avoid user often inputs a character and just changes and once searches Rope condition, causes useless conditional search to take.Client-side search acquisition conversation sends to server to after initial ranging condition. For the ease of multiplexing, we provide packaged text box (based on WPF technology) simultaneously, then use when only need to common Text box is equally using can reach above search effect.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 provides Unified programming model, language and framework, have been truly realized the work of separating interface designer and developer;Simultaneously it Provide brand-new multimedia interactive graphical interface of user.
Step S200, server are traveled through according to source according to initial ranging conditional log;In ergodic process, obtain user The new search condition of input.
When being embodied as, server obtains initial ranging condition according to client and starts to data source, that is, in database All resources are traveled through, and in ergodic process, monitor in real time is derived from the transmission information of client, obtains newly searching of user input Rope condition.If no new search condition, continue traversal.
In further embodiment, step S200 specifically includes:
Step S201, server create server search session corresponding with client, and server search session is according to initially searching Rope conditional log is traveled through according to source;
Step S202, server search session, in ergodic process, when client obtains the new search condition of user input, are incited somebody to action New search condition sends to server search session.
When being embodied as, when searching for every time, client all can create corresponding search sessions object, server with server Search sessions object is responsible for traveling through resource, and client-side search session object is used for caching the result having searched out and executing binary search Logic.
Step S300, client judge whether new search condition is changed compared with initial ranging condition, if becoming More, then the first traversing result of current traversal is returned client by server, and client is carried out to the first traversing result receiving Secondary filter, the second traversing result after server travels through to not traversed data source by using new search condition is returned Return client;If changing, the first traversing result is quantitatively returned client by server.
When being embodied as, client judges whether new search condition is changed compared with initial ranging condition, new search Condition and initial ranging condition will meet certain rule.
In same search sessions, server is only once traveled through to data source, and the time is O (n), server ergodic condition Change can be inputted with client and change, traversing result is quantitatively returned client by server, notifies after such as traveling through N number of data source Client;The result that client-cache receives every time, and carry out secondary filter after condition change, the time is O (m1)+O (m2)+...+O(mn),m1、m2、mnThe fruiting quantities returning every time for server;Client receives result every time and carries out secondary After filtration, finally qualified result is presented to UI interface.
In further embodiment, step S300 specifically includes:
Step S301, client-side search acquisition conversation new search condition, judge whether new search condition is full with initial ranging condition The predetermined rule of foot, if meeting, execution step S302, if being unsatisfactory for, execution step S303;
Step S302, client-side search session judge whether new search condition is changed compared with initial ranging condition, if sending out Change more, then the first traversing result of current traversal is returned client-side search session, client by server search session immediately Secondary filter is carried out to the first traversing result receiving, server search session uses new search condition to not traversed data Source is traveled through, and the second traversing result that will generate after traversal returns client-side search session, client-side search session cache the One traversing result and the second traversing result simultaneously merge;If changing, server search session is fixed by the first traversing result Amount returns client, client-side search session cache first traversing result;
Step S303, client and server create new search sessions, and server again travels through all according to new search condition Data source.
When being embodied as, because server is only once traveled through to data source, so the condition of user input must be Meet necessarily rule, be such as unsatisfactory for rule condition then need to re-create new search sessions, 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 (now using new search session).
It is search sessions after input condition character first, be same session when successive character is incremented by one by one, if after Precondition does not have inclusion relation (if previous condition is ab, New Terms is ac), then this conversation end to continuous condition therewith, uses New session scans for, and has not only provided good operability but also has improved search efficiency, has reduced the stand-by period of user.
In further embodiment, step S302 specifically includes:
The first traversing result that step S321, client-side search session waiting for server search sessions return, and first is traveled through Result initial ranging condition corresponding with the first traversing result enters row cache;
Step S322, when client-side search session detect new search condition occur compared with initial ranging condition change when, visitor Family end search sessions carry out local filter to the first traversing result of caching immediately, and notify server search session;
First traversing result of current traversal is returned client-side search session by step S323, server search session immediately, and Not traversed data source is traveled through using new search condition by server search session, second generating after traversal Traversing result returns client-side search session;
Step S324, client-side search session cache second traversing result, and merge life with the first traversing result prestoring Become final traversing result, final traversing result is back to UI interface.
When being embodied as, if when new search condition and initial ranging conditional server iterations when condition does not change Reach specified quantity (quantity can configure) and then notify a client search results (fruiting quantities >=0), if condition change, stand Notify client search results, after notifying client, continue traversal following resource using New Terms, until traversal completes.
After client-side search session initiation, then waiting for server notifies Search Results, and each Search Results and this time are searched The corresponding condition of hitch fruit is cached, if receiving result for the first time, immediately this result being returned to UI and presenting.Work as condition During change, immediately local filter is carried out to the result of caching, notify the change of server search session condition simultaneously.Work as server After subsequent notification Search Results, client should cache this result and merge before result, then this result returned to UI be in It is existing.
Because server only needs once to be traveled through, therefore greatly reduce the pressure of server and decrease calculation times, visitor Family end carries out binary search to local data during server search simultaneously, has reached quick with server concurrent processing The effect of response interface.
A kind of present invention also offers flow chart of the preferred embodiment of the method for fast search, as shown in Fig. 2 method bag Include:
Step S11, client start to input search condition;
Step S12, establishment client-side search session;
Step S13, to server initiate searching request;
Step S14, server create search sessions;
Step S15, begin stepping through searching resource;
Step S16, judging whether resource meets conditions present, if met, execution step S17, if not meeting, executing step Rapid S18;
Step S17, record this resource;
Step S18, judge whether to travel through resource quantity, if equal to 100, then execution step S19, if being less than 100, execute Step S20;
The resource that step S19, notice client have searched;
Step S20, carry out next resource judgment;
Step S21, whether also next resource, if it is, execution step S16, if it is not, then execution step S19;
What step S22, caching server searched resource;
Step S23, notice UI interface;
The resource that step S24, display have searched;
Step S25, client continue input condition;
Whether step S26, New Terms meet lasting search rule, if it is, execution step S27, if it is not, then execution step S12;
Step S27, to server initiate change request;
Step S28, the current Rule of judgment of replacing;
Step S29, client carry out secondary judgement to local cache resource;
Step S30, notice UI interface;
The resource that step S31, display have searched.
Present invention also offers a kind of functional schematic block diagram of the preferred embodiment of the system of fast search, as shown in figure 3, System includes:
Initial ranging condition acquisition module 100, for when obtaining the initial ranging condition of user input, client then will be initial Search condition sends to server;Specifically as shown in embodiment of the method.
Data traversal module 200, is traveled through according to source according to initial ranging conditional log for server;In ergodic process In, obtain the new search condition of user input;Specifically as shown in embodiment of the method.
Judge and control module 300, judge whether new search condition is occurred compared with initial ranging condition for client Change, if changing, the first traversing result of current traversal is returned client by server, and client is to first receiving Traversing result carries out secondary filter, server by using new search condition, not traversed data source is traveled through after Two traversing result return client;If changing, the first traversing result is quantitatively returned client by server;Specifically such as Shown in embodiment of the method.
The system of described fast search, wherein, described initial ranging condition acquisition module includes:
Condition timing acquisition unit, obtains the search condition of a user input for UI interface every a scheduled time, obtains The search condition that user inputs first is the initial ranging condition of user input, and the initial ranging condition of user input 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 input Initial ranging condition when, client-side search session sends initial ranging condition to server;Specifically as embodiment of the method institute Show.
The system of described fast search, wherein, described data traversal module specifically includes:
First data traversal unit, creates server search session corresponding with client, server search meeting for server Words are traveled through according to source according to initial ranging conditional log;Specifically as shown in embodiment of the method.
Second data transmission unit, for server search session in ergodic process, when client obtains user 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 described fast search, wherein, described judgement is specifically included with control module:
Judging unit, for client-side search acquisition conversation new search condition, judges that new search condition with initial ranging condition is No meet predetermined rule;Specifically as shown in embodiment of the method.
For client-side search session, traversing result acquiring unit, judges that new search condition is compared with initial ranging condition No change, if changing, the first traversing result of current traversal is returned client by server search session immediately Search sessions, client carries out secondary filter to the first traversing result receiving, and server search session uses new search condition Not traversed data source is traveled through, the second traversing result generating after traversal is returned client-side search session, client End search sessions cache the first traversing result and the second traversing result and merge;If changing, server search session First traversing result is quantitatively returned client, client-side search session cache first traversing result;Concrete such as embodiment of the method Shown.
Search sessions reconstruction unit, creates new search sessions for client and server, server is according to new search Condition travels through all data sources again;Specifically as shown in embodiment of the method.
The system of described fast search, wherein, described traversing result acquiring unit also includes:
Traversing result buffer unit, the first traversing result returning for client-side search session waiting for server search sessions, And corresponding with the first traversing result for the first traversing result initial ranging condition is entered row cache;Specifically as embodiment of the method institute Show.
Data filtering units, for sending out compared with initial ranging condition when client-side search session detects new search condition When changing more, client-side search session carries out local filter to the first traversing result of caching immediately, and notifies server to search Rope session;Specifically as shown in embodiment of the method.
First traversing result of current traversal is returned visitor for server search session by the second data traversal unit immediately Family end search sessions, and not traversed data source is traveled through using new search condition by server search session, will The second traversing result generating after traversal returns client-side search session;Specifically as shown in embodiment of the method.
Traversing result combining unit, for client-side search session cache second traversing result, and with prestoring One traversing result merges the final traversing result of generation, and final traversing result is back to UI interface;Specifically as embodiment of the method institute Show.
In sum, the invention provides a kind of method and system of fast search, method includes:Client then will be initial Search condition sends to server;Server is traveled through according to source according to initial ranging conditional log;In ergodic process, obtain The new search condition of user input;Client judges whether new search condition is changed compared with initial ranging condition, if sending out Change more, then the first traversing result of current traversal is returned client by server, and client is to the first traversing result receiving Carry out secondary filter, the second traversing result after server is traveled through to not traversed data source using new search condition is returned Return client;If changing, the first traversing result is quantitatively returned client by server.The present invention is full in search condition Only need data source is once traveled through during foot rule, secondary traversal is carried out by client, reduce and mass data source is repeated to sentence Disconnected, and decrease the interaction times between server and client, improve search efficiency.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention Shield scope.

Claims (10)

1. a kind of method of fast search is it is characterised in that methods described includes:
A, when obtain user input initial ranging condition when, client then sends initial ranging condition to server;
B, server are traveled through according to source according to initial ranging conditional log;In ergodic process, obtain newly searching of user input Rope condition;
C, client judge whether new search condition is changed compared with initial ranging condition, if changing, server First traversing result of current traversal is returned client, client carries out secondary filter to the first traversing result receiving, clothes The second traversing result after business device travels through to not traversed data source by using new search condition returns client;If Change, then the first traversing result is quantitatively returned client by server.
2. the method for fast search according to claim 1 is it is characterised in that described A specifically includes:
A1, UI interface obtains the search condition of a user input every a scheduled time, obtains the search that user inputs first Condition is the initial ranging condition of user input, and the initial ranging condition of user input is sent to client;
A2, client create search sessions, when the initial ranging condition of client-side search acquisition conversation user input, client Search sessions send initial ranging condition to server.
3. the method for fast search according to claim 2 is it is characterised in that described B specifically includes:
B1, server create server search session corresponding with client, and server search session is according to initial ranging condition Data source is traveled through;
B2, server search session in ergodic process, when client obtain user input new search condition when, by new search Condition sends to server search session.
4. the method for fast search according to claim 3 is it is characterised in that described C specifically includes:
C1, client-side search acquisition conversation new search condition, judge whether new search condition and initial ranging condition meet predetermined Rule, if meet, execute C2, if being unsatisfactory for, execute C3;
C2, client-side search session judge whether new search condition is changed compared with initial ranging condition, if changing, Then the first traversing result of current traversal is returned 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 carried out to not traversed data source time using new search condition Go through, the second traversing result generating after traversal is returned client-side search session, client-side search session cache first traversal knot Fruit with the second traversing result and merges;If changing, the first traversing result is quantitatively returned visitor by server search session Family end, client-side search session cache first traversing result;
C3, client and server create new search sessions, and server travels through all data sources again according to new search condition.
5. the method for fast search according to claim 4 is it is characterised in that when new search condition is detected in described C2 Occur to specifically include during change compared with initial ranging condition:
C21, client-side search session waiting for server search sessions return the first traversing result, and by the first traversing result with First traversing result corresponding initial ranging condition enters row cache;
C22, when client-side search session detect new search condition occur compared with initial ranging condition change when, client is searched Rope session carries out local filter to the first traversing result of caching immediately, and notifies server search session;
First traversing result of current traversal is returned client-side search session by C23, server search session immediately, and by clothes Business device search sessions are traveled through to not traversed data source using new search condition, by the generate after traversal second traversal knot Fruit returns client-side search session;
C24, client-side search session cache second traversing result, and merge generation with the first traversing result prestoring final Traversing result, final traversing result is back to UI interface.
6. a kind of system of fast search is it is characterised in that system includes:
Initial ranging condition acquisition module, for when obtaining the initial ranging condition of user input, client is then initially searched Rope condition sends to server;
Data traversal module, is traveled through according to source according to initial ranging conditional log for server;In ergodic process, obtain The new search condition of user input;
Judge and control module, judge whether new search condition is changed compared with initial ranging condition for client, if Change, then the first traversing result of current traversal is returned client by server, client is to the first traversal knot receiving Fruit carries out secondary filter, and second after server travels through to not traversed data source by using new search condition travels through Result returns client;If changing, the first traversing result is quantitatively returned client by server.
7. the system of fast search according to claim 6 is it is characterised in that described initial ranging condition acquisition module bag Include:
Condition timing acquisition unit, obtains the search condition of a user input for UI interface every a scheduled time, obtains The search condition that user inputs first is the initial ranging condition of user input, and the initial ranging condition of user input is sent To client;
First data transmission unit, creates search sessions for client, when at the beginning of client-side search acquisition conversation user input During beginning search condition, client-side search session sends initial ranging condition to server.
8. the system of fast search according to claim 7 is it is characterised in that described data traversal module specifically includes:
First data traversal unit, creates server search session corresponding with client, server search meeting for server Words are traveled through according to source according to initial ranging conditional log;
Second data transmission unit, for server search session in ergodic process, when client obtains the new of user input During search condition, new search condition is sent to server search session.
9. the system of fast search according to claim 8 is it is characterised in that described judgement and control module are specifically wrapped Include:
Judging unit, for client-side search acquisition conversation new search condition, judges that new search condition with initial ranging condition is No meet predetermined rule;
For client-side search session, traversing result acquiring unit, judges whether new search condition is sent out compared with initial ranging condition Change more, if changing, the first traversing result of current traversal is returned client-side search by server search session immediately Session, client carries out secondary filter to the first traversing result receiving, and server search session uses new search condition to not Traversed data source is traveled through, and the second traversing result generating is returned client-side search session, client is searched after traversal Rope session cache first traversing result and the second traversing result simultaneously merge;If changing, server search session is by One traversing result quantitatively returns client, client-side search session cache first traversing result;
Search sessions reconstruction unit, creates new search sessions for client and server, server is according to new search condition Again all data sources are traveled through.
10. the system of fast search according to claim 9 is it is characterised in that described traversing result acquiring unit is also wrapped Include:
Traversing result buffer unit, the first traversing result returning for client-side search session waiting for server search sessions, And corresponding with the first traversing result for the first traversing result initial ranging condition is entered row cache;
Data filtering units, for becoming compared with initial ranging condition when client-side search session detects new search condition When more, client-side search session carries out local filter to the first traversing result of caching immediately, and notifies server search meeting Words;
First traversing result of current traversal is returned client for server search session by the second data traversal unit immediately Search sessions, and not traversed data source is traveled through using new search condition by server search session, will travel through The second traversing result generating afterwards returns client-side search session;
Traversing result combining unit, for client-side search session cache second traversing result, and with the first pass prestoring Go through result and merge the final traversing result of generation, final traversing result is back to UI interface.
CN201610801830.3A 2016-09-05 2016-09-05 A kind of method and system of fast search Active CN106407337B (en)

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 true CN106407337A (en) 2017-02-15
CN106407337B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391382A (en) * 2017-08-08 2017-11-24 北京云测信息技术有限公司 A kind of Target Searching Method and device
CN109407916A (en) * 2018-08-27 2019-03-01 华为技术有限公司 Method, terminal, user images display interface and the storage medium of data search
CN110019261A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 Data query method and apparatus
CN111600928A (en) * 2020-04-07 2020-08-28 深圳震有科技股份有限公司 Simulation service control method, intelligent terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
崔丽杰等: "基于用户兴趣的个性化搜索引擎的设计", 《计算机与现代化》 *
颜晓玉: "一种智能型元搜索引擎功能模型", 《福州大学学报(自然科学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391382A (en) * 2017-08-08 2017-11-24 北京云测信息技术有限公司 A kind of Target Searching Method and device
CN107391382B (en) * 2017-08-08 2020-11-20 北京云测信息技术有限公司 Target searching method and device
CN110019261A (en) * 2017-09-30 2019-07-16 北京国双科技有限公司 Data query method and apparatus
CN109407916A (en) * 2018-08-27 2019-03-01 华为技术有限公司 Method, terminal, user images display interface and the storage medium of data search
CN111600928A (en) * 2020-04-07 2020-08-28 深圳震有科技股份有限公司 Simulation service control method, intelligent terminal and storage medium
CN111600928B (en) * 2020-04-07 2022-11-22 深圳震有科技股份有限公司 Simulation service control method, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN106407337B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN106407337A (en) Quick search method and system
US10986214B2 (en) Local persisting of data for selectively offline capable voice action in a voice-enabled electronic device
US8984489B2 (en) Quality on submit process
CN102325191B (en) Fully automatic treatment method and frame without page refresh
CN104166569A (en) Front-end page loading method and system
WO2017049769A1 (en) Method and device for providing target page in mobile application
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
CN109426603B (en) Method and device for analyzing application program blockage
JP2013500514A (en) Dynamic media content preview
CN104936032A (en) Method and device for playing network video
CN107665170B (en) Flow testing method and device
CN105704487A (en) Television stability testing method and device
CN108038009A (en) Front and back end exchange method, device and computer equipment based on Web applications
CN110532159A (en) Data decryptor method, apparatus, equipment and computer readable storage medium
CN109558501A (en) A kind of response type image processing method, mobile terminal, server and system
CN103177025A (en) Recommendation method and device of answer information by information interactive question and answer system
CN110496395A (en) It is a kind of for the assembly operating method of illusory engine, system and equipment
CN112783614A (en) Object processing method, device, equipment, storage medium and program product
US20200394059A1 (en) Real-time localization
CN111124528A (en) Page loading method and device, electronic equipment and computer readable storage medium
CN114329179A (en) Object recommendation method and device
WO2023202361A1 (en) Video generation method and apparatus, medium, and electronic device
CN106339235A (en) Interface display method and device
CN106257447A (en) The video storage of cloud storage server and search method, video cloud storage system

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.