CN114040014B - Content pushing method, device, electronic equipment and computer readable storage medium - Google Patents

Content pushing method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114040014B
CN114040014B CN202111311666.5A CN202111311666A CN114040014B CN 114040014 B CN114040014 B CN 114040014B CN 202111311666 A CN202111311666 A CN 202111311666A CN 114040014 B CN114040014 B CN 114040014B
Authority
CN
China
Prior art keywords
content
filtering rule
index information
content filtering
target
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.)
Active
Application number
CN202111311666.5A
Other languages
Chinese (zh)
Other versions
CN114040014A (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.)
Dingdao Zhilian Beijing Technology Co ltd
Original Assignee
Dingdao Zhilian Beijing Technology 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 Dingdao Zhilian Beijing Technology Co ltd filed Critical Dingdao Zhilian Beijing Technology Co ltd
Priority to CN202111311666.5A priority Critical patent/CN114040014B/en
Publication of CN114040014A publication Critical patent/CN114040014A/en
Application granted granted Critical
Publication of CN114040014B publication Critical patent/CN114040014B/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/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering

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)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a content pushing method, a content pushing device, electronic equipment and a computer readable storage medium, comprising the following steps: receiving a content push request sent by a client, and determining at least one target content filtering rule adapted to the content push request; for each target content filtering rule, acquiring index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule; and acquiring push content corresponding to the content push request based on index information corresponding to each target content filtering rule, and sending the push content to the client. According to the scheme, in the content filtering process, only target content is required to be queried from the preset content index database, then push content is acquired according to the target content, and the calculation times are small, so that content push response is fast, and resource consumption is low.

Description

