CN106713587A - Contact search method - Google Patents
Contact search method Download PDFInfo
- Publication number
- CN106713587A CN106713587A CN201611186474.5A CN201611186474A CN106713587A CN 106713587 A CN106713587 A CN 106713587A CN 201611186474 A CN201611186474 A CN 201611186474A CN 106713587 A CN106713587 A CN 106713587A
- Authority
- CN
- China
- Prior art keywords
- space
- contact person
- information
- name
- character
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices 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/2745—Devices 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/27467—Methods of retrieving data
- H04M1/2748—Methods of retrieving data by matching character strings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices 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/2745—Devices 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/27485—Appending a prefix to or inserting a pause into a dialling sequence
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a contact search method. The method comprises the following steps: S1, a step of obtaining and storing contact name information: S11, obtaining space information in a contact name and storing the space information in contact information; S12, when the number of spaces in the contact name is zero, obtaining the grade of a currently inquired character and storing the grade in the contact information; S13, when the number of spaces in the contact name is larger than 0, obtaining the grade of a first character after each inquired space, and storing the grade in the contact information; and S2, a step of searching a matched contact: S21, obtaining the grade of the currently inquired character; S22, searching the matched contact; S23, if the matched contact exists, storing a search result; S24, if the matched contact does not exist, obtaining the grade of the last inquired character or the first character after a space behind the last space, and circularly performing step S22 until step S23 is operated. By adoption of the contact search method provided by the invention, the searched contact is quickly located, the inquiry efficiency is improved, the operation steps are reduced, and the security is improved.
Description
Technical field
The present invention relates to phone directory search technique field, more particularly to a kind of contact person's searching method.
Background technology
The function of current inter-vehicle information system is more and more, is that the trip of people brings great convenience.As vehicle-mounted
One of the most frequently used function of information system --- bluetooth telephone, due to its hand-free call function, improves the security of driving.It is blue
Tooth phone possesses function of the synchronous phone directory to inter-vehicle information system while possessing hand-free call function, also.However, mesh
The bluetooth telephone of preceding inter-vehicle information system search for phone directory on contact person when, can only be divided according to surname initial
Class, for example, click on Z, then show the contact person started with Z, and the contact person often more than one, such as Zhang started with Z
San, Zuck Clinton, etc., then user need in these contact persons search the contact person to be searched for, it is clear that this needs
By the operation compared with multi-step, for vehicle environment, the potential safety hazard of driving is increased.
Therefore, existing phone directory searching method is further improved.
The content of the invention
To overcome the shortcomings of existing phone directory initial querying method, the present invention provides a kind of contact person's searching method,
Solve the quick technical problem for navigating to the contact person to be searched.
To reach above-mentioned purpose, the technical solution used in the present invention is:
The present invention provides a kind of contact person's searching method, including:
S1, name of contact person acquisition of information and preservation step:
S11, obtain name of contact person in space information and be saved into associated person information, the name of contact person
In space information include the position in space number and each space in name;
S12, when the space number in name of contact person is zero, obtain current queries character grade simultaneously be saved into connection
In being people's information;
S13, when the space number in name of contact person is more than zero, obtain grade that each has inquired about initial character behind space simultaneously
It is saved into associated person information;
S2, lookup matching associated person step:
S21, the grade for obtaining current queries character;
S22, lookup matching associated person;
If S23, there is matching associated person, Search Results are preserved;
If lead-in behind S24, the space inquired about behind last character or last space in the absence of matching associated person, acquisition
The grade of symbol, return to step S22 circulations are carried out, until final operating procedure S23.
Further, in step s 11, after contact person space information is obtained, also include:
S111, determine whether that multiple spaces are adjacent;
S112, if so, obtain adjacent space number, it is a space that multiple adjacent spaces are calculated, and updates current contacts
Space information, the contact person space information after renewal is saved in associated person information;
S113, if it is not, contact person space information is saved in associated person information.
Further, step S13 includes:
S131, acquisition input have searched number of characters behind space;
S132, judgement have inquired about the space number whether space number is equal in name of contact person;
S133, current queries latter of the space grade of character and it is saved into associated person information if it is not, obtaining;
S134, if so, last latter of the space grade of character in obtaining name of contact person, and be saved into contact person
In information.
Further, step S24 includes:
S241, last character will be inquired about or latter of last space space is set to designated spaces;
S242, the grade for obtaining initial character after the designated spaces;
S243, return S22 circulations are carried out, until finding matching associated person, preserve Search Results.
Further, step S1 also includes:
S14, contact person ID to be checked is saved in associated person information.
Further, step S22 also includes:Judge contact person ID to be checked and active user input inquiry ID whether
It is identical, if so, then tag query success.
Specifically, contact person ID to be checked is ASC yards.
The beneficial effects of the invention are as follows:By obtaining contact person space information, be continuously input into nonspace character in user and
When correctly cannot find contact person, according to the last character of user input, the head in the space behind Auto-matching last character
Character carries out matched and searched, or initial character behind the space inquired about behind last space of Auto-matching is looked into carrying out matching
Look for, realize and quickly navigate to the contact person to be searched, improve search efficiency, reduce operating procedure so as to improve using safe
Property.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of step S1 in the present invention:
Fig. 2 is the schematic flow sheet of step S2 in the present invention.
Specific embodiment
Embodiments of the present invention are specifically illustrated below in conjunction with the accompanying drawings, and accompanying drawing is only for reference and explanation is used, and it is right not constitute
The limitation of scope of patent protection of the present invention.
Embodiment 1:
The many character searching methods of phone directory of the present embodiment are different from existing phone directory initial querying method, the present invention
Method is when the treatment many characters of phone directory are inquired about, it is assumed that condition users input character is continuous input, occurs space in name
When, if user needs to navigate to designated contact, can be processed by two ways in name to be checked and space feelings occur
Condition:
1. user needs to be input into corresponding space, identical with character in bluetooth telephone sheet, then search successfully;
2. when user input nonspace character correctly cannot find contact person, according to the last word of user input
Symbol, the initial character in the space behind Auto-matching last character carries out matched and searched, or Auto-matching has inquired about last sky
The initial character behind space behind lattice carries out matched and searched.
Based on above-mentioned logical thinking, it is necessary to each joins in obtaining bluetooth telephone sheet in advance before inquiry phone directory is realized
It is the information of people:Including the position where space number, each space in name of contact person and each contact person ID to be checked;
During specific implementation, the ID to be checked for being used as each contact person using the ASC with polling character yards, to facilitate inquiring contactor.
ID is position of the contact person in the original sequence of phone directory, and the contact in phone directory can be found by ID correspondences
People;One character of input, such as L can now search the contact person of all L beginnings, be exactly actually that generation is searched inside program
Suo Liebiao, if choosing one of contact person, now can according to the ID of contact person in the actual phone directory in find matching
People is dialled.
As shown in Figure 1, 2, the present invention provides a kind of contact person's searching method, including:
S1, name of contact person acquisition of information and preservation step:
S10, judge whether to obtain name of contact person information first, if it is not, step S12 or S13 are carried out, if so, being walked
Rapid S11;
S11, obtain name of contact person in space information and be saved into associated person information, the name of contact person
In space information include the position in space number and each space in name;
In step s 11, after the space information in obtaining the name of contact person, also include:
S111, determine whether that multiple spaces are adjacent;
S112, if so, obtain adjacent space number, multiple adjacent spaces are designated as a space, update current contacts
Space information in name is simultaneously saved in associated person information;
S113, if it is not, the space information in name of contact person is saved in associated person information;
S12, when the space number i in name of contact person is zero, obtain current queries character grade simultaneously be saved into
In associated person information;Specially:Number of characters n has been searched in acquisition, obtains n+1 character grades;The step is cyclic process, until obtaining
Untill taking all polling character grades;
S13, when number i in space is more than zero in name of contact person, obtain grade that each has inquired about initial character behind space simultaneously
It is saved into associated person information;
Step S13 includes:
S131, acquisition input have searched number of characters behind space;
Whether S132, judgement have inquired about space number m equal to number i in space in name of contact person;
S133, if it is not, obtaining current m-th inquiry latter of the space grade of character and is saved into associated person information
In;
S134, if so, last latter of the space in i-th of the space grade of character in obtaining name of contact person, and protected
It is stored in associated person information;
S14, contact person ID to be checked is saved in associated person information;
S2, lookup matching associated person step:
S21, the grade for obtaining current queries character;
S22, lookup matching associated person;The step also includes:Judge contact person ID to be checked and looking into that active user is input into
Whether identical ID is ask, if so, then tag query success;
If S23, there is matching associated person, Search Results are preserved;
If lead-in behind S24, the space inquired about behind last character or last space in the absence of matching associated person, acquisition
The grade of symbol, return to step S22 circulations are carried out, until final operating procedure S23.
Step S24 includes:
S241, last character will be inquired about or latter of last space space is set to designated spaces;Looked into including obtaining
Character space number is looked for plus 1;
S242, the grade for obtaining initial character after the designated spaces;
S243, return S22 circulations are carried out, until finding matching associated person, preserve Search Results.
In the present embodiment, after lookup character grade is got, ratings match can be carried out to phone directory and searches satisfaction
Conditioned connection people.In search procedure the flow of normal character input with merely enter bluetooth initial character query logic be it is the same,
It is exactly to be matched by ID, whether matching associated person ID is identical with the inquiry ID that active user is input into, if the same labeled as one
Secondary successful query.
It should be noted that to occurring the judgement and treatment of space situation in name, and when user input is searched,
Current continuation character cannot be searched correctly, and how follow-up this is searched for:
For user input space situation, having individually count m and show this search how many of input inquiry
Space, after user inputs character does not find character, program can skip the current continuation character inquired about, and search m+1
Character grade behind space, and current inquired about space and count and can add 1;
After each search inquiry, the contact person space information of preservation can without updating, but contact person ID need and
Shi Gengxin, can show that user has currently inquired about how many continuation characters, if space count value by setting individually counting
Change, then continuous-query character count needs to count again, can so guarantee correctly to update contact person ID.
The present embodiment is illustrated by following examples to contact person's searching method:
Such as:The name of contact person to be searched for is:Lee Kenvin Sa
Being input into L first, first can list the contact person that L starts, then be input into e will distinguish first and second characters
For the contact person of L and e lists, if being e without second character, after searching beginning for first space behind L and L
Character is the contact person of e, such as Lou eric;
K is input into again, if not having the contact person that Lek starts in contact person, that will be searched first behind Le beginnings and e
Behind individual space for K contact person, such as Lee Kenvin Sa, by that analogy;
With the searching method of the present embodiment, for name of contact person Lee Kenvin Sa, input LeKeS can find
Name of contact person;But if input LeKnS be to look for less than the name of contact person, or this requires continuous of character
Match somebody with somebody, otherwise it is first character behind space.
Above disclosed is only presently preferred embodiments of the present invention, it is impossible to rights protection model of the invention is limited with this
Enclose, therefore the equivalent variations made according to scope of the present invention patent, still belong to the scope that the present invention is covered.
Claims (7)
1. a kind of contact person's searching method, it is characterised in that including:
S1, name of contact person acquisition of information and preservation step:
S11, obtain name of contact person in space information and be saved into associated person information, in the name of contact person
Space information includes the position in space number and each space in name;
S12, when the space number in name of contact person is zero, obtain current queries character grade simultaneously be saved into contact person
In information;
S13, when the space number in name of contact person is more than zero, obtain each inquired about behind space the grade of initial character and by its
It is saved in associated person information;
S2, lookup matching associated person step:
S21, the grade for obtaining current queries character;
S22, lookup matching associated person;
If S23, there is matching associated person, Search Results are preserved;
If initial character behind S24, the space inquired about behind last character or last space in the absence of matching associated person, acquisition
Grade, return to step S22 circulations are carried out, until final operating procedure S23.
2. contact person's searching method according to claim 1, it is characterised in that:
In step s 11, after the space information in obtaining the name of contact person, also include:
S111, determine whether that multiple spaces are adjacent;
S112, if so, obtain adjacent space number, multiple adjacent spaces are designated as a space, update current contacts name
In space information, the space information in the name of contact person after renewal is saved in associated person information;
S113, if it is not, the space information in name of contact person is saved in associated person information.
3. contact person's searching method according to claim 1, it is characterised in that:
Step S13 includes:
S131, acquisition input have searched number of characters behind space;
S132, judgement have inquired about the space number whether space number is equal in name of contact person;
S133, current queries latter of the space grade of character and it is saved into associated person information if it is not, obtaining;
S134, if so, last latter of the space grade of character in obtaining name of contact person, and be saved into associated person information
In.
4. contact person's searching method according to claim 1, it is characterised in that:
Step S24 includes:
S241, last character will be inquired about or latter of last space space is set to designated spaces;
S242, the grade for obtaining initial character after the designated spaces;
S243, return S22 circulations are carried out, until finding matching associated person, preserve Search Results.
5. contact person's searching method according to claim 1, it is characterised in that:
Step S1 also includes:
S14, contact person ID to be checked is saved in associated person information.
6. contact person's searching method according to claim 5, it is characterised in that:
Step S22 also includes:Judge whether contact person ID to be checked is identical with the inquiry ID that active user is input into, if so, then marking
Note successful inquiring.
7. the contact person's searching method according to claim 5 or 6, it is characterised in that:
The contact person ID to be checked is ASC yards.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611186474.5A CN106713587B (en) | 2016-12-21 | 2016-12-21 | A kind of contact person's searching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611186474.5A CN106713587B (en) | 2016-12-21 | 2016-12-21 | A kind of contact person's searching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106713587A true CN106713587A (en) | 2017-05-24 |
CN106713587B CN106713587B (en) | 2019-06-14 |
Family
ID=58938149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611186474.5A Active CN106713587B (en) | 2016-12-21 | 2016-12-21 | A kind of contact person's searching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713587B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060168539A1 (en) * | 1999-08-12 | 2006-07-27 | Jeffrey Hawkins | Method and apparatus for accessing a contacts database and telephone services |
US20080242343A1 (en) * | 2007-03-26 | 2008-10-02 | Helio, Llc | Modeless electronic systems, methods, and devices |
CN101815125A (en) * | 2010-03-16 | 2010-08-25 | 东莞宇龙通信科技有限公司 | Method and device for searching contact person and mobile terminal |
EP2523123A1 (en) * | 2011-05-11 | 2012-11-14 | Mitel Networks Corporation | Contact list search method for mobile phone |
CN103870501A (en) * | 2012-12-14 | 2014-06-18 | 联想(北京)有限公司 | Automatic matching method and device |
-
2016
- 2016-12-21 CN CN201611186474.5A patent/CN106713587B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060168539A1 (en) * | 1999-08-12 | 2006-07-27 | Jeffrey Hawkins | Method and apparatus for accessing a contacts database and telephone services |
US20080242343A1 (en) * | 2007-03-26 | 2008-10-02 | Helio, Llc | Modeless electronic systems, methods, and devices |
CN101815125A (en) * | 2010-03-16 | 2010-08-25 | 东莞宇龙通信科技有限公司 | Method and device for searching contact person and mobile terminal |
EP2523123A1 (en) * | 2011-05-11 | 2012-11-14 | Mitel Networks Corporation | Contact list search method for mobile phone |
CN103870501A (en) * | 2012-12-14 | 2014-06-18 | 联想(北京)有限公司 | Automatic matching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106713587B (en) | 2019-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104281698B (en) | A kind of efficient big data querying method | |
CN104408344B (en) | System switching method, system switching device and terminal | |
CN104270525B (en) | Information processing method and information processor | |
CN110457363B (en) | Query method, device and storage medium based on distributed database | |
CN101788855B (en) | Method, device and communication terminal for obtaining user input information | |
CN105917327A (en) | System and method for inputting text into electronic devices | |
CN110825949A (en) | Information retrieval method based on convolutional neural network and related equipment thereof | |
CN110955675A (en) | Robot dialogue method, device, equipment and computer readable storage medium | |
CN102750629B (en) | Schedule association method and device | |
CN103678651A (en) | Sensitive word searching method and device | |
CN103941998A (en) | Method and system for controlling music playing of mobile terminal through screen tapping or gesture recognizing | |
CN103049571A (en) | Method and device for indexing menus on basis of speech recognition, and terminal comprising device | |
CN105184713A (en) | Intelligent matching and sorting system and method capable of benefitting contrast of assigned drugs of medical insurance | |
CN104391923A (en) | Data set query method and apparatus | |
CN106205613A (en) | A kind of navigation audio recognition method and system | |
CN105825172A (en) | Mobile-terminal-based multi-fingerprint matching method and system | |
CN103198066A (en) | Word list based information search method and search system | |
CN116701610A (en) | Effective alarm condition identification method and device based on emergency multisource alarm | |
CN106713587B (en) | A kind of contact person's searching method | |
CN101119339B (en) | Method and device for establishing multi-user discuss group in instant communication system | |
CN111966846A (en) | Image query method and device, electronic equipment and storage medium | |
CN107315739A (en) | A kind of semantic analysis | |
US20060136388A1 (en) | Method for calculating distributed joins in main memory with minimal communicaton overhead | |
CN106155550A (en) | The display packing at a kind of interface and device | |
CN104602206A (en) | Spam message identification method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |