User search method and device, computer-readable storage medium, and electronic device

Using bitmap index technology to search for users in the user portrait system solves the problem of low user search efficiency in the existing technology and achieves efficient and accurate user screening.

CN111858617BActive Publication Date: 2024-10-08BEIKE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010782407.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-06
Publication Date
2024-10-08
Estimated Expiration
2040-08-06

AI Technical Summary

Technical Problem

In the existing user profiling system, user search through SQL query is inefficient, takes up a lot of resources, and cannot efficiently screen qualified users.

Method used

Bitmap indexing technology is used to determine the bitmap related to the set value according to the category and conditions of the set tag, so as to quickly find target users who meet the conditions, and use bitmaps to perform logical operations to improve search efficiency and accuracy.

Benefits of technology

It improves the efficiency and accuracy of user search, reduces resource occupation, and enables efficient screening and search of user portrait tags.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858617B_ABST
    Figure CN111858617B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose a user search method and device, a computer-readable storage medium, and an electronic device, wherein the method comprises: receiving a set value of a set tag and a set condition corresponding to the set value; wherein the set tag is any one of a plurality of user tags, and the set value is any one of a plurality of numerical values ​​corresponding to the set tag; determining n bitmaps related to the set value according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a numerical value of the user tag; according to the set condition, determining m target users who meet the set value and the set condition from a plurality of users corresponding to the n bitmaps; wherein m is greater than or equal to zero; in the present embodiment, based on the user portrait tag, the bitmap is used as an index for user search, thereby improving the search efficiency, and the target user is determined in combination with the n bitmaps, thereby improving the accuracy of the obtained target users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data indexing, and in particular to a user search method and device, a computer-readable storage medium, and an electronic device. Background Art

[0002] In the user portrait system, users are characterized from the dimensions of basic attributes, behavioral attributes, and preference attributes, and their portraits are described in the form of tags. The basis of user grouping is user portrait.

[0003] In the user portrait system, a common indexing method is to construct a mapping relationship between user ID and label, store the data in a relational data table, and filter through SQL query to find people who meet the conditions. However, this method generally requires a full scan when searching for users with set conditions, which is inefficient and takes up more resources. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure is proposed. The embodiments of the present disclosure provide a user search method and device, a computer-readable storage medium, and an electronic device.

[0005] According to one aspect of an embodiment of the present disclosure, a user search method is provided, including:

[0006] Receive a setting value of a setting tag and a setting condition corresponding to the setting value; wherein the setting tag is any one of a plurality of user tags, and the setting value is any one of a plurality of numerical values ​​corresponding to the setting tag;

[0007] Determine n bitmaps related to the set value according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a value of the user tag;

[0008] According to the set condition, m target users that meet the set value and the set condition are determined from the multiple users corresponding to the n bitmaps; wherein m is greater than or equal to zero.

[0009] Optionally, the category of the user tag includes: one or more of an enumerated value tag, a continuous value tag and a time tag;

[0010] When the type of the setting tag is an enumeration value tag, the setting condition is equal to or not equal to;

[0011] When the type of the setting tag is a continuous value tag or a time tag, the setting condition is one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to.

[0012] Optionally, the determining, according to the setting value of the setting tag, n bitmaps related to the setting value includes:

[0013] According to the category of the setting tag, determining the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag;

[0014] According to the expression relationship and the set value, n bitmaps related to the set value are determined.

[0015] Optionally, the expression relationship includes: a first relationship, a second relationship or a third relationship; wherein the first relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is equal to the numerical value, the second relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is greater than or equal to the numerical value, and the third relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the numerical value;

[0016] The determining according to the category of the setting tag, determining according to the category of the setting tag, the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag, includes:

[0017] In response to the type of the setting tag being an enumerated value tag, determining that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a first relationship;

[0018] In response to the category of the setting tag being a continuous value tag, determining that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a second relationship;

[0019] In response to the category of the setting tag being a time tag, it is determined that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a third relationship.

[0020] Optionally, before determining n bitmaps related to the set value according to the expression relationship and the set value, the method further includes:

[0021] Determine whether the set value is a boundary value of the numerical value corresponding to the set tag;

[0022] The step of determining n bitmaps related to the set value according to the expression relationship and the set value includes:

[0023] In response to the set value being the boundary value, determining n bitmaps associated with the boundary value according to the expression relationship and the boundary value;

[0024] In response to the setting value not being the boundary value, n bitmaps associated with the setting value are determined according to the expression relationship and the setting value.

[0025] Optionally, each of the user tags corresponds to a full bitmap, and the full bitmap expresses users corresponding to all values ​​in the user tags;

[0026] The step of determining n bitmaps related to the set value according to the expression relationship and the set value includes:

[0027] In response to the expression relationship being the first relationship, obtaining a bitmap corresponding to the set value based on the set value, or obtaining the bitmap corresponding to the set value and the full amount bitmap;

[0028] In response to the expression relationship being the second relationship, obtaining one of the following based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and the full amount bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the next value of the set value, a bitmap corresponding to the next value of the set value, a bitmap corresponding to the set value, the full amount bitmap, and a bitmap corresponding to the next value of the set value;

[0029] In response to the expression relationship being the third relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, the bitmap corresponding to the set value and the full bitmap, the bitmap corresponding to the set value and the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the set value, the full bitmap, and the bitmap corresponding to the previous numerical value of the set value.

[0030] Optionally, each of the user tags corresponds to a full bitmap, and the full bitmap expresses users corresponding to all values ​​in the user tags;

[0031] The step of determining n bitmaps related to the boundary value according to the expression relationship and the boundary value includes:

[0032] In response to the expression relationship being the first relationship, the second relationship or the third relationship, a bitmap corresponding to the boundary value is obtained based on the boundary value, or the bitmap corresponding to the boundary value and the full bitmap are obtained.

[0033] Optionally, when the category of the setting tag is an enumeration tag;

[0034] The obtaining, based on the n bitmaps, m target users that meet the set value and the set condition comprises:

[0035] In response to the setting condition being equal, taking a user corresponding to a valid identifier in the one bitmap as a target user;

[0036] In response to the setting condition being not equal, an XOR operation is performed on the one bitmap and the full bitmap, and a user corresponding to a valid identifier in a calculation result of the XOR operation is used as a target user.

[0037] Optionally, when the category of the set label is a continuous value label;

[0038] The obtaining, based on the n bitmaps, m target users that meet the set value and the set condition comprises:

[0039] In response to the setting condition being equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user, or taking the user corresponding to the valid identifier in the bitmap corresponding to the boundary value as the target user;

[0040] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0041] In response to the setting condition being greater than, taking the user corresponding to the valid identifier in the bitmap corresponding to the next digit of the setting value as the target user, or the target user corresponding to the boundary value is empty;

[0042] In response to the setting condition being greater than or equal to, taking a user corresponding to a valid identifier in a bitmap corresponding to the setting value as a target user;

[0043] In response to the setting condition being less than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0044] In response to the set condition being less than or equal to, an XOR operation is performed on the full bitmap and the bitmap corresponding to the next numerical value of the set value, and the user corresponding to the valid identifier in the operation result is used as the target user; or the user corresponding to the valid identifier in the full bitmap is used as the target user.

[0045] Optionally, when the type of the set tag is a time tag;

[0046] The obtaining, based on the n bitmaps, m target users that meet the set value and the set condition comprises:

[0047] In response to the setting condition being equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user;

[0048] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0049] In response to the setting condition being greater than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0050] In response to the setting condition being greater than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the full bitmap as the target user;

[0051] In response to the setting condition being less than, taking the user corresponding to the valid identifier in the bitmap corresponding to the previous digit of the setting value as the target user, or the target user corresponding to the boundary value is empty;

[0052] In response to the setting condition being less than or equal to, a user corresponding to a valid identifier in a bitmap corresponding to the setting value is taken as a target user.

[0053] Optionally, the receiving a setting value of the setting tag and a setting condition corresponding to the setting value includes:

[0054] Receiving a plurality of setting values ​​of setting tags having a setting logic operation relationship, and a plurality of setting conditions corresponding to the plurality of setting values; wherein the setting logic operation condition comprises one of the following: AND, OR, NOT, XOR;

[0055] The method further comprises:

[0056] Based on the set logical operation relationship, corresponding logical operations are performed on multiple groups of target users to obtain k result users; wherein k is greater than or equal to zero, and each group of target users meets one of the set values ​​and the set condition corresponding to the set value.

[0057] Optionally, before receiving the setting value of the setting tag and the setting condition corresponding to the setting value, the method further includes:

[0058] According to the pre-selected conditions, a user group is obtained by screening all users stored in the database; wherein the user group includes a plurality of users meeting the pre-selected conditions;

[0059] In the user group, a target user is searched based on the setting value of the setting tag and the setting condition corresponding to the setting value.

[0060] According to another aspect of an embodiment of the present disclosure, there is provided a user search device, comprising:

[0061] A conditional receiving module, used for receiving a setting value of a setting tag and a setting condition corresponding to the setting value; wherein the setting tag is any one of a plurality of user tags, and the setting value is any one of a plurality of numerical values ​​corresponding to the setting tag;

[0062] A bitmap acquisition module, used to determine n bitmaps related to the set value according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a value of the user tag;

[0063] The user search module is used to obtain m target users that meet the set value and the set condition based on the n bitmaps; wherein m is greater than or equal to zero.

[0064] Optionally, the category of the user tag includes: one or more of an enumerated value tag, a continuous value tag and a time tag;

[0065] When the type of the setting tag is an enumeration value tag, the setting condition is equal to or not equal to;

[0066] When the type of the setting tag is a continuous value tag or a time tag, the setting condition is one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to.

[0067] Optionally, the bitmap acquisition module includes:

[0068] a relationship determination unit, configured to determine, according to the category of the setting tag, an expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag;

[0069] A relationship association unit is used to determine n bitmaps related to the set value according to the expression relationship and the set value.

[0070] Optionally, the expression relationship includes: a first relationship, a second relationship or a third relationship; wherein the first relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is equal to the numerical value, the second relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is greater than or equal to the numerical value, and the third relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the numerical value;

[0071] The relationship determination unit is specifically used to determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a first relationship in response to the category of the setting tag being an enumerated value tag; determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a second relationship in response to the category of the setting tag being a continuous value tag; and determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a third relationship in response to the category of the setting tag being a time tag.

[0072] Optionally, the bitmap acquisition module further includes:

[0073] A boundary value identification unit, used to determine whether the set value is a boundary value of the numerical value corresponding to the set tag;

[0074] The relationship association unit is specifically used to determine n bitmaps related to the boundary value according to the expression relationship and the boundary value in response to the set value being the boundary value; and to determine n bitmaps related to the set value according to the expression relationship and the set value in response to the set value not being the boundary value.

[0075] Optionally, each of the user tags corresponds to a full bitmap, and the full bitmap expresses users corresponding to all values ​​in the user tags;

[0076] The relationship association unit is specifically configured to obtain, in response to the expression relationship being the first relationship, a bitmap corresponding to the set value based on the set value, or obtain the bitmap corresponding to the set value and the full bitmap;

[0077] In response to the expression relationship being the second relationship, obtaining one of the following based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and the full amount bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the next value of the set value, a bitmap corresponding to the next value of the set value, a bitmap corresponding to the set value, the full amount bitmap, and a bitmap corresponding to the next value of the set value;

[0078] In response to the expression relationship being the third relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, the bitmap corresponding to the set value and the full bitmap, the bitmap corresponding to the set value and the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the set value, the full bitmap, and the bitmap corresponding to the previous numerical value of the set value.

[0079] Optionally, each of the user tags corresponds to a full bitmap, and the full bitmap expresses users corresponding to all values ​​in the user tags;

[0080] The relationship association unit is specifically used to obtain a bitmap corresponding to the boundary value based on the boundary value in response to the expression relationship being the first relationship, the second relationship or the third relationship, or to obtain the bitmap corresponding to the boundary value and the full bitmap.

[0081] Optionally, when the category of the setting tag is an enumeration tag;

[0082] The user search module is specifically configured to, in response to the setting condition being equal, take a user corresponding to a valid identifier in the one bitmap as a target user;

[0083] In response to the setting condition being not equal, an XOR operation is performed on the one bitmap and the full bitmap, and a user corresponding to a valid identifier in a calculation result of the XOR operation is used as a target user.

[0084] Optionally, when the category of the set label is a continuous value label;

[0085] The user search module is specifically configured to, in response to the setting condition being equal, perform an exclusive OR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value, and use the user corresponding to the valid identifier in the operation result as the target user, or use the user corresponding to the valid identifier in the bitmap corresponding to the boundary value as the target user;

[0086] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0087] In response to the setting condition being greater than, taking the user corresponding to the valid identifier in the bitmap corresponding to the next digit of the setting value as the target user, or the target user corresponding to the boundary value is empty;

[0088] In response to the setting condition being greater than or equal to, taking a user corresponding to a valid identifier in a bitmap corresponding to the setting value as a target user;

[0089] In response to the setting condition being less than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0090] In response to the set condition being less than or equal to, an XOR operation is performed on the full bitmap and the bitmap corresponding to the next numerical value of the set value, and the user corresponding to the valid identifier in the operation result is used as the target user; or the user corresponding to the valid identifier in the full bitmap is used as the target user.

[0091] Optionally, when the type of the set tag is a time tag;

[0092] The user search module is specifically configured to, in response to the setting condition being equal, perform an exclusive OR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous digit of the setting value, and use the user corresponding to the valid identifier in the operation result as the target user; or use the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user;

[0093] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0094] In response to the setting condition being greater than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0095] In response to the setting condition being greater than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the full bitmap as the target user;

[0096] In response to the setting condition being less than, taking the user corresponding to the valid identifier in the bitmap corresponding to the previous digit of the setting value as the target user, or the target user corresponding to the boundary value is empty;

[0097] In response to the setting condition being less than or equal to, a user corresponding to a valid identifier in a bitmap corresponding to the setting value is taken as a target user.

[0098] Optionally, the conditional receiving module is specifically used to receive a plurality of setting values ​​of setting tags having a setting logic operation relationship, and a plurality of setting conditions corresponding to the plurality of setting values; wherein the setting logic operation condition includes one of the following: AND, OR, NOT, XOR;

[0099] The device further comprises:

[0100] A logic processing module is used to perform corresponding logic operations on multiple groups of target users based on the set logic operation relationship to obtain k result users; wherein k is greater than or equal to zero, and each group of target users meets one of the set values ​​and the set conditions corresponding to the set value.

[0101] Optionally, the device further comprises:

[0102] The pre-selection and filtering module is used to filter a user group from all users stored in the database according to pre-selection conditions; wherein the user group includes multiple users that meet the pre-selection conditions; in the user group, the target user is searched based on the set value of the set tag and the set condition corresponding to the set value.

[0103] According to one aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the user search method described in any of the above embodiments.

[0104] According to one aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:

[0105] processor;

[0106] a memory for storing instructions executable by the processor;

[0107] The processor is used to read the executable instructions from the memory and execute the instructions to implement the user search method described in any one of the above embodiments.

