CN110019980A - Index process method, apparatus, storage medium and computer equipment - Google Patents

Index process method, apparatus, storage medium and computer equipment Download PDF

Info

Publication number
CN110019980A
CN110019980A CN201711207642.9A CN201711207642A CN110019980A CN 110019980 A CN110019980 A CN 110019980A CN 201711207642 A CN201711207642 A CN 201711207642A CN 110019980 A CN110019980 A CN 110019980A
Authority
CN
China
Prior art keywords
user
set identifier
identifier
newly
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711207642.9A
Other languages
Chinese (zh)
Other versions
CN110019980B (en
Inventor
习明昊
刘昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711207642.9A priority Critical patent/CN110019980B/en
Publication of CN110019980A publication Critical patent/CN110019980A/en
Application granted granted Critical
Publication of CN110019980B publication Critical patent/CN110019980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of index process method, apparatus, storage medium and computer equipment, which includes: to obtain newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier;Newly-increased user's set identifier is established for the interim index of the multiple user identifier;It is asynchronous according to newly-increased user's set identifier and the multiple user identifier when establishing the interim index, inverted index of the user identifier that more new historical is established for user's set identifier;The interim index is deleted after the completion of the inverted index updates.Scheme provided by the present application improves the timeliness of information popularization.

Description

Index process method, apparatus, storage medium and computer equipment
Technical field
The present invention relates to field of computer technology, more particularly to a kind of index process method, apparatus, storage medium and meter Calculate machine equipment.
Background technique
It with the development of computer technology, checks that the user of information is more and more by internet, therefore is based on internet The promotion message launched for specific user's cluster is more and more.Collect in traditional technology for specific user and launches promotion message When, usually by the inverted index established between user and user's cluster, so it is specific to belonging to by inquiry inverted index User in user's cluster carries out promotion message popularization.
However, checking that the number of users of information is increasingly huge by internet, the userbase of single user's cluster reaches Even hundred million grades of millions, in this way when Adding User cluster, the time that inverted index is established is longer, so as to cause can not be in time Information popularization is carried out to the user in the cluster that Adds User.
Summary of the invention
Based on this, it is necessary to promote the relatively low problem of timeliness for current promotion message, provide a kind of index process Method, apparatus, storage medium and computer equipment.
A kind of index process method, comprising:
Obtain newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier;
Newly-increased user's set identifier is established for the interim index of the multiple user identifier;
It is asynchronous according to newly-increased user's set identifier and the multiple user identifier when establishing the interim index, Inverted index of the user identifier that more new historical is established for user's set identifier;
The interim index is deleted after the completion of the inverted index updates.
A kind of index process device, comprising:
Module is obtained, for obtaining newly-increased user's set identifier and multiple use corresponding with newly-increased user's set identifier Family mark;
Module is established, for establishing newly-increased user's set identifier for the interim index of the multiple user identifier;
Update module, it is asynchronous according to newly-increased user's set identifier and described for when establishing the interim index Inverted index of the user identifier that multiple user identifiers, more new historical are established for user's set identifier;
Removing module, for deleting the interim index after the completion of inverted index updates.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described When computer program is executed by processor, so that the processor executes following steps:
Obtain newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier;
Newly-increased user's set identifier is established for the interim index of the multiple user identifier;
It is asynchronous according to newly-increased user's set identifier and the multiple user identifier when establishing the interim index, Inverted index of the user identifier that more new historical is established for user's set identifier;
The interim index is deleted after the completion of the inverted index updates.
A kind of computer equipment, including memory and processor store computer program, the meter in the memory When calculation machine program is executed by the processor, so that the processor executes following steps:
Obtain newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier;
Newly-increased user's set identifier is established for the interim index of the multiple user identifier;
It is asynchronous according to newly-increased user's set identifier and the multiple user identifier when establishing the interim index, Inverted index of the user identifier that more new historical is established for user's set identifier;
The interim index is deleted after the completion of the inverted index updates.
Above-mentioned index updating method, device, storage medium and computer equipment, Add User collect when, obtain newly-increased The user identifier of multiple users of user's set identifier and the collection that Adds User, the newly-increased user's set identifier of automatic foundation are more for this The interim index of a user identifier, and when establishing interim index, the newly-increased user's set identifier of asynchronous basis and this multiple use Family mark carrys out inverted index of the user identifier for user's set identifier of more new historical foundation, in this way in the collection that Adds User, but falls When row's index is not also updated or updated, the user in the cluster that Adds User can be carried out in time by inquiring interim index Information popularization greatly improves the timeliness of information popularization.
Detailed description of the invention
Fig. 1 is the applied environment figure of index process method in one embodiment;
Fig. 2 is the flow diagram of index process method in one embodiment;
Fig. 3 is the interface schematic diagram of collection of being Added User by way of user tag customization in one embodiment;
Fig. 4 is the interface schematic diagram of collection of being Added User by way of file upload in one embodiment;
Fig. 5 is the schematic illustration of index process in one embodiment;
Fig. 6 is the interface schematic diagram at promotional content dropping apparatus interface in one embodiment;
Fig. 7 is the hardware structure schematic diagram of one embodiment index process method;
Fig. 8 is the function structure chart of index process device in one embodiment;
Fig. 9 is the function structure chart of index process device in another embodiment;
Figure 10 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of index process method in one embodiment.Referring to Fig.1, the index process method application In index process system.The index process system includes terminal 110 and server 120.Wherein, terminal 110 and server 120 are logical Cross network connection.Server 120 is for executing index process method.Terminal 110 specifically can be terminal console or mobile terminal, Mobile terminal specifically can be at least one of mobile phone, tablet computer, laptop etc..Server 120 specifically can be Independent server is also possible to the server cluster of multiple independent server compositions.Server 120 may include open clothes Business platform.
Fig. 2 is the flow diagram of index process method in one embodiment.The present embodiment is mainly applied in this way Server 120 in above-mentioned Fig. 1 illustrates.Referring to Fig. 2, which specifically comprises the following steps:
S202 obtains newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier.
Wherein, user's set identifier can be the character string including at least one of number, letter and symbol character, be used for One user's collection of unique identification.User's set identifier such as TargetID.It includes multiple that user corresponding to user's set identifier, which concentrates, User identifier.User identifier be also possible to include number, letter and at least one of symbol character character string, for unique Identify a user.User identifier such as UserID.It includes multiple user identifiers that user corresponding to user's set identifier, which concentrates, with User's set identifier is corresponding.
Specifically, server can receive promotional content provider and identify user's set identifier that the first terminal logged in is sent, And multiple user identifiers corresponding with user's set identifier, thus get newly-increased user's set identifier and with newly-increased user The corresponding multiple user identifiers of set identifier.Wherein, promotional content provider mark is for unique identification promotional content supplier Character string.Promotional content provider identifies the newly-increased use of data management platform that the first terminal logged in can be provided by server Family collection, and designated user collects progress promotional content dispensing.
In one embodiment, promotional content provider identifies the first terminal logged in, it is possible to provide is provided by server Data management platform operation interface, and Add User the operation entry of collection in operation interface setting.First terminal can be examined The trigger action to the operation entry is surveyed, corresponding triggering command is triggered according to the trigger action detected, is referred to according to the triggering It enables to server and sends newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier.Server from And receive newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier.Wherein, entrance is triggered It can be icon, Text Link or virtual push button etc..
In one embodiment, the triggering entrance for the collection that Adds User being arranged in operation interface can be multiple.Often A triggering entrance respectively corresponds to a kind of mode of collection that Adds User.Add User collection mode specifically can be user tag customization Mode, file upload mode or social networks diffusion way etc..
S204 establishes newly-increased user's set identifier for the interim index of multiple user identifiers.
Wherein, interim index is the index temporarily established, and after the completion of official index is established, which can be deleted It removes.Index is the mapping relations for searching another data corresponding to a certain data accordingly.In the present embodiment, interim index indicates The mapping relations of data set and the data for belonging to the data set.The reflected mapping relations of interim index have directionality.It is newly-increased User's set identifier for the interim index of multiple user identifiers, indicate that newly-increased user's set identifier maps to user's set identifier Corresponding user concentrates the mapping relations for the user identifier for including.
It illustrates, it is assumed that newly-increased user's set identifier is TargetID1, corresponding multiple with newly-increased user's set identifier User identifier is UserID1, UserID2 and UserID3.So TargetID1 is for UserID1, UserID2 and UserID3 Interim index are as follows: TargetID1 → (UserID1, UserID2, UserID3).
In one embodiment, which specifically can be bitmap index or hash index.
S206, when establishing interim index, the newly-increased user's set identifier of asynchronous basis and multiple user identifiers, more new historical Inverted index of the user identifier of foundation for user's set identifier.
Wherein, inverted index (Inverted index), also referred to as reverse indexing, for indicating belonging to data and the data Data set mapping relations.In the present embodiment, the mapping relations that inverted index is reflected have directionality.User identifier pair In the inverted index of user's set identifier, indicate that user identifier maps to and user's set identifier of the user identifier owning user collection Mapping relations.
It illustrates, it is assumed that user identifier UserID1, and UserID1 is included in user and collects TargetID1 and user's collection In TargetID2.So, inverted index of the UserID1 for TargetID1 and TargetID2 are as follows: UserID1 → (TargetID1, TargetID2).
As previously described, interim index is the mapping relations of user identifier to be mapped to by user's set identifier, and fall Row's index is the mapping relations that user's set identifier is mapped to by user identifier.It is possible to understand, interim index and the row of falling The mapping for indexing reflected mapping relations is contrary.
Specifically, server can when establishing interim index, i.e., according to newly-increased user's set identifier and multiple user identifiers, Inverted index of the user identifier that more new historical is established for user's set identifier.Update inverted index can also be arranged in server in advance Trigger condition, when meeting the trigger condition carry out inverted index update.The trigger condition can be current point in time satisfaction The periodic point in time of pre-set update cycle is also possible to newly-increased user's set identifier quantity and reaches preset data.Than Such as, every progress inverted index update in 1 hour, or often increase newly 10 user's set identifiers when carry out inverted index update.
In the present embodiment, inverted index is the official index being mentioned above.Since promotional content supplier is being intended to When launching promotional content, usually collected by setting user, then collects for user and carry out promotional content dispensing.It is possible to manage Solution, the efficiency for establishing the mapping relations for mapping to user identifier by user's set identifier are higher than foundation and are mapped by user identifier To the mapping relations of user's set identifier.
It illustrates, it is assumed that user's set identifier is TargetID1 and TargetID2, multiple use corresponding with TargetID1 Family is identified as UserID1, UserID2 and UserID3, and multiple user identifiers corresponding with TargetID2 are UserID2, UserID3 and UserID4.So, the mapping relations that user identifier is mapped to by user's set identifier can directly be established: TargetID1 → (UserID1, UserID2, UserID3) and TargetID2 → (UserID2, UserID3, UserID4).And Foundation is then needed to arrange user's set identifier and user identifier by the mapping relations that user's set identifier maps to user identifier, from And UserID1 → (TargetID1) is obtained, UserID2 → (TargetID1, TargetID2), UserID3 → (TargetID1, TargetID2) and UserID4 → (TargetID2).It is mapped, it is apparent that establishing by user's set identifier Efficiency to the mapping relations of user identifier is higher than and establishes the mapping relations for mapping to by user identifier user's set identifier.Especially It is in the included user identifier substantial amounts of user's collection, the inefficient of the two is particularly evident.
And server is when carrying out promotional content popularization, is promoted for single user, then server needs elder generation The collection of user belonging to the user is searched, then searches the promotional content for collecting dispensing for the user and promotes.It is possible to understand , by mapping to the efficiency of the collection of user belonging to the mapping relationship searching user of user identifier as user's set identifier, it is lower than By the efficiency for mapping to the collection of user belonging to the mapping relationship searching user of user's set identifier as user identifier.Therefore, it services Inverted index is set official index by device, to improve search efficiency when promoting, and Add User collect when, it is asynchronous using facing When index, with improve promote when timeliness.
S208 deletes interim index after the completion of inverted index updates.
Specifically, interim index is in official index, i.e., when inverted index does not update or do not update completion, for temporarily looking into It askes.So after the completion of inverted index updates, inverted index can be directly inquired, can then delete interim index at this time, to save Storage resource.
Above-mentioned index updating method, Add User collect when, obtain newly-increased user's set identifier and the collection that Adds User The user identifier of multiple users, it is automatic to establish newly-increased user's set identifier for the interim index of this multiple user identifier, and When establishing interim index, the newly-increased user's set identifier of asynchronous basis carrys out the user of more new historical foundation with this multiple user identifier The inverted index for user's set identifier is identified, in this way in the collection that Adds User, but when inverted index is not also updated or updated, Information popularization can be carried out to the user in the cluster that Adds User in time by inquiring interim index, greatly improve information and push away Wide timeliness.
In one embodiment, S202 includes: to obtain newly-increased user's set identifier and corresponding with newly-increased user's set identifier User tag;User identifier is selected according to user tag, obtains multiple user identifiers corresponding with the user's set identifier increased newly.
Wherein, user tag is reflection user and the characteristic of other users or the label of general character.User tag is such as used Family gender or hobby etc..
Specifically, promotional content provider identifies the first terminal logged in, it is possible to provide by data pipe provided by the server The operation interface of platform may be provided with the operation for the collection that Adds User by way of user tag customization in the operation interface Entrance.The detectable trigger action to the operation entry of first terminal, jumps to user tag according to the trigger action detected Set interface.First terminal can obtain the user's set identifier inputted by the user tag set interface, and the corresponding user One or more user tags of set identifier input or selection, then the user's set identifier that will acquire and with user's set identifier pair The one or more user tags answered are uploaded to server, and server selects user's mark according still further to the one or more user tag Know, obtains multiple user identifiers corresponding with user's set identifier.
In one embodiment, the corresponding user's set identifier of user's collection can be the user and concentrate each user jointly right The user tag answered.For example, user's set identifier are as follows: the ascribed characteristics of population-gender-male.For another example: automobile interest-vehicle-is domestic etc.. Server can be and be combined to existing user collection when selecting user identifier according to one or more user tags, from And obtain multiple user identifiers corresponding with user's set identifier.Wherein, user collect combined mode can be seek intersection, Seek union or seek difference set etc..For example, user tag corresponding with newly-increased user's set identifier is automobile interest-vehicle- It is domestic or joint, then " automobile interest-vehicle-is domestic " and " automobile interest-vehicle-is joint " the two users collection can be asked Take union.It is assumed that user tag corresponding with newly-increased user's set identifier further includes the ascribed characteristics of population-gender-male, then can again by Intersection is sought in the union preceding obtained and " ascribed characteristics of population-gender-male " this user collection.
In one embodiment, server collects cross-cutting user data, segments to the user data of collection, And by semantic analysis or word frequency analysis, the keyword that can represent user is found out, is used to be formed according to the keyword Family label.All user tags of same subscriber are constituted the user tag collection of the user by server again.Wherein, field refers to use The activity scene at family, such as shopping scene, hair Twitter message scene or comment scene etc..Cross-cutting user data be then The information of the purchase article generated under data caused by behavior under the different activity scenes of user, such as shopping scene, hair The comment information generated under the Twitter message and comment scene that are generated under Twitter message scene.Server is according to one or more When a user tag selects user identifier, the user tag collection for inquiring each user can be, when the user tag of user concentrates packet When including the user tag that server is got, that is, selects the user and be classified to the collection of user corresponding to newly-increased user's set identifier In, to obtain multiple user identifiers corresponding with user's set identifier.
Fig. 3 shows the interface schematic diagram for the collection that Adds User by way of user tag customization in one embodiment.With reference to Fig. 3, promotional content supplier can input user tag at the interface, or be used by the user tag option that interface provides The selection of family label.Promotional content supplier is also an option that existing subscriber's collection is combined to obtain new user's collection.
In above-described embodiment, by the user tag of reflection user personality or general character come customized user collection, so that generating User concentrate the general character between each user to become apparent from, thus it is subsequent for user collect carry out promotional content dispensing when it is more quasi- Really.
In one embodiment, S202 includes: to obtain newly-increased user's set identifier and corresponding with newly-increased user's set identifier The file of upload;User identifier is read from file, obtains multiple user identifiers corresponding with the user's set identifier increased newly.
Wherein, file is the carrier for recording data.In the present embodiment, corresponding with newly-increased user's set identifier to upload File can be text file, such as the file or comma separated value (CSV, Comma-Separated of TXT format Values) the file of format.
Specifically, promotional content provider identifies the first terminal logged in, it is possible to provide by data pipe provided by the server The operation interface of platform may be provided with to enter for the operation for the collection that Adds User by way of file upload in the operation interface Mouthful.The detectable trigger action to the operation entry of first terminal, jumps to file according to the trigger action detected and uploads boundary Face.First terminal can obtain the user's set identifier inputted by this document upload interface, and corresponding user's set identifier uploads File, then the user's set identifier that will acquire and file corresponding with user's set identifier be uploaded to server, server again from User identifier is read in file, obtains multiple user identifiers corresponding with the user's set identifier increased newly.Wherein, user identifier is specific It can be telephone number, social account or Terminal Equipment Identifier etc..
In one embodiment, promotional content provider identifies the first terminal logged in, can be in same file upload interface The file of more parts of uploads is obtained, and is respectively set to more parts of files to correspond to different user's set identifiers, Huo Zhehe according to instruction Identical user's set identifier is corresponded to after and.
Fig. 4 shows the interface schematic diagram for the collection that Adds User by way of file upload in one embodiment.With reference to Fig. 4, Promotional content supplier can pass the file for describing user identifier on the surface.Promotional content supplier can upload multiple texts Part can remain multiple users for multiple files of upload and collect, or merge into same user's collection.
In the present embodiment, it provides other user and collects generating mode, enrich user and collect constructive ways.
In one embodiment, S204 includes: creation mark value sequence corresponding with newly-increased user's set identifier;It will be multiple User identifier is respectively mapped as station location marker, and station location marker is for indicating the corresponding value of statistical indicant of user identifier in mark value sequence Position;Value of statistical indicant corresponding with station location marker in mark value sequence is updated, updated value of statistical indicant indicates corresponding user It identifies corresponding with newly-increased user's set identifier.
Wherein, mark value sequence includes a series of value of statistical indicant.The value of statistical indicant is respectively intended to indicate corresponding there are two types of value Whether corresponding with the mark value sequence user identifier user's set identifier be corresponding.Station location marker is for indicating value of statistical indicant in conventional number Specific location in value sequence.
In one embodiment, which specifically can be bitmap index.Specifically, the statistics available institute of server is useful The quantity for the user identifier that family collection includes, and by these user identifier arranged in sequence.The user that server can be created and be increased newly again The user that the corresponding mark value sequence of set identifier, the quantity for the value of statistical indicant which includes and all users collection include marks The quantity of knowledge is identical, and will indicate that all values of statistical indicant in value sequence are set as the first numerical value.It is understood that institute here Having user's collection includes newly-increased user's collection.
For example, Fig. 5 shows the schematic illustration of index process in one embodiment.With reference to Fig. 5, in server Some users collects TargetID1 and TargetID2, multiple user identifiers corresponding with TargetID1 be UserID1, UserID2, UserID3 and UserID4, multiple user identifiers corresponding with TargetID2 be UserID2, UserID3, UserID4 and UserID5.Now increase newly TargetID3, multiple user identifiers corresponding with TargetID3 be UserID4, UserID5, UserID6 and UserID7.So at this point, the quantity for the user identifier that all users collection includes is 7, and sequentially arrange It is classified as UserID1, UserID2, UserID3, UserID4, UserID5, UserID6, UserID7.Assuming that the first numerical value is 0, So, the mark value sequence corresponding with newly-increased user's set identifier of creation are as follows: [0,0,0,0,0,0,0].
Further, multiple user identifiers can be respectively mapped as station location marker by server.Specifically, server can will be used Station location marker of the ranking number as user identifier when the mark arranged in sequence of family.For example, UserID2 comes second, then The station location marker of UserID2 is 2.Wherein, station location marker is for indicating the corresponding value of statistical indicant of user identifier in mark value sequence Middle position, that is,.Server will indicate value sequence after determining the station location marker that this multiple user identifier respectively maps In value of statistical indicant corresponding with these station location markers be updated to second value, updated value of statistical indicant indicate corresponding user identifier with Newly-increased user's set identifier is corresponding.Newly-increased user's set identifier is interim index for updated mark value sequence in this way.
For example, with reference to Fig. 5, for multiple user identifier UserID4 corresponding to newly-increased TargetID3, UserID5, UserID6 and UserID7.According to the sequence of user identifier: UserID1, UserID2, UserID3, UserID4, UserID5, UserID6, UserID7, it is 4, the corresponding station location marker of UserID5 that the corresponding station location marker of UserID4, which can be obtained, For the corresponding station location marker of 5, UserID6 be 6 and the corresponding station location marker of UserID7 is 7.Assuming that second value is 1, then It then is updated to 1 by the 4th, 5,6 and 7 in the newly-increased corresponding mark value sequence [0,0,0,0,0,0,0] of user's set identifier, is obtained [0,0,0,1,1,1,1], so that TargetID3 → [0,0,0,1,1,1,1] is obtained, expression UserID4, UserID5, UserID6 and UserID7 are included in TargetID3.
In one embodiment, which can also be hash index.Specifically, server can be according to user identifier With the mapping relations of station location marker, user identifier is mapped as to indicate the position of corresponding value of statistical indicant position in mark value sequence Set mark.The mapping relations of user identifier and station location marker specifically can be using user identifier as independent variable, be with station location marker The mapping function of dependent variable.Wherein, mapping function specifically can be hash function.Hash function or be hash function, can be The output of the input boil down to preset length of random length, the output are cryptographic Hash or are hashed value.
Further, user identifier is mapped as indicating corresponding value of statistical indicant position in mark value sequence by server After station location marker, the value of statistical indicant in mark value sequence at the position that is identified of the station location marker is checked, and then by determining mark It is worth, is identified by expression relative users and newly-increased user's set identifier is not corresponding, is updated to indicate what relative users were identified and increased newly User's set identifier is corresponding.
In the above-described embodiments, Add User collect when, facing for user identifier mapped to by user's set identifier by establishing When index, greatly improve index formation efficiency, so when needing to carry out information popularization can by inquire interim index and When in the cluster that Adds User user carry out information popularization, greatly improve the timeliness of information popularization.
In one embodiment, S206 includes: the user identifier for inverted index has been established in multiple user identifiers, will Newly-increased user's set identifier is added in inverted index corresponding to the user identifier that inverted index has been established;For multiple users The user identifier of inverted index is not set up in mark, the newly-built user identifier for not setting up inverted index collects mark for newly-increased user The inverted index of knowledge.
Specifically, server can be after the corresponding multiple user identifiers of user's set identifier for getting with increasing newly, and traversal is each User identifier compares the user identifier of traversal extremely with the user identifier that inverted index has been established in traversal.When traversal extremely When user identifier is consistent with the user identifier that inverted index has been established, then newly-increased user's set identifier is added to the row of having been established In inverted index corresponding to the user identifier of index.When user identifier traversal user identifier extremely and inverted index has been established When inconsistent, then the inverted index for not setting up the user identifier of inverted index for newly-increased user's set identifier is created.
For example, the inverted index that history is established includes: UserID1 → (TargetID1), UserID2 with reference to Fig. 5 → (TargetID1, TargetID2), UserID3 → (TargetID1, TargetID2), UserID4 → (TargetID1, TargetID2) and UserID5 → (TargetID2), Add User collect TargetID3 at this time, and TargetID3 correspond to it is multiple User identifier UserID4, UserID5, UserID6 and UserID7.Server ergodic discovery UserID4 and UserID5 are built Newly-increased user's set identifier TargetID3, then is added to the user that inverted index has been established by the user identifier of vertical inverted index In the corresponding inverted index of mark, UserID4 → (TargetID1, TargetID2, TargetID3) and UserID5 is obtained → (TargetID2, TargetID3).UserID6 and UserID7 is the user identifier for not setting up inverted index, then creates and do not build The user identifier of vertical inverted index for the inverted index of newly-increased user's set identifier, obtain UserID6 → (TargetID3) and UserID7→(TargetID3).To obtain updated inverted index: UserID1 → (TargetID1), UserID2 → (TargetID1, TargetID2), UserID3 → (TargetID1, TargetID2), UserID4 → (TargetID1, TargetID2, TargetID3), UserID5 → (TargetID2, TargetID3), UserID6 → (TargetID3) and UserID7→(TargetID3)。
In the present embodiment, when establishing interim index, the formal inverted index of asynchronous refresh, it is ensured that actual data it is complete Whole property and accuracy.
In one embodiment, index process method further include: obtain promotional content and launch instruction;Extract promotional content Launch the promotional content mark for including in instruction and user's set identifier;Establish user of the promotional content mark for extraction of extraction The dispensing of set identifier indexes.
Wherein, it is the instruction for launching promotional content that promotional content, which launches instruction,.Promotional content is for being promoted Data.Promotional content can be advertisement.Promotional content may include picture, text, picture and text combination, audio, video or figure At least one of code etc. form.
Index is launched for indicating to launch data and launching the mapping relations of object.In the present embodiment, index institute is launched The mapping relations of reflection have directionality.Promotional content identifies the dispensing for user's set identifier and indexes, and indicates promotional content mark Know the mapping relations for mapping to the user's set identifier for user's collection that promotional content is thrown to.
Specifically, promotional content provider identifies the first terminal logged in, it is possible to provide by popularization provided by the server Hold the operation interface of release platform, and the operation entry for launching promotional content is set in the operation interface.First terminal is detectable To the trigger action of the operation entry, promotional content dropping apparatus interface is jumped to according to the trigger action detected.First eventually End detection promotional content launches instruction, obtains after detecting that promotional content launches instruction and promotional content mark is arranged by the interface Know, user's set identifier or specified fixed condition etc. corresponding to the specified user's collection launched, the data carrying that will acquire is pushing away Wide content, which is launched in instruction, is sent to server.
Wherein, specified fixed condition can be promotional content and launch region or promotional content dispensing period etc..Fig. 6 is shown The interface schematic diagram at promotional content dropping apparatus interface in one embodiment.With reference to Fig. 6, promotional content supplier can be on the boundary Face is arranged promotional content and identifies, the user launched is specified to collect corresponding user's set identifier or specified fixed condition etc..
Further, server is extracted and is wrapped in promotional content dispensing instruction after receiving promotional content and launching instruction The promotional content mark and user's set identifier included establishes dispensing of the promotional content mark of extraction for user's set identifier of extraction Index.
It illustrates, it is assumed that the promotional content of dispensing is identified as OrderID1, and user's set identifier of direction is TargetID1 And TargetID2.So OrderID1 indexes the order of TargetID1 and TargetID2 are as follows: and OrderID1 → (TargetID1, TargetID2).
In one embodiment, the server of data management platform is provided and the server of promotional content release platform is provided It can be identical server.The server of offer data management platform and the server for providing promotional content release platform can also be Different servers.Provide data management platform server with provide promotional content release platform server be it is different When server, data sharing can be carried out between the two.For example, the server for providing data management platform can will be related to user's collection Data sharing extremely provides the server of promotional content release platform.
In above-described embodiment, collects for specific user and carry out promotional content dispensing, may make information and the user of popularization Demand more match so that information popularization is more accurate.
In one embodiment, index process method further include: the promotional content for obtaining carrying target user's mark obtains Take request;In response to promotional content acquisition request, inquires inverted index and obtain the first user collection corresponding with target user's mark Mark;It is inquired to launch to index according to first user's set identifier and obtains promotional content mark;It promotes corresponding with promotional content mark Promotional content.
Wherein, target user's mark is user identifier corresponding to the user of pending promotional content popularization.Promotional content Acquisition request is the request for request promotional content.
Specifically, the second terminal that user identifier logs in is accessing specified content, or by running in second terminal Application program when accessing specified content, can trigger promotional content acquisition request, and using the user identifier currently logged in as mesh Mark user identifier carrying is sent to server in the promotional content acquisition request, and server carries target user to get The promotional content acquisition request of mark.
Further, server inquires inverted index and obtains marking with target user in response to the promotional content acquisition request Know corresponding first user set identifier, then inquiry launches index and obtains promotional content mark corresponding with first user's set identifier Know, so that promotional content corresponding with promotional content mark is pushed to second terminal.
For example, current inverted index are as follows: UserID1 → (TargetID1), UserID2 → (TargetID1, TargetID2), UserID3 → (TargetID1, TargetID2), UserID4 → (TargetID1, TargetID2, TargetID3), UserID5 → (TargetID2, TargetID3), UserID6 → (TargetID3) and UserID7 → (TargetID3).Target user is identified as UserID3, then the first user set identifier corresponding with target user's mark is TargetID1 and TargetID2.It is current to launch index are as follows: OrderID1 → (TargetID1, TargetID2) and OrderID2 →(TargetID3).So, promotional content corresponding with first user's set identifier identifies OrderID1.To will be with The corresponding promotional content of OrderID1 pushes to second terminal.
In one embodiment, the second terminal that user identifier logs in can also be touched when access reaches preset time point Send out promotional content acquisition request.Wherein, access, which reaches preset time point, can be application journey by running in second terminal Sequence starts to play video or play video to reach preset time point etc..
In one embodiment, the promotional content corresponding with first user's set identifier that server inquires identifies It is multiple.At this point, server is according to preset selection mode, one promotional content of selection from this multiple promotional content mark is identified, To which promotional content corresponding with the promotional content mark chosen is pushed to second terminal.Specifically, server can select at random In promotional content mark, so that promotional content corresponding with the promotional content mark chosen is pushed to second terminal.Clothes Business device can also continue to inquire this multiple promotional content and identify corresponding specified fixed condition, select corresponding specified fixed condition with The matched promotional content mark of user tag collection corresponding to user identifier, thus by corresponding with the content identification of popularization is chosen Promotional content pushes to second terminal.Server also may be selected the corresponding high promotional content of the frequency of promoting and identify, thus will be with choosing In promotional content identify corresponding promotional content and push to second terminal etc..
In above-described embodiment, when getting promotional content acquisition request, the collection of user corresponding to the user identifier is inquired Mark, then the promotional content that user collection is launched will be directed to and be promoted, target user is carried out targetedly to realize Content is promoted, and the content promoted more meets the demand of user, so that information popularization is more accurate.
In one embodiment, index process method further include: when there is interim index, obtained in response to promotional content Request is taken, interim index is inquired and obtains second user set identifier corresponding with target user's mark.According to first user's set identifier Inquiry launches index and obtains promotional content mark, comprising: is launched according to first user's set identifier and the inquiry of second user set identifier Index obtains promotional content mark.
Specifically, server can be inquired when getting promotional content acquisition request with the presence or absence of interim index.When not depositing In interim index, server then directly inquires inverted index.When there is interim index, server can be in inquiry inverted index When, asynchronous query temporarily indexes.Wherein, server can traverse each newly-increased user's set identifier in the interim index of inquiry parallel Corresponding mark value sequence obtains the corresponding user's set identifier list of target user's mark.
Inquiry can temporarily be indexed obtained second user set identifier by server, and first obtained with inquiry inverted index is used Family set identifier merges, and then inquiry dispensing index obtains promotional content corresponding with user's set identifier after merging and identifies, then According to preset selection mode from promotional content mark one promotional content of selection mark, thus will with choose promotional content mark Know corresponding promotional content and pushes to second terminal.
In the present embodiment, interim if it exists to index when carrying out information popularization, that is, there is the collection that Adds User, then, It, can be by inquiring interim index in time to the user in the cluster that Adds User when inverted index is not also updated or updated Information popularization is carried out, the timeliness of information popularization is greatly improved.
It is understood that yes, the server for executing each method in the various embodiments described above can be independent server, it can also To be server cluster that multiple independent servers form.If the server for executing each method in the various embodiments described above is service Device cluster, then each step of method can be and execute on a different server in the various embodiments described above.
Fig. 7 shows the hardware structure schematic diagram of one embodiment index process method.With reference to Fig. 7, the hardware structure packet It includes promotional content provider and identifies the first terminal logged in, the second terminal and server cluster that user identifier logs in.Server Cluster includes data management server (cluster), promotional content dispensing server (cluster), interim storage server (cluster), number According to library server (cluster), access server (cluster) and promotion server (cluster).
Promotional content provider, which identifies the first terminal logged in, to be collected by newly-increased user's set identifier and with newly-increased user It identifies corresponding user tag to be sent to data management server (cluster), data management server (cluster) is according to user tag User identifier is selected, multiple user identifiers corresponding with the user's set identifier increased newly is obtained, is built further according to this multiple user identifier Vertical mark value sequence (bitmap format sequence) corresponding with newly-increased user's set identifier.
Alternatively, promotional content provider identify the first terminal that logs in can by newly-increased user's set identifier and with newly-increased use The corresponding file uploaded of family set identifier;It is sent to data management server (cluster), data management server (cluster) is from file Middle reading user identifier obtains multiple user identifiers corresponding with the user's set identifier increased newly, further according to this multiple user identifier Establish mark value sequence (bitmap format sequence) corresponding with newly-increased user's set identifier.
Data management server (cluster) sends interim index creation instruction to interim storage server (cluster) again, and same When distribution establish mark value sequence (bitmap format sequence) corresponding with newly-increased user's set identifier.Interim storage server (cluster) is to establish newly-increased user's set identifier for the interim index of the multiple user identifier.Interim storage server collection Each node server in group is mutually redundant, when a node server can not work wherein in this way, server in addition It can work normally.
Data management server (cluster) can to interim storage server (cluster) send interim index creation instruct when, It is asynchronous to send inverted index more new command to database server (cluster).Database server (cluster) is to according to newly-increased User's set identifier and multiple user identifiers, inverted index of the user identifier that more new historical is established for user's set identifier.Alternatively, Database server (cluster) can be when current time reaches the preset renewal time point regularly updated, according to newly-increased user Set identifier and multiple user identifiers, inverted index of the user identifier that more new historical is established for user's set identifier.
Database server (cluster) can directly notify interim storage server (cluster) to delete after having updated inverted index Except interim index, interim storage server (cluster) can also be notified to delete interim index by data management server (cluster).
Promotional content provider, which identifies the first terminal logged in, to be sent to promotional content throwing for promotional content dispensing instruction It puts server (cluster), promotional content launches server (cluster) and extracts the promotional content mark for including in promotional content dispensing instruction Know and user's set identifier, the promotional content mark for establishing extraction index the dispensing of user's set identifier of extraction.
The second terminal that user identifier logs in can be initiated to carry the popularization that target user identifies to promotion server (cluster) Content acquisition request.Promotion server (cluster) directs or through access server in response to the promotional content acquisition request (cluster) inquiry inverted index obtains the first user set identifier corresponding with target user's mark.Promotion server (cluster) may be used also When there is interim index, in response to promotional content acquisition request, it is interim to direct or through access server (cluster) inquiry Index obtains second user set identifier corresponding with target user's mark.Wherein, access server (cluster) is used for load balancing.
Promotion server (cluster) directs or through access further according to first user's set identifier and second user set identifier Index is launched in server (cluster) inquiry, promotional content mark is obtained, thus will promotional content corresponding with promotional content mark Push to second terminal.
It should be understood that although each step in the flow chart of the various embodiments described above is successively shown according to the instruction of arrow Show, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, this There is no stringent sequences to limit for the execution of a little steps, these steps can execute in other order.Moreover, above-mentioned each implementation At least part step in example may include that perhaps these sub-steps of multiple stages or stage be not necessarily for multiple sub-steps It is to execute completion in synchronization, but can execute at different times, the execution sequence in these sub-steps or stage It is not necessarily and successively carries out, but can be at least part wheel of the sub-step or stage of other steps or other steps Stream alternately executes.
As shown in figure 8, in one embodiment, providing a kind of index process device 800.Referring to Fig. 8, the index process Device 800 includes: to obtain module 801, establish module 802, update module 803 and removing module 804.
Module 801 is obtained, for obtaining newly-increased user's set identifier and multiple use corresponding with newly-increased user's set identifier Family mark.
Module 802 is established, for establishing newly-increased user's set identifier for the interim index of multiple user identifiers.
Update module 803, for the user's set identifier and multiple users mark that when establishing interim index, asynchronous basis is increased newly Know, inverted index of the user identifier that more new historical is established for user's set identifier.
Removing module 804, for deleting interim index after the completion of inverted index updates.
Above-mentioned index process device 800, Add User collect when, obtain newly-increased user's set identifier and the collection that Adds User Multiple users user identifier, it is automatic to establish newly-increased user's set identifier for the interim index of this multiple user identifier, and And when establishing interim index, the newly-increased user's set identifier of asynchronous basis carrys out the use of more new historical foundation with this multiple user identifier Family identifies the inverted index for user's set identifier, and in this way in the collection that Adds User, but inverted index is not also updated or updated When, information popularization can be carried out to the user in the cluster that Adds User in time by inquiring interim index, greatly improve letter Cease the timeliness promoted.
In one embodiment, module 801 is obtained to be also used to obtain newly-increased user's set identifier and collect with newly-increased user Identify corresponding user tag;User identifier is selected according to user tag, is obtained corresponding multiple with the user's set identifier increased newly User identifier.
In one embodiment, module 801 is obtained to be also used to obtain newly-increased user's set identifier and collect with newly-increased user The corresponding file uploaded of mark;User identifier is read from file, obtains multiple users corresponding with the user's set identifier increased newly Mark.
In one embodiment, it establishes module 802 and is also used to create value of statistical indicant sequence corresponding with newly-increased user's set identifier Column;Multiple user identifiers are respectively mapped as station location marker, station location marker is for indicating that the corresponding value of statistical indicant of user identifier is being marked Position in will value sequence;Value of statistical indicant corresponding with station location marker in mark value sequence is updated, updated value of statistical indicant indicates Corresponding user identifier is corresponding with newly-increased user's set identifier.
In one embodiment, update module 803 is also used to the use for inverted index has been established in multiple user identifiers Family mark, newly-increased user's set identifier is added to and is had been established in inverted index corresponding to the user identifier of inverted index;It is right The user identifier of inverted index is not set up in multiple user identifiers, the newly-built user identifier for not setting up inverted index is for newly-increased User's set identifier inverted index.
In one embodiment, index process device 800 further includes putting module 805.
Putting module 805 launches instruction for obtaining promotional content;It extracts promotional content and launches the popularization for including in instruction Content identification and user's set identifier;The promotional content mark extracted is established to index the dispensing of user's set identifier of extraction.
As shown in figure 9, in one embodiment, index process device 800 further includes putting module 805 and promotional module 806。
Promotional module 806, for obtaining the promotional content acquisition request for carrying target user's mark;In response to promotional content Acquisition request, inquiry inverted index obtain the first user set identifier corresponding with target user's mark;Collected according to the first user and is marked Know inquiry dispensing index and obtains promotional content mark;Promote promotional content corresponding with promotional content mark.
In one embodiment, promotional module 806 is also used to when there is interim index, is asked in response to promotional content acquisition It asks, inquires interim index and obtain second user set identifier corresponding with target user's mark;According to first user's set identifier and Index is launched in the inquiry of two user's set identifiers, obtains promotional content mark.
Figure 10 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be figure Server 120 in 1.As shown in Figure 10, which includes processor, memory and the net connected by system bus Network interface.Wherein, memory includes non-volatile memory medium and built-in storage.The non-volatile memories of the computer equipment are situated between Matter is stored with operating system, can also be stored with computer program, when which is executed by processor, may make processor Realize index process method.Computer program can also be stored in the built-in storage, when which is executed by processor, Processor may make to execute index process method.It will be understood by those skilled in the art that structure shown in Figure 10, only with The block diagram of the relevant part-structure of application scheme, does not constitute the computer equipment being applied thereon to application scheme Limit, specific computer equipment may include than more or fewer components as shown in the figure, perhaps combine certain components or With different component layouts.
In one embodiment, index process device provided by the present application can be implemented as a kind of shape of computer program Formula, computer program can be run in computer equipment as shown in Figure 10, and the non-volatile memory medium of computer equipment can Storage forms each program module of the index process device, for example, acquisition module 801 shown in Fig. 8, establishing module 802, more New module 803 and removing module 804 etc..The computer program of each program module composition executes processor in this specification Step in the index process method of each embodiment of the application of description.
For example, computer equipment shown in Fig. 10 can pass through the acquisition mould in index process device 800 as shown in Figure 8 Block 801 obtains newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier.By establishing module 802 establish newly-increased user's set identifier for the interim index of multiple user identifiers.Interim rope is being established by update module 803 When drawing, the newly-increased user's set identifier of asynchronous basis and multiple user identifiers, the user identifier that more new historical is established collect user The inverted index of mark.Interim index is deleted after the completion of inverted index updates by removing module 804.
In one embodiment, a kind of computer readable storage medium is provided, is deposited on the computer readable storage medium Computer program is contained, when which is executed by processor, so that processor executes following steps: obtaining newly-increased use Family set identifier and multiple user identifiers corresponding with newly-increased user's set identifier;Newly-increased user's set identifier is established for multiple use The interim index of family mark;When establishing interim index, the newly-increased user's set identifier of asynchronous basis and multiple user identifiers update Inverted index of the user identifier that history is established for user's set identifier;Interim index is deleted after the completion of inverted index updates.
In one embodiment, newly-increased user's set identifier and multiple users corresponding with newly-increased user's set identifier are obtained Mark, comprising: obtain newly-increased user's set identifier and user tag corresponding with newly-increased user's set identifier;According to user tag User identifier is selected, multiple user identifiers corresponding with the user's set identifier increased newly are obtained.
In one embodiment, newly-increased user's set identifier and multiple users corresponding with newly-increased user's set identifier are obtained Mark, comprising: obtain the file of newly-increased user's set identifier and upload corresponding with newly-increased user's set identifier;It is read from file User identifier obtains multiple user identifiers corresponding with the user's set identifier increased newly.
In one embodiment, newly-increased user's set identifier is established for the interim index of multiple user identifiers, comprising: wound Build mark value sequence corresponding with the user's set identifier increased newly;Multiple user identifiers are respectively mapped as station location marker, position mark Know for indicating the corresponding value of statistical indicant of user identifier position in mark value sequence;It updates in mark value sequence and is marked with position Know corresponding value of statistical indicant, updated value of statistical indicant indicates that corresponding user identifier is corresponding with newly-increased user's set identifier.
In one embodiment, the newly-increased user's set identifier of asynchronous basis and multiple user identifiers, what more new historical was established Inverted index of the user identifier for user's set identifier, comprising: for the user of inverted index has been established in multiple user identifiers Newly-increased user's set identifier is added to and has been established in inverted index corresponding to the user identifier of inverted index by mark;For The user identifier of inverted index is not set up in multiple user identifiers, the newly-built user identifier for not setting up inverted index is for newly-increased The inverted index of user's set identifier.
In one embodiment, when which is executed by processor, also makes processor execute following steps: obtaining Promotional content is taken to launch instruction;It extracts promotional content and launches the promotional content mark for including in instruction and user's set identifier;It establishes The promotional content mark of extraction indexes the dispensing of user's set identifier of extraction.
In one embodiment, when which is executed by processor, also makes processor execute following steps: obtaining Take the promotional content acquisition request for carrying target user's mark;In response to promotional content acquisition request, inquires inverted index and obtain The first user set identifier corresponding with target user's mark;It is inquired to launch to index according to first user's set identifier and obtains promotional content Mark;Promote promotional content corresponding with promotional content mark.
In one embodiment, when which is executed by processor, processor is also made to execute following steps: when When in the presence of interim index, in response to promotional content acquisition request, inquires interim index and obtain corresponding with target user's mark the Two user's set identifiers.It is inquired to launch to index according to first user's set identifier and obtains promotional content mark, comprising: according to the first user Index is launched in set identifier and the inquiry of second user set identifier, obtains promotional content mark.
Above-mentioned storage medium, Add User collect when, obtain the multiple of newly-increased user's set identifier and the collection that Adds User The user identifier of user, it is automatic to establish newly-increased user's set identifier for the interim index of this multiple user identifier, and building When vertical interim index, the newly-increased user's set identifier of asynchronous basis carrys out the user identifier of more new historical foundation with this multiple user identifier For the inverted index of user's set identifier, in this way in the collection that Adds User, but when inverted index is not also updated or updated, can lead to It crosses the interim index of inquiry and information popularization is carried out to the user in the cluster that Adds User in time, greatly improve information popularization Timeliness.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, when computer program is executed by processor, so that processor executes following steps: obtaining newly-increased user and collect mark Knowledge and multiple user identifiers corresponding with newly-increased user's set identifier;Newly-increased user's set identifier is established for multiple user identifiers Interim index;When establishing interim index, the newly-increased user's set identifier of asynchronous basis and multiple user identifiers, more new historical are built Inverted index of the vertical user identifier for user's set identifier;Interim index is deleted after the completion of inverted index updates.
In one embodiment, newly-increased user's set identifier and multiple users corresponding with newly-increased user's set identifier are obtained Mark, comprising: obtain newly-increased user's set identifier and user tag corresponding with newly-increased user's set identifier;According to user tag User identifier is selected, multiple user identifiers corresponding with the user's set identifier increased newly are obtained.
In one embodiment, newly-increased user's set identifier and multiple users corresponding with newly-increased user's set identifier are obtained Mark, comprising: obtain the file of newly-increased user's set identifier and upload corresponding with newly-increased user's set identifier;It is read from file User identifier obtains multiple user identifiers corresponding with the user's set identifier increased newly.
In one embodiment, newly-increased user's set identifier is established for the interim index of multiple user identifiers, comprising: wound Build mark value sequence corresponding with the user's set identifier increased newly;Multiple user identifiers are respectively mapped as station location marker, position mark Know for indicating the corresponding value of statistical indicant of user identifier position in mark value sequence;It updates in mark value sequence and is marked with position Know corresponding value of statistical indicant, updated value of statistical indicant indicates that corresponding user identifier is corresponding with newly-increased user's set identifier.
In one embodiment, the newly-increased user's set identifier of asynchronous basis and multiple user identifiers, what more new historical was established Inverted index of the user identifier for user's set identifier, comprising: for the user of inverted index has been established in multiple user identifiers Newly-increased user's set identifier is added to and has been established in inverted index corresponding to the user identifier of inverted index by mark;For The user identifier of inverted index is not set up in multiple user identifiers, the newly-built user identifier for not setting up inverted index is for newly-increased The inverted index of user's set identifier.
In one embodiment, when which is executed by processor, also makes processor execute following steps: obtaining Promotional content is taken to launch instruction;It extracts promotional content and launches the promotional content mark for including in instruction and user's set identifier;It establishes The promotional content mark of extraction indexes the dispensing of user's set identifier of extraction.
In one embodiment, when which is executed by processor, also makes processor execute following steps: obtaining Take the promotional content acquisition request for carrying target user's mark;In response to promotional content acquisition request, inquires inverted index and obtain The first user set identifier corresponding with target user's mark;It is inquired to launch to index according to first user's set identifier and obtains promotional content Mark;Promote promotional content corresponding with promotional content mark.
In one embodiment, when which is executed by processor, processor is also made to execute following steps: when When in the presence of interim index, in response to promotional content acquisition request, inquires interim index and obtain corresponding with target user's mark the Two user's set identifiers.It is inquired to launch to index according to first user's set identifier and obtains promotional content mark, comprising: according to the first user Index is launched in set identifier and the inquiry of second user set identifier, obtains promotional content mark.
Above-mentioned computer equipment, Add User collect when, obtain the more of newly-increased user's set identifier and the collection that Adds User The user identifier of a user, it is automatic to establish newly-increased user's set identifier for the interim index of this multiple user identifier, and When establishing interim index, the newly-increased user's set identifier of asynchronous basis and this multiple user identifier carry out user's mark of more new historical foundation Know the inverted index for user's set identifier, it, can in this way in the collection that Adds User, but when inverted index is not also updated or updated Information popularization is carried out to the user in the cluster that Adds User in time by inquiring interim index, greatly improves information popularization Timeliness.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can not Therefore limitations on the scope of the patent of the present invention are interpreted as.It should be pointed out that for those of ordinary skill in the art, Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention It encloses.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (15)

1. a kind of index process method, comprising:
Obtain newly-increased user's set identifier and multiple user identifiers corresponding with newly-increased user's set identifier;
Newly-increased user's set identifier is established for the interim index of the multiple user identifier;
It is asynchronous according to newly-increased user's set identifier and the multiple user identifier when establishing the interim index, it updates Inverted index of the user identifier that history is established for user's set identifier;
The interim index is deleted after the completion of the inverted index updates.
2. the method according to claim 1, wherein described obtain newly-increased user's set identifier and increase newly with described The corresponding multiple user identifiers of user's set identifier, comprising:
Obtain newly-increased user's set identifier and user tag corresponding with newly-increased user's set identifier;
User identifier is selected according to the user tag, obtains multiple user's marks corresponding with newly-increased user's set identifier Know.
3. the method according to claim 1, wherein described obtain newly-increased user's set identifier and increase newly with described The corresponding multiple user identifiers of user's set identifier, comprising:
Obtain the file of newly-increased user's set identifier and upload corresponding with newly-increased user's set identifier;
User identifier is read from the file, obtains multiple user identifiers corresponding with newly-increased user's set identifier.
4. the method according to claim 1, wherein described establish newly-increased user's set identifier for described The interim index of multiple user identifiers, comprising:
Create mark value sequence corresponding with newly-increased user's set identifier;
The multiple user identifier is respectively mapped as station location marker, the station location marker is for indicating that user identifier is marked accordingly Will value position in the mark value sequence;
Value of statistical indicant corresponding with the station location marker in the mark value sequence is updated, updated value of statistical indicant indicates corresponding and uses Family mark is corresponding with newly-increased user's set identifier.
5. the method according to claim 1, wherein described asynchronous according to newly-increased user's set identifier and institute State multiple user identifiers, inverted index of the user identifier that more new historical is established for user's set identifier, comprising:
For the user identifier of inverted index has been established in the multiple user identifier, newly-increased user's set identifier is added It is had been established in inverted index corresponding to the user identifier of inverted index to described;
For not setting up the user identifier of inverted index in the multiple user identifier, the newly-built use for not setting up inverted index Family identifies the inverted index for newly-increased user's set identifier.
6. the method according to any one of claims 1 to 5, which is characterized in that the method also includes:
It obtains promotional content and launches instruction;
It extracts the promotional content and launches the promotional content mark for including in instruction and user's set identifier;
The promotional content mark extracted is established to index the dispensing of user's set identifier of extraction.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
Obtain the promotional content acquisition request for carrying target user's mark;
In response to the promotional content acquisition request, inquires the inverted index and obtain corresponding with target user mark One user's set identifier;
The dispensing index, which is inquired, according to the first user set identifier obtains promotional content mark;
Promote promotional content corresponding with promotional content mark.
8. the method according to the description of claim 7 is characterized in that the method also includes:
When there are the interim index, in response to the promotional content acquisition request, the inquiry interim index obtains and institute It states target user and identifies corresponding second user set identifier;
It is described that promotional content mark is obtained according to the first user set identifier inquiry dispensing index, comprising:
The dispensing index is inquired according to the first user set identifier and the second user set identifier, obtains promotional content mark Know.
9. a kind of index process device, comprising:
Module is obtained, for obtaining newly-increased user's set identifier and multiple user's marks corresponding with newly-increased user's set identifier Know;
Module is established, for establishing newly-increased user's set identifier for the interim index of the multiple user identifier;
Update module, it is asynchronous according to newly-increased user's set identifier and the multiple for when establishing the interim index Inverted index of the user identifier that user identifier, more new historical are established for user's set identifier;
Removing module, for deleting the interim index after the completion of inverted index updates.
10. device according to claim 9, which is characterized in that it is described establish module be also used to create with it is described newly-increased The corresponding mark value sequence of user's set identifier;The multiple user identifier is respectively mapped as station location marker, the station location marker For indicating the corresponding value of statistical indicant of user identifier position in the mark value sequence;Update in the mark value sequence with The corresponding value of statistical indicant of the station location marker, updated value of statistical indicant indicate that corresponding user identifier and the newly-increased user collect and mark Know and corresponds to.
11. device according to claim 9, which is characterized in that the update module is also used to for the multiple user Newly-increased user's set identifier is added to and described inverted index has been established by the user identifier that inverted index has been established in mark User identifier corresponding in inverted index;For not setting up the user identifier of inverted index in the multiple user identifier, The newly-built inverted index of the user identifier for newly-increased user's set identifier for not setting up inverted index.
12. the device according to any one of claim 9 to 11, which is characterized in that described device further include:
Putting module launches instruction for obtaining promotional content;The promotional content is extracted to launch in the popularization for including in instruction Hold mark and user's set identifier;Establish the dispensing rope that the promotional content extracted identifies user's set identifier for extraction Draw.
13. device according to claim 12, which is characterized in that described device further include:
Promotional module, for obtaining the promotional content acquisition request for carrying target user's mark;It is obtained in response to the promotional content Request is taken, the inverted index is inquired and obtains the first user set identifier corresponding with target user mark;Described in presence When interim index, in response to the promotional content acquisition request, inquires the interim index and obtain identifying with the target user Corresponding second user set identifier;The dispensing rope is inquired according to the first user set identifier and the second user set identifier Draw, obtains promotional content mark;Promote promotional content corresponding with promotional content mark.
14. a kind of computer readable storage medium, computer program, the meter are stored on the computer readable storage medium When calculation machine program is executed by processor, so that the processor executes the step such as method described in any item of the claim 1 to 8 Suddenly.
15. a kind of computer equipment, including memory and processor, computer program, the meter are stored in the memory When calculation machine program is executed by the processor, so that the processor executes such as method described in any item of the claim 1 to 8 The step of.
CN201711207642.9A 2017-11-27 2017-11-27 Index processing method and device, storage medium and computer equipment Active CN110019980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711207642.9A CN110019980B (en) 2017-11-27 2017-11-27 Index processing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711207642.9A CN110019980B (en) 2017-11-27 2017-11-27 Index processing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN110019980A true CN110019980A (en) 2019-07-16
CN110019980B CN110019980B (en) 2022-10-25

Family

ID=67185981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711207642.9A Active CN110019980B (en) 2017-11-27 2017-11-27 Index processing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110019980B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110729053A (en) * 2019-10-11 2020-01-24 平安医疗健康管理股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110837827A (en) * 2019-11-09 2020-02-25 东莞市七宝树教育科技有限公司 Test paper printing, scanning and identifying method and system suitable for temporary learning number
CN111858617A (en) * 2020-08-06 2020-10-30 贝壳技术有限公司 User searching method and device, computer readable storage medium and electronic equipment
CN113761102A (en) * 2020-11-18 2021-12-07 北京沃东天骏信息技术有限公司 Data processing method, device, server, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361009A (en) * 2014-10-11 2015-02-18 北京中搜网络技术股份有限公司 Real-time indexing method based on reverse index
US20150120583A1 (en) * 2013-10-25 2015-04-30 The Mitre Corporation Process and mechanism for identifying large scale misuse of social media networks
CN105956085A (en) * 2016-04-29 2016-09-21 合网络技术(北京)有限公司 Reverse indexing construction method and apparatus as well as retrieval method and apparatus
US20170024657A1 (en) * 2015-07-21 2017-01-26 Yp Llc Fuzzy autosuggestion for query processing services
CN106874308A (en) * 2015-12-14 2017-06-20 北京搜狗科技发展有限公司 It is a kind of to recommend method and apparatus, a kind of device for recommending
CN106874392A (en) * 2017-01-13 2017-06-20 微梦创科网络科技(中国)有限公司 The method and apparatus that the index storage of audient's user profile and advertising message are delivered

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120583A1 (en) * 2013-10-25 2015-04-30 The Mitre Corporation Process and mechanism for identifying large scale misuse of social media networks
CN104361009A (en) * 2014-10-11 2015-02-18 北京中搜网络技术股份有限公司 Real-time indexing method based on reverse index
US20170024657A1 (en) * 2015-07-21 2017-01-26 Yp Llc Fuzzy autosuggestion for query processing services
CN106874308A (en) * 2015-12-14 2017-06-20 北京搜狗科技发展有限公司 It is a kind of to recommend method and apparatus, a kind of device for recommending
CN105956085A (en) * 2016-04-29 2016-09-21 合网络技术(北京)有限公司 Reverse indexing construction method and apparatus as well as retrieval method and apparatus
CN106874392A (en) * 2017-01-13 2017-06-20 微梦创科网络科技(中国)有限公司 The method and apparatus that the index storage of audient's user profile and advertising message are delivered

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110729053A (en) * 2019-10-11 2020-01-24 平安医疗健康管理股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110729053B (en) * 2019-10-11 2023-02-03 深圳平安医疗健康科技服务有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110837827A (en) * 2019-11-09 2020-02-25 东莞市七宝树教育科技有限公司 Test paper printing, scanning and identifying method and system suitable for temporary learning number
CN111858617A (en) * 2020-08-06 2020-10-30 贝壳技术有限公司 User searching method and device, computer readable storage medium and electronic equipment
CN113761102A (en) * 2020-11-18 2021-12-07 北京沃东天骏信息技术有限公司 Data processing method, device, server, system and storage medium

Also Published As

Publication number Publication date
CN110019980B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN110019980A (en) Index process method, apparatus, storage medium and computer equipment
CN102227725B (en) System and method for matching entities
JP5543471B2 (en) Geo-time based forecast ad refinement
JP6689515B2 (en) Method and apparatus for identifying the type of user geographic location
CN107797998B (en) Rumor-containing user generated content identification method and device
CN105550252B (en) File positioning method and device and electronic equipment
CN103905471B (en) Information-pushing method, server and the social networks of social networks
CN102609432B (en) Document management apparatus and file management method
CN105760380A (en) Database query method, device and system
CN106250568A (en) Service area determines that method, logistics service provider recommend method and related device
CN101882135B (en) Data processing method and device
CN102231152B (en) Searching method for precisely inquiring based on IP (Internet Protocol) address of mobile terminal
CN104978376A (en) Method and system for tracking sharing path comments
US20160078130A1 (en) Method and system for constructing database based on mutual relations between video data
CN104462532A (en) Method and device for extracting webpage text
CN112241489B (en) Information pushing method, device, readable storage medium and computer equipment
CN105095383A (en) Information issuance method, information search method and relevant device
CN101836209A (en) System and method for managing information map
CN111178965B (en) Resource release method and server
CN102130932A (en) System, method and device for constructing homepage for mobile terminal
CN101155280A (en) Device, method, and computer program product for structuring digital-content program
CN107656967B (en) Scene information processing method and device
CN104376000A (en) Webpage attribute determination method and webpage attribute determination device
CN110347925A (en) Information processing method and computer readable storage medium
CN108182255A (en) Property right project information recommends method, apparatus, storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant