CN111291057A - User information indexing method, device, server and storage medium of IM tool - Google Patents
User information indexing method, device, server and storage medium of IM tool Download PDFInfo
- Publication number
- CN111291057A CN111291057A CN202010120950.3A CN202010120950A CN111291057A CN 111291057 A CN111291057 A CN 111291057A CN 202010120950 A CN202010120950 A CN 202010120950A CN 111291057 A CN111291057 A CN 111291057A
- Authority
- CN
- China
- Prior art keywords
- user
- information
- index
- types
- query
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2291—User-Defined Types; Storage management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2474—Sequence data queries, e.g. querying versioned data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Computational Linguistics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a user information index method, a device, a server and a storage medium of an IM tool, wherein the method comprises the following steps: receiving a query request which is sent by a first user and used for carrying out information retrieval on a second user, wherein the query request comprises query information; judging whether the query information is matched with the index information of the second user, if not, sending the information which does not exist or can not be queried by the second user to the first user; if the index information of the matched second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is related to the one of the user information types of the second user, wherein the number of the user information types of the same user is at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not related to the user information items, sending information which does not exist in the second user or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the associated second user to the first user. And flexibly setting an index according to the user requirement to search the user information type.
Description
Technical Field
The invention relates to the technical field of index searching, in particular to a user information indexing method, a user information indexing device, a user information indexing server and a storage medium of an Instant Messaging (IM) tool.
Background
Currently, Instant Messaging (IM) tools generally search for new friends according to an ID number of the Instant tool. Meanwhile, because the relationship between the mobile phone and the instant messaging tool is very close, many instant messaging tools require the user to bind a mobile phone number, which is not only convenient for authenticating the identity of the user, but also convenient for the user to inquire about potential new friends according to the mobile phone number. Of course, the mailbox is also bound with the user, so that the user identity authentication is facilitated. However, email accounts are not typically used as an index to search for new users, while ID numbers and phone numbers are typically used as an index to search for new contacts.
However, the current indexing method has the following defects:
1. both the ID number and the mobile phone number are in a hard binding mode, namely, a user can only replace the mobile phone number or obtain a new ID number, and the use is very troublesome;
2. the ID number and the mobile phone number are both bound with unique user information data, only the same user information can be searched from the ID number and the mobile phone number, a user cannot define or set the other party to respectively obtain different user information contents by taking the ID number as an index or taking the mobile phone number as an index, and the privacy of private life cannot be protected;
3. the method can not avoid searching by strangers, namely, no matter the ID number or the mobile phone number is leaked, the user can not prevent the strangers from searching the user information of the user, so that the harassment caused by the fact that the strangers are searched by malicious users is difficult to avoid.
The prior art lacks a flexible user information index solution which meets the user requirements.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a user information indexing method, a device, a server and a storage medium of an IM tool, which can limit different indexing conditions to obtain user information with possibly different privacy degrees according to an indexing rule customized by a user, and the technical scheme is as follows:
in one aspect, the present invention provides a method for indexing user information of an instant messaging tool, comprising the following steps:
receiving a query request for information retrieval of a second user, which is sent by a first user, wherein the query request comprises query information;
judging whether the query information is matched with index information of a second user, and if not, sending information which does not exist and/or cannot be queried by the second user to the first user;
if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the user information type of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if not, sending information which does not exist and/or cannot be inquired by the second user to the first user; and if so, sending the user information item corresponding to the user information type of the associated second user to the first user.
Further, whether the index information of each user is associated with one of the user information types or not is preset by the user, and if the user does not perform association setting, default association setting preset by the system.
Further, a user information entry corresponding to the user information type of each user is preset by the user, and the user information entry corresponding to the user information type comprises all or part of user information of the user; and if the user does not preset the user information item corresponding to the user information type, setting the user information item corresponding to the user information type preset by the default system.
Preferably, the query request further includes an index type to which the query information belongs, and the index information of the second user is matched in the index information corresponding to the index type according to the index type.
Further, the index information of the same user and/or the index type to which the index information belongs can only be associated with at most one user information type of all user information types of the same user at the same time.
Optionally, two or more index information of the same user can be associated with one user information type of all user information types of the same user at the same time, or,
the index types to which two or more pieces of the index information of the same user belong can be associated with one user information type of all the user information types of the same user at the same time.
Further, the query information of the query request includes a plurality of types, the index types to which the combinations of the plurality of types of query information belong can only be associated with at most one user information type of all user information types at the same time, and the index types to which the combinations of different types of query information belong can be associated with the same or different user information types.
Further, the query request comprises one or more query information, and the index type of the query information comprises an ID, a mobile phone number, a mailbox account number or other registration account numbers.
Further, different index types to which a single query information belongs can be associated with the same or different one user information type, or index types to which a combination of different kinds of query information belongs can be associated with the same or different one user information type.
Further, after the first user joins the preset user information type group of the second user, the following steps may be further performed:
receiving an information opening permission change request of a second user to a first user, wherein the information opening permission change request comprises user information items allowed to be displayed to the first user;
and updating the contact person information database of the first user according to the information opening permission change request.
In another aspect, the present invention provides a user information indexing apparatus for an instant messaging tool, comprising the following modules:
the query receiving module is used for receiving a query request which is sent by a first user and used for carrying out information retrieval on a second user, wherein the query request comprises query information;
an association storage and reception module; the index information and/or the index information type of all the users and the user information type and/or the associated information of the user information entry of the user are/is stored; and for receiving setting information of the user for the associated information;
the matching module is used for judging whether the query information is matched with the index information of the second user;
a sending module, configured to send the matching determination result to the first user, including: if not, sending information which does not exist and/or cannot be inquired by the second user to the first user; if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
Furthermore, the user information indexing device of the instant messaging tool further comprises an information item setting module, which is used for receiving the setting of the user for the user information items associated with the user information types and saving the set user information items associated with the user information types.
In another aspect, the present invention provides a server, including a processor and a memory, where the memory stores instructions, the instructions being loaded and executed by the processor, the instructions being configured to perform the following steps:
receiving a query request for information retrieval of a second user, which is sent by a first user, wherein the query request comprises query information;
judging whether the query information is matched with index information of a second user, and if not, sending information which does not exist and/or cannot be queried by the second user to the first user;
if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
In another aspect, the present invention provides a client, including:
the system comprises a correlation setting and sending module, a server and a database module, wherein the correlation setting and sending module is used for setting the index information and/or the index information type of a user and the correlation information of the user information type and/or the user information entry of the user and sending the correlation information to the server;
the query request sending module is used for sending a query request for information retrieval of the second user to the server;
and the retrieval result receiving module is used for receiving the information retrieval result returned by the server.
Further, the client further comprises an information item setting and sending module, which is used for setting the user information items corresponding to the user information types and sending the user information items to the server.
In yet another aspect, the present invention provides a terminal including the client as described above.
In yet another aspect, the present invention provides a non-transitory readable storage medium storing instructions for performing the steps of:
receiving a query request for information retrieval of a second user, which is sent by a first user, wherein the query request comprises query information;
judging whether the query information is matched with index information of a second user, and if not, sending information which does not exist and/or cannot be queried by the second user to the first user;
if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
The user information indexing method of the instant messaging tool provided by the invention has the following technical effects:
a. the user information can be shielded without replacing the ID number or the mobile phone number, so that other users can not find the user information;
b. under the application of multiple scenes such as a life scene, a working scene and the like, the corresponding user information index search results can be segmented, and different search user information results are customized for different search objects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a user information indexing method of an instant messenger according to an embodiment of the present invention;
fig. 2 is a block diagram of a user information indexing apparatus of an instant messenger according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a graphical user interface for a first user to search for second user information according to an embodiment of the present invention;
FIG. 4(a) is a schematic diagram of a graphical user interface of a second user-defined user information type provided by an embodiment of the present invention;
FIG. 4(b) is a schematic diagram of a graphical user interface of public information corresponding to a second user-defined user information type according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a graphical user interface for a second user to set user information types associated with various index types according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a user information entry interface searched by a first user with an ID number according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a user information entry interface searched by a first user with a mobile phone number according to an embodiment of the present invention;
fig. 8 is a schematic view of a search result interface received by a first user when a preset index condition of a second user is not associated with any user information type according to an embodiment of the present invention;
fig. 9 is a block diagram of a hardware structure of a computer terminal of a user information indexing device of an instant messenger according to an embodiment of the present invention;
FIG. 10 is a block diagram of a user information indexing apparatus having an information entry setting module according to an embodiment of the present invention;
FIG. 11 is a block diagram of a client provided by an embodiment of the invention;
fig. 12 is a block diagram of a client having an information item setting and sending module according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Aiming at the problems in the prior art, the invention provides a technical scheme for indexing the user information of the instant messaging tool, which is convenient for inquiring and adding various user information during multi-scene communication application based on multi-user information types through the associated setting of an indexing condition and one of a plurality of user information types, and simultaneously realizes the free setting and control of the user privacy and the popularization state. Under the multi-scene communication scene, the inquiry, addition and creation of multi-user relationship among users can be facilitated only by the association of indexes and a plurality of user information types. Meanwhile, the index association work scene user information type is convenient, the popularization is convenient, and in addition, the index association life scene user information type realizes the division of the work scene and the life scene; all indexes can also be associated with the user information type used for work, so that the popularization effect is realized to the greatest extent; while a great privacy protection can be achieved when all indexes are not associated with any user information type.
In an embodiment of the present invention, a user information indexing method of an instant messenger is provided, referring to fig. 1, the user information indexing method includes the following steps:
s1, receiving an inquiry request sent by the first user for information retrieval of the second user, wherein the inquiry request comprises inquiry information.
Specifically, the query request represents request information that the first user needs to search for user information of the second user, and the query request may include one or more types of query information, for example, referring to fig. 3, the query information may be an ID number, a mobile phone number, a mailbox account number, or other registration type account numbers (such as an MSN account number, a personal network account number, a taber account number, and the like) of the queried user.
And S2, judging whether the query information is matched with the index information of the second user.
Specifically, the query information needs to be matched with the user index information in the user information database one by one, if the matching result is that the index information matched with the query information exists in the user information database, step S3 is executed, otherwise, information that the second user does not exist and/or cannot query is sent to the first user.
In a preferred embodiment of the present invention, the query request received in step S1 further includes an index type to which the query information belongs, and further, according to the index type, the index information of the second user is matched in the index information corresponding to the index type. For example, the first user makes a query request by using a mobile phone number 18012345678, where the index type is definitely the mobile phone number, and the specific query information is 18061935277, so that when retrieving the database, the first user can directly retrieve in the mobile phone number table of the database to see whether there is database information matched with the query information 18061935277, and does not need to perform full retrieval, for example, does not need to perform matching retrieval in the ID table, thereby improving the query efficiency.
S3, judging whether the matched index information of the second user is associated with one user information type of the second user, if so, executing S4, otherwise, sending information which does not exist and/or cannot be inquired by the second user to the first user.
Specifically, the user information types of the same user are at least two, and the user information items corresponding to each user information type of the same user are not completely the same (no meaning of grouping if they are completely the same). Whether the index information of each user is associated with one user information type or not is preset by the user, and if the user does not perform association setting, default association setting preset by a system. The user information type may be a group created by default in the system or a group defined by the user, a GUI interface of the user-defined group may be as shown in fig. 4(a), and in the case of login of the second user, under the system setting, a new group of friends, such as a new close group of friends, a business group of friends, a general group of friends, etc., may be created on the one hand, and on the other hand, a definition of an open information entry may be performed on the newly created group of friends, and a GUI interface thereof may be as shown in fig. 4(b), for example, more information about a private person may be disclosed on the close group of friends, more information about a work occasion may be disclosed on the business group of friends, etc. The association relationship preset by the user at least comprises the following multiple types:
the index information of a first, same user may only be associated with at most one of all user information types of the same user at the same time, such as index information 18012345678 of a second user being associated with a business buddy group or not being associated with any buddy group.
The index information of the second user can only be associated with one user information type of all user information types of the same user at most at the same time, for example, the mobile phone number of the second user is associated with a business friend group or is not associated with any friend group, so that when the first user indexes by using 18012345678 as query information, the index information 18012345678 of the second user is matched, the system further identifies the mobile phone number type of the second user, and further obtains the association result of whether the mobile phone number of the second user is associated with one of the user information types.
It should be noted that two or more index information of the same user can be associated with one user information type of all user information types of the same user at the same time, for example, the index information 18012345678 is associated with a business friend group, and wufang @ szpat. com can also be associated with the business friend group;
or, the index types to which two or more than two pieces of index information of the same user belong can be associated with one user information type of all user information types of the same user at the same time, for example, a mobile phone number is associated with a business friend group, and an ID or a mailbox can also be associated with the business friend group.
Thirdly, the query information of the query request in step S1 includes multiple types, and the index types to which the combinations of multiple types of query information belong can only be associated with at most one user information type among all user information types at the same time, for example, the second user sets 18012345678 (i.e., a mobile phone number) associated business friend group, sets wufang @ szpat. com (i.e., a mailbox) associated business friend group, and sets a combination of 18012345678 and wufang @ szpat. com (i.e., a combination of a mobile phone number and a mailbox) associated close friend group. And it is to be noted that: the index types of different combinations of the plurality of query information can be associated with the same or different user information types, for example, the combination of settings 18012345678 and 2881539247 (i.e., the combination of mobile phone number and ID) can be associated with the close friend group, and other groups can also be associated.
For example, in order to ensure that information is only displayed for very close friends, the close friend group may be associated with an index type to which a combination of different kinds of query information belongs, for example, a first user queries information of a second user with an ID number, and the first user can only search corresponding public information of a "common friend" preset by the second user; the first user inquires the information of the second user by the mobile phone number, and only the corresponding public information of the 'business friend' preset by the second user can be found; if the first user queries by combining the ID number with the mobile phone number, the corresponding public information of the 'close friends' preset by the second user can be searched, and the privacy of the information is ensured.
The specific interface operations may be as follows:
referring to fig. 5, in a case where a second user logs in, association setting may be performed on various search condition information (an ID number, a mobile phone number, a mailbox account, or other registered accounts) under system setting, for example, an operation of associating a mobile phone number type with a user information type of a business friend is completed by selecting "ID number + mobile phone number type" in a previous drop-down box in fig. 5, selecting an intimate friend group in a subsequent drop-down box, and clicking a confirmation button. It should be noted that the group name in the drop-down box on the right side in fig. 5 needs to be associated with the group friend name established by the user in fig. 4, and the group name in the drop-down box in fig. 4 also needs to be associated with the group friend name established by the user in fig. 4.
S4, sending the user information item corresponding to the user information type of the associated second user to the first user.
Specifically, a user information entry corresponding to the user information type of each user is preset by the user, and the user information entry corresponding to the user information type includes all or part of the user information of the user; and if the user does not preset the user information item corresponding to the user information type, setting the user information item corresponding to the user information type preset by the default system.
As shown in fig. 4, the interface where a user presets a user information entry corresponding to a certain user information type is first selected from a drop-down box, for example, an intimate friend group is selected, then all or part of the information entries are selected from a total information entry list box (left box) to a right box, and the user information entry setting of the intimate friend group can be completed by clicking confirmation, and thus, the user information entry setting process of the business friend group is also the same, and is not described again.
For example, the first user uses 18012345678 as query information, and the preset associated information of the second user is query information 18012345678 or a mobile phone number associated with a close friend group, the first user will receive the public information of the second user as shown in fig. 6; if the associated business friend group is preset, the first user will receive the public information of the second user as shown in fig. 7, and comparing fig. 6 and fig. 7, the public information may not be completely the same, or even may not be completely the same.
In another case, as shown in fig. 8, if the index information of the second user matching the query information input by the first user or the index type to which the index information belongs is not associated with a close buddy group, a business buddy group, or another buddy group, the first user may not receive any user information of the second user, for example, a message "no user meeting the search condition is found" is received.
In an embodiment of the present invention, after the first user joins the preset user information type group of the second user, the following steps may be further performed:
receiving an information opening permission change request of a second user to a first user, wherein the information opening permission change request comprises user information items allowed to be displayed to the first user;
and updating the contact person information database of the first user according to the information opening permission change request.
Therefore, when the first user carries out information retrieval on the second user, the user information displayed to the first user by the second user can be changed by the second user in the subsequent process, and the second user can flexibly change to display the user information to the first user.
In an embodiment of the present invention, there is provided a user information indexing apparatus of an instant messenger, as shown in fig. 2, the user information indexing apparatus includes the following modules:
a query receiving module 210, configured to receive a query request sent by a first user for information retrieval of a second user, where the query request includes query information;
an associated storage and receiving module 220, configured to store index information and/or index information types of all users and associated information of user information types and/or user information entries of the users; and for receiving setting information of the user for the associated information;
a matching module 230, configured to determine whether the query information matches index information of a second user;
a sending module 240, configured to send the matching determination result to the first user, including: if not, sending information which does not exist and/or cannot be inquired by the second user to the first user; if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
As shown in fig. 2, the query receiving module 210 receives a query request transmitted from the outside (first user), and forwarded to the matching module 230, based on the query information in the query request, performs data matching in the user information database, determines whether there is user information matching the query information, and transmits a matching result (for example, user information matching the second user) to the transmitting module 240, and on the other hand, the association storage and reception module 220 receives and stores the user's setting for association information in advance, the matching module 230 retrieves the association information preset by the second user in the association storage and receiving module 220, and sends it to the sending module 240, after the sending module 240 receives the matching result and the associated information, the user information entry corresponding to the associated information is sent to the first user.
Specifically, regarding the user information entries corresponding to the associated information, in an embodiment of the present invention, the user information indexing apparatus further includes an information entry setting module 250, as shown in fig. 10, where the information entry setting module 250 is configured to receive a setting of a user for a user information entry associated with a user information type by a user, and store the set user information entry associated with the user information type, and the information entry setting module 250 provides data support for the association storage and receiving module 220. The functions of the other modules 210 and 240 are as above, and will not be described again.
In an embodiment corresponding to the user information indexing device, the query request received by the query receiving module 210 only includes one type of query information, and at most, one type of query information and/or its belonging type can only be associated with one type of user information; the association information stored by the association storage and receiving module 220 includes one of the user information types associated with the index information and/or the index information type of the user or one of the user information types not associated with the index information and/or the index information type of the user.
In an embodiment corresponding to the user information indexing apparatus, the query request received by the query receiving module 210 only includes a plurality of query information, the combination of the plurality of query information and/or the combination type thereof can only be associated with at most one user information type, and different combinations of the plurality of query information and/or the combination type thereof can be associated with different user information types; the association information stored by the association storage and receiving module 220 includes a combination of a plurality of query information and/or a combination type thereof associated with one of the user information types or a combination of the plurality of query information and/or a combination type thereof not associated with any of the user information types.
It should be noted that: in the above embodiment, when the user information index apparatus searches for the user information index, only the division of the functional modules is used as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the user information index apparatus is divided into different functional modules to complete all or part of the above-described functions. In addition, the embodiment of the user information indexing device provided in this embodiment and the user information indexing method provided in the above embodiment belong to the same concept, and the specific implementation process thereof is detailed in the embodiment of the method, that is, all the features in the embodiment of the user information indexing method can be introduced into the embodiment of the user information indexing device by way of reference.
In one embodiment of the present invention, there is provided a server comprising a processor and a memory, the memory having stored therein instructions that are loaded and executed by the processor, the instructions being configured to perform the steps of:
s1, receiving an inquiry request sent by the first user for information retrieval of the second user, wherein the inquiry request comprises inquiry information.
And S2, judging whether the query information is matched with the index information of the second user.
S3, judging whether the matched index information of the second user is associated with one user information type of the second user, if so, executing S4, otherwise, sending information which does not exist and/or cannot be inquired by the second user to the first user.
S4, sending the user information item corresponding to the user information type of the associated second user to the first user.
It should be noted that: the server embodiment provided by the above embodiment and the user information indexing method provided by the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, that is, all the features in the user information indexing method embodiment can be introduced into the server embodiment by way of reference.
In an embodiment of the present invention, a client is provided, which interacts with the server in the above embodiment, and according to the interaction, the client includes an association setting and sending module 310, a query request sending module 320, and a retrieval result receiving module 330, as shown in fig. 11, the functions of the modules are specifically as follows:
the association setting and sending module 310 is configured to set index information and/or index information type of a user and association information of a user information type and/or a user information entry of the user, and send the association information to a server;
the query request sending module 320 is configured to send a query request for information retrieval of a second user to a server;
the retrieval result receiving module 330 is configured to receive an information retrieval result returned by the server.
In an embodiment of the present invention, in addition to the association setting and sending module 310, the query request sending module 320, and the retrieval result receiving module 330, as shown in fig. 12, the client further includes an information item setting and sending module 340, configured to set a user information item corresponding to a user information type, and send the user information item to the server.
In an embodiment of the present invention, a terminal is provided, where the terminal includes the client described in the above embodiment, and the terminal may be a smart phone, a Pad, or the like.
In one embodiment of the invention, the method embodiments provided may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the operation on a computer terminal as an example, fig. 9 is a hardware configuration block diagram of a computer terminal of the system external command execution device according to the embodiment of the present invention. As shown in fig. 9, the terminal 800 may include RF (radio frequency) circuit 110, memory 120 including one or more computer-readable storage media, input unit 130, display unit 140, sensor 150, audio circuit 160, WiFi (wireless fidelity) module 170, processor 180 including one or more processing cores, and power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required by functions (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 9, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 800 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravitational acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and may be used for applications of recognizing the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like, and as for the terminal 800, other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like may be further configured, which are not described herein again.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 800 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 9 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 800, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 800, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal 800 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire terminal. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 800 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 800 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors.
In one embodiment of the present invention, a non-transitory readable storage medium is provided for storing instructions for performing the steps of:
s1, receiving an inquiry request sent by the first user for information retrieval of the second user, wherein the inquiry request comprises inquiry information.
Specifically, the query request represents request information that the first user needs to search for user information of the second user, and the query request may include one or more types of query information, where the query information may be an ID number, a mobile phone number, a mailbox account number, or other registration-type account numbers (such as an MSN account number, a personal network account number, a panning account number, and the like) of the queried user.
And S2, judging whether the query information is matched with the index information of the second user.
Specifically, the query information needs to be matched with the user index information in the user information database one by one, if the matching result is that the index information matched with the query information exists in the user information database, step S3 is executed, otherwise, information that the second user does not exist and/or cannot query is sent to the first user.
S3, judging whether the matched index information of the second user is associated with one user information type of the second user, if so, executing S4, otherwise, sending information which does not exist and/or cannot be inquired by the second user to the first user.
Specifically, the user information types of the same user are at least two, and the user information items corresponding to each user information type of the same user are not completely the same (no meaning of grouping if they are completely the same). Whether the index information of each user is associated with one user information type or not is preset by the user, and if the user does not perform association setting, default association setting preset by a system.
S4, sending the user information item corresponding to the user information type of the associated second user to the first user.
Specifically, a user information entry corresponding to the user information type of each user is preset by the user, and the user information entry corresponding to the user information type includes all or part of the user information of the user; and if the user does not preset the user information item corresponding to the user information type, setting the user information item corresponding to the user information type preset by the default system.
All features of the above-described embodiments of the user information indexing method are herein incorporated by reference into the present storage medium embodiments.
Through the above description of the embodiments, those skilled in the art can clearly understand that the technical solution for executing the external command of the system provided by the present invention can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The sequence of the above embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (17)
1. A user information index method of instant communication tool is characterized in that the method comprises the following steps:
receiving a query request for information retrieval of a second user, which is sent by a first user, wherein the query request comprises query information;
judging whether the query information is matched with index information of a second user, and if not, sending information which does not exist and/or cannot be queried by the second user to the first user;
if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the user information type of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if not, sending information which does not exist and/or cannot be inquired by the second user to the first user; and if so, sending the user information item corresponding to the user information type of the associated second user to the first user.
2. The method as claimed in claim 1, wherein the index information of each user is associated with one of the user information types preset by the user, and if the user does not perform the association setting, default association setting preset by the system.
3. The method of claim 1, wherein the user information entry corresponding to the user information type of each user is preset by the user, and the user information entry corresponding to the user information type includes all or part of the user information of the user; and if the user does not preset the user information item corresponding to the user information type, setting the user information item corresponding to the user information type preset by the default system.
4. The method as claimed in claim 1, wherein the query request further includes an index type to which the query information belongs, and the index information of the second user is matched with the index information corresponding to the index type according to the index type.
5. The method as claimed in claim 1, wherein the index information and/or the index type to which the index information belongs of the same user can only be associated with at most one user information type among all user information types of the same user at the same time.
6. The method of claim 1, wherein two or more of the index messages of a same user can be associated with one of all user message types of the same user at the same time, or,
the index types to which two or more pieces of the index information of the same user belong can be associated with one user information type of all the user information types of the same user at the same time.
7. The method as claimed in claim 1, wherein the query information of the query request includes a plurality of types, the index types to which the combinations of the plurality of types of query information belong can only be associated with at most one of all user information types at the same time, and the index types to which the combinations of the different types of query information belong can be associated with the same or different one of the user information types.
8. The method for indexing user information of an instant messaging tool according to claim 1, wherein the query request includes one or more query messages, and the index type of the query message includes ID, mobile phone number, mailbox account number or other registered account number.
9. The method as claimed in claim 8, wherein different index types of a single query message can be associated with the same or different user message types, or different index types of a combination of multiple query messages can be associated with the same or different user message types.
10. The method as claimed in claim 1, wherein after the first user joins the predetermined user information type group of the second user, the following steps are further performed:
receiving an information opening permission change request of a second user to a first user, wherein the information opening permission change request comprises user information items allowed to be displayed to the first user;
and updating the contact person information database of the first user according to the information opening permission change request.
11. A user information index device of instant communication tool is characterized in that the device comprises the following modules:
the query receiving module is used for receiving a query request which is sent by a first user and used for carrying out information retrieval on a second user, wherein the query request comprises query information;
the system comprises an associated storage and receiving module, a storage module and a processing module, wherein the associated storage and receiving module is used for storing index information and/or index information types of all users and associated information of user information types and/or user information items of the users; and for receiving setting information of the user for the associated information;
the matching module is used for judging whether the query information is matched with the index information of the second user;
a sending module, configured to send the matching determination result to the first user, including: if not, sending information which does not exist and/or cannot be inquired by the second user to the first user; if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
12. The apparatus of claim 11, further comprising an information entry setting module for receiving a user setting for a user information entry associated with a user information type and storing the set user information entry associated with the user information type.
13. A server comprising a processor and a memory, the memory having stored therein instructions that are loaded and executed by the processor, the instructions being operable to perform the steps of:
receiving a query request for information retrieval of a second user, which is sent by a first user, wherein the query request comprises query information;
judging whether the query information is matched with index information of a second user, and if not, sending information which does not exist and/or cannot be queried by the second user to the first user;
if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
14. A client, comprising:
the system comprises a correlation setting and sending module, a server and a database module, wherein the correlation setting and sending module is used for setting the index information and/or the index information type of a user and the correlation information of the user information type and/or the user information entry of the user and sending the correlation information to the server;
the query request sending module is used for sending a query request for information retrieval of the second user to the server;
and the retrieval result receiving module is used for receiving the information retrieval result returned by the server.
15. The client according to claim 14, further comprising an information item setting and sending module, configured to set a user information item corresponding to the user information type and send the user information item to the server.
16. A terminal, characterized in that it comprises a client according to claim 13.
17. A non-transitory readable storage medium storing instructions for performing the steps of:
receiving a query request for information retrieval of a second user, which is sent by a first user, wherein the query request comprises query information;
judging whether the query information is matched with index information of a second user, and if not, sending information which does not exist and/or cannot be queried by the second user to the first user;
if the index information of the second user is matched with one of the user information types of the second user, judging whether the matched index information of the second user is associated with the one of the user information types of the second user, wherein the user information types of the same user are at least two, the user information items corresponding to each user information type of the same user are not completely the same, and if the index information is not associated with the user information items, sending information which does not exist in the second user and/or cannot be inquired to the first user; and if so, sending the user information item corresponding to the user information type of the second user to the first user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010120950.3A CN111291057A (en) | 2020-02-26 | 2020-02-26 | User information indexing method, device, server and storage medium of IM tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010120950.3A CN111291057A (en) | 2020-02-26 | 2020-02-26 | User information indexing method, device, server and storage medium of IM tool |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111291057A true CN111291057A (en) | 2020-06-16 |
Family
ID=71021908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010120950.3A Pending CN111291057A (en) | 2020-02-26 | 2020-02-26 | User information indexing method, device, server and storage medium of IM tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111291057A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114116775A (en) * | 2021-11-08 | 2022-03-01 | 北京达佳互联信息技术有限公司 | Information processing method, device, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090254618A1 (en) * | 2008-04-02 | 2009-10-08 | Arnold Jeremy A | Method and system for real-time/dynamic retrieval of information related to an on-going instant message communication |
CN102930054A (en) * | 2012-11-19 | 2013-02-13 | 北京奇虎科技有限公司 | Data search method and data search system |
CN103678350A (en) * | 2012-09-10 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Social network searching result showing method and device |
CN105190592A (en) * | 2012-12-18 | 2015-12-23 | 阿拉什·伊斯梅尔扎德 | Electronic commerce network with depth and security factors |
CN105224609A (en) * | 2015-09-07 | 2016-01-06 | 北京金山安全软件有限公司 | Index query method and device |
CN105989135A (en) * | 2015-02-26 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Search result acquiring method and device |
CN106385482A (en) * | 2016-09-14 | 2017-02-08 | 北京奇虎科技有限公司 | Contact information processing method and device, and mobile terminal |
CN109308334A (en) * | 2018-11-13 | 2019-02-05 | 北京搜狗科技发展有限公司 | Information recommendation method and device, search engine system |
CN110502692A (en) * | 2019-07-10 | 2019-11-26 | 平安普惠企业管理有限公司 | Information retrieval method, device, equipment and storage medium based on search engine |
-
2020
- 2020-02-26 CN CN202010120950.3A patent/CN111291057A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090254618A1 (en) * | 2008-04-02 | 2009-10-08 | Arnold Jeremy A | Method and system for real-time/dynamic retrieval of information related to an on-going instant message communication |
CN103678350A (en) * | 2012-09-10 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Social network searching result showing method and device |
CN102930054A (en) * | 2012-11-19 | 2013-02-13 | 北京奇虎科技有限公司 | Data search method and data search system |
CN105190592A (en) * | 2012-12-18 | 2015-12-23 | 阿拉什·伊斯梅尔扎德 | Electronic commerce network with depth and security factors |
CN105989135A (en) * | 2015-02-26 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Search result acquiring method and device |
CN105224609A (en) * | 2015-09-07 | 2016-01-06 | 北京金山安全软件有限公司 | Index query method and device |
CN106385482A (en) * | 2016-09-14 | 2017-02-08 | 北京奇虎科技有限公司 | Contact information processing method and device, and mobile terminal |
CN109308334A (en) * | 2018-11-13 | 2019-02-05 | 北京搜狗科技发展有限公司 | Information recommendation method and device, search engine system |
CN110502692A (en) * | 2019-07-10 | 2019-11-26 | 平安普惠企业管理有限公司 | Information retrieval method, device, equipment and storage medium based on search engine |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114116775A (en) * | 2021-11-08 | 2022-03-01 | 北京达佳互联信息技术有限公司 | Information processing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831161B2 (en) | Method and device for sending communication message | |
CN104518953B (en) | Method for deleting message, instant communication terminal and system | |
CN107562835B (en) | File searching method and device, mobile terminal and computer readable storage medium | |
CN104427074B (en) | A kind of methods, devices and systems for showing incoming information | |
US10652287B2 (en) | Method, device, and system for managing information recommendation | |
CN104965641B (en) | information display method and device | |
JP2019502190A (en) | Information push method, device and system, and computer storage medium | |
CN103179026B (en) | Communication means in user interactive system, system and server and client side | |
CN104301315A (en) | Method and device for limiting information access | |
CN104111927A (en) | Method, equipment and system for information classification | |
CN104660769B (en) | A kind of methods, devices and systems for adding associated person information | |
CN108804434B (en) | Message query method, server and terminal equipment | |
CN103607377A (en) | Method, device and system for information sharing | |
CN104142994A (en) | Data list acquisition method, terminal and system | |
CN105577712B (en) | A kind of file uploading method, device and system | |
CN104780234A (en) | Method, device and system for inquiring Internet protocol (IP) address location | |
CN111294275B (en) | User information indexing method, device, server and storage medium of IM tool | |
CN111274463B (en) | Information display method, device and storage medium based on IM contact person grouping setting | |
CN108958854B (en) | Window display method and device and terminal | |
CN113242171B (en) | Method and related device for managing session messages | |
CN111291057A (en) | User information indexing method, device, server and storage medium of IM tool | |
CN105022621A (en) | Method and device for collecting session message and terminal | |
CN104580251B (en) | A kind of method and apparatus for carrying out authorizing quick registration | |
CN107147778B (en) | Data processing method and device and mobile terminal | |
CN106657281B (en) | File sharing method and device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200616 |
|
WD01 | Invention patent application deemed withdrawn after publication |