Content pushing method, device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a content pushing method, a content pushing device, an electronic device, and a computer readable storage medium.
Background
When the client is connected to the service end of the content service platform, the content service platform pushes content for the client, and when the content service platform stores a large amount of content, in order to realize accurate pushing, the content service platform can deliver different content for the clients of different regions, different sexes and different brands according to preset content filtering rules. The region, sex and brand machine are all filtering rules of the content. And after the service end of the content service platform is requested by the client, the service end screens and filters all the content by utilizing each content filtering rule to obtain the push content.
However, in the present push method, each content needs to be circularly filtered by using each filtering rule when content filtering is performed, so that the push process consumes more computing resources and the push response is slow.
Disclosure of Invention
The purpose of the present application is to at least solve one of the above technical drawbacks, and the technical solutions provided in the embodiments of the present application are as follows:
In a first aspect, an embodiment of the present application provides a content pushing method, including:
receiving a content push request sent by a client, and determining at least one target content filtering rule adapted to the content push request;
for each target content filtering rule, acquiring index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule;
and acquiring push content corresponding to the content push request based on index information corresponding to each target content filtering rule, and sending the push content to the client.
In an alternative embodiment of the present application, before receiving the content push request information sent by the client, the method further includes:
storing all the contents into a first array;
for each content filtering rule, sequentially screening each content in the first array from front to back by using the content filtering rule, and recording the screening result as the sequence number of the content meeting the content filtering rule in the first array to obtain index information of the content meeting the content filtering rule;
And storing each content filtering rule corresponding to the index information of the content meeting the content filtering rule to obtain a content index information base.
In an alternative embodiment of the present application, recording the screening result as the sequence number of the content satisfying the content filtering rule in the first array includes:
recording screening results in the form of character strings according to the screening sequence, marking the screening results meeting the content filtering rules as a first numerical value, and marking the screening results not meeting the content filtering rules as a second numerical value.
In an alternative embodiment of the present application, the string is a binary string, wherein the first value is 1 and the second value is 0.
In an optional embodiment of the present application, obtaining push content corresponding to a content push request based on index information corresponding to each target content filtering rule includes:
performing binary AND operation on index information corresponding to each target content filtering rule to obtain final index information;
and acquiring the serial number of the numerical value 1 in the final index information, and acquiring the content corresponding to the serial number from the first array to obtain the push content.
In an optional embodiment of the present application, storing each content filtering rule corresponding to index information of content satisfying the content filtering rule, to obtain a content index information base, including:
Storing each content filtering rule into a second array, converting index information corresponding to each content filtering rule into decimal values, and storing the decimal values into a third array according to the sequence corresponding to the second array;
and correspondingly storing the second array and the third array to obtain a content index information base.
In an alternative embodiment of the present application, determining at least one target content filtering rule adapted to a content push request includes:
acquiring parameters corresponding to the client based on each content filtering rule and the content pushing request;
and determining the content filtering rule with the matched parameters as a target content filtering rule.
In a second aspect, an embodiment of the present application provides a content pushing apparatus, including:
the content push request receiving module is used for receiving a content push request sent by the client and determining at least one target content filtering rule adapted to the content push request;
the index information acquisition module is used for acquiring index information of at least one target content meeting the target content filtering rule from the content index information base for each target content filtering rule, wherein the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule;
The push content acquisition module is used for acquiring push content corresponding to the content push request based on index information corresponding to each target content filtering rule and sending the push content to the client.
In an optional embodiment of the present application, the apparatus further includes a content index information base construction module configured to:
before receiving content push request information sent by a client, storing all content into a first array;
for each content filtering rule, sequentially screening each content in the first array from front to back by using the content filtering rule, and recording the screening result as the sequence number of the content meeting the content filtering rule in the first array to obtain index information of the content meeting the content filtering rule;
and storing each content filtering rule corresponding to the index information of the content meeting the content filtering rule to obtain a content index information base.
In an alternative embodiment of the present application, the content index information base construction module is specifically configured to:
recording screening results in the form of character strings according to the screening sequence, marking the screening results meeting the content filtering rules as a first numerical value, and marking the screening results not meeting the content filtering rules as a second numerical value.
In an alternative embodiment of the present application, the string is a binary string, wherein the first value is 1 and the second value is 0.
In an alternative embodiment of the present application, the content index information base construction module is further configured to:
performing binary AND operation on index information corresponding to each target content filtering rule to obtain final index information;
and acquiring the serial number of the numerical value 1 in the final index information, and acquiring the content corresponding to the serial number from the first array to obtain the push content.
In an alternative embodiment of the present application, the content index information base construction module is further configured to:
storing each content filtering rule into a second array, converting index information corresponding to each content filtering rule into decimal values, and storing the decimal values into a third array according to the sequence corresponding to the second array;
and correspondingly storing the second array and the third array to obtain a content index information base.
In an alternative embodiment of the present application, the content push request receiving module is specifically configured to:
acquiring parameters corresponding to the client based on each content filtering rule and the content pushing request;
and determining the content filtering rule with the matched parameters as a target content filtering rule.
In a third aspect, embodiments of the present application provide an electronic device including a memory and a processor;
a memory having a computer program stored therein;
a processor for executing a computer program to implement the method provided in the first aspect embodiment or any of the alternative embodiments of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium, wherein the computer readable storage medium has a computer program stored thereon, which when executed by a processor implements the method provided in the embodiment of the first aspect or any of the alternative embodiments of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer readable storage medium by a processor of a computer device, which processor executes the computer instructions such that the computer device, when executed, implements the method provided in the embodiment of the first aspect or any alternative embodiment of the first aspect.
The beneficial effects that this application provided technical scheme brought are:
After the target content filtering rules adapted to the content pushing requests are obtained, target content meeting the target content filtering rules is queried in a preset content index database, pushing content corresponding to the content pushing requests is obtained based on the target content, each piece of content is not required to be screened in a circulating mode by utilizing the target content filtering rules in the content filtering process, the target content is queried from the preset content index database, and then the pushing content is obtained according to the target content, so that the computing times are small, the content pushing response is quick, and the resource consumption is low.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a diagram of a system architecture on which a content pushing scheme provided in an embodiment of the present application depends;
fig. 2 is a flow chart of a content pushing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an overall flow of content pushing in an example of an embodiment of the present application;
fig. 4 is a block diagram of a structure of a content pushing device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
In the existing push manner of the content service platform, in the process of filtering massive content by using content filtering rules, massive cyclic filtering processing is required, for example, if the content service platform contains M content filtering rules and N content, at least m×n computations are required, and as M and N increase, the number of computations increases, so that the response time of the content service platform also increases, and the resource consumption also increases.
In view of the above problems, embodiments of the present application provide a content pushing method, apparatus, electronic device, and computer readable storage medium. The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a system architecture diagram on which a content pushing solution provided in an embodiment of the present application depends, as shown in fig. 1, where the system may include a server 101 of a content service platform and various clients 102 (which may be a mobile phone, a tablet, or a personal computer, etc.). The server 101 is connected to the client 102 via a network. Specifically, the user sends a content push request to the server 101 by operating the client 102, and the server 101 pushes corresponding push content to the client 102 in response to the content push request. After the server 101 receives the content pushing request sent by the client 102, the final pushing content is filtered from the plurality of contents by using the content filtering rule according to the parameters corresponding to different clients. The key point of the embodiment of the present application is that the server 102 filters a plurality of contents by using a content filtering rule to obtain a final push content. The following will describe the scheme of the present application in detail.
Fig. 2 is a flow chart of a content pushing method provided in an embodiment of the present application, where an execution body of the method may be a server, as shown in fig. 2, and the method may include:
step S201, a content push request sent by a client is received, and at least one target content filtering rule adapted to the content push request is determined.
The server receives a content pushing request sent by a user through the client, wherein the content pushing request comprises a part of parameters input by the user, and meanwhile, the server can also actively acquire other parameters of the client. The parameters can be used as the basis of accurate pushing, specifically, the server can determine a plurality of content filtering rules adapted to the content pushing request according to the parameters, namely, determine a plurality of target content filtering rules, and obtain the pushing content after filtering by the target content filtering rules.
Specifically, determining at least one target content filtering rule adapted to a content push request includes: acquiring parameters corresponding to the client based on each content filtering rule and the content pushing request; and determining the content filtering rule with the matched parameters as a target content filtering rule.
Step S202, for each target content filtering rule, obtaining index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule.
The target content can be directly found out from all the contents according to the index information of the target content.
Specifically, in the previous step, a plurality of target content filtering rules are determined, and for each target content filtering rule, index information stored corresponding to the target content filtering rule is searched from a content index information base. Because the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule is stored in the content index information base, the queried index information is the index information of the target content meeting the target content filtering rule, and all target contents meeting the target content filtering rule can be directly found according to the index information. The content index information base is pre-constructed for the server, and the construction process will be described in detail later.
Step S203, based on the index information corresponding to each target content filtering rule, the push content corresponding to the content push request is obtained, and the push content is sent to the client.
Specifically, according to the index information corresponding to each target content filtering rule, target content meeting each target content filtering rule can be found, and then target content meeting all target non-human filtering rules in the target content is used as push content. And finally, the server side sends the obtained push content to the client side.
According to the scheme, after the target content filtering rules adapted to the content pushing requests are obtained, target contents meeting the target content filtering rules are queried in the preset content index database, then the pushing contents corresponding to the content pushing requests are obtained based on the target contents, each piece of content is not required to be screened in a circulating mode by utilizing the target content filtering rules in the content filtering process, the target contents are queried from the preset content index database, and then the pushing contents are obtained according to the target contents, so that the calculation times are small, the content pushing response is quick, and the resource consumption is low.
In an alternative embodiment of the present application, before receiving the content push request information sent by the client, the method further includes:
storing all the contents into a first array;
for each content filtering rule, sequentially screening each content in the first array from front to back by using the content filtering rule, and recording the screening result as the sequence number of the content meeting the content filtering rule in the first array to obtain index information of the content meeting the content filtering rule;
And storing each content filtering rule corresponding to the index information of the content meeting the content filtering rule to obtain a content index information base.
Specifically, the server maintains all the contents contained in the server in the first array, so that the serial numbers of the contents in the array are called as corresponding indexes, and any one content can be directly obtained from the first array as long as the serial numbers of the contents are known.
The process of constructing the content index information base is actually a process of establishing a correspondence between each content filtering rule and index information of content satisfying the content filtering rule. Then, for each content filtering rule, the application uses the content filtering rule to screen all the content, and each screening can know whether the corresponding content meets the content filtering rule, that is, the screening result is that the content filtering rule is met or not met. And recording the serial numbers of the contents in the first array for the contents meeting the content filtering rule, wherein the indexes of all the contents meeting the content filtering rule are index information of the contents meeting the content filtering rule. It is understood that the index information may contain one or more indices of content that satisfy the content filtering rules.
After the index information corresponding to all the content filtering rules is obtained, storing each content filtering rule and the corresponding index information in a one-to-one correspondence manner, and thus obtaining a content index information base. In the subsequent content pushing process, the corresponding index information can be queried from the content index information base as long as the content filtering rule is known.
The content index information base is constructed only once and can be repeatedly used after being constructed once. If there is new content or new content filtering rule, the corresponding relation in the content index information base can be updated by adopting the construction process.
In an alternative embodiment of the present application, recording the screening result as the sequence number of the content satisfying the content filtering rule in the first array includes:
recording screening results in the form of character strings according to the screening sequence, marking the screening results meeting the content filtering rules as a first numerical value, and marking the screening results not meeting the content filtering rules as a second numerical value.
Further, the character string is a binary character string, wherein the first value is 1 and the second value is 0.
Specifically, in the process of constructing the content index information base, the form of a character string of each screening result is recorded, and the serial number of each result in the character string is equal to the serial number of the corresponding content in the first array, so that the structured storage in the content index information base is more convenient.
Further, the screening result may be recorded by using a binary string, specifically, for each content filtering rule, in a process of sequentially screening the content in the first array by using the binary string, the screening result is also recorded sequentially, if the screening result is that the content filtering rule is met, the recording is 1, and if the screening result is that the content filtering rule is not met, the recording is 0. It will be appreciated that in the content index information base, each content filtering rule corresponds to index information of one binary string.
For example, for a first array, denoted content [ ] { c1, c2, c3, c4..}, where c1, c2, c3, c4 are four content, the content filtering rules are four: the correspondence of the regional rule ("Beijing"), the gender rule ("Male"), the client device brand rule ("A brand machine"), the age rule ("20 years"), and the preset content data index information base constructed according to the regional rule ("Beijing"), the gender rule ("Male"), and the age rule are shown in Table 1.
TABLE 1
Content filtering rules Binary character string Decimal integer Meaning of
Regional rules 0011 3 The contents meeting the region rule are c3 and c4
Sex rules 0101 5 The contents satisfying the gender rule are c2 and c4
Device brand rules 1110 12 Content satisfying brand rules is c1, c2 and c3
Age rule 1010 10 Content satisfying age rule is c1 and c3
As can be seen from the above table, if the determined target content filtering rule of a content push request is a region rule and a gender rule, then according to the above table 1, it can be known that the index information corresponding to the region rule is "0011", and the index information corresponding to the gender rule is "0101". .
In an optional embodiment of the present application, obtaining push content corresponding to a content push request based on index information corresponding to each target content filtering rule includes:
performing binary AND operation on index information corresponding to each target content filtering rule to obtain final index information;
and acquiring the serial number of the numerical value 1 in the final index information, and acquiring the content corresponding to the serial number from the first array to obtain the push content.
Specifically, after the index information corresponding to each target content filtering rule is acquired, the index information of the target content satisfying all the target content filtering rules needs to be determined. When the binary character string is used as index information, binary operation can be performed on the binary character string corresponding to each target content, and the obtained operation result is the final index information.
For example, the index information corresponding to the region rule is "0011", the index information corresponding to the sex rule is "0101", and then the corresponding final index information is "0001", that is, only the content c4 can satisfy the region rule and the sex rule at the same time, so that the content c4 is sent to the client as the push content.
In an optional implementation of the present application, storing each content filtering rule corresponding to index information of content satisfying the content filtering rule, to obtain a content index information base, including:
storing each content filtering rule into a second array, converting index information corresponding to each content filtering rule into decimal values, and storing the decimal values into a third array according to the sequence corresponding to the second array;
and correspondingly storing the second array and the third array to obtain a content index information base.
Specifically, as shown in table 1, the decimal shaping corresponding to each binary string is shown in the third column of the table, the content filtering rules are stored in the second array according to a certain sequence, and then the decimal shaping corresponding to each content filtering rule is stored in the third array according to the same sequence, so that the content index information base can be obtained only by storing the second array and the third array. Then, when the preset content information base is used, decimal shaping corresponding to the content filtering rule is obtained, then the decimal shaping is converted into a corresponding binary character string, and corresponding index information can be obtained, so that corresponding content meeting the content filtering rule is found.
The content pushing scheme provided in the embodiment of the present application is further described below by using an example, and as shown in fig. 3, the pushing process may include two parts: the first part is used for constructing a content index information base, and the second part is used for acquiring push content according to a content push request. The method specifically comprises the following steps:
a first part: constructing a preset content index database:
1. the server loads all rule data (i.e., all content filtering rules) and maintains them in a set of maps, denoted as rule1, rule2, … rule10, respectively, relating to region (area), age (age), brand of equipment (brand), and gender (gender).
2. The server loads all content data (i.e., all content) and maintains the content data in one array (i.e., the first array), as shown, including c1, c2, c3, c4, c5, …. And screening the contents by using the content filtering rules respectively to obtain contents meeting the content filtering rules, for example, c1 meets rule1, rule2 and rule3.
3. According to the above screening result, the corresponding relation between the content filtering rule and the content (i.e. the content index information base) is obtained, and as shown in the figure, the binary string corresponding to the content satisfying each content filtering rule can be obtained, for example, the binary string corresponding to rule1 is "11101000".
A second part: obtaining push content according to the content push request:
4. rule adaptation: according to the parameter input, a rule matched with the content push request is selected, namely, a target content filtering rule matched with the content push request is determined, as shown in the figure, the parameters are "age=20 and city=Beijing", and therefore the target content filtering rule is determined to be rule1 and rule5.
5. Rule binary operation: according to the corresponding relation in the content index information base constructed in the last part, the binary character strings corresponding to rule1 and rule5 are determined to be '1110 1000' and '0100 1000', and then binary AND operation is carried out on the two binary character strings to obtain the final index information as '0100 1000'.
6. Content matching: according to '0100 1000', c2 and c5 can be determined to meet rule1 and rule5 at the same time, so that c2 and c5 are obtained from the first array as push contents and sent to the client.
Fig. 4 is a block diagram of a content pushing device according to an embodiment of the present application, and as shown in fig. 4, the device 400 may include: a content push request receiving module 401, an index information obtaining module 402, and a push content obtaining module 403, wherein:
the content push request receiving module 401 is configured to receive a content push request sent by a client, and determine at least one target content filtering rule adapted to the content push request;
The index information obtaining module 402 is configured to obtain, for each target content filtering rule, index information of at least one target content that satisfies the target content filtering rule from a content index information base, where a correspondence between each content filtering rule and index information of content that satisfies the content filtering rule is stored in the content index information base;
the push content obtaining module 403 is configured to obtain push content corresponding to the content push request based on index information corresponding to each target content filtering rule, and send the push content to the client.
According to the scheme, after the target content filtering rules adapted to the content pushing requests are obtained, target contents meeting the target content filtering rules are queried in the preset content index database, pushing contents corresponding to the content pushing requests are obtained based on the target contents, cyclic screening is not needed to be conducted on each piece of content in the content filtering process by utilizing the target content filtering rules, the target contents are queried from the preset content index database, and then the pushing contents are obtained according to the target contents, so that the calculation times are small, the content pushing response is quick, and the resource consumption is low.
In an optional embodiment of the present application, the apparatus further includes a content index information base construction module configured to:
before receiving content push request information sent by a client, storing all content into a first array;
for each content filtering rule, sequentially screening each content in the first array from front to back by using the content filtering rule, and recording the screening result as the sequence number of the content meeting the content filtering rule in the first array to obtain index information of the content meeting the content filtering rule;
and storing each content filtering rule corresponding to the index information of the content meeting the content filtering rule to obtain a content index information base.
In an alternative embodiment of the present application, the content index information base construction module is specifically configured to:
recording screening results in the form of character strings according to the screening sequence, marking the screening results meeting the content filtering rules as a first numerical value, and marking the screening results not meeting the content filtering rules as a second numerical value.
In an alternative embodiment of the present application, the string is a binary string, wherein the first value is 1 and the second value is 0.
In an alternative embodiment of the present application, the content index information base construction module is further configured to:
Performing binary AND operation on index information corresponding to each target content filtering rule to obtain final index information;
and acquiring the serial number of the numerical value 1 in the final index information, and acquiring the content corresponding to the serial number from the first array to obtain the push content.
In an alternative embodiment of the present application, the content index information base construction module is further configured to:
storing each content filtering rule into a second array, converting index information corresponding to each content filtering rule into decimal values, and storing the decimal values into a third array according to the sequence corresponding to the second array;
and correspondingly storing the second array and the third array to obtain a content index information base.
In an alternative embodiment of the present application, the content push request receiving module is specifically configured to:
acquiring parameters corresponding to the client based on each content filtering rule and the content pushing request;
and determining the content filtering rule with the matched parameters as a target content filtering rule.
Referring now to fig. 5, a schematic diagram of a configuration of an electronic device (e.g., a terminal device or server that performs the method of fig. 2) 500 suitable for use in implementing embodiments of the present application is shown. The electronic devices in the embodiments of the present application may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), wearable devices, and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present application.
An electronic device includes: the memory is used for storing programs for executing the methods according to the method embodiments; the processor is configured to execute a program stored in the memory. Herein, the processor may be referred to as a processing device 501, which is described below, and the memory may include at least one of a Read Only Memory (ROM) 502, a Random Access Memory (RAM) 503, and a storage device 508, which are described below, specifically as follows:
as shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present application are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable storage medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal that propagates in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
receiving a content push request sent by a client, and determining at least one target content filtering rule adapted to the content push request; for each target content filtering rule, acquiring index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule; and acquiring push content corresponding to the content push request based on index information corresponding to each target content filtering rule, and sending the push content to the client.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. Where the name of the module or unit does not constitute a limitation on the unit itself in some cases, for example, the content push request receiving module may also be described as "a module that receives a content push request".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, a specific method implemented by the above-described computer readable medium when executed by an electronic device may refer to a corresponding procedure in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions such that the computer device performs:
receiving a content push request sent by a client, and determining at least one target content filtering rule adapted to the content push request; for each target content filtering rule, acquiring index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule; and acquiring push content corresponding to the content push request based on index information corresponding to each target content filtering rule, and sending the push content to the client.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (8)