[0108] Based on the above embodiments of the present disclosure, a user search method and device, a computer-readable storage medium, and an electronic device are provided to receive a set value of a set tag and a set condition corresponding to the set value; wherein the set tag is any one of a plurality of user tags, and the set value is any one of a plurality of numerical values ​​corresponding to the set tag; n bitmaps related to the set value are determined according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a numerical value of the user tag; according to the set condition, m target users who meet the set value and the set condition are determined from a plurality of users corresponding to the n bitmaps; wherein m is greater than or equal to zero; in this embodiment, based on the user portrait tag, a bitmap is used as an index for user search, thereby improving the search efficiency, and the target user is determined in combination with the n bitmaps, thereby improving the accuracy of the obtained target users.

[0109] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0110] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.

[0111] Figure 1 It is a flowchart of a user search method provided by an exemplary embodiment of the present disclosure.

[0112] Figure 2 This disclosure Figure 1 A schematic flow chart of step 104 in the illustrated embodiment.

[0113] Figure 3 This disclosure Figure 1 Another flowchart diagram of step 104 in the embodiment shown is shown.

[0114] Figure 4a It is a schematic diagram of the mapping relationship between users and user tags constructed in an optional example of the present disclosure.

[0115] Figure 4b This disclosure Figure 4a A schematic diagram of a digital ID assigned to each user in the illustrated embodiment.

[0116] Figure 4c This disclosure Figure 4a The illustrated embodiment is a schematic diagram of a bitmap established for a resident city tag.

[0117] Figure 4d This disclosure Figure 4a A schematic diagram of a bitmap created for a user status tag in the illustrated embodiment.

[0118] Figure 4e This disclosure Figure 4a The illustrated embodiment is a schematic diagram of a bitmap established for a device usage habit tag.

[0119] Figure 4f This disclosure Figure 4a The illustrated embodiment is a schematic diagram of a bitmap established for determining whether to install a target application tag.

[0120] Figure 4g This disclosure Figure 4a A schematic diagram of a full bitmap established in the illustrated embodiment.

[0121] Figure 5a Another optional example of the present disclosure is to use Figure 4c A schematic diagram of the result where the resident city obtained from the bitmap is Beijing.

[0122] Figure 5b Another optional example of the present disclosure is to use Figure 4f The bitmap is a result diagram of the target application being installed.

[0123] Figure 5c is based on Figure 5a and Figure 5b Schematic diagram of the result of the embodiment determining that the resident city is Beijing and the target application is installed.

[0124] Figure 6a It is a schematic diagram of the mapping relationship between users and user tags constructed in another optional example of the present disclosure.

[0125] Figure 6b This disclosure Figure 6a A schematic diagram of a digital ID assigned to each user in the illustrated embodiment.

[0126] Figure 6c This disclosure Figure 6a The illustrated embodiment is a schematic diagram of a bitmap created for active day labels over the past seven days.

[0127] Figure 6d This disclosure Figure 6a The illustrated embodiment is a schematic diagram of a bitmap created for a tag of the number of page views in the past day.

[0128] Figure 6e This disclosure Figure 6a The illustrated embodiment is a schematic diagram of a bitmap established for processing time tags.

[0129] Figure 7It is a structural diagram of a user search device provided by an exemplary embodiment of the present disclosure.

[0130] Figure 8 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0131] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0132] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0133] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.

[0134] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.

[0135] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0136] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.

[0137] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0138] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0139] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0140] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0141] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0142] The disclosed embodiments can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.

[0143] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0144] Exemplary Methods

[0145] Figure 1 FIG. 1 is a flow chart of a user search method provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the following steps are included:

[0146] Step 102: Receive a setting value of a setting tag and a setting condition corresponding to the setting value.

[0147] The setting tag is any one of a plurality of user tags, and the setting value is any one of a plurality of numerical values ​​corresponding to the setting tag.

[0148] The user in this embodiment may refer to a person or object of any identity, etc. Each user corresponds to at least one user tag, and each user tag has one value or multiple values. For example, when the user tag is gender, the value of the user in the tag is unique, for example, male; and when the user tag is a preference information tag, the user's preferences can be multiple, so the user's value in the tag can include multiple values.

[0149] Step 104: determine n bitmaps related to the set value according to the set value of the set tag.

[0150] Where n is greater than or equal to zero, and each bitmap corresponds to a value of a user tag.

[0151] The numerical value referred to in this embodiment includes not only values ​​expressed in digital form, but also values ​​expressed in other forms, such as character strings.

[0152] In one embodiment, each numerical value included in each user tag corresponds to a bitmap, wherein the user corresponding to the bitmap value is displayed as a valid identifier in the corresponding position in the bitmap, for example, 1 represents a valid identifier, and when the value corresponding to the user is different from the bitmap, the user is displayed as an invalid identifier in the corresponding position in the bitmap, for example, 0 represents an invalid identifier.

[0153] Step 106: Based on the n bitmaps, m target users meeting the set values ​​and set conditions are obtained.

[0154] Wherein, m is greater than or equal to zero. Optionally, the number of bitmaps may be zero, in which case the target user cannot be obtained, that is, the number of target users obtained is zero; there is also a possibility that the number of bitmaps determined is not zero, but the number of target users obtained based on n bitmaps is zero, that is, there is no target user that meets the set value and the set condition.

[0155] The above-mentioned embodiment of the present disclosure provides a user search method, which receives a set value of a set tag and a set condition corresponding to the set value; wherein the set tag is any one of multiple user tags, and the set value is any one of multiple numerical values ​​corresponding to the set tag; n bitmaps related to the set value are determined according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a numerical value of the user tag; according to the set condition, m target users who meet the set value and the set condition are determined from multiple users corresponding to the n bitmaps; wherein m is greater than or equal to zero; in this embodiment, based on the user portrait tag, the bitmap is used as an index for user search, which improves the search efficiency, and the target user is determined in combination with the n bitmaps, thereby improving the accuracy of the obtained target users.

[0156] In some optional embodiments, the categories of user tags include: one or more of enumerated value tags, continuous value tags, and time tags;

[0157] When setting the tag type to an enumeration value tag, set the condition to equal or not equal;

[0158] When the tag type is set to a continuous value tag or a time tag, the condition is set to one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to.

[0159] An enumerated value tag is a user tag that includes a finite number of values. All values ​​can be enumerated, for example, describing profile information such as gender, zodiac sign, marital status, and resident city. A continuous value tag refers to a profile tag that describes age, number of views, active days, account balance, etc. The minimum value of these tags is usually 0, and the maximum value is theoretically infinite, but in actual situations, a threshold is generally set, which makes sense within a range. A time tag is a tag that describes time profiles such as browsing time, registration time, and activation time. The value of a date tag can be stored as an 8-bit number, such as a tag value selected from a date control, and the value format is yyyy-MM-dd; the value of the time tag in this embodiment is less than or equal to the current date, that is, the maximum value of the time tag is the current time, which can avoid errors caused by future time.

[0160] like Figure 2 As shown in the above Figure 1 Based on the illustrated embodiment, step 104 may include the following steps:

[0161] Step 1041, according to the category of the setting tag, determine the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag.

[0162] Optionally, the relationships corresponding to different categories of expressions may include: a first relationship, a second relationship, or a third relationship.

[0163] Among them, the first relationship indicates that each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is equal to the numerical value, the second relationship indicates that each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is greater than or equal to the numerical value, and the third relationship indicates that each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the numerical value. Among them, different setting tag categories correspond to different expression relationships. Optionally, in response to the setting tag category being an enumerated value tag, the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is determined to be a first relationship; in response to the setting tag category being a continuous value tag, the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is determined to be a second relationship; in response to the setting tag category being a time tag, the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is determined to be a third relationship.

