CN105872170B - Method and apparatus for searching for contact person - Google Patents

Method and apparatus for searching for contact person Download PDF

Info

Publication number
CN105872170B
CN105872170B CN201610183306.4A CN201610183306A CN105872170B CN 105872170 B CN105872170 B CN 105872170B CN 201610183306 A CN201610183306 A CN 201610183306A CN 105872170 B CN105872170 B CN 105872170B
Authority
CN
China
Prior art keywords
search
contact person
data
type
consuming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610183306.4A
Other languages
Chinese (zh)
Other versions
CN105872170A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610183306.4A priority Critical patent/CN105872170B/en
Publication of CN105872170A publication Critical patent/CN105872170A/en
Application granted granted Critical
Publication of CN105872170B publication Critical patent/CN105872170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27467Methods of retrieving data
    • H04M1/2748Methods of retrieving data by matching character strings

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure is directed to a kind of method and apparatus for searching for contact person, are applied to terminal.The described method includes: monitoring whether the terminal triggers search contact person;Listen to triggered search contact person in the case where, obtain described search contact person time-consuming;Judge whether the time-consuming meets predetermined condition;In the case where determining that the time-consuming is unsatisfactory for the predetermined condition, the current search scope for being used for described search contact person is obtained;The current search scope is adjusted according to pre-defined rule.The method and apparatus that the disclosure provides, in the case that search contact person is slack-off in the terminal, choose the partial data in contact data, carry out later search only in selected partial data, therefore, the data volume in current search scope is reduced, the search speed of contact person is accelerated, enhances user experience.

Description