1. A content pushing method, comprising:
receiving a content push request sent by a client, and determining at least one target content filtering rule adapted to the content push request; comprising the following steps:
Acquiring parameters corresponding to the client based on each content filtering rule and the content pushing request;
determining a content filtering rule with matched parameters as the target content filtering rule;
storing all contents into a first array, for each target content filtering rule, sequentially screening each content in the first array from front to back by using the content filtering rule, and recording the screening result as the sequence number of the content meeting the content filtering rule in the first array to obtain index information of the content meeting the content filtering rule; storing each content filtering rule corresponding to index information of the content meeting the content filtering rule to obtain the content index information base; obtaining index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the index information can comprise one or more indexes of the content meeting the content filtering rule, the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule, and
according to the index information, all target contents meeting the target content filtering rule can be directly found;
And acquiring push content corresponding to the content push request based on index information corresponding to each target content filtering rule, and sending the push content to the client.
2. The method of claim 1, wherein the recording the screening result is a sequence number of the content in the first array that satisfies the content filtering rule, comprising:
recording screening results in the form of character strings according to the screening sequence, marking the screening results meeting the content filtering rules as a first numerical value, and marking the screening results not meeting the content filtering rules as a second numerical value.
3. The method of claim 2, wherein the string is a binary string, wherein the first value is 1 and the second value is 0.
4. The method of claim 3, wherein the obtaining the push content corresponding to the content push request based on the index information corresponding to each target content filtering rule comprises:
performing binary AND operation on index information corresponding to each target content filtering rule to obtain final index information;
and acquiring a serial number of a value 1 in the final index information, and acquiring content corresponding to the serial number from the first array to obtain the push content.
5. The method of claim 4, wherein storing each content filtering rule in correspondence with index information of content satisfying the content filtering rule to obtain the content index information base includes:
storing each content filtering rule into a second array, converting index information corresponding to each content filtering rule into decimal values, and storing the decimal values into a third array according to the sequence corresponding to the second array;
and correspondingly storing the second array and the third array to obtain the content index information base.
6. A content pushing apparatus, comprising:
the content push request receiving module is used for receiving a content push request sent by a client and determining at least one target content filtering rule adapted to the content push request; comprising the following steps:
acquiring parameters corresponding to the client based on each content filtering rule and the content pushing request;
determining a content filtering rule with matched parameters as the target content filtering rule;
the index information acquisition module is used for storing all contents into a first array for each target content filtering rule, sequentially screening each content in the first array from front to back by using the content filtering rule, and recording the screening result as the sequence number of the content meeting the content filtering rule in the first array to obtain index information of the content meeting the content filtering rule; storing each content filtering rule corresponding to index information of the content meeting the content filtering rule to obtain the content index information base; obtaining index information of at least one target content meeting the target content filtering rule from a content index information base, wherein the index information can comprise one or more indexes of the content meeting the content filtering rule, the content index information base stores the corresponding relation between each content filtering rule and the index information of the content meeting the content filtering rule, and
According to the index information, all target contents meeting the target content filtering rule can be directly found;
and the push content acquisition module is used for acquiring the push content corresponding to the content push request based on index information corresponding to each target content filtering rule and sending the push content to the client.
7. An electronic device comprising a memory and a processor;
the memory stores a computer program;
the processor for executing the computer program to implement the method of any one of claims 1 to 5.
8. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1 to 5.
CN202111311666.5A 2021-11-08 2021-11-08 Content pushing method, device, electronic equipment and computer readable storage medium Active CN114040014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111311666.5A CN114040014B (en) 2021-11-08 2021-11-08 Content pushing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111311666.5A CN114040014B (en) 2021-11-08 2021-11-08 Content pushing method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114040014A CN114040014A (en) 2022-02-11
CN114040014B true CN114040014B (en) 2024-04-05