[0164] Step 1042, determining n bitmaps related to the set value according to the expression relationship and the set value.

[0165] In this embodiment, since the relationship between the user's value and the numerical value corresponding to the bitmap in different user tag types is different (for example, equal to, greater than or equal to, or less than or equal to), for example, the numerical value corresponding to the bitmap corresponding to an enumerated value tag is 8, at this time, the valid identifier corresponding to the user indicates that the value of the enumerated value tag of the user is 8; if the numerical value of the bitmap corresponding to the continuous value tag is 8, at this time, the valid identifier corresponding to the user indicates that the value of the enumerated value tag of the user is greater than or equal to 8; and if the numerical value of the bitmap corresponding to the time tag is 2020-05-28, at this time, the valid identifier corresponding to the user indicates that the value of the enumerated value tag of the user is less than or equal to 2020-05-28. Therefore, according to different expression relationships and set values, the number of bitmaps obtained and which bitmaps are different, this embodiment first identifies the expression relationship, and then obtains the bitmap in combination with the expression relationship and the set value, so that the obtained n bitmaps can realize the screening of qualified users, thereby improving the accuracy of the obtained target users.

[0166] like Figure 3 As shown in the above Figure 1 Based on the illustrated embodiment, step 104 may further include the following steps:

[0167] Step 1041, according to the category of the setting tag, determine the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag.

[0168] Step 1043, determine whether the set value is a boundary value of the numerical value corresponding to the set tag, if so, execute step 1045; otherwise, execute step 1044.

[0169] Step 1044, determining n bitmaps related to the set value according to the expression relationship and the set value.

[0170] In this embodiment, each user tag corresponds to a full bitmap. Optionally, when multiple user tags correspond to full bitmaps, Figure 1 When a full bitmap of multiple user tags is created for the same user group (for example, full bitmaps of multiple user tags are created for the same user group, in which case the full bitmaps of all user tags correspond to all users included in the user group), a full bitmap can be created for multiple user tags and stored under one user tag. When other user tags search for the full bitmap, they can obtain the full bitmap by index search; the full bitmap expresses the users corresponding to all the values ​​in the user tag; for example, the values ​​corresponding to a user tag include: 1, 2, 3; the users whose values ​​in the user tag are 1 include user 1 and user 4; the users whose values ​​in the user tag are 2 include user 2; the users whose values ​​in the user tag are 3 include user 3 and user 5; at this time, it can be determined that users 1, 2, 3, 4, and 5 in the full bitmap all correspond to valid identifiers, which can be reflected in all the users corresponding to all the values ​​in the user tag.

[0171] In response to different expression relationships, the obtained bitmaps are also different. In response to the expression relationship being a first relationship, a bitmap corresponding to the set value is obtained based on the set value, or a bitmap corresponding to the set value and a full bitmap are obtained; wherein, since the setting condition existing in the first relationship may be equal to or not equal to, different bitmaps are obtained for the two setting conditions.

[0172] Since the category of the setting tag is a continuous value tag or a time tag, the setting condition is one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to; therefore, when the expression relationship is the second relationship or the third relationship, 6 different numbers of bitmaps are obtained respectively; optionally, in response to the expression relationship being the second relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and a full bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the next numerical value of the set value, a bitmap corresponding to the next numerical value of the set value, a bitmap corresponding to the set value, a full bitmap, and a bitmap corresponding to the next numerical value of the set value;

[0173] In response to the expression relationship being the third relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and a full bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the previous numerical value of the set value, a bitmap corresponding to the previous numerical value of the set value, a bitmap corresponding to the set value, a full bitmap and a bitmap corresponding to the previous numerical value of the set value.

[0174] Step 1045, determining n bitmaps related to the boundary value according to the expression relationship and the boundary value.

[0175] In this embodiment, each user tag corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all values ​​in the user tag.

[0176] Optionally, when the set value is a boundary value, since there is no bitmap corresponding to the next numerical value in the second relationship and there is no bitmap corresponding to the previous numerical value in the third relationship, when the set value is a boundary value, regardless of whether the expression relationship is the first relationship, the second relationship or the third relationship, the obtained bitmap is the same; for example, a bitmap corresponding to the boundary value is obtained based on the boundary value, or a bitmap corresponding to the boundary value and a full bitmap are obtained.

[0177] This embodiment proposes to process the boundary value separately, avoiding the error of the result being empty due to the inability to obtain the required bitmap due to the set value being the boundary value. This embodiment obtains the corresponding bitmap for the boundary value separately (without obtaining the non-existent bitmap), and can also accurately obtain the target user for the boundary value, thereby improving the accuracy of the obtained target user.

[0178] In an optional embodiment, step 106 may include:

[0179] In response to the setting condition being equal, a user corresponding to a valid identifier in a bitmap is used as a target user;

[0180] In response to the setting condition being not equal, an XOR operation is performed on a bitmap and the full bitmap, and a user corresponding to a valid identifier in a calculation result of the XOR operation is used as a target user.

[0181] In this embodiment, the type of the setting label is an enumeration label, and each valid identifier in the bitmap indicates that the corresponding user has a value equal to the numerical value in the setting label. Therefore, when it is necessary to obtain users equal to the set value, it is only necessary to obtain the users corresponding to the valid identifiers in the bitmap corresponding to the set value; and when obtaining users not equal to the set value, the full bitmap and the bitmap corresponding to the set value are XORed, and at this time, the users corresponding to the corresponding valid identifiers are all target users not equal to the set value.

[0182] In another optional embodiment, step 106 may include:

[0183] In response to the setting condition being equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user, or taking the user corresponding to the valid identifier in the bitmap corresponding to the boundary value as the target user;

[0184] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0185] In response to the setting condition being greater than, the user corresponding to the valid identifier in the bitmap corresponding to the next digit of the setting value is used as the target user, or the target user corresponding to the boundary value is left blank;

[0186] In response to the setting condition being greater than or equal to, taking the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user;

[0187] In response to the setting condition being less than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0188] In response to the set condition being less than or equal to, an XOR operation is performed on the full bitmap and the bitmap corresponding to the next numerical value of the set value, and the user corresponding to the valid identifier in the operation result is used as the target user; or the user corresponding to the valid identifier in the full bitmap is used as the target user.

[0189] In this embodiment, when the category of the setting label is a continuous value label, each valid identifier in the bitmap indicates that the value of the corresponding user in the setting label is greater than or equal to the value; at this time, there can be six setting conditions. When two bitmaps are obtained (for example, the bitmap corresponding to the setting value and the full bitmap), an XOR operation is performed on the two obtained bitmaps to obtain the target user corresponding to the corresponding setting condition; when one bitmap is obtained (for example, the bitmap corresponding to the setting value), the user corresponding to the valid identifier in the bitmap is used as the target user; when three bitmaps are obtained (for example, the bitmap corresponding to the setting value, the full bitmap and the bitmap corresponding to the next numerical value of the setting value), after performing an XOR operation on two of the bitmaps, an XOR operation is performed on the operation result and the other bitmap, and the user corresponding to the valid identifier in the obtained result is used as the target user.

[0190] In yet another optional embodiment, step 106 may include:

[0191] In response to the setting condition being equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user;

[0192] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0193] In response to the setting condition being greater than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0194] In response to the setting condition being greater than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the full bitmap as the target user;

[0195] In response to the setting condition being less than, taking the user corresponding to the valid identifier in the bitmap corresponding to the previous digit of the setting value as the target user, or the target user corresponding to the boundary value is empty;

[0196] In response to the setting condition being less than or equal to, a user corresponding to a valid identifier in a bitmap corresponding to the setting value is taken as a target user.

[0197] In this embodiment, when the type of the setting tag is a time tag, each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the value, and the operations involved are similar to the process corresponding to the continuous value tag, except that the value in the time tag is gradually reduced from the current date to avoid the situation where it is impossible to determine whether there is a corresponding user in the future. The above embodiments implement the screening of different types of user tags in different ways, solve the screening process of users with user portraits including various different user tags, and improve the screening efficiency and accuracy of target users.

[0198] In some optional embodiments, step 102 may include:

[0199] Receive multiple setting values ​​of setting tags with setting logic operation relationships, and multiple setting conditions corresponding to the multiple setting values; wherein the setting logic operation condition includes one of the following: AND, OR, NOT, XOR.

[0200] The user search method provided in this embodiment also includes:

[0201] Based on the set logical operation relationship, corresponding logical operations are performed on multiple groups of target users to obtain k result users.

[0202] Wherein, k is greater than or equal to zero, and each group of target users meets a set value and a set condition corresponding to the set value.

[0203] Optionally, when the number of all or part of the target users in multiple groups of target users is zero, the resulting number of users may be zero after a logical operation (for example, an XOR operation); or when the number of all or part of the target users in multiple groups is not zero, but after a logical operation, the resulting number of users is zero.

[0204] In this embodiment, the received multiple set values ​​and their set conditions are respectively used to execute the user search method provided in the above embodiment to obtain m target users; then the result user is determined based on the logical operation relationship between the multiple set values. For example, the received condition is: equal to the first set value and not equal to the second set value (the logical operation condition expressed is XOR); at this time, a group of target users is obtained based on being equal to the first set value, and another group of target users is obtained based on being not equal to the second set value. At this time, the result user is the user obtained by performing an XOR operation on one group of target users and another group of target users. Optionally, an XOR operation can be performed on a bitmap corresponding to one group of target users and a bitmap corresponding to another group of target users to obtain the result user.

[0205] In addition to the above-mentioned single tags determined by a set of values, user tags also include composite tags. Composite tags describe the same user tag of a user through multiple fields. For example, in different cities, users have different preferences for house viewing. In this case, the house viewing preference tag is a composite tag. For example, the user's house viewing preference in the first city is close to the subway, while the user's house viewing preference in the second city is not close to the subway. Therefore, before searching for users, this embodiment also includes:

[0206] According to the pre-selected conditions, a user group is obtained by screening all users stored in the database; wherein the user group includes multiple users meeting the pre-selected conditions;

[0207] In the user group, the target user is searched based on the setting value of the setting tag and the setting condition corresponding to the setting value.

[0208] Optionally, the composite tag can be filtered by pre-selection conditions, and the composite tag can also be understood as a combination of at least one primary tag and at least one secondary tag, with the bitmap obtained by the logical operation of the primary tag and the secondary tag as the corresponding bitmap in the composite tag. For example, there are 4 hive tables, the base table stores the basic information of users, the device table stores the device information of users, the prefer table stores the preference information of users, and the action table stores the behavior information of users.

[0209] The labels in the base table and the device table are all single labels.

[0210] The labels in the prefer table and action table are all compound labels.

[0211] The compound label in the prefer table contains a primary label (preference label) and a secondary label (city label). The secondary label (city label) is an enumeration value type and can only be equal to. The primary label is an enumeration value type and can be equal to / not equal to. The primary label is equal to, the secondary label is equal to, and the corresponding bitmap is directly selected. The primary label is not equal to, and the secondary label is equal to, use (primary label equal to, secondary label equal to bitmap) Xor (secondary label equal to bitmap).

[0212] In some optional embodiments, before executing the user search method provided by any of the above embodiments of the present disclosure, multiple bitmaps may be established for multiple users according to user portraits. The process of establishing the bitmap may include the following steps: Step a, such as Figure 4a As shown in the figure, a mapping relationship between users and user tags is constructed. These mapping relationships can be directly obtained from the user portraits stored in the database (multiple user tags corresponding to the user). Taking the enumeration value tag as an example, each row corresponds to a user. For ease of understanding, the meaning of each user tag and its corresponding value is explained here. Among them, local_city (permanent city tag): 110000 represents Beijing, 120000 represents Tianjin, and 130000 represents Hebei Province; cust_state (user status tag): 1 represents a new user, 2 represents an active user, and 3 represents a silent user; client_os_type (device usage habit tag): android represents Android phones, ios represents Apple phones, and other represents other devices; is_install_app (whether the target application is installed): 1 represents yes, and 2 represents no.

[0213] Step b: To facilitate subsequent identification and storage, a digital ID is assigned to each user, such as Figure 4bAs shown. Optionally, the step of assigning a digital ID to each user includes: 1) decomposing the user set to be assigned an ID into i sub-user sets, and determining the associated data between the i sub-user sets; wherein i is an integer greater than 1, the user set includes multiple rows of users, and each sub-user set includes some users in the user set. This embodiment proposes a partition processing method, which improves the efficiency of ID allocation while ensuring the association between the IDs of data between different sub-data sets through associated data, thereby improving the accuracy of ID allocation. 2) Assigning a first ID to the multiple rows of users included in each sub-user set to obtain n groups of first IDs. Among them, each user corresponds to a first ID. Optionally, by processing different sub-user sets on different cluster nodes, IDs can be assigned simultaneously through multiple cluster nodes, thereby improving the efficiency of ID allocation. 3) According to the associated users and n groups of first IDs, the second ID corresponding to each user in all users in the user set is obtained to realize the user ID allocation of the user set. Optionally, since the allocation of the first ID to the users in each sub-user set is done independently, for the user set as a whole, there are a large number of duplications in the first IDs allocated in different sub-user sets, and they are not coherent. This embodiment processes n groups of first IDs by managing users, so that the ID corresponding to the users in each sub-user set is updated to the second ID associated with other sub-user sets, thereby realizing the allocation of unique IDs to a large number of users.

[0214] Step c, create a bitmap for each value of each tag, and create three bitmaps for the resident city tag, such as Figure 4c As shown; create three bitmaps for user status labels, such as Figure 4d As shown; create three bitmaps for the device usage habit label, such as Figure 4e As shown; create two bitmaps for whether to install the target application tag, such as Figure 4f As shown; the valid identification in this embodiment is represented by 1; a full bitmap is established according to the number of users included, such as Figure 4g shown.

[0215] Through the above steps, the bitmap of each user tag in the user portrait is established. At this time, the user search can be performed. For example, if the set value of the set tag is Beijing, the set value is "Beijing" and the set condition is equal to, then the user search can be performed. Figure 4c The median value is Beijing. The target user acquisition is performed on the bitmap. The results are as follows: Figure 5a As shown; or, the setting value of the received setting tag is the user who installed the target application, where the setting value is "yes" and the setting condition is equal to, then use Figure 4f The bitmap with the value of yes is used to obtain the target user, and the result is as follows Figure 5bThere can also be a situation where the above two search conditions are used together to search, that is, to search for users whose permanent city is Beijing and who have installed the target application. In this case, only the above Figure 5a and Figure 5b The result of XOR operation can be obtained as follows Figure 5c Results shown.

[0216] In some other optional embodiments, taking continuous value labels as an example, a bitmap is created for multiple users, and the process of creating the bitmap may include the following steps:

[0217] Step a, such as Figure 6a As shown, in Figure 4a Based on the mapping relationship shown in the figure, continuous value label content and date label content are added to construct the mapping relationship between users and user labels. These mapping relationships can be directly obtained from the user portraits (multiple user labels corresponding to the users) stored in the database to distinguish Figure 4a Taking the continuous value label and time label as an example, each row corresponds to a user. For ease of understanding, the meaning of each user label and its corresponding value is explained here, where active_cnt_recent7 (the label of the number of active days in the past 7 days): its corresponding value represents the specific number of days; browse_cnt_1 (the label of the number of views in the past 1 day, which can be set to [0,100]): its corresponding value represents the number of views; deal_time (processing time label): its corresponding value represents the specific time (such as date).

[0218] Step b: To facilitate subsequent identification and storage, a digital ID is assigned to each user, for example Figure 6b As shown (due to Figure 6a The users and Figure 4a Same, therefore, Figure 6b same Figure 4b ).

[0219] Step c: Create a bitmap for each value of each tag, and create 7 bitmaps for the active days tag in the past 7 days, such as Figure 6c As shown; 101 bitmaps are created for the number of views in the past day, such as Figure 6d As shown (due to display limitations, only part of the bitmap is shown); to process the time label, a bitmap from the set date to the current date is established. In this embodiment, it is assumed that the current time is May 28, 2020. At this time, the obtained bitmap is as follows Figure 6e As shown (due to display limitations, only part of the bitmap is shown).

[0220] Any user search method provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any user search method provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any user search method mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.

[0221] Exemplary Devices

[0222] Figure 7 : is a schematic diagram of the structure of a user search device provided by an exemplary embodiment of the present disclosure. The device provided by this embodiment includes:

[0223] The condition receiving module 71 is used to receive the setting value of the setting tag and the setting condition corresponding to the setting value.

[0224] The setting tag is any one of a plurality of user tags, and the setting value is any one of a plurality of numerical values ​​corresponding to the setting tag.

[0225] The bitmap acquisition module 72 is used to determine n bitmaps related to the set value according to the set value of the set tag.

[0226] Where n is greater than or equal to zero, and each bitmap corresponds to a value of a user tag.

[0227] The user search module 73 is used to obtain m target users that meet the set values ​​and set conditions based on the n bitmaps.

[0228] Here, m is greater than or equal to zero.

[0229] The above-mentioned embodiment of the present disclosure provides a user search device, which receives a set value of a set tag and a set condition corresponding to the set value; wherein the set tag is any one of multiple user tags, and the set value is any one of multiple numerical values ​​corresponding to the set tag; n bitmaps related to the set value are determined according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a numerical value of the user tag; according to the set condition, m target users who meet the set value and the set condition are determined from multiple users corresponding to the n bitmaps; wherein m is greater than or equal to zero; in this embodiment, based on the user portrait tag, the bitmap is used as an index for user search, which improves the search efficiency, and the target user is determined in combination with the n bitmaps, thereby improving the accuracy of the obtained target users.

[0230] In some optional embodiments, the categories of user tags include: one or more of enumerated value tags, continuous value tags, and time tags;

[0231] When setting the tag type to an enumeration value tag, set the condition to equal or not equal;

[0232] When the tag type is set to a continuous value tag or a time tag, the condition is set to one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to.

[0233] Optionally, the bitmap acquisition module 72 includes:

[0234] A relationship determination unit, configured to determine, according to the category of the setting tag, an expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag;

[0235] The relationship association unit is used to determine n bitmaps related to the set value according to the expression relationship and the set value.

[0236] Optionally, the expression relationship includes: a first relationship, a second relationship or a third relationship; wherein the first relationship indicates that each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is equal to the numerical value, the second relationship indicates that each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is greater than or equal to the numerical value, and the third relationship indicates that each valid identifier in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the numerical value;

[0237] The relationship determination unit is specifically used to determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a first relationship in response to the category of the setting tag being an enumerated value tag; to determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a second relationship in response to the category of the setting tag being a continuous value tag; and to determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a third relationship in response to the category of the setting tag being a time tag.

[0238] Optionally, the bitmap acquisition module 72 further includes:

[0239] A boundary value identification unit, used to determine whether the set value is a boundary value in the numerical value corresponding to the set tag;

[0240] The relationship association unit is specifically used to determine n bitmaps related to the boundary value according to the expression relationship and the boundary value in response to the set value being the boundary value; and to determine n bitmaps related to the set value according to the expression relationship and the set value in response to the set value not being the boundary value.

[0241] Optionally, each user tag corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all values ​​in the user tag;

[0242] A relationship association unit, specifically configured to obtain a bitmap corresponding to the set value based on the set value in response to the expression relationship being the first relationship, or to obtain the bitmap corresponding to the set value and the full bitmap;

[0243] In response to the expression relationship being the second relationship, obtaining one of the following based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and a full bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the next value of the set value, a bitmap corresponding to the next value of the set value, a bitmap corresponding to the set value, a full bitmap, and a bitmap corresponding to the next value of the set value;

[0244] In response to the expression relationship being the third relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and a full bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the previous numerical value of the set value, a bitmap corresponding to the previous numerical value of the set value, a bitmap corresponding to the set value, a full bitmap, and a bitmap corresponding to the previous numerical value of the set value.

[0245] Optionally, each user tag corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all values ​​in the user tag;

[0246] The relationship association unit is specifically used to obtain a bitmap corresponding to a boundary value based on a boundary value in response to the expression relationship being a first relationship, a second relationship or a third relationship, or to obtain a bitmap corresponding to the boundary value and a full bitmap.

[0247] In some optional embodiments, when the category of the tag is set to an enumeration tag;

[0248] The user search module 73 is specifically configured to respond to the setting condition being equal to and take a user corresponding to a valid identifier in a bitmap as a target user;

[0249] In response to the setting condition being not equal, an XOR operation is performed on a bitmap and the full bitmap, and a user corresponding to a valid identifier in a calculation result of the XOR operation is used as a target user.

[0250] In some other optional embodiments, when the category of the label is set to a continuous value label;

[0251] The user search module 73 is specifically configured to perform an XOR operation on the bitmap corresponding to the set value and the bitmap corresponding to the next value of the set value in response to the set condition being equal, and use the user corresponding to the valid identifier in the operation result as the target user, or use the user corresponding to the valid identifier in the bitmap corresponding to the boundary value as the target user;

[0252] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0253] In response to the setting condition being greater than, the user corresponding to the valid identifier in the bitmap corresponding to the next digit of the setting value is used as the target user, or the target user corresponding to the boundary value is left blank;

[0254] In response to the setting condition being greater than or equal to, taking the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user;

[0255] In response to the setting condition being less than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0256] In response to the set condition being less than or equal to, an XOR operation is performed on the full bitmap and the bitmap corresponding to the next numerical value of the set value, and the user corresponding to the valid identifier in the operation result is used as the target user; or the user corresponding to the valid identifier in the full bitmap is used as the target user.

[0257] In some further optional embodiments, when the category of the tag is set to a time tag;

[0258] The user search module 73 is specifically configured to perform an XOR operation on the bitmap corresponding to the set value and the bitmap corresponding to the previous digit of the set value in response to the set condition being equal, and use the user corresponding to the valid identifier in the operation result as the target user; or use the user corresponding to the valid identifier in the bitmap corresponding to the set value as the target user;

[0259] In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user;

[0260] In response to the setting condition being greater than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user;

[0261] In response to the setting condition being greater than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the full bitmap as the target user;

[0262] In response to the setting condition being less than, the user corresponding to the valid identifier in the bitmap corresponding to the previous digit of the setting value is used as the target user, or the target user corresponding to the boundary value is empty;

[0263] In response to the setting condition being less than or equal to, a user corresponding to a valid identifier in a bitmap corresponding to the setting value is taken as a target user.

[0264] Optionally, the conditional receiving module is specifically used to receive a plurality of setting values ​​of setting tags having a setting logic operation relationship, and a plurality of setting conditions corresponding to the plurality of setting values; wherein the setting logic operation condition includes one of the following: AND, OR, NOT, XOR;

[0265] The device provided in this embodiment also includes:

[0266] The logic processing module is used to perform corresponding logic operations on multiple groups of target users based on set logic operation relationships to obtain k result users; wherein k is greater than or equal to zero, and each group of target users meets a set value and a set condition corresponding to the set value.

[0267] Optionally, the device provided in this embodiment further includes:

[0268] The pre-selection and filtering module is used to filter a user group from all users stored in the database according to pre-selection conditions; wherein the user group includes multiple users that meet the pre-selection conditions; in the user group, the target user is searched based on the set value of the set tag and the set condition corresponding to the set value.

[0269] Exemplary Electronic Devices

[0270] Below, reference Figure 8 The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device 100 and the second device 200, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.

[0271] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is illustrated.

[0272] like Figure 8 As shown, the electronic device 80 includes one or more processors 81 and a memory 82 .

[0273] The processor 81 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 80 to perform desired functions.

[0274] The memory 82 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 81 may run the program instructions to implement the user search method of each embodiment of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0275] In one example, the electronic device 80 may further include: an input device 83 and an output device 84 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0276] For example, when the electronic device is the first device 100 or the second device 200, the input device 83 may be the microphone or microphone array described above, for capturing input signals from a sound source. When the electronic device is a stand-alone device, the input device 83 may be a communication network connector, for receiving collected input signals from the first device 100 and the second device 200.

[0277] In addition, the input device 83 may also include, for example, a keyboard, a mouse, and the like.

[0278] The output device 84 can output various information to the outside, including determined distance information, direction information, etc. The output device 84 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0279] Of course, to simplify, Figure 8 Only some of the components related to the present disclosure in the electronic device 80 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 80 may also include any other appropriate components.

[0280] Exemplary computer program products and computer-readable storage media

[0281] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the user search method according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0282] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0283] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps of the user search method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0284] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0285] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limiting. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0286] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0287] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0288] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0289] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0290] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0291] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A user search method, It is characterized in that include: Receive a setting value of a setting tag and a setting condition corresponding to the setting value; wherein the setting tag is any one of a plurality of user tags, and the setting value is any one of a plurality of numerical values ​​corresponding to the setting tag; Determine n bitmaps related to the set value according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a value of the user tag; Based on the n bitmaps, obtaining m target users that meet the set value and the set condition; wherein m is greater than or equal to zero; The determining, according to the setting value of the setting tag, n bitmaps related to the setting value comprises: According to the category of the setting tag, determining the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag; Determine whether the set value is a boundary value of the numerical value corresponding to the set tag; In response to the set value being the boundary value, determining n bitmaps associated with the boundary value according to the expression relationship and the boundary value; In response to the setting value not being the boundary value, n bitmaps associated with the setting value are determined according to the expression relationship and the setting value.

2. The method according to claim 1, It is characterized in that The categories of the user tags include: one or more of enumerated value tags, continuous value tags and time tags; When the type of the setting tag is an enumeration value tag, the setting condition is equal to or not equal to; When the type of the setting tag is a continuous value tag or a time tag, the setting condition is one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to.

3. The method according to claim 2, It is characterized in that The expression relationship includes: a first relationship, a second relationship or a third relationship; wherein the first relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is equal to the numerical value, the second relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is greater than or equal to the numerical value, and the third relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the numerical value; The determining according to the category of the setting tag, determining according to the category of the setting tag, the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag, includes: In response to the type of the setting tag being an enumerated value tag, determining that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a first relationship; In response to the category of the setting tag being a continuous value tag, determining that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a second relationship; In response to the category of the setting tag being a time tag, it is determined that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a third relationship.

4. The method according to claim 1, It is characterized in that Each of the user tags corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all the values ​​in the user tags; The step of determining n bitmaps related to the set value according to the expression relationship and the set value includes: In response to the expression relationship being the first relationship, obtaining a bitmap corresponding to the set value based on the set value, or obtaining the bitmap corresponding to the set value and the full amount bitmap; In response to the expression relationship being the second relationship, obtaining one of the following based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and the full amount bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the next value of the set value, a bitmap corresponding to the next value of the set value, a bitmap corresponding to the set value, the full amount bitmap, and a bitmap corresponding to the next value of the set value; In response to the expression relationship being the third relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, the bitmap corresponding to the set value and the full bitmap, the bitmap corresponding to the set value and the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the set value, the full bitmap, and the bitmap corresponding to the previous numerical value of the set value.

5. The method according to claim 1, It is characterized in that Each of the user tags corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all the values ​​in the user tags; The step of determining n bitmaps related to the boundary value according to the expression relationship and the boundary value includes: In response to the expression relationship being the first relationship, the second relationship or the third relationship, a bitmap corresponding to the boundary value is obtained based on the boundary value, or the bitmap corresponding to the boundary value and the full bitmap are obtained.

6. The method according to any one of claims 1 to 5, It is characterized in that When the type of the setting tag is an enumeration tag; The obtaining, based on the n bitmaps, m target users that meet the set value and the set condition comprises: In response to the setting condition being equal, taking a user corresponding to a valid identifier in the one bitmap as a target user; In response to the setting condition being not equal, an XOR operation is performed on the one bitmap and the full bitmap, and a user corresponding to a valid identifier in a calculation result of the XOR operation is used as a target user.

7. The method according to claim 4, It is characterized in that When the category of the set label is a continuous value label; The obtaining, based on the n bitmaps, m target users that meet the set value and the set condition comprises: In response to the setting condition being equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user, or taking the user corresponding to the valid identifier in the bitmap corresponding to the boundary value as the target user; In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user; In response to the setting condition being greater than, taking the user corresponding to the valid identifier in the bitmap corresponding to the next digit of the setting value as the target user, or the target user corresponding to the boundary value is empty; In response to the setting condition being greater than or equal to, taking a user corresponding to a valid identifier in a bitmap corresponding to the setting value as a target user; In response to the setting condition being less than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user; In response to the set condition being less than or equal to, an XOR operation is performed on the full bitmap and the bitmap corresponding to the next numerical value of the set value, and the user corresponding to the valid identifier in the operation result is used as the target user; or the user corresponding to the valid identifier in the full bitmap is used as the target user.

8. The method according to claim 4, It is characterized in that When the type of the set tag is a time tag; The obtaining, based on the n bitmaps, m target users that meet the set value and the set condition comprises: In response to the setting condition being equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user; In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user; In response to the setting condition being greater than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user; In response to the setting condition being greater than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the full bitmap as the target user; In response to the setting condition being less than, taking the user corresponding to the valid identifier in the bitmap corresponding to the previous digit of the setting value as the target user, or the target user corresponding to the boundary value is empty; In response to the setting condition being less than or equal to, a user corresponding to a valid identifier in a bitmap corresponding to the setting value is taken as a target user.

9. The method according to any one of claims 1 to 5, It is characterized in that The receiving of the setting value of the setting tag and the setting condition corresponding to the setting value includes: Receiving a plurality of setting values ​​of setting tags having a setting logic operation relationship, and a plurality of setting conditions corresponding to the plurality of setting values; wherein the setting logic operation condition comprises one of the following: AND, OR, NOT, XOR; The method further comprises: Based on the set logical operation relationship, corresponding logical operations are performed on multiple groups of target users to obtain k result users; wherein k is greater than or equal to zero, and each group of target users meets one of the set values ​​and the set condition corresponding to the set value.

10. The method according to any one of claims 1 to 5, It is characterized in that Before receiving the setting value of the setting tag and the setting condition corresponding to the setting value, the method further includes: According to the pre-selected conditions, a user group is obtained by screening all users stored in the database; wherein the user group includes a plurality of users meeting the pre-selected conditions; In the user group, a target user is searched based on the setting value of the setting tag and the setting condition corresponding to the setting value.

11. A user search device, It is characterized in that include: A conditional receiving module, used for receiving a setting value of a setting tag and a setting condition corresponding to the setting value; wherein the setting tag is any one of a plurality of user tags, and the setting value is any one of a plurality of numerical values ​​corresponding to the setting tag; A bitmap acquisition module, used to determine n bitmaps related to the set value according to the set value of the set tag; wherein n is greater than or equal to zero, and each of the bitmaps corresponds to a value of the user tag; A user search module, used to obtain m target users that meet the set value and the set condition based on the n bitmaps; wherein m is greater than or equal to zero; The bitmap acquisition module comprises: a relationship determination unit, configured to determine, according to the category of the setting tag, an expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag; A boundary value identification unit, used to determine whether the set value is a boundary value of the numerical value corresponding to the set tag; A relationship association unit is used to determine n bitmaps related to the boundary value according to the expression relationship and the boundary value in response to the set value being the boundary value; and to determine n bitmaps related to the set value according to the expression relationship and the set value in response to the set value not being the boundary value.

12. The device according to claim 11, It is characterized in that The categories of the user tags include: one or more of enumerated value tags, continuous value tags and time tags; When the type of the setting tag is an enumeration value tag, the setting condition is equal to or not equal to; When the type of the setting tag is a continuous value tag or a time tag, the setting condition is one of the following conditions: equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to.

13. The device according to claim 12, It is characterized in that The expression relationship includes: a first relationship, a second relationship or a third relationship; wherein the first relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is equal to the numerical value, the second relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is greater than or equal to the numerical value, and the third relationship indicates that each of the valid identifiers in the bitmap indicates that the value of the corresponding user in the setting tag is less than or equal to the numerical value; The relationship determination unit is specifically used to determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a first relationship in response to the category of the setting tag being an enumerated value tag; determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a second relationship in response to the category of the setting tag being a continuous value tag; and determine that the expression relationship corresponding to each valid identifier in the bitmap corresponding to the setting tag is a third relationship in response to the category of the setting tag being a time tag.

14. The device according to claim 11, It is characterized in that Each of the user tags corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all the values ​​in the user tags; The relationship association unit is specifically configured to obtain, in response to the expression relationship being the first relationship, a bitmap corresponding to the set value based on the set value, or obtain the bitmap corresponding to the set value and the full bitmap; In response to the expression relationship being the second relationship, obtaining one of the following based on the set value: a bitmap corresponding to the set value, a bitmap corresponding to the set value and the full amount bitmap, a bitmap corresponding to the set value and a bitmap corresponding to the next value of the set value, a bitmap corresponding to the next value of the set value, a bitmap corresponding to the set value, the full amount bitmap, and a bitmap corresponding to the next value of the set value; In response to the expression relationship being the third relationship, one of the following is obtained based on the set value: a bitmap corresponding to the set value, the bitmap corresponding to the set value and the full bitmap, the bitmap corresponding to the set value and the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the previous numerical value of the set value, the bitmap corresponding to the set value, the full bitmap, and the bitmap corresponding to the previous numerical value of the set value.

15. The device according to claim 11, It is characterized in that Each of the user tags corresponds to a full bitmap, and the full bitmap expresses the users corresponding to all the values ​​in the user tags; The relationship association unit is specifically used to obtain a bitmap corresponding to the boundary value based on the boundary value in response to the expression relationship being the first relationship, the second relationship or the third relationship, or to obtain the bitmap corresponding to the boundary value and the full bitmap.

16. The device according to any one of claims 11 to 15, It is characterized in that When the type of the setting tag is an enumeration tag; The user search module is specifically configured to, in response to the setting condition being equal, take a user corresponding to a valid identifier in the one bitmap as a target user; In response to the setting condition being not equal, an XOR operation is performed on the one bitmap and the full bitmap, and a user corresponding to a valid identifier in a calculation result of the XOR operation is used as a target user.

17. The device according to claim 14, It is characterized in that When the category of the set label is a continuous value label; The user search module is specifically configured to, in response to the setting condition being equal, perform an exclusive OR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value, and use the user corresponding to the valid identifier in the operation result as the target user, or use the user corresponding to the valid identifier in the bitmap corresponding to the boundary value as the target user; In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the next value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user; In response to the setting condition being greater than, taking the user corresponding to the valid identifier in the bitmap corresponding to the next digit of the setting value as the target user, or the target user corresponding to the boundary value is empty; In response to the setting condition being greater than or equal to, taking a user corresponding to a valid identifier in a bitmap corresponding to the setting value as a target user; In response to the setting condition being less than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user; In response to the setting condition being less than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the next digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; Or the user corresponding to the valid identifier in the full bitmap is used as the target user.

18. The device according to claim 14, It is characterized in that When the type of the set tag is a time tag; The user search module is specifically configured to, in response to the setting condition being equal, perform an exclusive OR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous digit of the setting value, and use the user corresponding to the valid identifier in the operation result as the target user; or use the user corresponding to the valid identifier in the bitmap corresponding to the setting value as the target user; In response to the setting condition being not equal, performing an XOR operation on the bitmap corresponding to the setting value and the bitmap corresponding to the previous value of the setting value to obtain an XOR bitmap, performing an XOR operation on the XOR bitmap and the full bitmap, and effectively identifying the corresponding user in the obtained result as the target user; or performing an XOR operation on the bitmap corresponding to the boundary value and the full bitmap, and effectively identifying the corresponding user in the operation result as the target user; In response to the setting condition being greater than, performing an XOR operation on the bitmap corresponding to the setting value and the full bitmap, and taking the user corresponding to the valid identifier in the operation result as the target user; In response to the setting condition being greater than or equal to, performing an XOR operation on the full bitmap and the bitmap corresponding to the previous digit of the setting value, and taking the user corresponding to the valid identifier in the operation result as the target user; or taking the user corresponding to the valid identifier in the full bitmap as the target user; In response to the setting condition being less than, taking the user corresponding to the valid identifier in the bitmap corresponding to the previous digit of the setting value as the target user, or the target user corresponding to the boundary value is empty; In response to the setting condition being less than or equal to, a user corresponding to a valid identifier in a bitmap corresponding to the setting value is taken as a target user.

19. The device according to any one of claims 11 to 15, It is characterized in that The conditional receiving module is specifically used to receive a plurality of setting values ​​of setting tags having a setting logic operation relationship, and a plurality of setting conditions corresponding to the plurality of setting values; wherein the setting logic operation condition includes one of the following: AND, OR, NOT, XOR; The device further comprises: A logic processing module is used to perform corresponding logic operations on multiple groups of target users based on the set logic operation relationship to obtain k result users; wherein k is greater than or equal to zero, and each group of target users meets one of the set values ​​and the set conditions corresponding to the set value.

20. The device according to any one of claims 11 to 15, It is characterized in that The device also includes: The pre-selection and filtering module is used to filter a user group from all users stored in the database according to pre-selection conditions; wherein the user group includes multiple users that meet the pre-selection conditions; in the user group, the target user is searched based on the set value of the set tag and the set condition corresponding to the set value.

21. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the user search method described in any one of claims 1 to 10.

22. An electronic device, It is characterized in that The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the user search method described in any one of claims 1-10 above.