Method and apparatus for searching for contact person
Technical field
This disclosure relates to computer search field more particularly to a kind of method and apparatus for searching for contact person.
Background technique
Searching for contact person is a kind of user terminal commonly local search function.As terminal memory is increasing, intelligence Change higher and higher, number of contacts and its type are more and more.For example, the type of the contact data of some terminals may include Name, fixed telephone number, phone number, QQ number code, fax number, company, position, address, mailbox, pet name etc., and still Have the tendency that increasing.Since contact data amount is increasing, the time-consuming for searching for contact person will may increasingly be grown, and also just be led Cause search contact person slack-off.
Summary of the invention
To overcome the problems in correlation technique, the disclosure, which provides, can reduce the time-consuming one kind of search for searching for connection It is the method and apparatus of people.
According to the first aspect of the embodiments of the present disclosure, a kind of method for searching for contact person is provided, terminal, institute are applied to The method of stating includes: to monitor whether the terminal triggers search contact person;Listen to triggered search contact person in the case where, obtain Take the time-consuming of described search contact person;Judge whether the time-consuming meets predetermined condition;Determining that it is described that the time-consuming is unsatisfactory for In the case where predetermined condition, the current search scope for being used for described search contact person is obtained;According to pre-defined rule adjust described in work as Preceding search range.
Optionally, the predetermined condition includes any one in following or more persons: described time-consuming less than scheduled duration Threshold value;The difference of described time-consuming and search contact person history time-consuming is less than scheduled time difference threshold value.
Optionally, described the step of adjusting the current search scope according to pre-defined rule includes: to judge described currently to search It whether there is invalid data in rope range, the invalid data includes any one or more persons in following: duplicate contact person Data, contact person single information redundancy and invalid index data;Exist in determining the current search scope described In the case where invalid data, the invalid data is deleted.
Optionally, described the step of adjusting the current search scope according to pre-defined rule includes: to obtain for searching for connection It is the historical keyword type of people;Will contact data relevant to the historical keyword type as the current search model It encloses.
Optionally, described the step of adjusting the current search scope according to pre-defined rule includes: judgement search key Whether match with scheduled word;It, will in the case where determining that described search keyword and the scheduled word match The contact data of type associated with the scheduled word is as the current search scope.
Optionally, described the step of adjusting the current search scope according to pre-defined rule includes: judgement contact data Type in the presence or absence of the match-type that matches with search key;Determining there are in the case where the match-type, Using the contact data of the match-type as the current search scope.
Optionally, the match-type includes one or more of the following: the described search for including in its data is crucial Word is greater than the type of predetermined number;The ratio of the described search keyword for including in its data and the total number of its data is greater than pre- The type of fixed-ratio.
Optionally, it is described according to pre-defined rule adjust the current search scope the step of include: according to pre-defined rule, it is defeated Prompting message out;Receiving user response in the case where the instruction message that the prompting message is sent, work as described in adjustment Preceding search range.
According to the second aspect of an embodiment of the present disclosure, it provides a kind of for searching for the device of contact person, is applied to terminal, institute Stating device includes: monitoring module, for monitoring whether the terminal triggers search contact person;Time-consuming obtains module, in institute State monitor module listen to triggered search contact person in the case where, obtain described search contact person time-consuming;Judgment module is used Whether meet predetermined condition in the time-consuming for judging that the time-consuming acquisition module obtains;Range obtains module, in the judgement In the case that module determines that the time-consuming is unsatisfactory for the predetermined condition, the current search model for being used for described search contact person is obtained It encloses;Module is adjusted, obtains the current search scope that module obtains for adjusting the range according to pre-defined rule.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the case that search contact person is slack-off in the terminal, the current search scope for searching for contact person is adjusted, is chosen Partial data in contact data, the search after being allowed to only carries out in selected partial data, it therefore reduces currently Data volume in search range accelerates the search speed of contact person, enhances user experience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is shown according to an exemplary embodiment for searching for the flow chart of the method for contact person;
Fig. 2 is the flow chart of adjustment current search scope shown according to an exemplary embodiment;
Fig. 3 is the surface chart that prompt shown according to an exemplary embodiment has deleted invalid data;
Fig. 4 is the flow chart of the adjustment current search scope shown according to another exemplary embodiment;
Fig. 5 is the flow chart of the adjustment current search scope shown according to a further exemplary embodiment;
Fig. 6 is the flow chart of the adjustment current search scope shown according to a further exemplary embodiment;
Fig. 7 is the flow chart of the adjustment current search scope shown according to a further exemplary embodiment;
Fig. 8 a- Fig. 8 c is the surface chart of the output prompting message shown accoding to exemplary embodiment;
Fig. 9 is shown according to an exemplary embodiment for searching for the block diagram of the device of contact person;
Figure 10 is the block diagram of adjustment module shown according to an exemplary embodiment;
Figure 11 is the block diagram of the adjustment module shown according to another exemplary embodiment;
Figure 12 is the block diagram of the adjustment module shown according to a further exemplary embodiment;
Figure 13 is the block diagram of the adjustment module shown according to a further exemplary embodiment;
Figure 14 is the block diagram of the adjustment module shown according to a further exemplary embodiment;And
Figure 15 is shown according to an exemplary embodiment for searching for the block diagram of the device of contact person.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is shown according to an exemplary embodiment for searching for the flow chart of the method for contact person, and the method is used In terminal, as shown in Figure 1, the method may include following steps.
In step s 11, monitor whether the terminal triggers search contact person.
In step s 12, listen to triggered search contact person in the case where, obtain described search contact person consumption When.
In step s 13, judge whether the time-consuming meets predetermined condition.
In step S14, in the case where determining that the time-consuming is unsatisfactory for the predetermined condition, obtains and be used for described search The current search scope of contact person.
In step S15, the current search scope is adjusted according to pre-defined rule.
It is adjusted in the case that search contact person is slack-off in the terminal for searching for contact person's by above technical scheme Current search scope, choose contact data in partial data, after being allowed to search only in selected partial data into Row, it therefore reduces the data volume in current search scope, accelerates the search speed of contact person, enhance user experience.
Wherein, the contact person may include contact person in phone directory and social platform (for example, QQ, wechat, flying Letter, Alipay etc.) in contact person.Terminal monitoring clicks to enter contacts list to user, triggers when listening to terminal user Search key then confirms that terminal triggers contact person's search.The time-consuming for searching for contact person can be from search is initiated (for example, defeated " search " key is clicked after entry keyword) start, until showing the time spent by search result.Under normal conditions, contact person Data volume increases, and will lead to slowing for search contact person.
In step s 13, specific condition can be set, it is whether slack-off to measure search contact person, to decide whether to need Adjust current search scope.For example, predetermined condition may include any one or more persons in following: it is described it is time-consuming be less than it is pre- Fixed duration threshold value;The difference of described time-consuming and search contact person history time-consuming is less than scheduled time difference threshold value.Wherein, search connection It is the historical data that the history time-consuming of people may include the time-consuming of search contact person, for example, the time-consuming of preceding primary search contact person, Or the time-consuming average value of the last secondary search contact person of N (N is positive integer).
According to above-mentioned predetermined condition, time-consuming is more than scheduled duration threshold value (for example, 5 seconds), then it is assumed that search contact person becomes Slowly, it needs to adjust current search scope, alternatively, the difference of this search time-consuming and history time-consuming is greater than scheduled time difference threshold value (example Such as, 1 second), then it is assumed that search contact person is slack-off, needs to adjust current search scope, alternatively, the two meets simultaneously, just thinks to search Rope contact person is slack-off, needs to adjust current search scope, using last time search range adjusted in search later.
Usually when searching for contact person, the range of search includes all data in contact data.In the disclosure In, current search scope can be the search range being adjusted.The adjustment can be unsatisfactory for determining the time-consuming every time It is carried out in the case where the predetermined condition according to pre-defined rule.It is described in detail below that current search scope is adjusted according to pre-defined rule The step of (step S15).
During user's using terminal, with gradually increasing for time is used, due to the contact person under various accounts It might have frequent increase and delete, on the one hand, be likely to result in Data duplication.For example, the connection that user creates before having forgotten It is people, and repeats to create a contact person.On the other hand, after user deletes some contact persons, associated data are still also ?.For example, contact person delete after index data accumulation.It is also possible to have the feelings of the redundancy of the single information of some contact person Condition.Above situation belongs in contact data that there are some invalid datas.If there are invalid numbers in current search scope According in an embodiment of the disclosure, the adjustment current search scope in step S15 may include deleting these invalid datas It removes.
Fig. 2 is the flow chart of adjustment current search scope shown according to an exemplary embodiment.As shown in Fig. 2, according to The step of pre-defined rule adjustment current search scope (step S15), may comprise steps of.
In step S151, judge in current search scope with the presence or absence of invalid data.The invalid data may include Any one in below or more persons: duplicate contact data, the single information redundancy of contact person and invalid index number According to.
In step S152, there are in the case where invalid data in determining current search scope, invalid data is deleted.
Specifically, in user's operation, terminal can be when detecting that search contact person is slack-off, automatically retrieval current search Invalid data in range, and be deleted, to accelerate search speed.At the same time it can also be popped up in interface after deletion Prompting frame prompts automatically to delete invalid data since search speed is slack-off.Fig. 3 is shown according to an exemplary embodiment Prompt by invalid data delete surface chart.Through the foregoing embodiment, invalid data is deleted, can not only accelerates to search for Speed has also vacateed the memory of unnecessary occupancy.
Although the contact data being arranged in terminal type (for example, name, telephone number, QQ number code, company, position, Address, mailbox etc.) it is more and more, but some users usually only get used to certain some type that retrieval is wherein fixed.For example, one A little users usually only scan for according to name.In view of above situation, in the another embodiment of the disclosure, when search joins When being that people is slack-off, in later search, can only it be scanned in the type that user is accustomed to search.
Fig. 4 is the flow chart of the adjustment current search scope shown according to another exemplary embodiment.As shown in figure 4, root The step of adjusting the current search scope according to pre-defined rule (step S15) may comprise steps of.
In step S153, the historical keyword type for searching for contact person is obtained.
Wherein, historical keyword type can be determined by the inclusion of type of the data of historical keyword belonging to it.Example Such as, keyword " Zhang Tao " is inputted when searching for contact person before user, search obtains multiple data comprising " Zhang Tao " (for example, " opening Jing Tao ", " Zhang Taoyu " etc.), and these data belong to the data in " name " type, then historical keyword type includes " surname Name " type.For another example, keyword " 158 " are inputted when searching for contact person before user, search is included the data (example of " 158 " Such as, " 15801265847 ", " 15802365452 " etc.), and these data belong to the data in " phone number " type, then go through History key word type includes " phone number " type.Habit according to user's search is different, and historical keyword type may include One or more types.Also, historical keyword type can determine that N is positive integer according to the search of the last n times of user. It is understood that N is bigger, the historical keyword type of acquisition is more accurate.
In step S154, will contact data relevant to historical keyword type as current search scope.
Wherein, historical keyword type may be considered the type that user is accustomed to search, it is, it is considered that user is logical Contact person is only often searched for by the keyword in historical keyword type.Under the circumstances, in the embodiment, afterwards Contact person search in, the other kinds of contact data except historical keyword type is ignored, it is, by currently searching Rope range is adjusted to not include the other kinds of contact data except historical keyword type, and only includes historical keyword The contact data of type.When search contact person next time, only scanned in the contact data of historical keyword type.Example Such as, if historical keyword type is " name " and " phone number ", when user later searches for contact person, only at " name " It is scanned in data in " phone number ", and other kinds of data are not put into search range.In the embodiment, root It is accustomed to according to the search of user, reduces the range of search, to targetedly be searched for, accelerate search speed.
In some cases, the search key of user's input is it is clear that belong to some type, for example, keyword " company " belongs to " company " (or " unit ") type, and keyword " engineer " belongs to " position " type, the keyword of digital form Belong to " telephone number " (or " fax number ", " postcode ") type.In the case, it is scanned in the data of respective type Good search effect can be reached.
Fig. 5 is the flow chart of the adjustment current search scope shown according to a further exemplary embodiment.As shown in figure 5, root The step of adjusting the current search scope according to pre-defined rule (step S15) may comprise steps of.
In step S155, judge whether search key matches with scheduled word.
It, will be in the case where determining that described search keyword and the scheduled word match in step S156 The contact data of the associated type of scheduled word is as current search scope.
Wherein it is possible to preset word associated with a certain type, if the search key of user's input and this A little scheduled words match, then it is assumed that these keywords are likely present in the data of respective type.For example, with " company " The associated word of type may include " company ", " school ", " office ", " institute " etc., associated with " position " type Word may include " engineer ", " manager ", " secretary ", " lawyer ", " doctor " etc..It is for search key and predetermined word No matching, can whether identical or part according to the two be identical judges.It is, if the keyword of user's input is " engineer " then only searches in the data of " position " type, and ignores other kinds of data.In this way, being inputted according to user Search key itself specific meanings, reduce the range of search, to targetedly be searched for, accelerate search Speed.
Sometimes, the keyword of user's input is not known to most people, still, in the contact data of the user In contain the keyword more.For example, the Business Name of Business Name or client where user, these titles by compared with It mostly is written in " company " type in contact data.In response to this, if user search contact person is slack-off, later Search in, when search key occurs more in a certain categorical data, can only be searched in the data of the type.
Fig. 6 is the flow chart of the adjustment current search scope shown according to a further exemplary embodiment.As shown in fig. 6, root The step of adjusting the current search scope according to pre-defined rule (step S15) may comprise steps of.
In step S157, judge in the type of contact data with the presence or absence of the matching class to match with search key Type.
Wherein, a certain type and search key match it is considered that in the data of the type, more occur The search key.Match-type may include one or more of following: the described search keyword for including in its data Greater than the type of predetermined number;The ratio of the described search keyword for including in its data and the total number of its data is greater than predetermined The type of ratio.For example, having in 20 datas in " company " type and " millet " occur, be more than predetermined number (for example, 5 Item), then determine that " company " type is matched with search key " millet ".Alternatively, total number has in the data of " company " type 100, has in 20 datas and " millet " occur, account for the 20% of total number, be more than estimated rate (for example, 10%), then sentenced Fixed " company " type is matched with search key " millet ".
In step S158, determining there are in the case where the match-type, by the connection number of the match-type According to as current search scope.
In this embodiment, when search contact person is slack-off, contact data can be counted, is obtained and each class The matched search key of type (certain types can also be without matched search key).When user inputs search key next time When word, first judge whether the search key has the type to match, if so, then only searching for connection in the type to match People, i.e., using the contact data of match-type as current search scope.For example, mobile phone is automatic when search contact person is slack-off Counting the search key to match with " company " type is " millet " and " Google ", when next user inputs " millet ", only It is searched in the data of " company " type.In this way, the range of search is accurately reduced, thus targetedly searched for, Accelerate search speed.
It can be seen from the above, whether search key matches with a certain type, in terminal in embodiment shown in fig. 6 The contact data stored is related.And in embodiment shown in fig. 5, whether search key is associated with a certain type and whole The contact data stored in end is unrelated.Therefore, the difference of Fig. 5 and embodiment shown in fig. 6 are, in Fig. 5 embodiment, no It needs to count local contact data, need to only make a reservation for some words.And in Fig. 6 embodiment, it needs in advance to local Contact data counted, obtain the search key to match from the stored data of user.
In the embodiment above, it can judge whether time-consuming meets predetermined condition after search contact person completes every time, In ungratified situation, adjust automatically current search scope, for later search.It notice can also be used in each adjustment Family, or adjusted again after obtaining user and agreeing to.Fig. 7 is the adjustment current search shown according to a further exemplary embodiment The flow chart of range.As shown in fig. 7, the step of adjusting the current search scope according to pre-defined rule (step S15) can wrap Include following steps.
In step S159, prompting message is exported according to pre-defined rule.
In step S160, receiving user response in the case where the instruction message that prompting message is sent, adjust Current search scope.
Wherein, prompting message is for prompting user to adjust current search scope.Output prompting message for example can be interface The dialog box of middle pop-up, user can send instruction message by the dialog box, to interact.Fig. 8 a- Fig. 8 c is that basis is shown Example property implements the surface chart of the output prompting message exemplified.It, can bullet when determining that search contact person is unsatisfactory for predetermined condition One or more of dialog boxes out, are dealed on the merits of each case by user.
It is adjusted in the case that search contact person is slack-off in the terminal for searching for contact person's by above technical scheme Current search scope, choose contact data in partial data, after being allowed to search only in selected partial data into Row, it therefore reduces the data volume in current search scope, accelerates the search speed of contact person, enhance user experience.
The disclosure also provides a kind of for searching for the device of contact person.Fig. 9 is use shown according to an exemplary embodiment In the block diagram of the device of search contact person.Described device is applied to terminal, and referring to Fig. 9, the apparatus may include monitor module 11, time-consuming module 12, judgment module 13, the range of obtaining obtains module 14 and adjustment module 15.
The monitoring module 11 is for monitoring whether the terminal triggers search contact person.
The time-consuming module 12 that obtains is used to obtain in the case where the monitoring module listens to and triggered search contact person Take the time-consuming of described search contact person.
The judgment module 13 is used to judge whether the time-consuming time-consuming for obtaining the acquisition of module 12 to meet predetermined condition.
The range obtains module 14 and is used to determine that the time-consuming is unsatisfactory for the predetermined condition in the judgment module In the case of, obtain the current search scope for being used for described search contact person.
The adjustment module 15 is used to adjust described currently the searching that the range obtains the acquisition of module 14 according to pre-defined rule Rope range.
Optionally, the predetermined condition includes any one in following or more persons: described time-consuming less than scheduled duration Threshold value;The difference of described time-consuming and search contact person history time-consuming is less than scheduled time difference threshold value.
Figure 10 is the block diagram of adjustment module 15 shown according to an exemplary embodiment.Referring to Fig.1 0, the adjustment module 15 may include the first judging submodule 151 and deletion submodule 152.
First judging submodule 151 is described for judging with the presence or absence of invalid data in the current search scope Invalid data includes any one or more persons in following: duplicate contact data, contact person single information redundancy and Invalid index data.
The deletion submodule 152 is used to determine that there are institutes in the current search scope in the first judging submodule 151 In the case where stating invalid data, the invalid data is deleted.
Figure 11 is the block diagram of the adjustment module 15 shown according to another exemplary embodiment.Referring to Fig.1 1, the adjustment mould Block 15 may include acquisition submodule 153 and the first adjustment submodule 154.
The acquisition submodule 153 is used to obtain the historical keyword type for searching for contact person.
Described first ignores the historical keyword type phase of the submodule 154 for will obtain with acquisition submodule 153 The contact data of pass is as the current search scope.
Figure 12 is the block diagram of the adjustment module 15 shown according to a further exemplary embodiment.Referring to Fig.1 2, the adjustment mould Block 15 may include second judgment submodule 155 and second adjustment submodule 156.
The second judgment submodule 155 is for judging whether search key matches with scheduled word.
The second adjustment submodule 156 is used to determine described search keyword in second judgment submodule 155 and make a reservation for Word match in the case where, using the contact data of type associated with scheduled word as the current search model It encloses.
Figure 13 is the block diagram of the adjustment module 15 shown according to a further exemplary embodiment.Referring to Fig.1 3, the adjustment mould Block 15 may include the third judging submodule 157 and the third adjusting submodule 158.
The third judging submodule 157 is used to judge to whether there is and search key phase in the type of contact data Matched match-type.
The third adjusting submodule 158 is used to determine in third judging submodule 157 there are in the case where match-type, Using the contact data of match-type as the current search scope.
Optionally, the match-type includes one or more of the following: the described search for including in its data is crucial Word is greater than the type of predetermined number;The ratio of the described search keyword for including in its data and the total number of its data is greater than pre- The type of fixed-ratio.
Figure 14 is the block diagram of the adjustment module 15 shown according to a further exemplary embodiment.Referring to Fig.1 4, the adjustment mould Block 15 may include output sub-module 159 and the 4th adjusting submodule 160.
The output sub-module 159 is used to export prompting message according to pre-defined rule.
4th adjusting submodule 160 is used to disappear in the instruction that the prompting message is sent receiving user response In the case where breath, the current search scope is adjusted.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
It is adjusted in the case that search contact person is slack-off in the terminal for searching for contact person's by above technical scheme Current search scope, choose contact data in partial data, after being allowed to search only in selected partial data into Row, it therefore reduces the data volume in current search scope, accelerates the search speed of contact person, enhance user experience.
Figure 15 is shown according to an exemplary embodiment for searching for the block diagram of the device 1500 of contact person.For example, dress Setting 1500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 5, device 1500 may include following one or more components: processing component 1502, memory 1504, Electric power assembly 1506, multimedia component 1508, audio component 1510, the interface 1512 of input/output (I/O), sensor module 1514 and communication component 1516.
The integrated operation of the usual control device 1500 of processing component 1502, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1502 may include one or more processors 1520 to execute Instruction, it is above-mentioned for searching for all or part of the steps of the method for contact person to complete.In addition, processing component 1502 may include One or more modules, convenient for the interaction between processing component 1502 and other assemblies.For example, processing component 1502 may include Multi-media module, to facilitate the interaction between multimedia component 1508 and processing component 1502.
Memory 1504 is configured as storing various types of data to support the operation in device 1500.These data Example includes the instruction of any application or method for operating on device 1500, contact data, telephone book data, Message, picture, video etc..Memory 1504 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1506 provides electric power for the various assemblies of device 1500.Electric power assembly 1506 may include power management System, one or more power supplys and other with for device 1500 generate, manage, and distribute the associated component of electric power.
Multimedia component 1508 includes the screen of one output interface of offer between described device 1500 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1508 includes a front camera and/or rear camera.When device 1500 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1510 is configured as output and/or input audio signal.For example, audio component 1510 includes a wheat Gram wind (MIC), when device 1500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1504 or via communication Component 1516 is sent.In some embodiments, audio component 1510 further includes a loudspeaker, is used for output audio signal.
I/O interface 1512 provides interface, above-mentioned peripheral interface module between processing component 1502 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1514 includes one or more sensors, and the state for providing various aspects for device 1500 is commented Estimate.For example, sensor module 1514 can detecte the state that opens/closes of device 1500, the relative positioning of component, such as institute The display and keypad that component is device 1500 are stated, sensor module 1514 can be with detection device 1500 or device 1,500 1 The position change of a component, the existence or non-existence that user contacts with device 1500,1500 orientation of device or acceleration/deceleration and dress Set 1500 temperature change.Sensor module 1514 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1514 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1516 is configured to facilitate the communication of wired or wireless way between device 1500 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1500,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1516 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1516 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1500 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, above-mentioned for searching for contact person for executing Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1504 of instruction, above-metioned instruction can be executed above-mentioned for searching for complete by the processor 1520 of device 1500 The method of contact person.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosure Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (13)

1. a kind of method for searching for contact person is applied to terminal, which is characterized in that the described method includes:
Monitor whether the terminal triggers search contact person;
Listen to triggered search contact person in the case where, obtain described search contact person time-consuming;
Judge whether the time-consuming meets predetermined condition;
In the case where determining that the time-consuming is unsatisfactory for the predetermined condition, the current search for being used for described search contact person is obtained Range;
The current search scope is adjusted according to pre-defined rule, comprising: judges to whether there is in the type of contact data and search The match-type that rope keyword matches;Determining there are in the case where the match-type, by the connection of the match-type Personal data is as the current search scope;
Wherein, the predetermined condition includes any one in following or more persons:
It is described time-consuming less than scheduled duration threshold value;
The difference of described time-consuming and search contact person history time-consuming is less than scheduled time difference threshold value.
2. the method according to claim 1, wherein described adjust the current search scope according to pre-defined rule The step of further include:
Judge in the current search scope with the presence or absence of invalid data, the invalid data include in following any one or More persons: duplicate contact data and invalid index data;
There are in the case where the invalid data in determining the current search scope, the invalid data is deleted.
3. the method according to claim 1, wherein described adjust the current search scope according to pre-defined rule The step of further include:
Obtain the historical keyword type for searching for contact person;
Will contact data relevant to the historical keyword type as the current search scope.
4. the method according to claim 1, wherein described adjust the current search scope according to pre-defined rule The step of further include:
Judge whether search key matches with scheduled word;
It, will be related to the scheduled word in the case where determining that described search keyword and the scheduled word match The contact data of the type of connection is as the current search scope.
5. the method according to claim 1, wherein the match-type includes one or more of the following:
The described search keyword for including in its data is greater than the type of predetermined number;
The ratio of the described search keyword for including in its data and the total number of its data is greater than the type of estimated rate.
6. the method according to claim 1, wherein described adjust the current search scope according to pre-defined rule The step of further include:
Prompting message is exported according to pre-defined rule;
Receiving user response in the case where the instruction message that the prompting message is sent, the current search model is adjusted It encloses.
7. a kind of for searching for the device of contact person, it is applied to terminal, which is characterized in that described device includes:
Module is monitored, for monitoring whether the terminal triggers search contact person;
Time-consuming obtains module, for being searched described in acquisition in the case where the monitoring module listens to and triggered search contact person The time-consuming of rope contact person;
Judgment module, for judging whether the time-consuming time-consuming for obtaining module acquisition meets predetermined condition;
Range obtains module, for obtaining in the case where the judgment module determines that the time-consuming is unsatisfactory for the predetermined condition It takes in the current search scope of described search contact person;
Module is adjusted, obtains the current search scope that module obtains for adjusting the range according to pre-defined rule;
Wherein, the adjustment module includes:
Third judging submodule, with the presence or absence of the matching to match with search key in the type for judging contact data Type;
Third adjusting submodule, for determining in the third judging submodule there are in the case where the match-type, by institute The contact data of match-type is stated as the current search scope;
Wherein, the predetermined condition includes any one in following or more persons:
It is described time-consuming less than scheduled duration threshold value;
The difference of described time-consuming and search contact person history time-consuming is less than scheduled time difference threshold value.
8. device according to claim 7, which is characterized in that the adjustment module further include:
First judging submodule, for judging in the current search scope with the presence or absence of invalid data, the invalid packets Include any one in following or more persons: duplicate contact data and invalid index data;
Submodule is deleted, for determining that there are the invalid datas in the current search scope in first judging submodule In the case where, delete the invalid data.
9. device according to claim 7, which is characterized in that the adjustment module further include:
Acquisition submodule, for obtaining the historical keyword type for searching for contact person;
The first adjustment submodule, for by contact person relevant to the historical keyword type that the acquisition submodule obtains Data are as the current search scope.
10. device according to claim 7, which is characterized in that the adjustment module further include:
Second judgment submodule, for judging whether search key matches with scheduled word;
Second adjustment submodule, for determining described search keyword and the scheduled word in the second judgment submodule In the case where matching, using the contact data of type associated with the scheduled word as the current search model It encloses.
11. device according to claim 7, which is characterized in that the match-type includes one or more of the following:
The described search keyword for including in its data is greater than the type of predetermined number;
The ratio of the described search keyword for including in its data and the total number of its data is greater than the type of estimated rate.
12. device according to claim 7, which is characterized in that the adjustment module further include:
Output sub-module, for exporting prompting message according to pre-defined rule;
4th adjusting submodule, for receiving the case where user response is in the instruction message that the prompting message is sent Under, adjust the current search scope.
13. a kind of for searching for the device of contact person characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Whether monitor terminal triggers search contact person;
Listen to triggered search contact person in the case where, obtain described search contact person time-consuming;
Judge whether the time-consuming meets predetermined condition;
In the case where determining that the time-consuming is unsatisfactory for the predetermined condition, the current search for being used for described search contact person is obtained Range;
The current search scope is adjusted according to pre-defined rule, comprising: judges to whether there is in the type of contact data and search The match-type that rope keyword matches;Determining there are in the case where the match-type, by the connection of the match-type Personal data is as the current search scope;
Wherein, the predetermined condition includes any one in following or more persons:
It is described time-consuming less than scheduled duration threshold value;
The difference of described time-consuming and search contact person history time-consuming is less than scheduled time difference threshold value.
CN201610183306.4A 2016-03-28 2016-03-28 Method and apparatus for searching for contact person Active CN105872170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610183306.4A CN105872170B (en) 2016-03-28 2016-03-28 Method and apparatus for searching for contact person

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610183306.4A CN105872170B (en) 2016-03-28 2016-03-28 Method and apparatus for searching for contact person