Family

ID=80143304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111311666.5A Active CN114040014B (en) 2021-11-08 2021-11-08 Content pushing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114040014B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266805A (en) * 2019-06-28 2019-09-20 京东数字科技控股有限公司 Information-pushing method, device, electronic equipment and readable medium
CN111797091A (en) * 2019-10-18 2020-10-20 北京沃东天骏信息技术有限公司 Method and device for querying data in database, electronic equipment and storage medium
CN113568907A (en) * 2021-07-14 2021-10-29 彩讯科技股份有限公司 Method, device, server and storage medium for processing station information message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11347822B2 (en) * 2020-04-23 2022-05-31 International Business Machines Corporation Query processing to retrieve credible search results

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266805A (en) * 2019-06-28 2019-09-20 京东数字科技控股有限公司 Information-pushing method, device, electronic equipment and readable medium
CN111797091A (en) * 2019-10-18 2020-10-20 北京沃东天骏信息技术有限公司 Method and device for querying data in database, electronic equipment and storage medium
CN113568907A (en) * 2021-07-14 2021-10-29 彩讯科技股份有限公司 Method, device, server and storage medium for processing station information message

Also Published As

Publication number Publication date
CN114040014A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN114116842B (en) Multidimensional medical data real-time acquisition method and device, electronic equipment and storage medium
CN111950857A (en) Index system management method and device based on service indexes and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN112906394A (en) Address recognition method, device, equipment and storage medium
CN111597107A (en) Information output method and device and electronic equipment
CN111241137B (en) Data processing method, device, electronic equipment and storage medium
CN111262907B (en) Service instance access method and device and electronic equipment
CN113220281A (en) Information generation method and device, terminal equipment and storage medium
CN111596992A (en) Navigation bar display method and device and electronic equipment
CN114040014B (en) Content pushing method, device, electronic equipment and computer readable storage medium
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN111143355B (en) Data processing method and device
CN111737040B (en) Program code repairing method and device
CN115034175A (en) Table data processing method, device, terminal and storage medium
CN112100211A (en) Data storage method and device, electronic equipment and computer readable medium
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN111581305B (en) Feature processing method, device, electronic equipment and medium
CN116483808B (en) Data migration method, device, electronic equipment and computer readable medium
CN115374320B (en) Text matching method and device, electronic equipment and computer medium
CN111857879B (en) Data processing method, device, electronic equipment and computer readable medium
CN115565607B (en) Method, device, readable medium and electronic equipment for determining protein information
CN116340364A (en) Data processing method, device, equipment and storage medium
CN113077352B (en) Insurance service article recommending method based on user information and insurance related information
CN111404824B (en) Method, apparatus, electronic device, and computer-readable medium for forwarding request

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