Data processing method and device based on media search, terminal equipment and medium
By creating a media asset table with a key-value (KV) data structure and using keywords and authorized regions as search criteria, the problem of large storage space occupied by media asset data is solved, and search efficiency is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-08
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, the storage methods for media asset data occupy a large amount of space and have low search efficiency, making them unsuitable for use in situations involving massive amounts of data.
By acquiring keywords and authorized regions from media asset metadata, a KV data structure is formed, with the authorized region as the K value and the frequency of occurrence as the Vlue value. This forms a media asset table, which is then synchronized to the search engine, using keywords and authorized regions as search criteria.
It effectively reduces the storage space occupied by authorized regions and improves the efficiency of media asset search.
Smart Images

Figure CN115964517B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application is suitable for the technical field of data engine, and particularly relates to a data processing method and device based on media search, a terminal device and a medium. BACKGROUND
[0002] At present, with the popularity of the network, Internet TV is becoming more and more popular. In order to enrich the content of the television, the television manufacturers introduce various media, and use the database storage mode to make various media searchable on the television. However, this mode occupies more storage space, and the unreasonable storage mode leads to low search efficiency, which is not suitable for use in the case of massive data. Therefore, how to reasonably process media data to improve the efficiency of media search has become a problem to be solved. SUMMARY
[0003] Therefore, the embodiments of the present application provide a data processing method and device based on media search, a terminal device and a medium to solve the problem of how to reasonably process media data to improve the efficiency of media search.
[0004] In a first aspect, the embodiments of the present application provide a data processing method based on media search, which comprises:
[0005] Obtain N media metadata, extract the keywords and authorized areas of each media metadata, and N is an integer greater than zero;
[0006] If there are at least two media metadata with the same keywords, the authorized areas corresponding to the at least two media metadata form KV data, wherein the authorized area is the K value, and the number of occurrences of the same authorized area is the Vlue value;
[0007] For all keywords, form a media table for each keyword and the corresponding KV data and media metadata, and then synchronize the media table to the search engine.
[0008] In an embodiment, after synchronizing the media table to the search engine, it further comprises:
[0009] Obtain updated media metadata, extract the updated keywords and updated authorized areas of the updated media metadata;
[0010] Detect whether the updated keywords exist in the media table;
[0011] If it is detected that the updated keywords exist in the media table, and the updated authorized areas exist in the corresponding KV data, then increase the Vlue value corresponding to the updated authorized areas by 1, and store the updated media metadata in the media table corresponding to the KV data.
[0012] In an embodiment, after detecting whether the update keyword exists in the media table, the method further comprises:
[0013] If it is detected that the update keyword does not exist in the media table, the update keyword is added in the media table, and the update authorized area is formed as KV data, wherein the update authorized area is a K value and a Vlue value is 1.
[0014] The KV data and the update media metadata are stored in the media table in association with the update keyword.
[0015] In an embodiment, after obtaining N media metadata and extracting the keyword and the authorized area of each media metadata, the method further comprises:
[0016] If there is no media metadata with the same keyword, the authorized area of the corresponding media metadata is formed as KV data, wherein the corresponding authorized area is a K value and a Vlue value is 1.
[0017] In an embodiment, after synchronizing the media table to the search engine, the method further comprises:
[0018] If it is detected that the target media is to be delisted, the target authorized area corresponding to the target media is extracted.
[0019] The target keyword and the target KV data corresponding to the target media are determined from the media table.
[0020] The Vlue value corresponding to the target authorized area in the target KV data is reduced by 1.
[0021] In an embodiment, the data processing method further comprises:
[0022] Obtaining a keyword input by a user and a belonging area of the user;
[0023] According to the keyword and the belonging area, using the search engine, determining that the corresponding media metadata is target data;
[0024] The target data is fed back to the user.
[0025] In a second aspect, an embodiment of the present application provides a data processing device based on media search, and the data processing device comprises:
[0026] A data obtaining module is configured to obtain N media metadata and extract the keyword and the authorized area of each media metadata, wherein N is an integer greater than zero.
[0027] The first data forming module is configured to form KV data by using the authorized regions corresponding to the at least two media asset metadata if the at least two media asset metadata have the same keyword, wherein the authorized region is the K value, and the number of occurrences of the same authorized region is the Vlue value.
[0028] The search table forming module is configured to form a media table by using each keyword, the corresponding KV data and the media asset metadata, and then synchronize the media table to the search engine.
[0029] In a third aspect, an embodiment of the present application provides a terminal device, which comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the data processing method based on media search according to the first aspect when executing the computer program.
[0030] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable on a processor to implement the data processing method based on media search according to the first aspect.
[0031] Compared with the prior art, the embodiment of the present application has the beneficial effects that: the present application obtains N media asset metadata, extracts the keywords and authorized regions of each media asset metadata, forms KV data by using the authorized regions corresponding to the at least two media asset metadata if the at least two media asset metadata have the same keyword, the authorized region is the K value, and the number of occurrences of the same authorized region is the Vlue value, forms a media table by using each keyword, the corresponding KV data and the media asset metadata, and then synchronizes the media table to the search engine, forms the search engine based on the keywords and the authorized regions as the search basis, so as to quickly find the corresponding media, and uses the KV data composed of the authorized region and the number of times, which can effectively reduce the storage space occupied by the authorized region, thereby helping to improve the search efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0033] Figure 1 is an application environment schematic diagram of a data processing method based on media search provided by an embodiment of the present application;
[0034] Figure 2is a flowchart of a data processing method based on media asset search provided in Embodiment Two of the present application;
[0035] Figure 3 is a flowchart of a data processing method based on media asset search provided in Embodiment Three of the present application;
[0036] Figure 4 is a flowchart of a data processing method based on media asset search provided in Embodiment Four of the present application;
[0037] Figure 5 is a structural diagram of a data processing apparatus based on media asset search provided in Embodiment Five of the present application;
[0038] Figure 6 is a structural diagram of a terminal device provided in Embodiment Six of the present application. DETAILED DESCRIPTION
[0039] In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular sequences of steps, techniques, etc., in order to provide a thorough understanding of the present embodiments. However, it will be apparent to those skilled in the art that the present embodiments can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, and circuits are omitted so as not to obscure the description of the present embodiments.
[0040] It is to be understood that the terminology “includes,” “has,” “holds,” “contains,” “comprises,” “comprised of,” “comprising,” or variants thereof does not exclude the presence of additional
[0041] It is to be understood that the terminology “includes,” “has,” “holds,” “contains,” “comprises,” “comprised of,” “comprising,” or variants thereof does not exclude the presence of additional
[0042] As used in the present specification and claims, the term “if’ can be interpreted as meaning “when” or “once” or “in response to a determination” or “in response to a detection” depending on the context. Similarly, the phrase “if determined” or “if detected [a described condition or event]” can be interpreted as meaning “once determined” or “in response to a determination” or “once detected [a described condition or event]” or “in response to a detection [a described condition or event]” depending on the context.
[0043] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third", etc. are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
[0044] In the present application, the reference to "one embodiment" or "some embodiments" means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "including but not limited to", unless otherwise specifically emphasized.
[0045] It should be understood that the size of the serial number of each step in the following embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0046] In order to illustrate the technical solutions of the present application, the following will be described by specific embodiments.
[0047] The data processing method based on media asset search provided by the first embodiment of the present application can be applied in the application environment of Figure 1 , wherein the client and the server communicate. The client includes but is not limited to smart TV, palm computer, desktop computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cloud terminal device, personal digital assistant (PDA) and the like. The server can be realized by an independent server or a server cluster composed of multiple servers.
[0048] Referring to Figure 2 , it is a flowchart of the data processing method based on media asset search provided by the second embodiment of the present application. The data processing method is applied to the above-mentioned server. The user uploads data to the server through the client. The server processes the data transmitted by the user. In addition, the user who needs to search for media assets can send search commands and conditions through the client. The server feeds back the search results according to the conditions after receiving the search commands. As shown in Figure 2 , the data processing method can include the following steps:
[0049] Step S201, obtaining N media metadata, extracting keywords and authorized areas of each media metadata.
[0050] In the present application, N is an integer greater than zero, media can refer to some media resources, for example, video resources such as movies, TV series, and audio resources such as songs, and media metadata can refer to data packets corresponding to media. In addition, it also includes introduction information of media, which includes but is not limited to name, actor, character name, director, authorized area and other information of media.
[0051] The keyword can refer to a word or character that represents a certain feature. The keywords of the media metadata can be found in the introduction information of the media metadata. The keywords can be different categories of words, such as the category representing the actor's name and the category representing the media name. If the media is Film 1, the corresponding actor is A, accordingly, A can be used as the keyword of Film 1, and the director of Film 1 is B, accordingly, B can also be used as the keyword of Film 1. The selection of specific keywords is related to the pre-set extraction method.
[0052] The authorized area can refer to the area authorized to play and spread the corresponding media. The area can be a country, or a region subordinate to a country, such as a province, city, and autonomous region. In this way, the play or spread of the media can be limited, and only in the authorized area can be searched and played.
[0053] The keywords mentioned above can be identified by identity number (ID) when stored, so as to improve the search efficiency. For example, the identity number of actor A is 1001.
[0054] Step S202, if there are at least two media metadata with the same keyword, forming KV data of the authorized areas corresponding to the at least two media metadata.
[0055] In the present application, the authorized area is the K value, and the number of occurrences of the same authorized area is the Vlue value.
[0056] For more than two media metadata, it is possible that the keywords corresponding to two or even more media metadata are the same. At this time, if each media metadata is stored in correspondence with its keyword, the storage amount of keywords and authorized areas will be increased, and it will have a certain impact on subsequent search.
[0057] In the case that two or more media metadata correspond to the same keyword, only one keyword needs to be stored. In order to form a mapping relationship for subsequent search, the authorized area of each media metadata is formed into KV data, the authorized area is taken as the K value, and the number of occurrences of the authorized area is taken as the Vlue value.
[0058] For example, the keyword of the film 1 is jack, the authorized area is NI, the keyword of the film 2 is jack, and the authorized area is UG. The KV data corresponding to the keyword jack is {“NI”: 1, “UG”: 1}. NI is a K value, and UG is a K value. If the keyword of the film 3 is jack, the authorized area is UG and NG, and the KV data corresponding to the keyword jack is {“NI”: 1, “UG”: 2, “NG”: 1}.
[0059] Optionally, after obtaining N media metadata, extracting the keyword and the authorized area of each media metadata, the method further includes:
[0060] If there is no media metadata with the same keyword, the authorized area of the corresponding media metadata is formed into KV data, wherein the corresponding authorized area is the K value, and the Vlue value is 1.
[0061] If there is no media metadata with the same keyword in the N media metadata, that is, the keywords of the N media metadata are all different, each keyword needs to be stored at this time, that is, the authorized area of each media metadata forms a set of KV data.
[0062] For example, the keyword of the film 1 is jack, the authorized area is NI, the keyword of the film 2 is Cameron, and the authorized area is UG. The KV data corresponding to the keyword jack is {“NI”: 1}, and the KV data corresponding to the keyword Cameron is {“UG”: 1}.
[0063] In step S203, for all keywords, each keyword and the corresponding KV data and media metadata are formed into a media table, and the media table is synchronized to the search engine.
[0064] In the present application, all keywords and corresponding KV data and media metadata are formed into a media table. The media table can be a kind of mapping table, that is, the keywords and KV data and media metadata are stored in mapping. For example, the media table is a MAP table.
[0065] The media table is synchronized to the search engine, so as to facilitate the subsequent user search process. The search engine can be an Elasticsearch search engine.
[0066] In addition, in order to facilitate the accuracy of the target search, other tables can also be prepared and synchronized to the search engine, and the search logic can be set according to the search logic. For example, if the search logic needs to search using the authorized area in addition to the keyword search, a mapping table of the authorized area and the media asset metadata should also be prepared, that is, the corresponding media asset metadata determined by the keyword can be multiple, and there can be media asset metadata that does not meet the authorized area. Therefore, using the mapping table of the authorized area and the media asset metadata can filter the media asset metadata that meets the authorized area from the keyword search results.
[0067] Optionally, the above data processing method further comprises:
[0068] Obtaining the keyword input by the user and the belonging area of the user;
[0069] Using the search engine to determine the corresponding media asset metadata as the target data according to the keyword and the belonging area;
[0070] Feeding back the target data to the user.
[0071] Wherein, the keyword and the belonging area are used as the basis for searching, and the search engine is used to determine the corresponding data through the keyword, and the target data is filtered from the determined data through the belonging area.
[0072] After obtaining the target data, the target data is fed back to the user. For example, the user searches using a smart TV terminal, and the keyword input by the user and the area where the smart TV terminal is located are sent to the search engine during the search, and the target data is returned to the smart TV terminal after the target data is determined.
[0073] The embodiment of the application obtains N media asset metadata, extracts the keyword and the authorized area of each media asset metadata, and if there are at least two media asset metadata with the same keyword, forms KV data of the authorized area corresponding to the at least two media asset metadata, the authorized area is the K value, and the number of occurrences of the same authorized area is the value. For all keywords, form a media table of each keyword, corresponding KV data and media asset metadata, and synchronize the media table to the search engine to form a search engine with the keyword and the authorized area as the search basis, so as to quickly find the corresponding media. Using the KV data formed by the authorized area and the number of times can effectively reduce the storage space occupied by the authorized area, thereby helping to improve the search efficiency.
[0074] Referring to Figure 3 is a flowchart of a data processing method based on media search provided by the third embodiment of the application. As Figure 3 shown, the data processing method based on media search can include the following steps:
[0075] Step S301, obtaining N media metadata, extracting keywords and authorized regions of each media metadata.
[0076] Step S302, if there are at least two media metadata with the same keywords, forming KV data from the authorized regions corresponding to the at least two media metadata.
[0077] Step S303, for all keywords, forming a media table from each keyword, corresponding KV data and media metadata, and synchronizing the media table to a search engine.
[0078] Among them, steps S301 to S303 are the same as the contents of steps S201 to S203 described above, and the description of steps S201 to S203 can be referred to, and will not be repeated here.
[0079] Step S304, obtaining updated media metadata, extracting updated keywords and updated authorized regions of the updated media metadata.
[0080] In this application, the updated media metadata used for updating is obtained when updating, and the keywords and authorized regions are extracted for the updated media metadata. The extraction method can use the extraction method described in step S201 of embodiment two, which will not be repeated here.
[0081] Step S305, detecting whether the updated keywords exist in the media table.
[0082] In this application, after obtaining the updated keywords, the updated keywords need to be compared with the keywords in the media table. If the updated keywords exist in the media table, there is no need to re-establish, and if the updated keywords do not exist in the media table, the updated keywords need to be suggested in the media table for subsequent use.
[0083] Step S306, if it is detected that the updated keywords exist in the media table, and the corresponding KV data exists, the value of the corresponding updated authorized region is increased by 1, and the updated media metadata is stored in the media table corresponding to the KV data.
[0084] In this application, if the updated keywords exist in the media table, the corresponding KV data needs to be updated. If the updated authorized region exists in the K value of the KV data, the value of the corresponding K value is increased by 1, and if the updated authorized region does not exist in the K value of the KV data, a new K value needs to be formed in the KV data, and the new K value is the updated authorized region, and the corresponding value is set to 1.
[0085] Optionally, after detecting whether the updated keywords exist in the media table, it further includes:
[0086] If it is detected that the update keyword does not exist in the media table, the update keyword is added in the media table, and the update authorized area is formed as KV data, wherein the update authorized area is the K value, and the Vlue value is 1.
[0087] The KV data and the update media metadata are stored in the media table in association with the update keyword.
[0088] If the update keyword exists in the media table, an update keyword needs to be established in the media table, and the media table is updated by using the formed KV data and the mapping storage. The contents of the formed KV data and the mapping storage can be referred to the description in the step S202, and will not be described here.
[0089] The embodiment of the present application obtains N media metadata, extracts the keywords and the authorized areas of each media metadata, forms KV data from the authorized areas of at least two media metadata with the same keyword if there are at least two media metadata with the same keyword, takes the authorized area as the K value, and takes the number of occurrences of the same authorized area as the Vlue value, forms a media table from each keyword and the corresponding KV data and media metadata for all keywords, synchronizes the media table to a search engine, and forms a search engine based on keywords and authorized areas as search criteria, so as to quickly find the corresponding media. The KV data formed by the authorized area and the number can effectively reduce the storage space occupied by the authorized area, thereby helping to improve the search efficiency. The update media metadata is obtained, the update keywords and the update authorized areas of the update media metadata are extracted, it is detected whether the update keyword exists in the media table, the Vlue value of the corresponding update authorized area is increased by 1 when it is detected that the update authorized area exists in the corresponding KV data, and the update media metadata is stored in the media table in association with the KV data, so as to realize the process of updating the media and improve the work efficiency of the update.
[0090] Referring to Figure 4 is a flowchart of a data processing method based on media search provided by the fourth embodiment of the present application. As Figure 4 shown, the data processing method based on media search can include the following steps:
[0091] In step S401, N media metadata are obtained, and the keywords and the authorized areas of each media metadata are extracted.
[0092] In step S402, if there are at least two media metadata with the same keyword, KV data is formed from the corresponding authorized areas of the at least two media metadata.
[0093] In step S403, a media table is formed from each keyword and the corresponding KV data and media metadata for all keywords, and the media table is synchronized to a search engine.
[0094] The steps S401 to S403 are the same as the steps S201 to S203, and the description of the steps S201 to S203 can be referred to.
[0095] In step S404, if the target media asset is detected to be unlisted, the target authorized region corresponding to the target media asset is extracted.
[0096] In the present application, the authorized region of the target media asset needs to be extracted in the process of unlisting the media asset, so as to be used for subsequent processing. The extraction method can refer to the description of the above embodiments.
[0097] In step S405, the target keyword and the target KV data corresponding to the target media asset are determined from the media asset table.
[0098] In the present application, the unlisting is performed on the mapping table such as the media asset table, rather than a deletion operation from the database of the server. Therefore, the keyword and the KV data corresponding to the target media asset need to be determined from the media asset table, so as to perform a deletion operation on the corresponding keyword and / or KV data.
[0099] In step S406, the Value corresponding to the target authorized region in the target KV data is reduced by 1.
[0100] In the present application, the Value corresponding to the K value of the target authorized region in the KV data is reduced by 1. If there is only one K value in the target KV data corresponding to the target keyword in the media asset table, and the corresponding Value is 1, it can be known that the target keyword uniquely corresponds to the target media asset. When the target media asset is unlisted, the mapping relationship between the target keyword, the target KV data and the media asset metadata in the media asset table can be deleted.
[0101] In the present application, N media asset metadata are acquired, the keyword and the authorized region of each media asset metadata are extracted, if there are at least two media asset metadata with the same keyword, the authorized regions corresponding to the at least two media asset metadata are formed into KV data, the authorized region is the K value, and the number of occurrences of the same authorized region is the Value. For all keywords, each keyword, the corresponding KV data and the media asset metadata form a media asset table, and then the media asset table is synchronized to the search engine to form a search engine taking the keyword and the authorized region as the search basis, so as to quickly find the corresponding media asset. The KV data formed by the authorized region and the number can effectively reduce the storage space occupied by the authorized region, thereby helping to improve the search efficiency. If the target media asset is detected to be unlisted, the target authorized region corresponding to the target media asset is extracted, the target keyword and the target KV data corresponding to the target media asset are determined from the media asset table, the Value corresponding to the target authorized region in the target KV data is reduced by 1, so as to realize the unlisting of the media asset. The process is simple and easy to operate, and the media asset does not need to be processed.
[0102] a data processing method based on media search corresponding to the above embodiment, Figure 5 A structural block diagram of the data processing apparatus based on media search provided by Embodiment Five of the present application is shown, which is applied to the above-mentioned service end. The user uploads data to the service end through the client end. The service end processes the data transmitted by the user. In addition, the user who needs to search for media can send a search command and conditions through the client end. The service end feeds back the search result according to the conditions after receiving the search command. For the convenience of description, only the part related to the present application is shown.
[0103] Referring to Figure 5 The data processing apparatus comprises:
[0104] The data acquisition module 51 is configured to acquire N media metadata, and extract the keywords and authorized areas of each media metadata;
[0105] The data forming module 52 is configured to form KV data by combining the authorized areas corresponding to at least two media metadata with the same keywords, if there are at least two media metadata with the same keywords, wherein the authorized area is the K value, and the number of occurrences of the same authorized area is the Vlue value;
[0106] The search table forming module 53 is configured to form a media table by combining each keyword with the corresponding KV data and media metadata for all keywords, and then synchronize the media table to the search engine.
[0107] Optionally, the data processing apparatus further comprises:
[0108] The update acquisition module is configured to acquire updated media metadata and extract the updated keywords and updated authorized areas of the updated media metadata after synchronizing the media table to the search engine;
[0109] The detection module is configured to detect whether the updated keywords exist in the media table;
[0110] The first data update module is configured to increase the Vlue value of the corresponding updated authorized area by 1 when detecting that the updated authorized area exists in the corresponding KV data, if detecting that the updated keywords exist in the media table, and store the updated media metadata in the media table corresponding to the KV data.
[0111] Optionally, the data processing apparatus further comprises:
[0112] The update forming module is configured to increase the updated keywords in the media table and form KV data by combining the updated authorized areas, if detecting that the updated keywords do not exist in the media table after detecting whether the updated keywords exist in the media table, wherein the updated authorized area is the K value, and the Vlue value is 1.
[0113] The second data update module is used to map and store key-value data and updated media asset metadata with updated keywords in the media asset table.
[0114] Optionally, the data processing apparatus further includes:
[0115] The second data formation module is used to obtain N media asset metadata, extract the keywords and authorized regions of each media asset metadata, and if there are no media asset metadata with the same keywords, form KV data for the authorized regions of the corresponding media asset metadata, where the corresponding authorized region is the K value and the Vlue value is 1.
[0116] Optionally, the data processing apparatus further includes:
[0117] The removal detection module is used to extract the target authorized region corresponding to the target media asset if a target media asset is detected to be removed after the media asset table is synchronized to the search engine.
[0118] The target determination module is used to determine the target keywords and target key-value data corresponding to the target media assets from the media asset table;
[0119] The delisting processing module is used to decrement the Vlue value corresponding to the target authorized region in the target KV data by 1.
[0120] Optionally, the data processing device also includes:
[0121] The user information acquisition module is used to obtain the keywords entered by the user and the user's region.
[0122] The data search module is used to determine the corresponding media asset metadata as the target data based on keywords and the region.
[0123] The data feedback module is used to provide target data back to the user.
[0124] It should be noted that the information interaction and execution process between the above modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.
[0125] Figure 6 This is a schematic diagram of the structure of a terminal device provided in Embodiment Six of this application. Figure 6 As shown, the terminal device of this embodiment includes: at least one processor ( Figure 6 Only one is shown in the diagram), a memory, and a computer program stored in the memory and executable on at least one processor, which, when executed by the processor, implements the steps in any of the above embodiments of the data processing method based on media asset search.
[0126] The terminal device can include, but is not limited to, a processor, a memory. Those skilled in the art can understand that Figure 6 The terminal device is only an example and does not constitute a limitation on the terminal device. The terminal device can include more or fewer components than shown, or combine some components, or include different components, for example, can also include a network interface, a display screen, an input device, etc.
[0127] The processor can be a CPU. The processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0128] The memory includes a readable storage medium, an internal memory, etc. The internal memory can be the internal memory of the terminal device, and the internal memory provides an environment for the operation of the operating system and the computer readable instructions in the readable storage medium. The readable storage medium can be the hard disk of the terminal device, and in other embodiments, can also be the external storage device of the terminal device, for example, the plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. Further, the memory can include both the internal storage unit of the terminal device and the external storage device. The memory is used to store the operating system, application programs, boot loader, data, and other programs, such as program codes of computer programs, etc. The memory can also be used to temporarily store data that has been output or will be output.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. If the integrated unit is realized in the form of software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a computer readable storage medium. When the processor executes the computer program, the steps of the above-mentioned method embodiments can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer readable medium at least includes any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, computer readable medium cannot be electrical carrier signal and telecommunication signal.
[0130] The above-mentioned embodiment methods can also be completed by a computer program product, which, when running on a terminal device, enables the terminal device to execute the steps of the above-mentioned method embodiments.
[0131] In the above-mentioned embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0132] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0133] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / terminal device and method can be implemented in other ways. For example, the division of the apparatus / terminal device embodiments described above is merely an example, and for example, the division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0134] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0135] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A data processing method based on media asset search, characterized in that, The data processing method comprises: Obtaining N media metadata, extracting keywords and authorized regions of each media metadata, N being an integer greater than zero; If there are at least two media metadata with the same keywords, forming KV data from the authorized regions corresponding to the at least two media metadata, wherein the authorized region is the K value, and the number of occurrences of the same authorized region is the Vlue value; For all keywords, forming a media table by matching each keyword with the corresponding KV data and media metadata, and synchronizing the media table to a search engine; After synchronizing the media table to the search engine, further comprising: Obtaining updated media metadata, extracting updated keywords and updated authorized regions of the updated media metadata; Detecting whether the updated keywords exist in the media table; If it is detected that the updated keywords exist in the media table, increasing the Vlue value corresponding to the updated authorized region by 1 when it is detected that the updated authorized region exists in the corresponding KV data, and storing the updated media metadata in the media table corresponding to the KV data; After synchronizing the media table to the search engine, further comprising: If the target media is detected to be delisted, extracting the target authorized region corresponding to the target media; Determining the target keywords and the target KV data corresponding to the target media from the media table; Reducing the Vlue value corresponding to the target authorized region in the target KV data by 1.
2. The data processing method according to claim 1, characterized in that, After detecting whether the updated keywords exist in the media table, further comprising: If it is detected that the updated keywords do not exist in the media table, adding the updated keywords in the media table, and forming KV data from the updated authorized regions, wherein the updated authorized region is the K value, and the Vlue value is 1; Mapping and storing the KV data and the updated media metadata with the updated keywords in the media table.
3. The data processing method of claim 1, wherein, After obtaining N media metadata, extracting keywords and authorized regions of each media metadata, further comprising: If there are no media metadata with the same keywords, forming KV data from the authorized regions corresponding to the media metadata, wherein the corresponding authorized region is the K value, and the Vlue value is 1.
4. The data processing method according to any one of claims 1 to 3, characterized in that, The data processing method further comprises: Obtaining a keyword input by a user and a region to which the user belongs; Using the search engine to determine that the corresponding media metadata is target data according to the keyword and the region to which the user belongs; Feeding back the target data to the user.
5. A data processing apparatus based on media asset search, characterized by, The data processing apparatus comprises: A data acquisition module for obtaining N media metadata, extracting keywords and authorized regions of each media metadata, N being an integer greater than zero; A first data forming module for forming KV data from the authorized regions corresponding to the at least two media metadata if there are at least two media metadata with the same keywords, wherein the authorized region is the K value, and the number of occurrences of the same authorized region is the Vlue value; A search table forming module for forming a media table by matching each keyword with the corresponding KV data and media metadata for all keywords, and synchronizing the media table to a search engine; The data processing apparatus further comprises: The update acquisition module is configured to acquire updated media metadata after the media table is synchronized to the search engine, and extract an update keyword and an update authorized area of the updated media metadata. The detection module is configured to detect whether the update keyword exists in the media table. The first data update module is configured to, if the update keyword is detected to exist in the media table, increase a Value value corresponding to the update authorized area by 1 when the update authorized area exists in corresponding KV data, and store the updated media metadata in the media table corresponding to the KV data. The data processing apparatus further comprises: The unlisting detection module is configured to, after the media table is synchronized to the search engine, extract a target authorized area corresponding to a target media if the target media is detected to be unlisted. The target determination module is configured to determine a target keyword and target KV data corresponding to the target media from the media table. The unlisting processing module is configured to decrease a Value value corresponding to the target authorized area in the target KV data by 1.
6. A terminal device, characterized by comprising: The terminal device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the data processing method of any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium storing a computer program, wherein the computer program comprises the following steps of: receiving a request for a resource from a client; determining whether the client is authorized to access the resource; and if the client is authorized to access the resource, providing the resource to the client. The computer program is executed by the processor to implement the data processing method of any one of claims 1 to 4.
Citation Information
Patent Citations
Advertisement information launching method based on search engine and advertisement information publication server
CN101038648A
Method and device of searching based on category
CN103870507A