CN107590248A - Searching method, device, terminal and computer-readable recording medium - Google Patents
Searching method, device, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107590248A CN107590248A CN201710838305.3A CN201710838305A CN107590248A CN 107590248 A CN107590248 A CN 107590248A CN 201710838305 A CN201710838305 A CN 201710838305A CN 107590248 A CN107590248 A CN 107590248A
- Authority
- CN
- China
- Prior art keywords
- search
- stack
- search key
- internal memory
- key
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention belongs to search technique field, more particularly to a kind of searching method, device, terminal and computer-readable recording medium, wherein, methods described includes:Search key is obtained, the search result matched with the search key is searched from the internal memory stack of the terminal;If not finding the search result matched with the search key from the internal memory stack, searching request is sent to database;And receive the search result matched with the search key of the Database Feedback;The search key and the search result matched with the search key are pressed into the internal memory stack.When allowing to carry out information search, the search result matched with the search key can be searched from the internal memory stack, without repeatedly sending searching request to database, and the search result matched with the search key is obtained from the database, the time of search is saved, improves search efficiency.
Description
Technical field
The invention belongs to search technique field, more particularly to a kind of searching method, device, terminal and computer-readable storage
Medium.
Background technology
At present, mobile terminal has been widely used in daily life and study, and people usually need to use
Mobile terminal enters the search of row information.
When people carry out network by the search unit on the browser or other application software installed on mobile terminal
When data search or native data are searched for, even if the search result of the keyword of user's input is included in the last input of user
In the search result of keyword, mobile terminal is stilled need to initiate searching request to database, and search is obtained from the database
As a result;So that obtaining the time-consuming essentially identical of search result each time, cause search efficiency low.
The content of the invention
The embodiment of the present invention provides a kind of searching method, device, terminal and computer-readable recording medium, can improve and search
The efficiency of rope.
First aspect of the embodiment of the present invention provides a kind of searching method, applied to terminal, including:
Search key is obtained, the search knot matched with the search key is searched from the internal memory stack of the terminal
Fruit;
If not finding the search result matched with the search key from the internal memory stack, sent to database
Searching request;And receive the search result matched with the search key of the Database Feedback;
The search key and the search result matched with the search key are pressed into the internal memory stack.
Second aspect of the embodiment of the present invention provides a kind of searcher, including:
Searching modul, for obtaining search key, searched and the search key from the internal memory stack of the terminal
The search result of matching;
Transmission and receiving module, for not finding the search result matched with the search key from the stack
When, send searching request to database;And receive the search result matched with the search key of the Database Feedback;
Pop down module, for the search result pressure matched by the search key and with the search key
Enter the internal memory stack.
The third aspect of the embodiment of the present invention provides a kind of terminal, including memory, processor and is stored in the storage
Realized in device and the computer program that can run on the processor, described in the computing device during computer program above-mentioned
The step of method.
Fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable recording medium
Computer program is stored with, the step of computer program realizes the above method when being executed by processor.
In the embodiment of the present invention, by searching the search result matched with the search key from the internal memory stack,
When allowing to carry out information search, without repeatedly sending searching request to database, and obtain from the database and searched with described
The search result of rope keyword match, the time of search is saved, improves search efficiency.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
The required accompanying drawing used is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore
The restriction to scope is not construed as, for those of ordinary skill in the art, is not paying the premise of creative work
Under, other related accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of implementation process figure of searching method provided in an embodiment of the present invention;
Fig. 2 is searching method S101 provided in an embodiment of the present invention specific implementation flow chart;
Fig. 3 a to Fig. 3 c are the first structure schematic diagrames of internal memory stack provided in an embodiment of the present invention;
Fig. 4 a to Fig. 4 c are the second structural representations of internal memory stack provided in an embodiment of the present invention;
Fig. 5 is the structural representation of searcher provided in an embodiment of the present invention;
Fig. 6 is the structural representation of terminal provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.Based on embodiments of the invention, those skilled in the art are not making the premise of creative work
Lower obtained every other embodiment, belongs to the scope of protection of the invention.
In some embodiments of the present invention, according to the search key of the user's input listened to, first from the internal memory stack
It is middle to obtain the search result matched with the search key so that when carrying out information search, without repeatedly being sent to database
Searching request, the time of search is saved, improves search efficiency.
Fig. 1 shows a kind of implementation process figure of searching method provided in an embodiment of the present invention, and methods described is applied to eventually
End, including step S101 to step S103.
In S101, search key is obtained, searches from the internal memory stack of the terminal and is matched with the search key
Search result.
Wherein, the internal memory stack refers to be stored in random access memory (random access memory, RAM)
Data can be pressed into internal memory stack by Dram region, application program, can also delete data from stack top;Stack belongs to can be
The Special Linear table of press-in and deletion action is carried out with one end.Allow to carry out press-in and one end of deletion action is referred to as stack top
(top), the other end is stack bottom (bottom);Stack bottom is fixed, and stack top is floated;It is referred to as empty stack when element number is zero in stack.Pressure
Enter commonly referred to as push on, stacking or pop down (PUSH), deletion is then referred to as popping or popping off (POP).Stack is also referred to as last-in first-out list.
To a stack press-in new element refer to new element to be put into above stack top element, make new stack top member
Element;Also referred to as pop or pop off from a stack deletion element, it is that stack top element is deleted, and its adjacent element is turned into new
Stack top element.
In some embodiments of the present invention, when carrying out information search, first have to create an internal memory stack, the internal memory stack is used
In storage search key and the search result matched with the search key.
Alternatively, the search key includes what is inputted in the search input frame or search unit of user on a web browser
For searching for the search key of information, or being used for of being inputted in search unit on other application software searches for information
Search key, for example, the search inputted in search unit in the application software such as music player or E-book reader
Keyword.
In some embodiments of the present invention, the search key inputted is listened in the search input frame or search unit
When, just according to the search key of the input, the search result matched with the search key is searched from internal memory stack.
In some embodiments of the present invention, as shown in Fig. 2 being searched and the search in the internal memory stack from the terminal
The search result of keyword match includes step S201 to step S205.
In S201, the stack top keyword in the internal memory stack is obtained.
For example, as Fig. 3 a show the structural representation of stack, the stack top keyword in the internal memory stack is " picture ", described
Search result corresponding to stack top keyword " picture " is " search result 1 ".
In S202, judge the stack top keyword whether be the search key subset.
In some embodiments of the present invention, it is described judge the stack top keyword whether be the search key subset
Including:If n-th of character to m-th of character of the character of the stack top keyword and the search key corresponds,
It is the subset of the search key to judge the stack top keyword;Otherwise, it is determined that the stack top keyword is not the search
The subset of keyword;Wherein, m is more than n, and the character number of the stack top keyword is m-n+1.
For example, the stack top keyword is " picture ", when the search key is " animal picture ", due to the stack top
Keyword is that the 3rd character to the 4th character of " picture " and the search key " animal picture " corresponds, therefore,
It can be determined that, the stack top keyword " picture " is the subset of the search key " animal picture ", similar to mathematical meaning
The concept of upper set.
In another example the stack top keyword is " A ", the search key is " ABC ", due to the stack top keyword
The character of " A " is corresponding to the 1st character with the 1st character of the search key " ABC ", therefore, it is possible to determine that, the stack
Top keyword " A " is the search key " ABC " subset;And for example, if the stack top keyword is " AB ", the search is closed
Key word is " A ", because the character of the stack top keyword " AB " can not correspond with the character of the search key " A ",
Then the stack top keyword " AB " is not the subset of the search key.
In S203, if the stack top keyword is the subset of the search key, from the stack top keyword
The search result matched with the search key is searched in the search result of matching.
For example, when the search key inputted when user searches for for the first time is " picture ", by the search key
" picture " and search result " the press-in internal memory stack of search result 1 ", and formation such as Fig. 3 a with the search key " picture "
Described internal memory stack.When user inputs character " animal " again on the basis of former search key " picture ", then it represents that user
The search key of second of input is " animal picture " in search input frame or search unit, now, because stack top is crucial
Word " picture " is the subset of search key " animal picture " so that the search key of user's input at second " scheme by animal
The search result of piece " is included in the search result for the search key " picture " that user inputs for the first time.It is that is, described
The search result of search key " animal picture " can be from the search result " search matched with the stack top keyword " picture "
As a result 1 " middle search, obtains the search result " search result 2 " matched with the search key " animal picture ";And perform step
Rapid S103, by the search key " animal picture " and the search result matched with the search key " animal picture "
" search result 2 " is pressed into internal memory stack, forms internal memory stack as shown in Figure 3 b.
It should be noted that due to user inputs character " animal ", the search key is changed into " animal picture ", i.e.,
The stack top keyword turn into the search key subset so that mobile terminal can from the stack top keyword match
Search result in search for the search result that is matched with the search key, that is to say, that can be looked into from the internal memory stack
The search result matched with the search key is looked for, without sending searching request to database, to obtain and the search
The search result of keyword match, the time of information search is saved, improved the efficiency of search.
In S204, if the stack top keyword is not the subset of the search key, it is crucial to delete the stack top
Word and the search result with the stack top keyword match, search in the internal memory stack after the stack top keyword is deleted with
The search result of the search key matching.
For example, on the basis of described above, if after user inputs " animal picture ", " animal " is deleted, and input and " plant
Thing " so that the search key of user's third time input is " plant picture ", and now, " animal is schemed due to stack top keyword
Piece " is not the subset of the search key " plant picture ".Therefore, it is necessary to delete the stack top keyword and with the stack
The search result of keyword match is pushed up, then lookup and the search are crucial from the internal memory stack after the deletion stack top keyword
The search result of word matching.Such as, delete the stack top keyword " animal picture " and " animal is schemed with the stack top keyword
Search result " the search result 2 " so that the stack for deleting the stack top keyword is changed into internal memory as shown in Figure 3 a of piece " matching
Stack;Again the search result matched with the search key is searched in the internal memory stack after the stack top keyword is deleted.
In internal memory stack due to deleting the stack top keyword, new stack top keyword is " picture ", and the stack top is crucial
Word " picture " is the subset of the search key " plant picture ", therefore, can be after the stack top keyword is deleted
Search result " the search result 3 ", then perform step matched with the search key " plant picture " is searched in internal memory stack
S103, by the search key " plant picture " and the search result matched with the search key " plant picture "
" search result 3 " is pressed into internal memory stack, forms internal memory stack as shown in Figure 3 c.
It should be noted that after if user inputs " animal picture ", " animal " is deleted, and without the defeated of other characters
It is fashionable, then it represents that user has only done the operation of the character in the deletion search key so that user's third time inputs
The search key be " picture ", now, due to stack top keyword " animal picture " be not the search key " figure
The subset of piece ".Similarly, it is still desirable to first delete the stack top keyword " animal picture " and with the stack top keyword
Search result " the search result 2 " so that the internal memory stack for deleting the stack top keyword is changed into such as Fig. 3 a of " animal picture " matching
Shown internal memory stack;Search in the internal memory stack after the stack top keyword is deleted and searched with what the search key matched again
Hitch fruit.
Due to deleting in the internal memory stack after the stack top keyword, new stack top keyword is " picture ", the stack top
Keyword " picture " is identical with the search key " picture ", now, is searched and the stack top directly from the internal memory stack
Keyword " picture " matching search result " search result 1 ", and carry out described in " display of search result 1 ", without
Push operation in step S103.
As shown in Fig. 2 in step S204, lookup and institute in the internal memory stack after the stack top keyword is deleted
Stating the search result of search key matching includes:Judge whether the internal memory stack after the deletion stack top keyword is empty stack,
If so, then perform step S205;If it is not, then jump to step S101.
In S205, if saving as empty stack in stack after deleting the stack top keyword, send from the internal memory stack
The feedback message of the search result matched with the search key is not found.
For example, for the first time input search key be " A ", obtain search result for " search result A ", and will search pass
Key word " A " and search result " search result A " press-in internal memory stacks, the formation such as Fig. 4 a matched with the search key " A "
The structural representation of described internal memory stack;Second of input character " B " on the basis of character " A " so that second of input
Search key is changed into " AB ", now, due to stack top keyword " A " be search key " AB " subset, therefore, can from
Search result " the search knot that search matches with the search key " AB " in search result A " of the stack top keyword match
Fruit " search result AB ", and by the search key " AB " and the search result matched with the search key " AB "
" search result AB " is pressed into internal memory stack, forms the structural representation of internal memory stack as shown in Figure 4 b.
When deleting the character " A " in keyword " AB ", and inputting character " C ", the search for forming third time input is crucial
Word " BC ", now stack top keyword " AB " is not the search key " BC " subset, therefore is closed, it is necessary to delete the stack top
Key word " AB " and search result " the search result AB " with the stack top keyword match.Now, judge to delete the stack top
Keyword " AB " and " whether the internal memory stack after search result AB " is empty stack with the search result of the stack top keyword match.
Search result " search result due to the deletion stack top keyword " AB " and with the stack top keyword match
Internal memory stack after AB " is internal memory stack as shown in fig. 4 a, is not empty stack.Therefore, step S101 is jumped to, obtains the stack in stack
Push up keyword;Rejudge the stack top keyword whether be the search key subset.Because now the stack top is closed
Key word " A " is not search key " BC " subset, perform step S204, delete the stack top keyword and with the stack top
The search result of keyword match, i.e. delete the stack top keyword " A ", and searched with what the stack top keyword " A " matched
Hitch fruit " search result A ";Whether the internal memory stack for judging to delete again after the stack top keyword is empty stack;Due to now deleting
Internal memory stack after the stack top keyword is empty stack as illustrated in fig. 4 c, therefore, sends and is not found from the internal memory stack
The feedback message of the search result matched with the search key.
In some embodiments of the present invention, methods described also includes the search key for monitoring input, if the search of input
Keyword is sky, then empties the internal memory stack.
For example, as shown in Figure 4 b, the search key is stored with the internal memory stack as " A " and has been searched with described
The search result of rope keyword " A " matching " search result A ", also stored for search key and be closed for " AB " and with the search
Search result " the search result AB " of key word " AB " matching.If now user performs and empties the search key, i.e. cancel (CANCL)
Accord with " A " and character " B " so that the search key inputted on the search input frame or search unit is sky, then, accordingly
, perform the step of emptying the internal memory stack;, can be directly in the internal memory stack during so that user re-entering search key
In the case of for empty stack, searching request is sent to database, is searched so as to save from the internal memory stack and the search key
The time of the search result of word matching, improve search efficiency.
And for example, when user deletes character " A " with character " B ", search key " C " is re-entered, because the search is closed
Key word " C " is new search key, is not present in the internal memory stack established and is searched with what the search key " C " matched
Hitch fruit, therefore, the embodiment of the present invention are space-time in the search key of input, clearly by monitoring the search key inputted
The empty internal memory stack, to improve the efficiency of the search result that lookup matches with the search key from the internal memory stack.
It should be noted that because when user inputs search key " A " for the first time, the stack is empty stack, therefore, equally
, it is necessary to send the feedback message for not finding the search result matched with the search key from the internal memory stack.Make
Obtain and receiving the feedback message for not finding the search result matched with the search key from the internal memory stack
When, step S102 can be performed.
In S102, if not inquiring the search result matched with the search key from the internal memory stack, to
Database sends searching request;And receive the search result matched with the search key of the Database Feedback.
In some embodiments of the present invention, the database includes local data base and remote data storehouse, the local number
The data for referring to store in the memory of this terminal according to storehouse, or the server database in local area network, the distal end number
Refer to the database in cloud server according to storehouse, wherein the remote data storehouse can include the data in search server again
Storehouse, the database in video push server, download the database in push server, the data in news push server
Storehouse, the database in novel push server and the database in commodity push server.
In some embodiments of the present invention, first according to the search key of user's input, searched from the internal memory stack
The search result matched with the search key;If do not find what is matched with the search key from the internal memory stack
Search result, then send searching request to database described above;So as to according to the search key from the database
It is middle to search for the search result matched with the search key;It is receiving the Database Feedback again with the search key
The search result matched somebody with somebody, and perform step S103.
In S103, the search key and the search result matched with the search key are pressed into institute
State internal memory stack;During so as to subset that the search key that inputs is the stack top keyword in the internal memory stack next time, Ke Yicong
The search result matched with the search key is searched in the internal memory stack;Improve search efficiency.
In some embodiments of the present invention, matched described by the search key and with the search key
Search result is pressed into after the internal memory stack, in addition to the search result that display matches with the search key.
Wherein, it is described to show that the search result matched with the search key includes display and searched from the internal memory stack
The search result matched with the search key;And show being matched with the search key for the Database Feedback
Search result.User is allowd to check the search knot matched with the search key after the search key is inputted
Fruit.
As shown in figure 5, the embodiment of the present invention provides a kind of searcher 500, including:
Searching modul 501, for obtaining search key, searched from the internal memory stack of the terminal crucial with the search
The search result of word matching;
Transmission and receiving module 502, for not finding the search knot matched with the search key from the stack
During fruit, searching request is sent to database;And receive the search knot matched with the search key of the Database Feedback
Fruit;
Pop down module 503, for by the search key and the search result pressure matched with the search key
Enter the internal memory stack.
It should be noted that for convenience and simplicity of description, the specific work process of the searcher 500 of foregoing description,
The corresponding process of Fig. 1 and Fig. 2 methods describeds is may be referred to, is no longer excessively repeated herein.
Fig. 6 is the schematic diagram of terminal provided in an embodiment of the present invention.As shown in fig. 6, the terminal of the embodiment can include:
Processor 601, memory 602, input equipment 603 and output equipment 604, the processor 601, memory 602, input equipment
603 and output equipment 604 connected by bus 605.The input equipment 603 can include keyboard, Trackpad, fingerprint and adopt sensing
Device, microphone etc., output equipment 604 can include display, loudspeaker etc..
The terminal also includes being stored in the computer that can be run in the memory 602 and on the processor 601
Program, such as search utility.The processor 601 realizes above-mentioned each searching method embodiment when performing the computer program
In step, such as step 101 shown in Fig. 1 is to 103, and the step 201 shown in Fig. 2 is to 205.Or the processor
The function of each module/unit in above-mentioned each device embodiment, such as mould shown in Fig. 5 are realized during the 601 execution computer program
The function of block 501 to 503.
Exemplary, the computer program can be divided into one or more module/units, one or more
Individual module/unit is stored in the memory 602, and is performed by the processor 601, to complete the present invention.Described one
Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used for
Implementation procedure of the computer program in the terminal is described.For example, the computer program can be divided into instruction
Searching modul, transmission and receiving module, pop down module, display module, each module concrete function are as follows:Searching modul, for obtaining
Search key is taken, the search result matched with the search key is searched from the internal memory stack of the terminal;Send and connect
Module being received, during for not finding search result match with the search key from the stack, being searched to database transmission
Rope is asked;And receive the search result matched with the search key of the Database Feedback;Pop down module, for by institute
State search key and the search result matched with the search key is pressed into the internal memory stack.
The terminal can be the mobile terminals such as smart mobile phone, or desktop PC, notebook, palm PC and
The computing devices such as cloud server.The terminal may include, but be not limited only to, processor 601, memory 602.Art technology
Personnel are appreciated that Fig. 6 is only the restriction of the example of terminal, not structure paired terminal, can include more more or more than illustrating
Few part, either combines some parts or different parts, for example, the terminal can also include input-output equipment,
Network access equipment, bus etc..
Alleged processor 601 can be CPU (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 602 can be the internal storage unit of the terminal, such as the hard disk or internal memory of terminal.It is described to deposit
Reservoir 602 can also be the plug-in type hard disk being equipped with the External memory equipment of the terminal, such as the terminal, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
Further, the memory 602 can also both include the internal storage unit of the terminal or including External memory equipment.Institute
Memory 602 is stated to be used to store the computer program and other programs and data needed for the terminal.The memory
602 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system
The specific work process of middle unit, module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment
The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal and method, can pass through
Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or
In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, described meter
Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium
It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, the magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only storage (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine computer-readable recording medium includes can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice,
Such as in some jurisdictions, electric carrier signal and telecommunications are not included according to legislation and patent practice, computer-readable medium
Signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should
Within protection scope of the present invention.
Claims (11)
- A kind of 1. searching method, applied to terminal, it is characterised in that including:Search key is obtained, the search result matched with the search key is searched from the internal memory stack of the terminal;If not finding the search result matched with the search key from the internal memory stack, send and search for database Request;And receive the search result matched with the search key of the Database Feedback;The search key and the search result matched with the search key are pressed into the internal memory stack.
- 2. the method as described in claim 1, it is characterised in that in the acquisition search key, from the internal memory of the terminal Before the search result matched with the search key is searched in stack, in addition to:Internal memory stack is created in the internal memory of the terminal, the internal memory stack is used to store search key and closed with the search The search result of key word matching.
- 3. the method as described in claim 1, it is characterised in that search in the stack from internal memory and matched with the search key Search result, including:Obtain the stack top keyword in the internal memory stack;Judge the stack top keyword whether be the search key subset;If the stack top keyword is the subset of the search key, from the search result with the stack top keyword match It is middle to search for the search result matched with the search key.
- 4. method as claimed in claim 3, it is characterised in that described to judge whether the stack top keyword is that the search is closed After the subset of key word, in addition to:If the stack top keyword is not the subset of the search key, delete the stack top keyword and with the stack The search result of keyword match is pushed up, is searched and the search key in the internal memory stack after the stack top keyword is deleted The search result of matching.
- 5. the method as described in claim 3 or 4, it is characterised in that described to judge whether the stack top keyword is described search The subset of rope keyword, including:If n-th of character to m-th of character of the character of the stack top keyword and the search key corresponds, sentence The fixed stack top keyword is the subset of the search key;Closed otherwise, it is determined that the stack top keyword is not the search The subset of key word;Wherein, m is more than n, and the character number of the stack top keyword is m-n+1.
- 6. method as claimed in claim 3, it is characterised in that in the internal memory stack after the stack top keyword is deleted The search result matched with the search key is searched, including:Judge whether the internal memory stack after the deletion stack top keyword is empty stack, if so, then sending from the internal memory stack not Find the feedback message of the search result matched with the search key;If it is not, then delete the stack top key from described The search result matched with the search key is searched in internal memory stack after word.
- 7. the method as described in claim 1, it is characterised in that it is described by the search key and with it is described search close The search result of key word matching is pressed into after the internal memory stack, in addition to:Show the search knot matched with the search key Fruit.
- 8. the method as described in Claims 1 to 4 or 6~7 any one, it is characterised in that also include:The search key of input is monitored, if the search key of the input is sky, empties the internal memory stack.
- A kind of 9. searcher, it is characterised in that terminal is configured at, including:Searching modul, for obtaining search key, search from the internal memory stack of the terminal and matched with the search key Search result;Send and receiving module, during for not finding the search result matched with the search key from the stack, to Database sends searching request;And receive the search result matched with the search key of the Database Feedback;Pop down module, for the search key and the search result matched with the search key press-in is described interior Deposit stack.
- 10. a kind of terminal, including memory, processor and it is stored in the memory and can runs on the processor Computer program, it is characterised in that realized described in the computing device during computer program as any in claim 1-8 The step of one methods described.
- 11. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor in realization such as claim 1-8 the step of any one methods described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710838305.3A CN107590248B (en) | 2017-09-14 | 2017-09-14 | Search method, search device, search terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710838305.3A CN107590248B (en) | 2017-09-14 | 2017-09-14 | Search method, search device, search terminal and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107590248A true CN107590248A (en) | 2018-01-16 |
CN107590248B CN107590248B (en) | 2020-02-14 |
Family
ID=61047080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710838305.3A Active CN107590248B (en) | 2017-09-14 | 2017-09-14 | Search method, search device, search terminal and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107590248B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271578A (en) * | 2018-10-26 | 2019-01-25 | 努比亚技术有限公司 | Application program searching method, mobile terminal and computer storage medium |
CN109739887A (en) * | 2018-12-21 | 2019-05-10 | 平安科技(深圳)有限公司 | Synchronous task searching method, system, device and readable storage medium storing program for executing |
CN109857760A (en) * | 2018-12-22 | 2019-06-07 | 中国平安人寿保险股份有限公司 | Quick response search method and device, computer installation and storage medium |
CN110209932A (en) * | 2019-05-17 | 2019-09-06 | 上海新储集成电路有限公司 | A method of improving search efficiency |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103336849A (en) * | 2013-07-24 | 2013-10-02 | 昆明理工大学 | Method and device for increasing retrieval speed in database retrieval system |
CN107133300A (en) * | 2017-04-27 | 2017-09-05 | 福建中金在线信息科技有限公司 | A kind of data query method and device |
-
2017
- 2017-09-14 CN CN201710838305.3A patent/CN107590248B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103336849A (en) * | 2013-07-24 | 2013-10-02 | 昆明理工大学 | Method and device for increasing retrieval speed in database retrieval system |
CN107133300A (en) * | 2017-04-27 | 2017-09-05 | 福建中金在线信息科技有限公司 | A kind of data query method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271578A (en) * | 2018-10-26 | 2019-01-25 | 努比亚技术有限公司 | Application program searching method, mobile terminal and computer storage medium |
CN109739887A (en) * | 2018-12-21 | 2019-05-10 | 平安科技(深圳)有限公司 | Synchronous task searching method, system, device and readable storage medium storing program for executing |
CN109857760A (en) * | 2018-12-22 | 2019-06-07 | 中国平安人寿保险股份有限公司 | Quick response search method and device, computer installation and storage medium |
CN110209932A (en) * | 2019-05-17 | 2019-09-06 | 上海新储集成电路有限公司 | A method of improving search efficiency |
Also Published As
Publication number | Publication date |
---|---|
CN107590248B (en) | 2020-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110019080B (en) | Data access method and device | |
CN107590248A (en) | Searching method, device, terminal and computer-readable recording medium | |
CN105988996B (en) | Index file generation method and device | |
CN107967135A (en) | Computing engines implementation method, electronic device and storage medium | |
CN107590291A (en) | A kind of searching method of picture, terminal device and storage medium | |
CN109992766A (en) | The method and apparatus for extracting target word | |
CN107679208A (en) | A kind of searching method of picture, terminal device and storage medium | |
CN110019263A (en) | Information storage means and device | |
CN110019648B (en) | Method and device for training data and storage medium | |
CN107506494A (en) | Document handling method, mobile terminal and computer-readable recording medium | |
CN112308590A (en) | Parameter processing method and device, computing equipment and storage medium | |
CN107729523A (en) | Data service method, electronic installation and storage medium | |
US20190196794A1 (en) | Visual programming method, system and terminal device | |
CN110851343A (en) | Test method and device based on decision tree | |
CN101374307B (en) | Method and apparatus for updating digital content information of mobile equipment | |
JP2022530725A (en) | Information push methods, devices, equipment and storage media | |
CN115934076B (en) | Cross-platform client micro-service providing device and method and electronic equipment | |
CN111259013A (en) | Method and device for storing data | |
CN107256244B (en) | Data processing method and system | |
CN113393288B (en) | Order processing information generation method, device, equipment and computer readable medium | |
CN115292436A (en) | Carbon emission information generation method, apparatus, electronic device, medium, and program product | |
WO2019140567A1 (en) | Big data analysis method and system | |
CN113051900A (en) | Synonym recognition method and device, computer equipment and storage medium | |
CN112988778A (en) | Method and device for processing database query script | |
CN113434508B (en) | Method and apparatus for storing information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |