Live broadcast searching method and device based on Java platform, equipment and medium
By building live search methods on the Java platform, collecting and indexing live broadcast data, and optimizing the index structure with NLP and machine learning, the shortcomings of existing live search methods in real-time, accuracy and user experience are solved, and efficient and accurate live content retrieval and personalized recommendation are achieved.
Patent Information
- Application Number
- CN202411820804.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-11
AI Technical Summary
The existing live broadcast search methods are insufficient in terms of real-time, accuracy and user experience, and it is difficult to quickly and accurately find content that users are interested in in a large number of live broadcast content.
The live search method based on the Java platform is adopted, and the live broadcast data of each live broadcast room of the live broadcast platform is collected, the live broadcast room index is constructed, and the index structure is optimized using natural language processing and machine learning algorithms, supporting advanced search functions such as fuzzy search and phrase search.
It realizes accurate and efficient retrieval of live broadcast content, improves user search efficiency and satisfaction, reduces the complexity and cost of development and maintenance, and ensures the timeliness of search results through real-time dynamic search mechanism.
Smart Images

Figure CN119598026A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a live broadcast search method, device, computer equipment and storage medium based on a Java platform. Background Art
[0002] With the rapid development of Internet technology, the live broadcast industry has risen rapidly and has become an important part of people's entertainment life. With the popularization of mobile terminal applications, the number of users watching live broadcasts and anchors conducting live broadcasts is increasing, and many live broadcast rooms have appeared on live broadcast platforms. How to quickly find content that users are interested in from the massive amount of live broadcast content and improve the user's experience of watching live broadcasts is an important responsibility of live broadcast platforms.
[0003] Although traditional live broadcast search methods can find content that users are interested in among massive live broadcast content, they still have many shortcomings in terms of real-time performance, accuracy and user experience. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a live broadcast search method, device, computer equipment and storage medium based on a Java platform to solve the technical problems of insufficient real-time performance, accuracy and user experience in existing live broadcast search methods.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A live broadcast search method based on a Java platform comprises: collecting live broadcast data of each live broadcast room of a live broadcast platform; constructing a live broadcast room index based on the collected live broadcast data; obtaining a search keyword input by a user; and searching for a live broadcast room related to the search keyword based on the live broadcast room index.
[0007] A live broadcast search device based on a Java platform includes: a data collection module for collecting live broadcast data of each live broadcast room of a live broadcast platform; an index construction module for building a live broadcast room index based on the collected live broadcast data; a keyword acquisition module for acquiring search keywords input by a user; and a search module for searching for live broadcast rooms related to the search keywords based on the live broadcast room index.
[0008] A computer device comprises at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions, and when the program instructions are called and executed by the processor, the steps of the above-mentioned Java platform-based live broadcast search method are implemented.
[0009] A storage medium stores program instructions, which, when executed by a processor, implement the steps of the above-mentioned Java platform-based live broadcast search method.
[0010] The above-mentioned live broadcast search method, device, computer equipment and storage medium based on the Java platform build a live broadcast room index by collecting the live broadcast data of each live broadcast room on the live broadcast platform, and then search for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of live broadcast content, solving the technical problems of existing live broadcast search methods such as insufficient real-time performance, accuracy and user experience, and improving user search efficiency and satisfaction; in addition, the above-mentioned live broadcast search method, device, computer equipment and storage medium based on the Java platform are widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 A flowchart of a Java-based live broadcast search method in one embodiment of the present invention;
[0012] Figure 2 A schematic diagram of a flow chart of a Java-based live broadcast search method in another embodiment of the present invention;
[0013] Figure 3 A schematic diagram of a flow chart of a Java-based live broadcast search method in another embodiment of the present invention;
[0014] Figure 4 It is a structural schematic diagram of a live broadcast search device based on a Java platform in one embodiment of the present invention;
[0015] Figure 5 It is a structural schematic diagram of a live broadcast search device based on a Java platform in another embodiment of the present invention;
[0016] Figure 6 This is a structural diagram of a Java platform-based live broadcast search device in another embodiment of the present invention;
[0017] Figure 7 The figure is a schematic diagram of the structure of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to more clearly understand the objectives, technical solutions and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0019] like Figure 1As shown, in one embodiment of the present invention, the live broadcast search method based on the Java platform includes steps S10 to S40:
[0020] S10: Collect live broadcast data from each live broadcast room of the live broadcast platform.
[0021] Specifically, the live broadcast data of each live broadcast room of the live broadcast platform is collected in real time through the data collection module. The collected live broadcast data includes the live broadcast room ID, anchor information, live broadcast title, live broadcast introduction, etc. In order to ensure the accuracy and completeness of the data, the collected live broadcast data is also cleaned and deduplicated. Data cleaning refers to the processing of raw data to remove erroneous, inconsistent and incomplete data. Data deduplication refers to the removal of duplicate records or variables in a data set to ensure the accuracy and validity of the data. Data cleaning and data deduplication can be achieved by existing technologies, and the embodiments of the present invention are not limited.
[0022] S20: Building a live broadcast room index based on the collected live broadcast data.
[0023] After the live broadcast data collection is completed, the collected live broadcast data is indexed through the index construction module to build a live broadcast room index. Specifically, an inverted index is built based on text information such as live broadcast title and live broadcast introduction, so that the live broadcast room containing specific keywords can be quickly located later; at the same time, a forward index is built based on non-text information such as live broadcast room ID and anchor information, so that more accurate search and recommendation can be performed later.
[0024] After constructing the live broadcast room index, the live broadcast room index is optimized through natural language processing (NLP) technology combined with machine learning algorithms. Specifically, NLP technology is first used to perform part-of-speech tagging and syntactic analysis on the live broadcast data to extract feature vectors; then machine learning algorithms (such as support vector machines, random forests, neural networks, etc.) are used to train the feature vectors and construct an index model; finally, the live broadcast room index structure is optimized based on the training results to improve the accuracy and efficiency of the search.
[0025] S30: Obtaining the search keyword input by the user.
[0026] Specifically, when a user inputs a search keyword, the keyword acquisition module acquires the search keyword input by the user so that a subsequent search module can search for a live broadcast room related to the search keyword.
[0027] S40: Based on the live broadcast room index, search for the live broadcast room related to the search keyword.
[0028] The search module can be built based on the search engine Elasticsearch. When the keyword acquisition module obtains the search keyword input by the user, the search module will query the inverted index and forward index according to the search keyword input by the user to find the live broadcast room related to the search keyword. In order to improve the accuracy and relevance of the search results, the search module also uses different sorting algorithms such as the TF-IDF algorithm to sort the search results and output them.
[0029] In addition, the search module also supports advanced search functions such as fuzzy search and phrase search to meet the different needs of users. Fuzzy search means that when the user's search intention is unclear, the search engine Elasticsearch fuzzily matches the user's query with the content to be retrieved to find content related to the query. The core of fuzzy search is to allow the query entered by the user to have a certain difference with the content in the database. This difference can be a spelling error, a synonym, or an incomplete match. Phrase search means that the user enters a complete phrase or sentence in the search engine Elasticsearch, and the search engine will return all relevant results containing this phrase or sentence. Phrase search ensures the accuracy of search results because users know clearly that the content to be found is a whole, not a separate word.
[0030] The live broadcast search method based on the Java platform provided in the embodiment of the present invention collects the live broadcast data of each live broadcast room of the live broadcast platform to build a live broadcast room index, and then searches for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of the live broadcast content, solving the technical problems of the existing live broadcast search method in terms of real-time performance, accuracy and user experience, and improving the user's search efficiency and satisfaction. Secondly, the live broadcast search method based on the Java platform is widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. Finally, the live broadcast room index structure is optimized using advanced NLP technology and machine learning algorithms to improve the relevance and accuracy of search results.
[0031] like Figure 2 As shown, in another embodiment of the present invention, the live broadcast search method based on the Java platform includes steps S110 to S170:
[0032] S110: Collecting live broadcast data from each live broadcast room of the live broadcast platform.
[0033] Specifically, the live broadcast data of each live broadcast room of the live broadcast platform is collected in real time through the data collection module. The collected live broadcast data includes the live broadcast room ID, anchor information, live broadcast title, live broadcast introduction, etc. In order to ensure the accuracy and completeness of the data, the collected live broadcast data is also cleaned and deduplicated. Data cleaning refers to the processing of raw data to remove erroneous, inconsistent and incomplete data. Data deduplication refers to the removal of duplicate records or variables in a data set to ensure the accuracy and validity of the data. Data cleaning and data deduplication can be achieved by existing technologies, and the embodiments of the present invention are not limited.
[0034] S120: Construct a live broadcast room index based on the collected live broadcast data.
[0035] After the live broadcast data collection is completed, the collected live broadcast data is indexed through the index construction module to build a live broadcast room index. Specifically, an inverted index is built based on text information such as live broadcast title and live broadcast introduction, so that the live broadcast room containing specific keywords can be quickly located later; at the same time, a forward index is built based on non-text information such as live broadcast room ID and anchor information, so that more accurate search and recommendation can be performed later.
[0036] After constructing the live broadcast room index, the live broadcast room index is optimized through natural language processing (NLP) technology combined with machine learning algorithms. Specifically, NLP technology is first used to perform part-of-speech tagging and syntactic analysis on the live broadcast data to extract feature vectors; then machine learning algorithms (such as support vector machines, random forests, neural networks, etc.) are used to train the feature vectors and construct an index model; finally, the live broadcast room index structure is optimized based on the training results to improve the accuracy and efficiency of the search.
[0037] S130: Acquire the search keyword input by the user.
[0038] Specifically, when a user inputs a search keyword, the keyword acquisition module acquires the search keyword input by the user so that a subsequent search module can search for a live broadcast room related to the search keyword.
[0039] S140: Based on the live broadcast room index, search for the live broadcast room related to the search keyword.
[0040] The search module can be built based on the search engine Elasticsearch. When the keyword acquisition module obtains the search keyword input by the user, the search module will query the inverted index and forward index according to the search keyword input by the user to find the live broadcast room related to the search keyword. In order to improve the accuracy and relevance of the search results, the search module also uses different sorting algorithms such as the TF-IDF algorithm to sort the search results and output them.
[0041] In addition, the search module also supports advanced search functions such as fuzzy search and phrase search to meet the different needs of users. Fuzzy search means that when the user's search intention is unclear, the search engine Elasticsearch fuzzily matches the user's query with the content to be retrieved to find content related to the query. The core of fuzzy search is to allow the query entered by the user to have a certain difference with the content in the database. This difference can be a spelling error, a synonym, or an incomplete match. Phrase search means that the user enters a complete phrase or sentence in the search engine Elasticsearch, and the search engine will return all relevant results containing this phrase or sentence. Phrase search ensures the accuracy of search results because users know clearly that the content to be found is a whole, not a separate word.
[0042] S150: Analyze the user's interest preferences based on the user's search history and viewing history.
[0043] The live broadcast search method based on the Java platform of this embodiment has not only basic search functions but also personalized recommendation functions. When it is necessary to recommend a live broadcast room that the user is interested in, the interest preference analysis module will analyze the user's interest preferences based on the user's search history and viewing history, such as analyzing the live broadcast room users and live broadcast room types that the user is interested in.
[0044] S160: Recommending a live broadcast room that the user is interested in to the user based on the analyzed user's interest preferences.
[0045] Based on the user's interest preferences analyzed in step S150, the recommendation module recommends the live broadcast room that the user is interested in to the user by adopting different recommendation algorithms such as collaborative filtering and matrix decomposition.
[0046] S170: Obtaining feedback information on the user's evaluation and rating of the search results and recommended content.
[0047] Users can evaluate and rate search results and recommended content through the user interaction module. The feedback information acquisition module obtains feedback information on the evaluation and rating of search results and recommended content by users by responding to the user's operations on the user interaction module. These feedback information will serve as an important basis for optimizing the index of the live broadcast room. It should be noted that the user interaction module is a module for users to interact with the system. Users can enter search keywords, view search results, browse live broadcast room details, etc. through the user interaction module.
[0048] The live broadcast search method based on the Java platform provided in the embodiment of the present invention collects the live broadcast data of each live broadcast room of the live broadcast platform to build a live broadcast room index, and then searches for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of the live broadcast content, solving the technical problems of the existing live broadcast search method in terms of real-time performance, accuracy and user experience, and improving the user's search efficiency and satisfaction. Secondly, the live broadcast search method based on the Java platform has been widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. Thirdly, the live broadcast room index structure is optimized using advanced NLP technology and machine learning algorithms, thereby improving the relevance and accuracy of search results. Finally, it has a personalized recommendation function, which can recommend live broadcast rooms that users are interested in, thereby improving the user experience.
[0049] like Figure 3 As shown, in another embodiment of the present invention, the live broadcast search method based on the Java platform includes steps S210 to S260:
[0050] S210: Collecting live broadcast data from each live broadcast room of the live broadcast platform.
[0051] Specifically, the live broadcast data of each live broadcast room of the live broadcast platform is collected in real time through the first data collection module, and the collected live broadcast data includes the live broadcast room ID, anchor information, live broadcast title, live broadcast introduction, etc. In order to ensure the accuracy and completeness of the data, the collected live broadcast data is also cleaned and deduplicated. Data cleaning refers to the processing of raw data to remove erroneous, inconsistent and incomplete data. Data deduplication refers to the removal of duplicate records or variables in a data set to ensure the accuracy and validity of the data. Data cleaning and data deduplication can be achieved by existing technologies, and the embodiments of the present invention are not limited.
[0052] S220: Construct a live broadcast room index based on the collected live broadcast data.
[0053] After the live broadcast data collection is completed, the collected live broadcast data is indexed through the index construction module to build a live broadcast room index. Specifically, an inverted index is built based on text information such as live broadcast title and live broadcast introduction, so that the live broadcast room containing specific keywords can be quickly located later; at the same time, a forward index is built based on non-text information such as live broadcast room ID and anchor information, so that more accurate search and recommendation can be performed later.
[0054] After constructing the live broadcast room index, the live broadcast room index is optimized through natural language processing (NLP) technology combined with machine learning algorithms. Specifically, NLP technology is first used to perform part-of-speech tagging and syntactic analysis on the live broadcast data to extract feature vectors; then machine learning algorithms (such as support vector machines, random forests, neural networks, etc.) are used to train the feature vectors and construct an index model; finally, the live broadcast room index structure is optimized based on the training results to improve the accuracy and efficiency of the search.
[0055] S230: Acquire the search keyword input by the user.
[0056] Specifically, when a user inputs a search keyword, the keyword acquisition module acquires the search keyword input by the user so that a subsequent search module can search for a live broadcast room related to the search keyword.
[0057] S240: Based on the live broadcast room index, search for the live broadcast room related to the search keyword.
[0058] The search module can be built based on the search engine Elasticsearch. When the keyword acquisition module obtains the search keyword input by the user, the search module will query the inverted index and forward index according to the search keyword input by the user to find the live broadcast room related to the search keyword. In order to improve the accuracy and relevance of the search results, the search module also uses different sorting algorithms such as the TF-IDF algorithm to sort the search results and output them.
[0059] In addition, the search module also supports advanced search functions such as fuzzy search and phrase search to meet the different needs of users. Fuzzy search means that when the user's search intention is unclear, the search engine Elasticsearch fuzzily matches the user's query with the content to be retrieved to find content related to the query. The core of fuzzy search is to allow the query entered by the user to have a certain difference with the content in the database. This difference can be a spelling error, a synonym, or an incomplete match. Phrase search means that the user enters a complete phrase or sentence in the search engine Elasticsearch, and the search engine will return all relevant results containing this phrase or sentence. Phrase search ensures the accuracy of search results because users know clearly that the content to be found is a whole, not a separate word.
[0060] S250: Acquire status change data of each live broadcast room of the live broadcast platform in real time.
[0061] After the live broadcast room index is built, this embodiment will continue to monitor the status changes of each live broadcast room (such as starting broadcast, stopping broadcast, switching topics, etc.), and collect the status change data of each live broadcast room of the live broadcast platform in real time through the second data collection module. Specifically, through the message queue technology such as Apache Kafka, the real-time collection and processing of the status change data of each live broadcast room is realized, ensuring the instant update of the status change data information of each live broadcast room.
[0062] In order to ensure the accuracy and completeness of the data, the state change data of each live broadcast room collected is also cleaned and deduplicated. Data cleaning refers to processing the original data to remove erroneous, inconsistent and incomplete data. Data deduplication refers to removing duplicate records or variables in the data set to ensure the accuracy and validity of the data. Data cleaning and data deduplication can be achieved by existing technologies, and the embodiments of the present invention are not limited thereto.
[0063] S260: Update the live broadcast room index according to the acquired status change data of each live broadcast room.
[0064] Step S250 is used to obtain the status change data of each live broadcast room of the live broadcast platform in real time, and update the live broadcast room index previously constructed accordingly, so that when subsequent users search, they can return search results based on the latest live broadcast room index, ensuring that users can obtain the most accurate and timely live broadcast content information.
[0065] The live broadcast search method based on the Java platform provided in the embodiment of the present invention builds a live broadcast room index by collecting the live broadcast data of each live broadcast room of the live broadcast platform, and then searches for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of the live broadcast content, solving the technical problems of insufficient real-time, accuracy and user experience in the existing live broadcast search method, and improving the user's search efficiency and satisfaction. Secondly, the live broadcast search method based on the Java platform is widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. Thirdly, the live broadcast room index structure is optimized by using advanced NLP technology and machine learning algorithms, which improves the relevance and accuracy of search results. Finally, a real-time dynamic search mechanism is introduced, and the live broadcast room index is updated in real time by obtaining the status change data of each live broadcast room of the live broadcast platform in real time. When the user searches, the search results can be returned according to the latest index data, ensuring that the user can obtain the most accurate and timely live content information.
[0066] In some embodiments, the live broadcast search method based on the Java platform can be applied to multiple servers of a distributed service system, and a distributed processing framework is constructed using the Java backend service to disperse the live broadcast search task to multiple nodes for parallel processing. Specifically, multiple servers of the distributed service system process tasks in parallel, collect live broadcast data of each live broadcast room of the live broadcast platform to build a live broadcast room index, and search for live broadcast rooms related to the search keywords input by the corresponding user according to their respective constructed live broadcast room indexes, that is, multiple servers of the distributed service system execute various steps of the live broadcast search method based on the Java platform in parallel.
[0067] The distributed architecture design improves the system's throughput and response speed, solving the problem of delays and freezes when processing a large number of concurrent requests. The distributed architecture design supports horizontal expansion and can adapt to the growing amount of data and service needs by adding servers, solving the problem of decreased system scalability and stability as the amount of data increases.
[0068] When the Java platform-based live broadcast search method is applied to multiple servers of a distributed service system, an adaptive load balancing strategy is also designed to dynamically adjust resource allocation according to system pressure to ensure service stability and availability. The specific design process of the adaptive load balancing strategy can be implemented through existing technologies and is not limited in the embodiments of the present invention.
[0069] In one embodiment, a live broadcast search device based on a Java platform is provided, wherein each functional module of the live broadcast search device based on the Java platform is connected to Figure 1 The steps of the Java platform-based live broadcast search method in the illustrated embodiment correspond to each other. Figure 4 As shown, the live broadcast search device based on the Java platform includes a data collection module 10, an index construction module 20, a keyword acquisition module 30 and a search module 40. The detailed description of each functional module is as follows:
[0070] The data acquisition module 10 is used to execute Figure 1 Step S10 in the Java platform-based live broadcast search method in the illustrated embodiment is used to collect live broadcast data from each live broadcast room of the live broadcast platform.
[0071] Index building module 20, for executing Figure 1 Step S20 in the Java platform-based live broadcast search method in the illustrated embodiment is used to construct a live broadcast room index based on the collected live broadcast data.
[0072] Keyword acquisition module 30, used to execute Figure 1Step S30 in the Java platform-based live broadcast search method in the illustrated embodiment is used to obtain the search keyword input by the user.
[0073] The search module 40 is used to perform Figure 1 Step S40 in the Java platform-based live broadcast search method in the illustrated embodiment is used to search for live broadcast rooms related to the search keyword based on the live broadcast room index.
[0074] The live broadcast search device based on the Java platform provided in the embodiment of the present invention collects the live broadcast data of each live broadcast room of the live broadcast platform to build a live broadcast room index, and then searches for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of the live broadcast content, solving the technical problems of the existing live broadcast search method in terms of real-time performance, accuracy and user experience, and improving the user's search efficiency and satisfaction. Secondly, the live broadcast search device based on the Java platform is widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. Finally, the live broadcast room index structure is optimized using advanced NLP technology and machine learning algorithms, thereby improving the relevance and accuracy of search results.
[0075] In one embodiment, a live broadcast search device based on a Java platform is provided, wherein each functional module of the live broadcast search device based on the Java platform is connected to Figure 2 The steps of the Java platform-based live broadcast search method in the illustrated embodiment correspond to each other. Figure 5 As shown, the live broadcast search device based on the Java platform includes a data collection module 110, an index construction module 120, a keyword acquisition module 130, a search module 140, an interest preference analysis module 150, a recommendation module 160 and a feedback information acquisition module 170. The functional modules are described in detail as follows:
[0076] The data acquisition module 110 is used to execute Figure 2 Step S110 in the Java platform-based live broadcast search method in the illustrated embodiment is used to collect live broadcast data from each live broadcast room of the live broadcast platform.
[0077] Index building module 120, used to execute Figure 2 Step S120 in the Java platform-based live broadcast search method in the illustrated embodiment is used to construct a live broadcast room index based on the collected live broadcast data.
[0078] Keyword acquisition module 130, used to execute Figure 2 Step S130 in the Java platform-based live broadcast search method in the illustrated embodiment is used to obtain the search keyword input by the user.
[0079] Search module 140 is used to perform Figure 2 Step S140 in the Java platform-based live broadcast search method in the illustrated embodiment is used to search for live broadcast rooms related to the search keyword based on the live broadcast room index.
[0080] The interest preference analysis module 150 is used to perform Figure 2 Step S150 in the Java platform-based live broadcast search method in the illustrated embodiment is used to analyze the user's interest preferences based on the user's search history and viewing record.
[0081] Recommendation module 160, for executing Figure 2 Step S160 in the Java platform-based live broadcast search method in the illustrated embodiment is used to recommend a live broadcast room of interest to the user based on the analyzed user's interest preferences.
[0082] Feedback information acquisition module 170, used to execute Figure 2 Step S170 in the Java platform-based live broadcast search method in the illustrated embodiment is used to obtain feedback information on user evaluation and scoring of search results and recommended content.
[0083] The live broadcast search device based on the Java platform provided in the embodiment of the present invention collects the live broadcast data of each live broadcast room of the live broadcast platform to build a live broadcast room index, and then searches for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of the live broadcast content, solving the technical problems of the existing live broadcast search method in terms of real-time performance, accuracy and user experience, and improving the user's search efficiency and satisfaction. Secondly, the live broadcast search device based on the Java platform has been widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. Thirdly, the live broadcast room index structure is optimized using advanced NLP technology and machine learning algorithms, thereby improving the relevance and accuracy of search results. Finally, it has a personalized recommendation function, which can recommend live broadcast rooms that users are interested in, thereby improving the user experience.
[0084] In one embodiment, a live broadcast search device based on a Java platform is provided, wherein each functional module of the live broadcast search device based on the Java platform is connected to Figure 3 The steps of the Java platform-based live broadcast search method in the illustrated embodiment correspond to each other. Figure 6 As shown, the live broadcast search device based on the Java platform includes a first data collection module 210, an index construction module 220, a keyword acquisition module 230, a search module 240, a second data collection module 250 and an index update module 260. The functional modules are described in detail as follows:
[0085] The first data acquisition module 210 is used to perform Figure 3 Step S210 in the Java platform-based live broadcast search method in the illustrated embodiment is used to collect live broadcast data from each live broadcast room of the live broadcast platform.
[0086] Index building module 220, used to execute Figure 3 Step S220 in the Java platform-based live broadcast search method in the illustrated embodiment is used to construct a live broadcast room index based on the collected live broadcast data.
[0087] Keyword acquisition module 230, used to execute Figure 3 Step S230 in the Java platform-based live broadcast search method in the illustrated embodiment is used to obtain the search keyword input by the user.
[0088] Search module 240 is used to perform Figure 3 Step S240 in the Java platform-based live broadcast search method in the illustrated embodiment is used to search for live broadcast rooms related to the search keyword based on the live broadcast room index.
[0089] The second data acquisition module 250 is used to perform Figure 3 Step S250 in the Java platform-based live broadcast search method in the illustrated embodiment is used to obtain the status change data of each live broadcast room of the live broadcast platform in real time.
[0090] Index update module 260, for executing Figure 3 Step S260 in the Java platform-based live broadcast search method in the illustrated embodiment is used to update the live broadcast room index according to the acquired status change data of each live broadcast room.
[0091] The live broadcast search device based on the Java platform provided in the embodiment of the present invention builds a live broadcast room index by collecting the live broadcast data of each live broadcast room of the live broadcast platform, and then searches for the live broadcast room related to the search keyword according to the live broadcast room index, thereby realizing accurate and efficient retrieval of the live broadcast content, solving the technical problems of insufficient real-time, accuracy and user experience in the existing live broadcast search method, and improving the user's search efficiency and satisfaction. Secondly, the live broadcast search device based on the Java platform is widely supported by the Java platform and its mature ecology, reducing the complexity and cost of development and maintenance. Thirdly, the live broadcast room index structure is optimized by using advanced NLP technology and machine learning algorithms, which improves the relevance and accuracy of search results. Finally, a real-time dynamic search mechanism is introduced, which updates the live broadcast room index in real time by obtaining the status change data of each live broadcast room of the live broadcast platform in real time. When the user searches, the search results can be returned according to the latest index data, ensuring that the user can obtain the most accurate and timely live content information.
[0092] For the specific limitations of the live broadcast search device based on the Java platform, please refer to the limitations of the live broadcast search method based on the Java platform above, which will not be repeated here. Each module in the above-mentioned live broadcast search device based on the Java platform can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0093] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with other external electronic devices through a network connection. When the computer program is executed by the processor, the functions or steps of the live broadcast search method based on the Java platform in the above-mentioned embodiment are implemented.
[0094] In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the functions or steps of the Java platform-based live broadcast search method in the above-mentioned embodiment are implemented.
[0095] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0096] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0097] The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in the protection scope of the present invention. The non-company software tools or components that appear in the embodiments of this application are merely examples and do not represent actual use.
Claims
1. A live broadcast search method based on Java platform, characterized in that: include: Collect live broadcast data from each live broadcast room on the live broadcast platform; Build a live broadcast room index based on the collected live broadcast data; Get the search keywords entered by the user; Based on the live broadcast room index, search for live broadcast rooms related to the search keyword.
2. The Java platform-based live broadcast search method according to claim 1, characterized in that: The live broadcast room index includes an inverted index and a forward index, and the live broadcast room index is constructed based on the collected live broadcast data, including: Build an inverted index based on the live broadcast title and live broadcast introduction; Build a positive index based on the live broadcast room ID and anchor information.
3. The Java platform-based live broadcast search method according to claim 1, characterized in that: After searching for the live broadcast rooms related to the search keyword based on the live broadcast room index, the method includes: sorting the live broadcast rooms related to the search keyword.
4. The Java platform-based live broadcast search method according to claim 1, characterized in that: Also includes: Analyze users' interests and preferences based on their search history and viewing history; Based on the user's interest preferences obtained through analysis, the live broadcast room that the user is interested in is recommended to the user.
5. The Java platform-based live broadcast search method according to claim 4, characterized in that: Also includes: Get feedback from users on how they rate and review search results and recommendations.
6. The Java platform-based live broadcast search method according to claim 1, characterized in that: Also includes: Obtain the status change data of each live broadcast room on the live broadcast platform in real time; The live broadcast room index is updated according to the acquired status change data of each live broadcast room.
7. The Java platform-based live broadcast search method according to any one of claims 1 to 6, characterized in that: The constructing of the live broadcast room index based on the collected live broadcast data includes: optimizing the live broadcast room index by combining NLP technology with machine learning algorithm.
8. A live broadcast search device based on Java platform, characterized in that: include: The data collection module is used to collect live broadcast data from each live broadcast room of the live broadcast platform; An index building module, used to build a live broadcast room index based on the collected live broadcast data; Keyword acquisition module, used to obtain the search keywords input by the user; The search module is used to search for live broadcast rooms related to the search keyword based on the live broadcast room index.
9. A computer device, characterized in that: The computer device includes at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions, and when the program instructions are called and executed by the processor, the steps of the Java platform-based live broadcast search method described in any one of claims 1 to 7 are implemented.
10. A storage medium, characterized in that: The storage medium stores program instructions, and when the program instructions are executed by the processor, the steps of the live broadcast search method based on the Java platform described in any one of claims 1 to 7 are implemented.