Method and device for searching for contact object, and storage medium
First Claim
1. A method for searching for a contact object, comprising:
- normalizing, by a terminal comprising at least a processor and a memory, contents of contact fields contained in contact objects stored in the memory of the terminal;
receiving an input string for contact object searching from a user interface displayed by the terminal;
normalizing the input string;
searching in the normalized contents of the contact fields according to the normalized input string, to obtain a matching field;
acquiring information of a contact object containing the matching field as a contact searching result; and
displaying, by the processor, the input string and the contact searching result on the user interface;
wherein normalizing contents of contact fields further comprises;
for a first contact field,obtaining a first string corresponding to a content of the first contact field, the first string being formed by characters contained in a full keyboard, wherein the first string includes multiple alphabet characters;
obtaining a second string corresponding to the same content of the first contact field by mapping alphabet characters in the first string to digits according to a designated mapping relation, wherein the designated mapping relation assigns each alphabet character with a single corresponding digit the second string includes multiple digits corresponding to the multiple alphabet characters; and
when the first string further includes a non-alphabet character, the non-alphabet character is unchanged in the second string; and
incorporating both the first string and the second string into the normalized contents of the contact fields as corresponding strings for the first contact field,wherein searching in the normalized contents of the contact fields according to the normalized input string further comprises;
respectively matching the first string and the second string with the normalized input string; and
when either one of the first string or the second string matches with the normalized input string, determining the first content field as the matching field, such that the first content field can be matched regardless of whether a user input is a digit combination or an alphabet combination.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure relates to the searching technology field, and discloses a method and a device for searching a contact object, and a storage medium. The method comprises: normalizing a content of a contact field; receiving an input string for contact object searching, wherein the input string comprises any character or a combination of characters; normalizing the input string; searching in the normalized content of the contact field according to the normalized input string to obtain a matching field; and acquiring information of a contact object containing the matching field as a contact searching result. The device comprises a preprocessing module, a receiving module, an input processing module, a searching module and an acquiring module.
-
Citations
17 Claims
-
1. A method for searching for a contact object, comprising:
-
normalizing, by a terminal comprising at least a processor and a memory, contents of contact fields contained in contact objects stored in the memory of the terminal; receiving an input string for contact object searching from a user interface displayed by the terminal; normalizing the input string; searching in the normalized contents of the contact fields according to the normalized input string, to obtain a matching field; acquiring information of a contact object containing the matching field as a contact searching result; and displaying, by the processor, the input string and the contact searching result on the user interface; wherein normalizing contents of contact fields further comprises;
for a first contact field,obtaining a first string corresponding to a content of the first contact field, the first string being formed by characters contained in a full keyboard, wherein the first string includes multiple alphabet characters; obtaining a second string corresponding to the same content of the first contact field by mapping alphabet characters in the first string to digits according to a designated mapping relation, wherein the designated mapping relation assigns each alphabet character with a single corresponding digit the second string includes multiple digits corresponding to the multiple alphabet characters; and
when the first string further includes a non-alphabet character, the non-alphabet character is unchanged in the second string; andincorporating both the first string and the second string into the normalized contents of the contact fields as corresponding strings for the first contact field, wherein searching in the normalized contents of the contact fields according to the normalized input string further comprises; respectively matching the first string and the second string with the normalized input string; and when either one of the first string or the second string matches with the normalized input string, determining the first content field as the matching field, such that the first content field can be matched regardless of whether a user input is a digit combination or an alphabet combination. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A device for searching for a contact object, comprising:
-
a processor, a memory storing program modules to be executed by the processor, the program modules comprising; a preprocessing module, configured to normalize contents of contact fields contained in contact objects stored in the memory; a receiving module, configured to receive an input string for contact object searching from a user interface displayed by the device; an input processing module, configured to normalize the input string; a searching module, configured to search in the normalized contents of the contact fields according to the normalized input string, to obtain a matching field; and an acquiring module, configured to acquire information of a contact object containing the matching field as a contact searching result, and display the input string and the contact searching result on the user interface; wherein normalizing contents of contact fields further comprises;
for a first contact field,obtaining a first string corresponding to a content of the first contact field, the first string being formed by characters contained in a full keyboard, wherein the first string includes multiple alphabet characters; obtaining a second string corresponding to the same content of the first contact field by mapping alphabet characters in the first string to digits according to a designated mapping relation, wherein the designated mapping relation assigns each alphabet character with a single corresponding digit;
the second string includes multiple digits corresponding to the multiple alphabet characters; and
when the first string further includes a non-alphabet character, the non-alphabet character is unchanged in the second string; andincorporating both the first string and the second string into the normalized contents of the contact fields as corresponding strings for the first contact field, wherein searching in the normalized contents of the contact fields according to the normalized input string further comprises; respectively matching the first string and the second string with the normalized input string; and when either one of the first string or the second string matches with the normalized input string, determining the first content field as the matching field, such that the first content field can be matched regardless of whether a user input is a digit combination or an alphabet combination. - View Dependent Claims (9, 10, 11, 12)
-
-
13. A non-transitory storage medium containing computer-executable instructions adapted to perform a method for searching for a contact object, wherein the method comprises:
-
normalizing, by a terminal comprising at least a processor and a memory, contents of contact fields contained in contact objects stored in the memory of the terminal; receiving an input string for contact object searching from a user interface displayed by the terminal; normalizing the input string; searching in the normalized contents of the contact fields according to the normalized input string, to obtain a matching field; acquiring information of a contact object containing the matching field as a contact searching result; and displaying, by the processor, the input string and the contact searching result on the user interface; wherein normalizing contents of contact fields further comprises;
for a first contact field,obtaining a first string corresponding to a content of the first contact field, the first string being formed by characters contained in a full keyboard wherein the first string includes multiple alphabet characters; obtaining a second string corresponding to the same content of the first contact field by mapping alphabet characters in the first string to digits according to a designated mapping relation, wherein the designated mapping relation assigns each alphabet character with a single corresponding digit;
the second string includes multiple digits corresponding to the multiple alphabet characters; and
when the first string further includes a non-alphabet character, the non-alphabet character is unchanged in the second string; andincorporating both the first string and the second string into the normalized contents of the contact fields as corresponding strings for the first contact field, wherein searching in the normalized contents of the contact fields according to the normalized input string further comprises; respectively matching the first string and the second string with the normalized input string; and when either one of the first string or the second string matches with the normalized input string, determining the first content field as the matching field, such that the first content field can be matched regardless of whether a user input is a digit combination or an alphabet combination. - View Dependent Claims (14, 15, 16, 17)
-
Specification