Publications (2)

Publication Number Publication Date
CN105872170A CN105872170A (en) 2016-08-17
CN105872170B true CN105872170B (en) 2019-05-10

Family

ID=56626190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610183306.4A Active CN105872170B (en) 2016-03-28 2016-03-28 Method and apparatus for searching for contact person

Country Status (1)

Country Link
CN (1) CN105872170B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063975A (en) * 2007-02-15 2007-10-31 刘二中 Method and system for electronic text-processing and searching
CN103248753A (en) * 2012-02-14 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and information display method
CN104156363A (en) * 2013-05-14 2014-11-19 郭刚 Searching method for address book information
CN104408065A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Trade information on-line inquiry method and device
CN104965918A (en) * 2015-07-06 2015-10-07 无锡天脉聚源传媒科技有限公司 Keyword query-based search method and apparatus
CN105224615A (en) * 2015-09-17 2016-01-06 上海斐讯数据通信技术有限公司 The search index paradigmatic system of mobile device and search index polymerization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063975A (en) * 2007-02-15 2007-10-31 刘二中 Method and system for electronic text-processing and searching
CN103248753A (en) * 2012-02-14 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and information display method
CN104156363A (en) * 2013-05-14 2014-11-19 郭刚 Searching method for address book information
CN104408065A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Trade information on-line inquiry method and device
CN104965918A (en) * 2015-07-06 2015-10-07 无锡天脉聚源传媒科技有限公司 Keyword query-based search method and apparatus
CN105224615A (en) * 2015-09-17 2016-01-06 上海斐讯数据通信技术有限公司 The search index paradigmatic system of mobile device and search index polymerization

Also Published As

Publication number Publication date
CN105872170A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
EP3327590B1 (en) Method and device for adjusting video playback position
WO2018058749A1 (en) Content sharing method and device
CN107888948A (en) Determine method and device, the electronic equipment of video file broadcasting speed
WO2015188588A1 (en) Application deletion prompting method and apparatus
WO2016082513A1 (en) Method and device for prompting call request
CN104036037A (en) Method and device for processing junk user
CN106095220B (en) Notification message reminding method and device
CN106453528B (en) The method and device of PUSH message
CN110019676A (en) A kind of method, apparatus and equipment identifying core word in query information
CN106126632A (en) Recommend method and device
CN104268151B (en) contact person grouping method and device
CN107870712A (en) A kind of screenshot processing method and device
CN109376771A (en) Application program classification method and device
CN109446323A (en) Information aggregation method, device and equipment
CN109634913A (en) Storage method, device and the electronic equipment of document
CN104636476B (en) The method and device of commending friends
CN106021573A (en) Image classification method and device and electronic device
CN107402767A (en) The method and apparatus for showing PUSH message
CN115238787A (en) Abnormal data detection method, device, equipment and storage medium
CN106776812B (en) The method and device of trasaction key
CN107295167A (en) Method for information display and device
CN107229707A (en) Search for the method and device of image
CN106789554A (en) The method and device of short message treatment
CN108491535B (en) Information classified storage method and device
CN108027821A (en) Handle the method and device of picture

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