Data search method, system and equipment and readable storage medium
By combining word segmentation and building search paths with shelf categories, the noise problem in the data search platform is solved, and the search result output with high matching degree is achieved, ensuring that users obtain satisfactory search results.
Patent Information
- Application Number
- CN202411030211.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-03
AI Technical Summary
In the data search platform, there is noise in the search results and fail to fully meet the user's needs, making it difficult for users to obtain satisfactory search results.
By obtaining search keywords, using a preset word segmenter to split it into search word elements, and building a search path based on these word elements, combining shelf categories to extract target data from the data warehouse to ensure that the output data is highly matched with user intentions and needs.
It achieves accurate understanding of user search intentions and needs, outputs target data that meets user needs, reduces noise, and improves the accuracy of search results.
Smart Images

Figure CN119066250A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information retrieval technology, and in particular to a data search method, system, device and readable storage medium. Background Art
[0002] In commonly used data search platforms, when the content system of the platform reaches the million-level, the search engine needs to process a large amount of data and information, including articles, videos, audios, etc. in different fields. This results in the search results output by the search engine covering a wide range of content when executing the search process. If the search keywords in the search instructions received by the data search platform lack clear search targets, the data search platform will find it difficult to accurately understand the user's intentions and needs, resulting in the output search results being related to the keywords but not fully meeting the user's needs, making it difficult for users to obtain satisfactory search results.
[0003] For example, when a user wants to buy a photoelectric sensor, he enters the word "photoelectric sensor" in the search box on the data search platform. The data search platform will output data content including news about photoelectric sensors, purchase channels for photoelectric sensors, technical information about photoelectric sensors, etc. There is a lot of noise, and the user needs to filter through this data content to obtain data content related to the purchase of photoelectric sensors.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a data search method, which aims to solve the problem that the search results output by the data search platform contain noise and do not fully meet the user's search needs.
[0006] To achieve the above object, the present invention provides a data search method, which comprises the following steps:
[0007] Obtaining search keywords corresponding to the received search request;
[0008] Splitting the search keyword into search terms based on a preset word segmenter;
[0009] Constructing a search path according to the search word element, and extracting target data corresponding to each search path in a shelf data warehouse based on the search path and the shelf category corresponding to the search request;
[0010] The target data is output.
[0011] Optionally, the step of extracting target data corresponding to each search path in the shelf data warehouse based on the search path and the shelf category corresponding to the search request includes:
[0012] Get the shelf category corresponding to the received search request;
[0013] In the shelf-type data warehouse, calling the category database corresponding to the shelf category;
[0014] In the category database, performing a matching operation on each of the search paths;
[0015] When the search path is a full match path, the target data corresponding to the search path is extracted from the category database.
[0016] Optionally, the step of outputting the target data includes:
[0017] Read the publishing time and click data of each target data corresponding to the search path;
[0018] Arrange each of the target data according to the order of the release time to obtain first arrangement data, and arrange each of the target data according to the value of the click data to obtain second arrangement data;
[0019] Based on the push rule, the first arrangement data and the second arrangement data, each of the target data is output to the content push interface.
[0020] Optionally, before the step of outputting each of the target data to the content push interface based on the push rule, the first arrangement data and the second arrangement data, the method further includes:
[0021] Output push rule setting interface;
[0022] When receiving a push rule setting instruction on the push rule setting interface, determining a time weight value and a click weight value according to the push rule setting instruction;
[0023] The push rule is generated based on the time weight value and the click weight value.
[0024] Optionally, after the step of outputting each of the target data to the content push interface based on the push rule, the first arrangement data and the second arrangement data, the method further includes:
[0025] When the content push interface detects an access instruction for the current page, obtaining the number of accesses to the current page;
[0026] When the number of accesses is greater than or equal to a preset round-robin threshold, a round-robin operation is performed on the target data output to the content push interface according to a preset round-robin value and a preset round-robin strategy.
[0027] Optionally, before the step of obtaining the search keyword corresponding to the received search request, the step further includes:
[0028] Output the shelf data warehouse configuration interface;
[0029] According to the shelf category configuration parameters received by the shelf data warehouse configuration interface, a category classification operation is performed on the shelf data warehouse to obtain at least one category database.
[0030] Optionally, after the step of performing a category classification operation on the shelf-type data warehouse according to the shelf category configuration parameters received by the shelf-type data warehouse configuration interface to obtain at least one category database, the step further includes:
[0031] Read the category keywords in the shelf category configuration parameters;
[0032] According to the category keyword, a keyword index table is constructed in the category database corresponding to the category keyword.
[0033] In addition, to achieve the above object, the present invention also provides a data search system, the data search system comprising:
[0034] A keyword acquisition module, used to acquire the search keyword corresponding to the received search request;
[0035] A word segmentation module, used for splitting the search keyword into search terms based on a preset word segmenter;
[0036] A path building module, used for building a search path according to the search word element;
[0037] A data extraction module, configured to extract target data corresponding to each search path in a shelf-type data warehouse based on the search path and the shelf category corresponding to the search request;
[0038] An output module is used to output the target data.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a data search device, which includes a memory, a processor, and a data search program stored in the memory and executable on the processor, and the data search program implements the steps of the data search method described above when executed by the processor.
[0040] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data search program is stored, and when the data search program is executed by a processor, the steps of the data search method described above are implemented.
[0041] The embodiment of the present invention provides a data search method, which passes the acquired search keywords into a preset word segmenter, splits the search keywords into multiple search words, and splits long sentences into smaller components. Then, based on the search words, multiple search paths are constructed by combining and overlapping different words to take into account the correlation between different words, while covering as many aspects of user searches as possible to more comprehensively meet the needs of users; by combining the search path with the shelf category, the user's intentions and needs can be better understood, and relevant data can be extracted from the data warehouse, thereby ensuring that the output target data is highly matched with the user's search intentions and needs. By acquiring search keywords, segmenting, constructing paths, and combining shelf categories, the target data is extracted and output from the shelf data warehouse, so as to achieve the purpose of accurately understanding the user's search intentions and needs, and outputting target data that meets the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0043] Figure 1 A schematic diagram of the architecture of the hardware operating environment of the data search device involved in an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of a flow chart of a first embodiment of a data search method of the present invention;
[0045] Figure 3 A schematic diagram of a flow chart of a second embodiment of a data search method of the present invention;
[0046] Figure 4 A schematic flow chart of a third embodiment of a data search method of the present invention;
[0047] Figure 5 A schematic diagram of the system architecture of the data system involved in an embodiment of the present invention.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] The data search method of the present application obtains the search keyword corresponding to the received search request; splits the search keyword into search terms based on a preset word segmenter; constructs a search path based on the search terms, and extracts target data corresponding to each search path in the shelf data warehouse based on the search path and the shelf category corresponding to the search request; and outputs the target data. The purpose is to accurately understand the user's search intention and needs, and output target data that meets the user's needs.
[0050] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0051] As an implementation plan, Figure 1 The schematic diagram is a schematic diagram of the architecture of the hardware operating environment of the data search device involved in the embodiment of the present invention.
[0052] like Figure 1 As shown, the data search device may include: a processor 101, such as a core processor, a memory 102, and a communication bus 103. The memory 102 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as a disk memory. The memory 102 may optionally be a storage device independent of the aforementioned processor 101. The communication bus 103 is used to realize the connection and communication between these components.
[0053] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the data search device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0054] like Figure 1 As shown, the memory 102 as a computer-readable storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a data search program.
[0055] exist Figure 1In the data search device shown, the processor 101 and the memory 102 may be arranged in the data search device, and the data search device calls the data search program stored in the memory 102 through the processor 101, and performs the following operations:
[0056] Obtaining search keywords corresponding to the received search request;
[0057] Splitting the search keyword into search terms based on a preset word segmenter;
[0058] Constructing a search path according to the search word element, and extracting target data corresponding to each search path in a shelf data warehouse based on the search path and the shelf category corresponding to the search request;
[0059] The target data is output.
[0060] In one embodiment, the processor 101 may be used to call a data search program stored in the memory 102 and perform the following operations:
[0061] Get the shelf category corresponding to the received search request;
[0062] In the shelf-type data warehouse, calling the category database corresponding to the shelf category;
[0063] In the category database, performing a matching operation on each of the search paths;
[0064] When the search path is a full match path, the target data corresponding to the search path is extracted from the category database.
[0065] In one embodiment, the processor 101 may be used to call a data search program stored in the memory 102 and perform the following operations:
[0066] Read the publishing time and click data of each target data corresponding to the search path;
[0067] Arrange each of the target data according to the order of the release time to obtain first arrangement data, and arrange each of the target data according to the value of the click data to obtain second arrangement data;
[0068] Based on the push rule, the first arrangement data and the second arrangement data, each of the target data is output to the content push interface.
[0069] In one embodiment, the processor 101 may be used to call a data search program stored in the memory 102 and perform the following operations:
[0070] Output push rule setting interface;
[0071] When receiving a push rule setting instruction on the push rule setting interface, determining a time weight value and a click weight value according to the push rule setting instruction;
[0072] The push rule is generated based on the time weight value and the click weight value.
[0073] In one embodiment, the processor 101 may be used to call a data search program stored in the memory 102 and perform the following operations:
[0074] When the content push interface detects an access instruction for the current page, obtaining the number of accesses to the current page;
[0075] When the number of accesses is greater than or equal to a preset round-robin threshold, a round-robin operation is performed on the target data output to the content push interface according to a preset round-robin value and a preset round-robin strategy.
[0076] In one embodiment, the processor 101 may be used to call a data search program stored in the memory 102 and perform the following operations:
[0077] Output the shelf data warehouse configuration interface;
[0078] According to the shelf category configuration parameters received by the shelf data warehouse configuration interface, a category classification operation is performed on the shelf data warehouse to obtain at least one category database.
[0079] In one embodiment, the processor 101 may be used to call a data search program stored in the memory 102 and perform the following operations:
[0080] Read the category keywords in the shelf category configuration parameters;
[0081] According to the category keyword, a keyword index table is constructed in the category database corresponding to the category keyword.
[0082] Based on the hardware architecture of the above data search device, an embodiment of the data search method of the present invention is proposed.
[0083] Reference Figure 2 In a first embodiment, the data search method is applied to a data search system, and the data search method includes the following steps:
[0084] Step S100: Obtain the search keyword corresponding to the received search request.
[0085] In this embodiment, after receiving the search request, the data search system enters the data search process and obtains the search keywords from the search request.
[0086] Optionally, before obtaining the search keyword corresponding to the received search request, the data search system outputs a search box on the front-end page. The search box here is used for users to enter search keywords. After the search box receives the search keyword, a search request is generated based on the search keyword and sent to the back-end of the data search system. After receiving the search request, the back-end parses the search keyword from the search request.
[0087] Optionally, the data search system is provided with a shelf category selection interface. The data search system receives the search keywords input by the user through the search box, and receives the shelf categories selected by the user through the shelf category selection interface; then generates a search request based on the received search keywords and shelf categories to trigger the data search system to enter the data search process. It should be noted that the shelf categories here are used to clarify the user's search intentions and needs.
[0088] The shelf categories here include but are not limited to new technologies, e-commerce malls, spot markets, technical information, processing customization, technical Q&A, procurement services, etc.
[0089] Step S200: split the search keyword into search terms based on a preset word segmenter.
[0090] In this embodiment, after obtaining the search keyword corresponding to the search request, the search keyword is passed to the preset word segmenter; then, the preset word segmenter processes the search keyword based on the word segmentation function and returns a word segmentation result; then, the word segmentation result is traversed to obtain the search word element. Optionally, the preset word segmenter can be an IK word segmenter, a Jieba word segmenter, or a HanLP word segmenter.
[0091] In an optional implementation, assuming that the search keyword obtained is "angular velocity sensor", after "angular velocity sensor" is passed into the IK word segmenter, the IK word segmenter divides the search keyword into independent words based on the custom dictionary and the extended vocabulary, combined with the longest forward matching algorithm and the shortest reverse matching algorithm, and the obtained search terms are "angular velocity sensor", "angular velocity sensor", "angular velocity", "speed sensor", "speed sensor", "speed", "sensor", "sensor", "device". The accuracy of the search keyword segmentation is ensured, and personalized segmentation is achieved through the custom dictionary and the extended vocabulary.
[0092] In another optional implementation, when the preset word segmenter is Jieba word segmenter, after the search keyword is passed into Jieba word segmenter, Jieba word segmenter performs word segmentation on the search keyword based on the statistical model and the longest forward matching algorithm. The statistical model here is trained on a large-scale corpus, and collects information such as the collocation frequency and word frequency between words, thereby ensuring the accuracy of word segmentation; the longest forward matching algorithm here is a greedy algorithm, which ensures the speed of word segmentation.
[0093] This application does not make any specific limitation on the preset word segmenter. In practical applications, different preset word segmenters can be selected according to different application scenarios and requirements.
[0094] Step S300: construct a search path according to the search word, and based on the search path and the shelf category corresponding to the search request, extract the target data corresponding to each search path in the shelf data warehouse.
[0095] In this embodiment, after the search term is obtained, a search path is constructed based on the search term. It can be understood that the search path here refers to the one obtained by arranging and combining the various search terms. Exemplarily, assuming that the search terms obtained are "angular velocity sensor", "angular velocity sensor", "angular velocity", "speed sensor", "speed sensor", "speed", "sensor", "sensor", and "device", the search path constructed based on these search terms can be "angular velocity sensor", "angular velocity sensor", "angular velocity speed sensor", "angular velocity speed sensor", "angular velocity device", "speed sensor", "sensor device", etc.
[0096] After obtaining at least one search path, the target data corresponding to each of the search paths is extracted in the shelf-type data warehouse based on these search paths and the shelf categories corresponding to the search requests. It should be noted that the shelf-type data warehouse here refers to a data warehouse that modularly constructs and manages the data warehouse according to shelf categories. The shelf-type data warehouse divides the data warehouse into multiple modules based on shelf categories. Each module is equivalent to a shelf, which can be called a category database. Each shelf is responsible for storing and managing a specific data set or a specific business domain. In actual applications, these shelves can be flexibly split and combined according to specific needs to achieve better scalability and performance. This application does not specifically limit the shelf categories.
[0097] Optionally, after obtaining at least one search path, obtain the shelf category corresponding to the received search request; then, in the shelf-type data warehouse, call the category database corresponding to the shelf category; and in the category database, perform a matching operation on each of the search paths; when the search path is a full match path, extract the target data corresponding to the search path in the category database.
[0098] It should be noted that a fully matched path refers to a situation where the search path completely matches a data record in the category database. By performing a matching operation on each of the search paths, it is determined whether the search path completely matches a data record in the category database. If the match is successful, the search path is called a fully matched path. For example, assuming that a search path is "angular velocity sensor", and a data content in the category database includes "angular velocity greenhouse constant temperature sensor", then the "angular velocity sensor" can be considered to be a fully matched path.
[0099] By calling the category database corresponding to the shelf category and performing matching operations in the category database according to the search path, the data content corresponding to the search path of the full matching path is extracted from the category database as the target data. The purpose of this is to accurately extract data content consistent with the user's search intentions and needs in the shelf data warehouse based on the search keywords and shelf categories.
[0100] Step S400: output the target data.
[0101] In this embodiment, after the target data is extracted from the shelf-type data warehouse, an output operation is performed on the target data.
[0102] Furthermore, after outputting the target data, when the content push interface detects an access instruction for the current page, the number of visits to the current page is obtained; and when the number of visits is greater than or equal to a preset round-robin threshold, a round-robin operation is performed on the target data output to the content push interface according to the preset round-robin value and the preset round-robin strategy.
[0103] The current page here refers to the page currently displayed on the content push interface. Optionally, the content push interface is provided with a preset display range. Assuming that the preset display range is 10 items, the current page displays 10 items of target data. Further, when a preset display range adjustment instruction is received, a display range adjustment window is output, and the preset display range is adjusted based on the display range value received by the display range adjustment window.
[0104] Optionally, when any target data displayed on the current page is clicked, the content push interface will detect the access instruction of the current page. After the content push interface detects the access instruction of the current page, the target data displayed on the current page is used as the display set, and the access count of the display set is incremented. It can be understood that the access count of the current page is the access count of the display set after the access count of the display set is incremented.
[0105] For example, assuming that the preset round-robin value is 2, the preset round-robin strategy is that when the user visits this page twice, the overall data is cycled down by 10 items, and the last page of data is cycled forward by 10 items. In this way, by cycling down by 10 items, the same data content is avoided from being repeatedly displayed in the current content push interface, so that the user can see some new content every time he visits the page. By cycling forward by 10 items of the last page of data content, it is ensured that the user can continue to browse the previous data content when turning to the last page, avoiding the user being unable to see the previous data content when turning to the last page.
[0106] The purpose of doing this is to increase the variability of the page by performing page round-robin based on the number of times the user visits the page, so that the user gets different content when visiting the same page multiple times, thereby increasing the variability of the page.
[0107] In the technical solution provided in this embodiment, the search keywords are passed into a preset word segmenter to split the search keywords into multiple search words, so as to split long sentences into smaller components. Then, based on the search words, multiple search paths are constructed by combining and overlapping different words to take into account the correlation between different words, while covering as many aspects of user searches as possible to more comprehensively meet the needs of users; by combining the search path with the shelf category, the user's intentions and needs can be better understood, and relevant data can be extracted from the data warehouse, thereby ensuring that the output target data is highly matched with the user's search intentions and needs. By obtaining search keywords, word segmentation, constructing paths, and combining shelf categories, the target data is extracted and output from the shelf data warehouse, so as to accurately understand the user's search intentions and needs, and output target data that meets the user's needs.
[0108] Reference Figure 3 Based on the above embodiment, in a second embodiment, the step of outputting the target data includes:
[0109] Step S410: reading the publishing time and click data of each target data corresponding to the search path;
[0110] Step S420: arranging each of the target data according to the order of the release time to obtain first arrangement data, and arranging each of the target data according to the value of the click data to obtain second arrangement data;
[0111] Step S430: Based on the push rule, the first arrangement data and the second arrangement data, each of the target data is output to the content push interface.
[0112] In this embodiment, when outputting the target data, the publishing time and click data of each target data are first read; then, each target data is arranged according to the order of the publishing time to obtain the first arrangement data, and each target data is arranged according to the value of the click data to obtain the second arrangement data; finally, based on the push rules, the first arrangement data and the second arrangement data, each target data is output to the content push interface.
[0113] The release time is used to determine the newness of the target data, and the click data is used to measure the popularity of the target data and serve as the basis for sorting. Each target data is sorted according to the release time, and the newer data can be placed in front. Then, each target data is sorted according to the value of the click data, and the more popular or popular data can be placed in front.
[0114] Furthermore, the push rules here can be customized by the user. Specifically, first output a push rule setting interface; then, when the push rule setting interface receives a push rule setting instruction, determine the time weight value and the click weight value according to the push rule setting instruction; finally, generate the push rule based on the time weight value and the click weight value.
[0115] Exemplarily, assuming that the ratio of the time weight value to the click weight value is 2:1, the generated push rule can be to output 2 target data in the first arrangement data order and 1 in the second arrangement data order, and output the target data according to the 2:1 interspersed rule.
[0116] The purpose of doing this is to enable users to set push rules for target data in the push rule setting interface according to their preferences, so as to achieve the purpose of personalized push of target data and further improve the flexibility of target data output.
[0117] In the technical solution provided in this embodiment, each target data is output to the content push interface based on the push rules, the first arrangement data and the second arrangement data, and the target data is sorted and output according to certain rules, thereby further improving the consistency between the output target data and the user's search intention.
[0118] Reference Figure 4Based on the above embodiment, in the third embodiment, before the step of obtaining the search keyword corresponding to the received search request, the method further includes:
[0119] Step S500: outputting a shelf-type data warehouse configuration interface;
[0120] Step S600: According to the shelf category configuration parameters received by the shelf data warehouse configuration interface, a category classification operation is performed on the shelf data warehouse to obtain at least one category database.
[0121] In this embodiment, before obtaining the search keyword corresponding to the received search request, a configuration operation of the shelf-type data warehouse is first performed. Specifically, a shelf-type data warehouse configuration interface is first output to receive shelf category configuration parameters. After the shelf category configuration parameters are received by the shelf-type data warehouse configuration interface, a category classification operation is performed on the shelf-type data warehouse according to the shelf category configuration parameters, and data with the same or related characteristics are classified into corresponding category databases to obtain at least one category database.
[0122] It should be noted that the shelf category configuration parameters here are used to set data partitions for the shelf data warehouse. Data partitioning refers to dividing the data content according to the dimension of shelf categories and storing and managing the data content in the form of shelves.
[0123] Optionally, the shelf category configuration parameters include a data indexing strategy, that is, determining which data in the shelf needs to be indexed to speed up data query and retrieval.
[0124] Furthermore, after obtaining the category database, the category keywords in the shelf category configuration parameters are read; then, based on the category keywords, a keyword index table is constructed in the category database corresponding to the category keywords.
[0125] The category keywords here refer to the keywords related to each shelf category, including but not limited to the characteristic words, product words, industry words, etc. of the shelf category. The keyword index table is a table that indexes the category keywords and the data in the category database. By constructing a keyword index table, you can quickly determine in which category database a certain search keyword is located, and then search directly in the category database, thereby improving the efficiency and accuracy of the search.
[0126] The purpose of this is to achieve the association between search keywords and categories, and to build a keyword index for each category, so that when an actual search request comes, the required category database can be quickly located according to the keyword index table.
[0127] For example, assuming that the shelf category is technical information, the corresponding category keywords may be data manual, selection guide, user guide, test report, application notes, etc.
[0128] In the technical solution provided in this embodiment, the data in the shelf-type data warehouse is classified and stored in the corresponding category database according to the configured category classification parameters. In this way, when obtaining the search keyword corresponding to the search request, it can be directly obtained from the corresponding category database, thereby improving the efficiency and accuracy of the search.
[0129] In addition, refer to Figure 5 This embodiment also provides a data search system, the data search system comprising:
[0130] The keyword acquisition module 10 is used to acquire the search keyword corresponding to the received search request;
[0131] A word segmentation module 20, used to split the search keyword into search terms based on a preset word segmenter;
[0132] A path construction module 30, used to construct a search path according to the search word element;
[0133] A data extraction module 40, configured to extract target data corresponding to each search path in a shelf-type data warehouse based on the search path and the shelf category corresponding to the search request;
[0134] The output module 50 is used to output the target data.
[0135] In addition, it can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the data search device to implement the process steps of the embodiment of the above method.
[0136] Therefore, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a data search program, and when the data search program is executed by a processor, the various steps of the data search method described in the above embodiment are implemented.
[0137] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which may store program codes.
[0138] It should be noted that since the storage medium provided in the embodiment of the present application is the storage medium used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the storage medium, so it is not repeated here. All storage media used in the method of the embodiment of the present application belong to the scope of protection of this application.
[0139] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0140] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0143] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second and third etc. does not indicate any order. These words may be interpreted as names.
[0144] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0145] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data search method, characterized in that: Applied to a data search system, the data search method comprises the following steps: Obtaining search keywords corresponding to the received search request; Splitting the search keyword into search terms based on a preset word segmenter; Constructing a search path according to the search word element, and extracting target data corresponding to each search path in a shelf data warehouse based on the search path and the shelf category corresponding to the search request; The target data is output.
2. The data search method according to claim 1, characterized in that: The step of extracting target data corresponding to each search path in the shelf data warehouse based on the search path and the shelf category corresponding to the search request includes: Get the shelf category corresponding to the received search request; In the shelf-type data warehouse, calling the category database corresponding to the shelf category; In the category database, performing a matching operation on each of the search paths; When the search path is a full match path, the target data corresponding to the search path is extracted from the category database.
3. The data search method according to claim 1, characterized in that: The step of outputting the target data comprises: Read the publishing time and click data of each target data corresponding to the search path; Arrange each of the target data according to the order of the release time to obtain first arrangement data, and arrange each of the target data according to the value of the click data to obtain second arrangement data; Based on the push rule, the first arrangement data and the second arrangement data, each of the target data is output to the content push interface.
4. The data search method according to claim 3, characterized in that: Before the step of outputting each of the target data to the content push interface based on the push rule, the first arrangement data and the second arrangement data, the step further includes: Output push rule setting interface; When receiving a push rule setting instruction on the push rule setting interface, determining a time weight value and a click weight value according to the push rule setting instruction; The push rule is generated based on the time weight value and the click weight value.
5. The data search method according to claim 3, characterized in that: After the step of outputting each of the target data to the content push interface based on the push rule, the first arrangement data and the second arrangement data, the method further includes: When the content push interface detects an access instruction for the current page, obtaining the number of accesses to the current page; When the number of accesses is greater than or equal to a preset round-robin threshold, a round-robin operation is performed on the target data output to the content push interface according to a preset round-robin value and a preset round-robin strategy.
6. The data search method according to claim 1, characterized in that: Before the step of obtaining the search keyword corresponding to the received search request, the method further includes: Output the shelf data warehouse configuration interface; According to the shelf category configuration parameters received by the shelf data warehouse configuration interface, a category classification operation is performed on the shelf data warehouse to obtain at least one category database.
7. The data search method according to claim 6, characterized in that: After the step of performing a category classification operation on the shelf-type data warehouse according to the shelf category configuration parameters received by the shelf-type data warehouse configuration interface to obtain at least one category database, the step further includes: Read the category keywords in the shelf category configuration parameters; According to the category keyword, a keyword index table is constructed in the category database corresponding to the category keyword.
8. A data search system, characterized in that: The data search system comprises: A keyword acquisition module, used to acquire the search keyword corresponding to the received search request; A word segmentation module, used for splitting the search keyword into search terms based on a preset word segmenter; A path building module, used for building a search path according to the search word element; A data extraction module, configured to extract target data corresponding to each search path in a shelf-type data warehouse based on the search path and the shelf category corresponding to the search request; An output module is used to output the target data.
9. A data search device, characterized in that: The data search device comprises: a memory, a processor, and a data search program stored in the memory and executable on the processor, wherein the data search program is configured to implement the steps of the data search method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a data search program, and when the data search program is executed by a processor, the steps of the data search method according to any one of claims 1 to 7 are implemented.
