Search request processing method and device
By constructing a high-frequency query index and using high-frequency query words and their attribute information to generate indexes, the problem of long time-consuming correlation filtering processing in the search system is solved, the system efficiency is improved, and efficient search result processing is achieved.
Patent Information
- Application Number
- CN202110477116.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-04-29
AI Technical Summary
Existing search systems take a long time to process relevance filtering, which affects system efficiency.
By building a high-frequency query index and using high-frequency query words and their attribute information to generate or update the index, we can reduce repeated correlation filtering processes and directly obtain a set of qualified candidate objects through the index.
It reduces the search processing time, improves the operating efficiency of the system, avoids repeated calculations in the correlation filtering process, and improves the service efficiency of the search system.
Smart Images

Figure CN113139113B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing a search request. Background Art
[0002] In the search system, the search is mainly triggered by the user's query words. Since users have a strong purpose when searching, it is very important to ensure the relevance between the search results and the user's query intention. Therefore, the search system needs to perform relevance filtering on the search results according to the user's query words to ensure the search quality. However, the relevance filtering process is time-consuming and has a great impact on the efficiency of the system. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method and device for processing a search request, which can reduce the search processing time and improve the operating efficiency of the system.
[0004] In a first aspect, an embodiment of the present invention provides a method for processing a search request, comprising:
[0005] Receiving a search request from a user, wherein the search request includes a target query word;
[0006] Determining whether the target query word is a high-frequency query word;
[0007] If so, the target query term is used to query the high-frequency query index to determine the return result set of the search request, wherein the associated object set of the target query term is determined, and then the objects in the associated object set are filtered for relevance to the target query term to generate a candidate object set, thereby obtaining a high-frequency query index including the target query term and the candidate object set matching it.
[0008] Optionally, the search request is used to search for items matching the target query term;
[0009] The relevance filtering process includes at least one of the following: category filtering process, brand filtering process and product filtering process.
[0010] Optionally, the method further comprises:
[0011] Determine a high-frequency query word set, wherein the high-frequency query word set includes a plurality of high-frequency query words;
[0012] Obtaining a current high-frequency query word from the high-frequency query word set;
[0013] Determine attribute information of the current high-frequency query term, wherein the attribute information includes at least one of the following: category, brand, product;
[0014] The high-frequency query word index is generated or updated according to the current high-frequency query word and its attribute information.
[0015] Optionally, generating or updating the high-frequency query word index according to the current high-frequency query word and its attribute information includes:
[0016] Get multiple candidate ads to be processed;
[0017] Determining whether the candidate advertisement matches the high-frequency query term;
[0018] If yes, judging whether the candidate advertisement passes the relevance filtering process according to the attribute information of the high-frequency query word;
[0019] If so, the high-frequency query index is generated or updated according to the high-frequency query terms and the candidate advertisements.
[0020] Optionally, the determining whether the candidate advertisement to be processed matches the high-frequency query term includes:
[0021] Obtaining advertisement keywords and matching types of the candidate advertisement;
[0022] Determining at least one extended keyword of the candidate advertisement according to the advertisement keyword and the matching type;
[0023] Determining whether the at least one extended keyword includes the high-frequency query word;
[0024] If so, it is determined that the candidate advertisement matches the high-frequency query term.
[0025] Optionally, determining a high-frequency query word set includes:
[0026] Determine the collection time period according to the preset cycle;
[0027] Collecting advertisement click data according to the collection time period, wherein the advertisement click data includes user query words;
[0028] The high-frequency query word set is generated according to the user query word.
[0029] Optionally, the method further comprises:
[0030] Generate a full high-frequency index at a preset time point;
[0031] Based on the preset time point, generating at least one incremental advertising material;
[0032] The full high-frequency index is updated using the at least one incremental advertising material to generate the high-frequency query index.
[0033] Optionally, after determining whether the target query word is a high-frequency query word, the method further includes:
[0034] If not, determining at least one target keyword based on the target query word;
[0035] Using the at least one target keyword, querying a keyword index to determine an advertisement result set;
[0036] Determine attribute information of the target query term, wherein the attribute information includes at least one of the following: category, brand, product;
[0037] According to the attribute information, the advertisement result set is subjected to relevance filtering processing to determine a return result set of the search request.
[0038] Optionally, the candidate result set includes: at least one advertising unit identifier;
[0039] The step of using the target query word to query a high-frequency query index to determine a return result set of the search request includes:
[0040] Using the target query word, querying the high-frequency query index to determine at least one advertisement unit identifier that matches the target query word;
[0041] Using the advertisement unit identifier, querying the advertisement positive index to determine the advertisement unit information matching the target query term;
[0042] A return result set of the search request is determined according to the advertisement unit information.
[0043] Optionally, the search request is used to search for audio and video matching the target query term;
[0044] The relevance filtering process includes at least one of the following: type filtering process, subject matter filtering process, and name filtering process.
[0045] In a second aspect, an embodiment of the present invention provides a search request processing device, including:
[0046] A request receiving module, used to receive a user's search request, wherein the search request includes a target query word;
[0047] A high frequency judgment module, used to judge whether the target query word is a high frequency query word;
[0048] A result determination module is used to query the high-frequency query index using the target query term to determine the return result set of the search request, wherein a candidate object set is generated by determining the associated object set of the target query term and then filtering the objects in the associated object set for relevance to the target query term, thereby obtaining a high-frequency query index including the target query term and the candidate object set matching the target query term.
[0049] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0050] one or more processors;
[0051] a storage device for storing one or more programs,
[0052] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0053] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the above embodiments.
[0054] One embodiment of the above invention has the following advantages or beneficial effects: high-frequency query words are query words with high user query frequency, and the high-frequency query index includes high-frequency query words and candidate object sets matching them, and the candidate object sets have been subjected to relevance filtering for target query words. Therefore, the candidate object sets obtained through the high-frequency query index do not need to be subjected to relevance filtering processing, thereby reducing the search processing time and improving the operating efficiency of the system.
[0055] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0057] Figure 1 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0058] Figure 2 is a schematic diagram of a process of a method for processing a search request provided by an embodiment of the present invention;
[0059] Figure 3 is a schematic diagram of an online search advertisement retrieval process provided by an embodiment of the present invention;
[0060] Figure 4It is a schematic diagram of a process of a method for constructing a high-frequency query index based on an advertising system provided by an embodiment of the present invention;
[0061] Figure 5 It is a schematic diagram of the process of another method for constructing a high-frequency query index based on an advertising system provided by an embodiment of the present invention;
[0062] Figure 6 It is a schematic diagram of a process of a method for processing a search request based on an advertising system provided by an embodiment of the present invention;
[0063] Figure 7 is a schematic diagram of the process of another method for processing a search request based on an advertising system provided by an embodiment of the present invention;
[0064] Figure 8 is a schematic diagram of the architecture of an online advertisement retrieval system provided by an embodiment of the present invention;
[0065] Fig. 9 is a structural schematic diagram of a search request processing device provided by an embodiment of the present invention;
[0066] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0067] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0068] Figure 1 An exemplary system architecture 100 is shown to which the method or apparatus for processing a search request according to an embodiment of the present invention can be applied.
[0069] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0070] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, office applications, etc. (only examples).
[0071] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0072] The server 105 may be a server that provides various services, such as a background management server (only as an example) that supports shopping websites browsed by users using terminal devices 101, 102, and 103. The background management server receives a search request from a user, which includes a query term. When the query term is a high-frequency query term, a high-frequency query index is used to determine a return result set of the search request, wherein the candidate object set included in the high-frequency query index is filtered by the relevance of the query term.
[0073] It should be noted that the method for processing the search request provided in the embodiment of the present invention is generally executed by the server 105 , and accordingly, the processing device for the search request is generally disposed in the server 105 .
[0074] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0075] Figure 2 FIG. 1 is a schematic diagram of a process of a method for processing a search request provided by an embodiment of the present invention. Figure 2 As shown, the method includes:
[0076] Step 201: receiving a user's search request, the search request including a target query term.
[0077] Step 202: Determine whether the target query word is a high-frequency query word.
[0078] High-frequency query words are query words that are frequently searched by users during a statistical period. Specifically, if the number of searches for the same query word by users during the statistical period is greater than a number threshold, the query word may be determined as a high-frequency query word.
[0079] Step 203: If yes, the target query term is used to query the high-frequency query index to determine the return result set of the search request.
[0080] By determining the associated object set of the target query word, and then performing relevance filtering processing on the objects in the associated object set for the target query word, a candidate object set is generated, and a high-frequency query index including the target query word and the candidate object set matching it is obtained.
[0081] The high-frequency query index includes a target query term and a candidate object set matching the target query term. The candidate object set is processed by relevance filtering for the target query term. The relevance filtering process is used to screen candidate objects related to the search request.
[0082] The candidate object set may correspond to the search purpose of the search request. For example, if the search request is used to query items matching the target query term, the candidate object set may be a set of related items, a set of item identifiers of related items, a set of related advertisements, a set of advertisement identifiers of related advertisements, etc. If the search request is used to query applications matching the target query term, the candidate object set may be a set of related applications, a set of identifiers of related applications, etc.
[0083] The returned result set is the result that is finally returned to the user, and the returned result set may include multiple candidate objects. Similarly, the returned result set may correspond to the search purpose of the search request. For example, if the search request is used to query items that match the target query term, the returned result set may be a set of related items, a set of item identifiers of related items, a set of related advertisements, a set of advertisement identifiers of related advertisements, etc. If the search request is used to query applications that match the target query term, the returned result set may be a set of related applications, a set of identifiers of related applications, etc.
[0084] The candidate object set after the filtering process can also be subjected to subsequent filtering and screening processes, including validity and legality filtering, and finally the screened candidate objects are scored and ranked to determine the final return result set.
[0085] In the embodiment of the present invention, high-frequency query words are query words with high user query frequency. The high-frequency query index includes high-frequency query words and candidate object sets matching them, and the candidate object sets have been subjected to relevance filtering for the target query words. Therefore, the candidate object sets obtained through the high-frequency query index do not need to be subjected to relevance filtering processing. This can solve the problem of long search processing time and low system operation efficiency caused by the need for relevance filtering processing.
[0086] The method of the embodiment of the present invention can be applied to a variety of search systems. For example, the method can be applied to an advertising search system, and can also be applied to multiple systems such as audio-visual search, image search, and e-book search. For example, in an advertising search system, the search request is used to query items that match the target query term; the relevance filtering process includes at least one of the following: category filtering process, brand filtering process, and product filtering process. It can also be applied to an audio-visual search system, where the search request is used to query audio and video that match the target query term; the relevance filtering process includes at least one of the following: type filtering process, subject filtering process, and name filtering process.
[0087] In order to make the solution of the embodiment of the present invention easier to understand, the technical solution of the embodiment of the present invention is explained below by taking the advertising system as an example. It should be noted that the index involved in the embodiment of the present invention can adopt either an inverted index or a forward index. Since the inverted index has better performance in the search system, the high-frequency query index in the embodiment of the present invention adopts the inverted index of high-frequency query terms, and the inverted index of high-frequency query terms is an inverted index established based on high-frequency query terms. The keyword index in the embodiment of the present invention adopts the keyword inverted index, and the keyword inverted index is an inverted index established based on keywords.
[0088] Figure 3 FIG. 1 is a schematic diagram of an online search process for search advertisements provided by an embodiment of the present invention. Figure 3 As shown, the method first parses the advertisement request information to obtain the user query words; secondly, performs semantic analysis and text analysis on the user query words, estimates the product category and brand information corresponding to the user query words, and generates a series of keywords according to the matching rules such as exact matching and broad matching; thirdly, queries the keyword inverted index through keywords to obtain the advertisement result set; then, when filtering the advertisement units, the advertisement validity and legality are filtered, and at the same time, in order to ensure the relevance between the search advertisement products and the user query words, the category, brand and product description information of the advertisement products need to be filtered with the user query words for the relevance of category, brand and product; finally, the filtered advertisement results are scored and sorted, and the final advertisement results are returned.
[0089] exist Figure 3 In the advertising retrieval process shown, the user query terms are unevenly distributed, and the high-frequency query terms account for a high proportion of traffic, resulting in a large number of repeated calculations for the relevance filtering of high-frequency query terms, wasting the computing resources of the online advertising retrieval system. In addition, the relevance filtering of categories, brands, product information, etc. between advertising items and user query terms usually takes a long time, and the relevance filtering time accounts for a high proportion, which has a great impact on the service efficiency of the online advertising retrieval system.
[0090] Based on the above analysis, an embodiment of the present invention provides a method for processing search requests based on an advertising system. In the processing method, a high-frequency query index of the advertising system needs to be constructed first. Figure 4 FIG. 1 is a schematic diagram of a process of constructing a high-frequency query index based on an advertising system provided by an embodiment of the present invention. Figure 4 As shown, the method includes:
[0091] Step 401: Determine a high-frequency query word set, where the high-frequency query word set includes a plurality of high-frequency query words.
[0092] Search requests are used to find items that match the target query terms.
[0093] Step 402: Obtain the current high-frequency query word from the high-frequency query word set.
[0094] Step 403: Determine the attribute information of the current high-frequency query term, where the attribute information includes at least one of the following: category, brand, product.
[0095] Step 404: Generate or update a high-frequency query word index based on the current high-frequency query word and its attribute information.
[0096] In the embodiment of the present invention, a high-frequency query word set is first generated, and then a high-frequency query word index is generated or updated for each high-frequency query word in the high-frequency query word set and its attribute information. On the one hand, high-frequency query words are query words with a high user query frequency. Building an index based on high-frequency query words is conducive to reducing repeated filtering processes and improving system efficiency. On the other hand, attribute information is used to filter candidate advertisements. Subsequent search processes can directly obtain candidate advertisements that meet the relevance filtering conditions through the high-frequency query word index without the need for relevance filtering.
[0097] In one embodiment of the present invention, a high-frequency query term index is generated or updated based on the current high-frequency query term and its attribute information, including: obtaining multiple candidate advertisements to be processed; determining whether the candidate advertisements match the high-frequency query terms; if so, determining whether the candidate advertisements pass the relevance filtering process based on the attribute information of the high-frequency query terms; if so, generating or updating the high-frequency query index based on the high-frequency query terms and the candidate advertisements.
[0098] One candidate advertisement may correspond to one advertisement unit. The attribute information is used to perform relevance filtering on the candidate advertisements. The relevance filtering process includes at least one of the following: category filtering process, brand filtering process, and product filtering process. The relevance filtering process is used to match the candidate advertisements in the final generated return result set with the category, brand, and product of the target query term.
[0099] When users search for products on e-commerce websites, they often have clear query intentions. Relevance filtering refers to determining whether the advertising results meet the user's query needs.
[0100] For example, if the user's target query is "Huawei mobile phone", the system will perform category estimation and brand estimation, the category is mobile phone, and the brand is Huawei. Using the category and brand corresponding to the target query, the advertisement is filtered by text, category, and brand.
[0101] For example, the user's target query is: children's toys, and the estimated categories include: creative gifts, animal toys, pretend play toys, etc., but there is no corresponding brand for this target query. In this way, when filtering advertisements, only category filtering and text filtering are performed, and brand filtering is not performed.
[0102] In one embodiment of the present invention, determining whether a candidate advertisement to be processed matches a high-frequency query term includes: obtaining an advertisement keyword and a matching type of the candidate advertisement; determining at least one extended keyword of the candidate advertisement based on the advertisement keyword and the matching type; determining whether the at least one extended keyword includes a high-frequency query term; and if so, determining that the candidate advertisement matches the high-frequency query term.
[0103] Matching types may include: exact match and broad match. Exact match is a way of matching advertising keywords and user query words. When the user query words are exactly the same as the keywords provided by the advertiser, the match is successful. Broad match is another way of matching advertising keywords and user query words. When the user query words are highly related to the keywords provided by the advertiser, the advertisement is displayed when the user query words are exactly the same as the keywords provided by the advertiser, or when the user query words and their synonyms include advertising keywords.
[0104] For example, the keyword of the advertisement is Huawei mobile phone. The corresponding extended keyword for exact match is only Huawei mobile phone. The corresponding extended keywords for broad match may include: Huawei mobile phone, mobile phone Huawei, Huawei mobile phone, mobile phone Huawei, etc.
[0105] For the candidate advertisement, if the extended keywords of the candidate advertisement include the high-frequency query word, it is determined that the candidate advertisement matches the high-frequency query word. It is determined that the candidate advertisement does not match the high-frequency query word.
[0106] In one embodiment of the present invention, determining a high-frequency query word set includes: determining a collection time period according to a preset cycle; collecting advertisement click data according to the collection time period, the advertisement click data including user query words; and generating a high-frequency query word set according to the user query words.
[0107] In order to track ad requests, displays, and click effects, the ad system needs to record this information in the system. Ad request data records which ads can be retrieved for each user request. Ad request data includes two parts: user request data and ad result data. User request data includes: user request time, query terms, traffic source (PC, app, mini program, etc.), ad position, etc. Ad data includes: ad unit ID, SKU (Stock Keeping Unit) ID, keywords, keyword matching type, etc.
[0108] Ad click data records which ads are clicked by each user request. User request data includes: user click time, query term, traffic source (PC, app, mini program, etc.), ad position, etc. Ad data includes ad unit ID, SKU ID, keywords, keyword matching type, etc.
[0109] An embodiment of the present invention provides a method for mining high-frequency query words, which can quickly mine effective high-frequency query words from a large amount of advertising data. First, it is necessary to screen out effective query words. Since not all user query words can retrieve advertisements, if the high-frequency query words are counted from the advertising request data, many invalid query words will appear, and the data volume of the advertising request data is generally several times that of the advertising click data. Therefore, the high-frequency query words can be efficiently obtained by analyzing the advertising click data. Then, in the specific implementation, the high-frequency threshold can be set to K times, and the query words whose total frequency of appearance in the advertising click data within the last N days is not less than K times are selected as high-frequency query words, where the values of K and N can be set according to the actual user traffic size of the search advertising system. Finally, the high-frequency query word results are output to a text file, and a new high-frequency query word result file is periodically generated through a timed task.
[0110] In one embodiment of the present invention, the method also includes: generating a full high-frequency index at a preset time point; generating at least one incremental advertising material based on the preset time point; and updating the full high-frequency index using the at least one incremental advertising material to generate a high-frequency query index.
[0111] The first cycle can be set to periodically generate a full high-frequency index. The second cycle can be set to periodically generate at least one incremental advertising material. The first cycle can be divided into multiple second cycles. For example, the first cycle can be set to one day, and the preset time point is midnight every day. The second cycle is one hour, then yesterday's full high-frequency index is generated at midnight every day, and corresponding incremental advertising materials are generated at 1 o'clock, 2 o'clock, 3 o'clock, etc. every day. According to the incremental advertising materials, the high-frequency query index is continuously updated to ensure that the high-frequency query index has good real-time performance. The above first and second cycles can be set according to specific needs.
[0112] In an embodiment of the present invention, the full high-frequency index is loaded through the full index update module, and the data structure of the full high-frequency index is established in the memory; at the same time, the incremental advertising material generated by the advertising material flow system is received to process the advertiser's operations such as adding, deleting, and modifying the advertising information in real time. The method of updating the full high-frequency index to generate a high-frequency query index advertisement is to load the full high-frequency index file and use at least one incremental advertising material to update the full high-frequency index data structure in the memory.
[0113] Figure 5 FIG. 1 is a schematic diagram of a process of another method for constructing a high-frequency query index based on an advertising system provided by an embodiment of the present invention. Figure 5 As shown, in this method, first, a high-frequency query word text file is loaded, and the high-frequency query word text file includes multiple high-frequency query words; secondly, semantic analysis and text analysis are performed on each high-frequency query word to estimate the category, brand, product and other information of the query word; thirdly, for each advertising unit, it is queried whether the keyword information of the advertising unit includes high-frequency query words. If no high-frequency query words are included, no processing is required. Otherwise, the advertising unit is filtered for relevance such as category, brand, and product information, and the advertising unit identification and keyword type information that pass the filtering are added to the high-frequency query word inverted chain; finally, after processing all advertising units, the high-frequency query word inverted index information is saved to a file, which is the full file of the high-frequency query word inverted index.
[0114] from Figure 5 It can be seen that the number of relevance filtering calculations for high-frequency query terms in the system is only related to the number of ad units, and has nothing to do with the number of requests for high-frequency query terms. In the actual system, the number of ad units is much smaller than the number of user queries, which effectively reduces the repeated calculation of relevance filtering for high-frequency query terms.
[0115] Figure 6 FIG. 1 is a schematic diagram of a process of a method for processing a search request based on an advertising system provided by an embodiment of the present invention. Figure 6 As shown, the method includes:
[0116] Step 601: receiving a user's search request, the search request including a target query term.
[0117] Step 602: Determine whether the target query word is a high-frequency query word.
[0118] Whether the target query word is a high-frequency query word can be determined by determining whether the target query word exists in the high-frequency query index or the high-frequency query word text file. If so, step 603 is executed; otherwise, step 604 is executed.
[0119] Step 603: Query the high-frequency query index using the target query term to determine the return result set of the search request.
[0120] The high-frequency query index includes the target query word and the candidate object set matching it. The candidate object set is processed by relevance filtering for the target query word. The relevance filtering process is used to screen candidate objects related to the search request. The candidate object is a candidate advertisement, and the candidate object set includes multiple candidate advertisements.
[0121] The attribute information is used to perform relevance filtering on the candidate advertisements. The relevance filtering includes at least one of the following: category filtering, brand filtering, and product filtering. The relevance filtering is used to match the candidate advertisements in the final generated return result set with the category, brand, and product of the target query term.
[0122] Step 604: If not, determine at least one target keyword based on the target query word.
[0123] For example, if the target query is tea, then corresponding to broad matching, the target keywords that can be expanded include: tea, black tea, green tea, scented tea, jasmine tea, etc. If the target query is Huawei mobile phone, the target keywords that can be expanded include: Huawei mobile phone, Huawei mobile phone white, new Huawei mobile phone, etc.
[0124] Step 605: Query the keyword index using at least one target keyword to determine an advertisement result set.
[0125] The keyword index includes query words and candidate advertisement sets that match the query words. The candidate advertisement set may include identifiers of multiple candidate advertisements. One candidate advertisement corresponds to one advertisement unit.
[0126] Step 606: Determine attribute information of the target query term, where the attribute information includes at least one of the following: category, brand, and product.
[0127] Step 607: Perform relevance filtering on the advertisement result set according to the attribute information to determine the return result set of the search request.
[0128] In an embodiment of the present invention, if the target query word is a high-frequency query word, the return result of the search request is determined by querying the high-frequency query index. If the target query word is not a high-frequency query word, the advertisement result set is determined by the keyword index, and then the advertisement result set is subjected to relevance filtering to determine the final return result. By querying the high-frequency query index, repeated relevance filtering processing for high-frequency query words is reduced, system resources are saved, and system processing time is reduced.
[0129] In one embodiment of the present invention, the candidate result set includes: at least one advertising unit identifier; using the target query term to query the high-frequency query index to determine the return result set of the search request, including: using the target query term to query the high-frequency query index to determine at least one advertising unit identifier that matches the target query term; using the advertising unit identifier to query the advertisement positive index to determine the advertising unit information that matches the target query term; determining the return result set of the search request based on the advertising unit information.
[0130] The advertisement positive index can be understood as a common key-value dictionary, where the key is the advertisement unit ID and the value is the advertisement unit information corresponding to the advertisement unit ID. Advertisement material refers to advertisement unit information.
[0131] The ad unit is the ad data placed by the advertiser, so once the ad unit ID is determined, the ad unit information corresponding to the unit ID can be found from the ad forward index. All ad unit information that meets the search and filtering conditions constitutes the final ad result set.
[0132] Figure 7 FIG. 1 is a schematic diagram of a process of another method for processing a search request based on an advertising system provided by an embodiment of the present invention. Figure 7 As shown, the method first parses the ad request information to obtain the user's query term; secondly, the query term is queried in the high-frequency query term inverted index. Since the inverted index has processed all matching methods of all ad units when it was constructed, if the query is successful, there is no need to query other inverted indices. Otherwise, it is necessary to generate a series of keywords based on the user's query term according to the matching rules such as exact matching and broad matching, and query the keyword inverted index; thirdly, according to the ad unit identifier obtained by querying the inverted index, the corresponding ad forward index is queried to obtain the ad result set.
[0133] Then, when filtering ad units, ad results obtained by high-frequency query words in reverse order no longer need to be filtered for relevance because they have been filtered for relevance when building the reverse order, but other filters such as ad effectiveness and legality are still required. Ad results obtained by low-frequency query words in reverse order still need to be filtered for relevance such as category, brand, and product information; finally, the filtered ad results are scored and sorted, and the final ad result set is returned.
[0134] from Figure 7 It can be seen that since the relevance filtering of high-frequency query words and advertising items is no longer processed, the time consumption of relevance filtering can be effectively reduced, thereby improving the efficiency of online service retrieval.
[0135] In an embodiment of the present invention, effective high-frequency query words are mined using advertisement click data, and query words whose total occurrence frequency in a preset number of days in the advertisement click data is not less than a number threshold are selected as high-frequency query words.
[0136] In addition, by using the mined high-frequency query word files, an inverted index of high-frequency query words is built in the system, and relevance filtering is performed on all advertising materials. Since the number of advertising units is much smaller than the number of user queries, repeated calculations of relevance filtering for high-frequency query words are reduced; the inverted index of high-frequency query words is loaded and updated in real time in the system, which improves the efficiency of advertising retrieval by reducing the time spent on relevance filtering.
[0137] The embodiment of the present invention also provides an asynchronous advertisement online retrieval system. Figure 8 FIG. 1 is a schematic diagram of an online advertisement search system provided by an embodiment of the present invention. Figure 8 As shown, the system includes: an advertising effect data system, an advertising material flow system, an advertising offline indexing system and an advertising online retrieval system.
[0138] Advertising effect data system: mainly stores information such as advertising requests, displays, clicks, etc., provides data support for advertising billing and data analysis, and can mine high-frequency query terms by analyzing advertising effect data.
[0139] Advertising material flow system: responsible for providing information on the advertising materials released, including the regular generation of full and incremental advertising material data, and providing a steady stream of advertising materials to the advertising offline indexing system and the advertising online retrieval system.
[0140] Among them, an ad unit is a piece of advertising data placed in the system. An ad unit includes information such as ad SKU, keywords, keyword matching type, and bid. Ad unit information can also be called ad material information.
[0141] Advertising offline indexing system: responsible for establishing keyword inverted index and advertising forward index according to advertising material information, and generating index files. The advertising forward index saves the mapping relationship between the advertising unit identifier and the advertising material, and the keyword inverted index saves the set of advertising unit identifiers corresponding to the keywords. When generating the keyword inverted index, the high-frequency query terms and all advertising units mined are used for relevance filtering to build an inverted index for high-frequency query terms. At the same time, corresponding inverted indexes are created based on the keyword matching types such as exact match and broad match set by the advertiser; and there is only one copy of the advertising unit forward index, which is used by all inverted indexes. The advertising offline indexing system is generally only responsible for periodically generating full index files so that the advertising online retrieval system can quickly load all advertising materials.
[0142] Advertising online retrieval system: Load the forward and reverse index files through full index update, and maintain the real-time performance of the forward and reverse index data through incremental index update. When processing advertising requests, first obtain the user query words, query the high-frequency query word inverted index and advertising forward index, or expand the user query words according to the matching rules such as exact match and broad match to generate a series of keywords, and query the keyword inverted index and advertising forward index to initially obtain the advertising result set, and then perform a series of filtering and screening on the advertising result set, including advertising effectiveness and legality filtering, and as needed, relevance filtering such as category, brand, product information, etc., and finally score and sort the filtered advertising results, and return the final advertising results.
[0143] In the system provided by the embodiment of the present invention, a method for determining high-frequency query words is proposed, and effective high-frequency query words are quickly mined from a large amount of advertising data. In addition, a method for improving the efficiency of high-frequency query word advertisement retrieval is also proposed, which avoids repeated relevance filtering of high-frequency query words and advertising products, reduces the time consumption of relevance filtering, and improves the efficiency of online service retrieval.
[0144] Fig. 9 FIG. 1 is a schematic diagram of a structure of a search request processing device provided by an embodiment of the present invention. Fig. 9 As shown, the device comprises:
[0145] The request receiving module 901 is used to receive a user's search request, where the search request includes a target query word;
[0146] A high frequency determination module 902 is used to determine whether the target query word is a high frequency query word;
[0147] The result determination module 903 is used to query the high-frequency query index using the target query word to determine the return result set of the search request, wherein the associated object set of the target query word is determined, and then the objects in the associated object set are filtered for relevance to the target query word to generate a candidate object set, thereby obtaining a high-frequency query index including the target query word and the candidate object set matching it.
[0148] Optionally, the search request is used to search for items matching a target query term;
[0149] The relevance filtering process includes at least one of the following: category filtering process, brand filtering process and product filtering process.
[0150] Optionally, the device further comprises:
[0151] An index building unit 904 is used to determine a high-frequency query word set, where the high-frequency query word set includes multiple high-frequency query words;
[0152] Obtain the current high-frequency query word from the high-frequency query word set;
[0153] Determine the attribute information of the current high-frequency query word, where the attribute information includes at least one of the following: category, brand, product;
[0154] Generate or update a high-frequency query term index based on the current high-frequency query term and its attribute information.
[0155] Optionally, the index building unit 904 is specifically configured to:
[0156] Get multiple candidate ads to be processed;
[0157] Determine whether the candidate advertisement matches the high-frequency query words;
[0158] If yes, then judging whether the candidate advertisement passes the relevance filtering process based on the attribute information of the high-frequency query words;
[0159] If so, a high-frequency query index is generated or updated based on the high-frequency query terms and candidate advertisements.
[0160] Optionally, the index building unit 904 is specifically configured to:
[0161] Obtaining the advertising keywords and matching types of the candidate advertisements;
[0162] Determine at least one extended keyword of the candidate advertisement according to the advertisement keyword and the matching type;
[0163] Determining whether at least one of the expanded keywords includes a high-frequency query word;
[0164] If so, it is determined that the candidate advertisement matches the high-frequency query term.
[0165] Optionally, the index building unit 904 is further configured to:
[0166] Determine the collection time period according to the preset cycle;
[0167] Collect advertisement click data according to the collection time period, and the advertisement click data includes user query words;
[0168] Generate a high-frequency query word set based on user query words.
[0169] Optionally, the index building unit 904 is specifically configured to:
[0170] Generate a full high-frequency index at a preset time point;
[0171] Based on the preset time point, generate at least one incremental advertising material;
[0172] The full high-frequency index is updated using at least one incremental advertising material to generate a high-frequency query index.
[0173] Optionally, the result determination module 903 is further used to:
[0174] Determine at least one target keyword based on the target query word;
[0175] Using at least one target keyword, querying the keyword index to determine an advertisement result set;
[0176] Determine attribute information of the target query term, where the attribute information includes at least one of the following: category, brand, and product;
[0177] Based on the attribute information, the advertisement result set is subjected to relevance filtering to determine the return result set of the search request.
[0178] Optionally, the candidate result set includes: at least one advertising unit identifier;
[0179] The result determination module 903 is specifically used for:
[0180] Using the target query word, query the high-frequency query index to determine at least one advertisement unit identifier that matches the target query word;
[0181] Using the ad unit identifier, query the ad forward index to determine ad unit information matching the target query term;
[0182] Determine the return result set of the search request based on the ad unit information.
[0183] Optionally, the search request is used to search for audio and video matching the target query term;
[0184] The relevance filtering process includes at least one of the following: type filtering process, subject matter filtering process, and name filtering process.
[0185] An embodiment of the present invention provides an electronic device, including:
[0186] one or more processors;
[0187] a storage device for storing one or more programs,
[0188] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.
[0189] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0190] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0191] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0192] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0193] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium that includes or stores a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code included on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0194] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0195] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, they may be described as: a request receiving module, a high frequency judgment module, and a result determination module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the request receiving module may also be described as "a module for receiving a user's search request, wherein the search request includes a target query term".
[0196] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0197] Receiving a search request from a user, wherein the search request includes a target query word;
[0198] Determining whether the target query word is a high-frequency query word;
[0199] If so, the target query term is used to query the high-frequency query index to determine the return result set of the search request, wherein the associated object set of the target query term is determined, and then the objects in the associated object set are filtered for relevance to the target query term to generate a candidate object set, thereby obtaining a high-frequency query index including the target query term and the candidate object set matching it.
[0200] According to the technical solution of the embodiment of the present invention, high-frequency query words are query words with high user query frequency, and the high-frequency query index includes high-frequency query words and candidate object sets matching them, and the candidate object sets have been subjected to relevance filtering for the target query words. Therefore, the candidate object sets obtained through the high-frequency query index do not need to be subjected to relevance filtering processing, thereby reducing the search processing time and improving the operating efficiency of the system.
[0201] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing a search request, characterized in that: include: receiving a search request from a user, wherein the search request includes a target query word, and the search request is used to search for items matching the target query word; Determining whether the target query word is a high-frequency query word; If so, the target query word is used to query the high-frequency query index to determine the return result set of the search request, wherein the associated object set of the target query word is determined, and then the objects in the associated object set are subjected to relevance filtering processing for the target query word to generate a candidate object set, and the high-frequency query index including the target query word and the candidate object set matching the target query word is obtained, and the relevance filtering processing includes at least one of the following: category filtering processing, brand filtering processing and product filtering processing; The method further includes: determining a high-frequency query word set, wherein the high-frequency query word set includes a plurality of high-frequency query words; Obtaining a current high-frequency query word from the high-frequency query word set; Determine attribute information of the current high-frequency query term, wherein the attribute information includes at least one of the following: category, brand, product; The high-frequency query index is generated or updated according to the current high-frequency query term and its attribute information.
2. The method according to claim 1, characterized in that The generating or updating the high-frequency query index according to the current high-frequency query word and its attribute information includes: Get multiple candidate ads to be processed; Determining whether the candidate advertisement matches the high-frequency query term; If yes, judging whether the candidate advertisement passes the relevance filtering process according to the attribute information of the high-frequency query word; If so, the high-frequency query index is generated or updated according to the high-frequency query terms and the candidate advertisements.
3. The method according to claim 2, characterized in that The determining whether the candidate advertisement to be processed matches the high-frequency query term includes: Obtaining advertisement keywords and matching types of the candidate advertisement; Determining at least one extended keyword of the candidate advertisement according to the advertisement keyword and the matching type; Determining whether the at least one extended keyword includes the high-frequency query word; If so, it is determined that the candidate advertisement matches the high-frequency query term.
4. The method according to claim 1, characterized in that The step of determining a high-frequency query word set includes: Determine the collection time period according to the preset cycle; Collecting advertisement click data according to the collection time period, wherein the advertisement click data includes user query words; The high-frequency query word set is generated according to the user query word.
5. The method according to claim 1, characterized in that The method further comprises: Generate a full high-frequency index at a preset time point; Based on the preset time point, generating at least one incremental advertising material; The full high-frequency index is updated using the at least one incremental advertising material to generate the high-frequency query index.
6. The method according to claim 1, characterized in that After determining whether the target query word is a high-frequency query word, the method further includes: If not, determining at least one target keyword based on the target query word; Using the at least one target keyword, querying a keyword index to determine an advertisement result set; Determine attribute information of the target query term, wherein the attribute information includes at least one of the following: category, brand, product; According to the attribute information, the advertisement result set is subjected to relevance filtering processing to determine a return result set of the search request.
7. The method according to claim 1, characterized in that The candidate object set includes: at least one advertising unit identifier; The step of using the target query word to query a high-frequency query index to determine a return result set of the search request includes: Using the target query word, querying the high-frequency query index to determine at least one advertisement unit identifier that matches the target query word; Using the advertisement unit identifier, querying the advertisement forward index to determine the advertisement unit information matching the target query term; A return result set of the search request is determined according to the advertisement unit information.
8. A search request processing device, characterized in that: include: A request receiving module, used to receive a user's search request, wherein the search request includes a target query word, and the search request is used to search for items matching the target query word; A high frequency judgment module, used to judge whether the target query word is a high frequency query word; A result determination module is used to query the high-frequency query index using the target query word to determine the return result set of the search request, wherein the object set associated with the target query word is determined, and then the objects in the associated object set are subjected to relevance filtering processing for the target query word to generate a candidate object set, and obtain a high-frequency query index including the target query word and the candidate object set matching the target query word, wherein the relevance filtering processing includes at least one of the following: category filtering processing, brand filtering processing, and product filtering processing; The device also includes: An index building unit, used to determine a high-frequency query word set, wherein the high-frequency query word set includes a plurality of high-frequency query words; Obtaining a current high-frequency query word from the high-frequency query word set; Determine attribute information of the current high-frequency query term, wherein the attribute information includes at least one of the following: category, brand, product; The high-frequency query index is generated or updated according to the current high-frequency query term and its attribute information.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Distributed type reverse index organization method based on user log analysis
CN102722553A
Contextual queries for augmenting video display
CN104102683A
