A search system, method and storage medium
Through the collaborative work of search platforms, search engines and data platforms, the problem of waste of data search resources in the financial field is solved, efficient data query and time saving, and improved work efficiency and user experience.
Patent Information
- Application Number
- CN202010637068.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-03
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-07-03
AI Technical Summary
In the field of finance, it is difficult to achieve efficient data search in the existing technology, especially ordinary practitioners, which are difficult for them to simply search for the required information, because all the data in the data platform needs to be stored into the search engine, resulting in waste of resources and time consumption.
Through the collaborative work of search platforms, search engines and data platforms, query matching is performed in the data index database, and then query in the data platform. When data query is realized, search engines only store part of the data, save resources, and save when data synchronization is performed. time.
Accurate data query is realized, resources are saved, workload is reduced, work efficiency is improved, and user experience is improved through display rules and preset filtering rules.
Smart Images

Figure CN111897836B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to data search technology, and more particularly to a search system, method and storage medium. Background Art
[0002] The financial sector covers a wide range of businesses, so there are different systems for different businesses. The data in the financial sector is often distributed in these different systems, and the data structures in different systems are also different. Existing technologies use big data clusters and other methods to bring these scattered data together for management.
[0003] At present, when searching for the desired data in these centralized data, professionals who have experience in using big data clusters and are familiar with the data structure in the data cluster are usually required to obtain the required information. It is difficult for ordinary financial practitioners to simply search for the required information. Alternatively, the entity can be matched with an entity object in the real business by designing a data platform, and searched through a search engine, but all the data on the data platform needs to be stored in the search engine and searched using natural language. Storing all the data on the data platform in the search engine means that all the data is stored in the search engine and the data platform respectively, which wastes resources, and it takes time and a lot of work to synchronize the data in the search engine library and the data in the data platform. Summary of the invention
[0004] The present invention provides a search system, method and storage medium to realize accurate data query and save resources.
[0005] In a first aspect, an embodiment of the present invention provides a search system, the search system comprising:
[0006] A search platform, used to determine a target search statement and a target index based on a search statement input by a user;
[0007] A search engine, configured to query a data index library corresponding to the target index according to a search term corresponding to the target search statement, determine a data category corresponding to the search statement, and send the data category to the search platform;
[0008] The data platform is used to obtain the query template determined by the search platform according to the data category, search the database according to the query template, and determine the query result corresponding to the search statement, and the database includes the data index library.
[0009] In a second aspect, an embodiment of the present invention further provides a search method, the search method comprising:
[0010] The search platform determines a target search statement and a target index based on the search statement input by the user;
[0011] The search engine queries the data index library corresponding to the target index according to the search term corresponding to the target search statement, determines the data category corresponding to the search statement, and sends the data category to the search platform;
[0012] The data platform obtains the query template determined by the search platform according to the data category, searches the database according to the query template, and determines the query result corresponding to the search statement, wherein the database includes the data index library.
[0013] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a search method as described in any one of the embodiments of the present invention.
[0014] The embodiment of the present invention provides a search system, method and storage medium, which is used to determine a target search statement and a target index according to a search statement input by a user through a search platform; a search engine is used to query a data index library corresponding to the target index according to the search term corresponding to the target search statement, determine the data category corresponding to the search statement, and send the data category to the search platform; a data platform is used to obtain a query template determined by the search platform according to the data category, search a database according to the query template, and determine the query result corresponding to the search statement. The database includes the data index library, which solves the problem of resource waste caused by the need to save all data in the data platform to the search engine when searching through the search engine in the traditional method. Part of the data in the database of the data platform is saved through the data index library in the search engine. When searching for data, query matching is first performed in the data index library, and then data query is performed in the data platform, so that the search engine library only stores part of the data when querying data, which saves resources. In addition, the search engine only stores part of the data, so when the search engine synchronizes data with the data platform, time is saved, workload is reduced, and work efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a structural diagram of a search system in Embodiment 1 of the present invention;
[0016] Figure 2 is a structural diagram of a search system in Embodiment 2 of the present invention;
[0017] Figure 3 It is a flow chart of a search method in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0018] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0019] Embodiment 1
[0020] Figure 1 This is a structural diagram of a search system provided in the first embodiment of the present invention. This embodiment is applicable to the case of searching data. The search system includes: a search platform 110, a search engine 120 and a data platform 130.
[0021] The search platform 110 is used to determine a target search statement and a target index according to a search statement input by a user.
[0022] The search engine 120 is used to query the data index library corresponding to the target index according to the search term corresponding to the target search statement, determine the data category corresponding to the search statement, and send the data category to the search platform.
[0023] The data platform 130 is used to obtain the query template determined by the search platform according to the data category, search the database according to the query template, and determine the query result corresponding to the search statement. The database includes the data index library.
[0024] In this embodiment, the search platform 110 can be understood as an application platform that provides users with data search functions, and performs data query by connecting the search engine library and the data platform to provide query results for users; the search engine 120 can be understood as a system that collects information based on a certain strategy and uses a specific computer program to provide retrieval services to users and display corresponding results. For example, it can be ElasticSearch, a distributed multi-user full-text search engine; the search statement can be understood as the statement or data entered by the user on the search platform. When the user queries data, he needs to enter data on the search platform, such as "How tall is Yao Ming". The search platform receives the query and displays the query result. After receiving the search statement input by the user, the corresponding information is sent to the search engine for query; the target search statement can be understood as the statement determined by the search platform based on the search statement and sent to the search engine, for example, the search statement is "What is Yao Ming's height", and the target search statement is "What is 's height". The target search statement can be a whole search statement or a partial search statement; the target index can be understood as an index that instructs the search engine to query in the corresponding database, such as an attribute value index library and an attribute name index library. The attribute value index library can be understood as a database of attribute names that correspond to the storage of attribute values and data types, and the attribute name index library can be understood as a database of attribute names that correspond to the storage of attribute names and data types.
[0025] The search platform sets a search box or other interface or virtual button on the display interface that can realize the function of receiving user input information. The user enters a search statement on the search platform, and the search statement includes relevant information about the user's search intention. The target search statement and target index are determined according to the search statement. The target index is determined when the target search statement is determined. For example, when the target search statement is "How tall is Yao Ming", the target index is the attribute value index library; when the target search statement is "How tall is ", the target index is the attribute name index library.
[0026] In this embodiment, the search term can be understood as a word that is searched in the database as a search term, for example, the target search statement is "How tall is Yao Ming", and the search term is Yao Ming; the data index library can be understood as an index library that stores different types of data in the search engine, and the data index library includes an attribute value index library and an attribute name index library; the data category can be understood as the category corresponding to the search term in the search statement, such as "person".
[0027] The search engine receives the target search statement and target index sent by the search platform, determines the search terms in the target search statement by analyzing the statement, queries the data index library corresponding to the target index based on the search terms, determines the data category corresponding to the search terms, and feeds the data category back to the search platform. When the search statement contains more than one search term, multiple searches are performed to return the data categories corresponding to the multiple search terms.
[0028] In this embodiment, the data platform 130 can be an application platform for storing data, and the data that the user may query is stored in the data platform in advance. In the embodiment of the present invention, the data platform adopts the structure of the knowledge graph. The knowledge graph is a graph-based data structure composed of nodes (point) and edges (Edge). Each node represents an "entity", and each edge is a "relationship" between entities. The knowledge graph is essentially a semantic network. Entities can refer to things in the real world, such as people, place names, companies, telephones, animals, etc.; relationships are used to express certain connections between different entities. The knowledge graph is a relationship network obtained by connecting all different types of information together, so the knowledge graph provides the ability to analyze problems from the perspective of "relationships". Analyze all data, determine which entities there are, and which entities users will use as natural language search subjects, to determine which entities need to be dumped to the search engine, which attribute names or attribute values users will use for search, to determine which attribute names and attribute values need to be dumped to the search engine, what attribute names of each entity are, etc., to build a data index library in the data platform and the search engine. A query template can be understood as a template used to query data, which can be a computer program language in a fixed format; a database can be understood as a database that stores data in a data platform.
[0029] Different types of data categories correspond to different query templates. For example, different templates correspond to people and people, people and objects, etc. The search platform determines the query template to be used based on the data category fed back by the search engine, and adds the search terms to the corresponding positions in the query template to form a language that can query the database, or adds the search terms to the corresponding positions in the query template to form a query statement, and converts the query statement formed by the query template into a language that can be executed by the data platform for query, thereby determining the query result.
[0030] The embodiment of the present invention provides a search system, which determines a target search statement and a target index according to a search statement input by a user through a search platform; the search engine queries a data index library corresponding to the target index according to the search term corresponding to the target search statement, determines the data category corresponding to the search statement, and sends the data category to the search platform; the data platform obtains a query template determined by the search platform according to the data category, searches a database according to the query template, and determines a query result corresponding to the search statement, wherein the database includes the data index library, which solves the problem of resource waste caused by the need to save all data in the data platform to the search engine when searching through the search engine in the traditional method, and saves part of the data in the database of the data platform through the data index library in the search engine. When searching for data, query matching is first performed in the data index library, and then data query is performed in the data platform, which realizes that the search engine library only stores part of the data when querying data, thereby saving resources, and the search engine only stores part of the data, so when the search engine synchronizes data with the data platform, it saves time, reduces workload, and improves work efficiency.
[0031] Embodiment 2
[0032] Figure 2 This is a structural diagram of a search system provided in Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution. The search system includes: a search platform 210 , a search engine 220 and a data platform 230 . The search platform 210 includes: a statement parsing module 211 and a template matching module 212 .
[0033] The statement parsing module 211 is used to send the search statement as the target search statement and the attribute value index library as the target index to the search engine, and after receiving the first data category corresponding to the first search term fed back by the search engine, if there is a search statement removing the first search term, send the search statement removing the first search term as the target search statement and the attribute name index library as the target index to the search engine, and receive the second data category corresponding to the second search term fed back by the search engine.
[0034] The template matching module 212 is used to determine a query template according to the first data category and / or the second data category sent by the search engine in combination with a preset template mapping relationship.
[0035] In this embodiment, the statement parsing module 211 can be understood as a computer virtual module that parses the received data and performs other corresponding processing; the template matching module 212 can be understood as a computer virtual module that matches the corresponding query template according to the data category; the first search term and the second search term can be understood as different search terms in the search statement, and the search term of the first search is used as the first search term, and the search term of the second search is used as the second search term. The first data category and the second data category can be understood as the data categories corresponding to the search terms, the data category corresponding to the first search term is the first data category, and the data category corresponding to the second search term is the second data category; the preset template mapping relationship can be understood as the corresponding relationship between the data category and the query template.
[0036] After the search platform 210 receives the search statement input by the user, the search statement is parsed by the statement parsing module 211 and sent to the search engine. The statement parsing module 211 first takes the entire search statement as the target search statement and sends the attribute value index as the target index to the search engine 220. The search engine 220 parses the target search statement to determine the first search term, performs a corresponding query based on the first search term to determine that the first search term corresponds to the first data category, and feeds back to the statement parsing module 211. After receiving the first search term and the first data category, the statement parsing module 211 determines whether there are other terms in the search statement after removing the first search term. If so, the search statement without the first search term is taken as the target search statement and the attribute name index library is sent to the search engine 220 as the target index. The search engine 220 parses the target search statement to determine the second search term, performs a corresponding query based on the second search term to determine that the second search term corresponds to the second data category, and feeds back to the statement parsing module 211. The data category received by the statement parsing module 211 is the first data category, or the first data category and the second data category, and the data category is sent to the template matching module. The template matching module searches for a preset template mapping relationship according to the data category to determine the query template corresponding to the data category.
[0037] Furthermore, the search platform 210 also includes:
[0038] The display module 213 is used to receive the query template sent by the template matching module, send the query template to the data platform, and receive the query result fed back by the data platform.
[0039] In this embodiment, the display module 213 can be understood as a computer virtual module that connects the search platform and the data platform and displays the data.
[0040] The display module receives the query template sent by the template matching module, and sends the query template to the data platform 230 so that the data platform performs data query according to the query template. The display module 213 receives the query result fed back by the data platform.
[0041] Furthermore, the display module 213 is also used to display the query result according to a set display rule.
[0042] In this embodiment, the display rule can be understood as a preset display form of the query result, such as a graphical display, a table display, etc. The display rule can be freely set by the user or can be a default display rule.
[0043] When a user enters a search statement, he or she can also enter a display rule. For example, when a user enters "Yao Ming's height type: excel", the statement parsing module can parse "Yao Ming's height" as a search statement, and the display rule is excel (table). The display rule is sent to the display module, and the display module displays the query results according to the display rule. When the query results are displayed according to the display rule specified by the user, the user's needs can be better met and the user experience can be improved. Alternatively, when the user does not enter a display rule, the display is performed according to the default display rule. The default display rule can automatically determine the corresponding display rule according to the user's query data, or directly determine the fixed display rule as a picture, table or text, etc. By automatically determining the corresponding display rule according to the user's query data, a better and more appropriate display method can be selected; directly determining the fixed display rule avoids the subsequent selection of the display rule, which is convenient and simple, and does not require any operation.
[0044] Furthermore, the statement parsing module 211 is also used to: if the first data category sent by the search engine is at least two and / or the second data category is at least two, determine the target data category according to the preset filtering rules, and feed the target data category back to the template matching module, so that the template matching module determines the query template in combination with the preset template mapping relationship.
[0045] In this embodiment, the preset filtering rule can be understood as a rule for presetting the screening data categories; the preset filtering rule includes: a preset score or a preset neural network model. The preset score can be understood as the scores possessed by different data categories. For example, when the data category is "person", the preset score is 88; when the data category is "object", the preset score is 85. The preset neural network model can be understood as a pre-trained model, which can determine the data categories that are combined into the best combination according to the input multiple data categories. The target data category can be understood as one of the multiple data categories corresponding to a search term that is finally determined.
[0046] If the data categories determined by the search engine for a search term are at least two, for example, there are 2 first data categories corresponding to the first search term, which are "person" and "object", and there are 3 second data categories corresponding to the second search term, which are "person", "address", and "finance". According to the preset filtering rule, the first data category is determined to be "person", and the second data category is determined to be "person". Then, "person" and "person" are fed back to the template matching module as the target data category. Selecting the target data category according to the preset filtering rule to determine the content that the user often searches for can better determine the data that the user wants to search for, making the search results more in line with the user's intention and improving the user experience.
[0047] Further, the search engine 220 is specifically configured to:
[0048] Determine the corresponding search term according to the target search statement in combination with the set statement analysis rule, determine the standard search term corresponding to the search term according to the search term in combination with the search term mapping relationship, query the data index library corresponding to the target index according to the standard search term, determine the data category corresponding to the standard search term, and send the data category to the search platform.
[0049] In this embodiment, the set statement analysis rule can be understood as a rule for presetting the analysis of the target search statement. For example, the target search statement is analyzed by defining stop words. The stop words can be words without actual meaning such as "de" that can be directly omitted. The standard search term can be understood as the attribute name or attribute value stored in the data index library. The search term mapping relationship can be understood as the corresponding relationship between the search term and the standard search term.
[0050] The search terms stored in the data index library cannot cover all search terms, or even if all search terms are stored, there are synonyms that express the same meaning and belong to the same data type. If all of them are stored, it will seriously waste resources. For example, words such as height and how tall are used are all used to query height. There is no need to store multiple words. Only standard search terms need to be stored in the data index library. For example, height can be used to query all synonyms of height. When the search terms in the search statement entered by the user are not stored in the data index library, or the search terms entered by the user contain incorrect terms, the user's intention is analyzed to determine the standard search terms. The search engine 220 determines the search terms in the target search statement based on the target search statement combined with the set statement analysis rules, finds the search term mapping relationship to determine the standard search terms corresponding to the search terms, queries the data index library corresponding to the target index based on the standard search terms, determines the data category corresponding to the standard search terms, and sends the data category to the search platform 210.
[0051] Furthermore, the search engine 220 is also used to: obtain the attribute name and attribute value of each data in the data platform according to a preset time interval, and update the corresponding data index library according to each attribute name and attribute value.
[0052] In this embodiment, the preset time interval can be understood as a preset data collection time interval, for example, 1 hour, 30 minutes, etc.
[0053] Extract all attributes from the data platform according to the preset time interval and write them into the search engine's attribute name index library in a fixed format, and be responsible for the subsequent synchronization of additions, deletions, and modifications. For data types that can be used as natural language search subjects (for example, entities in knowledge graphs), attribute values in data types that can be used as search, extract all these values and dump them into the search engine's attribute value index library to complete the update of the data index library.
[0054] Exemplarily, the process of searching data by the search system is described by taking an example. When a user inputs "How much is Yao Ming's height increase", the sentence parsing module 211 in the search platform 210 uses "How much is Yao Ming's height increase" as the target search sentence, and sends the "attribute value index library" as the target index to the search engine. The search engine determines the first search term as "Yao Ming" based on "How much is Yao Ming's height increase" combined with the set sentence analysis rules, determines the standard search term as "Yao Ming" based on the search term mapping relationship, searches the attribute value index library to determine the data category as people and companies, and feeds back Yao Ming, people, and companies to the search platform. The search platform uses "how much is the rise" after removing Yao Ming as the target search statement, and sends the "attribute name index library" as the target index to the search engine. The search engine determines that the second search term is "rise" based on "how much is the rise" and the set statement analysis rules, and determines that the standard search term is "height" based on the search term mapping relationship. The attribute name index library is searched to determine that the data categories are human and animal, and the height, human and animal are fed back to the statement parsing module 211. The statement parsing module 211 determines that the target data categories are "human" and "human" according to the preset filtering rules, and sends the target data category to the template matching module. The template matching module determines the query template according to the target data category and the preset template mapping relationship, and sends the query template to the data platform through the display module. The database is searched according to the query template, and it is determined that the query result corresponding to the search statement is 2.3m. 2.3m is fed back to the display module, and the display module displays the query result 2.3m according to the set display rules. When the search statement input by the user contains more than two search terms, for example, "Yao Ming's wife's height", "Yao Ming" is searched first, and then "wife's height" is searched. "Wife's height" contains "wife" and "height". The search engine searches "wife" and "height" as one search, filters the search results according to the preset filtering rules, and determines the data category corresponding to the search terms wife or height.
[0055] The embodiment of the present invention provides a search system, which solves the problem of resource waste caused by the need to save all data in the data platform to the search engine when searching through the search engine in the traditional method, and realizes that the search engine library only stores part of the data when querying data, thereby saving resources. The search engine only stores part of the data, so when the search engine synchronizes data with the data platform, it saves time, reduces workload, and improves work efficiency. The query results are displayed by setting display rules, which is simple and convenient, and can better meet user needs. In addition, filtering multiple data types by preset filtering rules can better determine the data that the user wants to search, so that the search results are more in line with the user's intention and improve the user experience.
[0056] Embodiment 3
[0057] Figure 3A flowchart of a search method provided in Embodiment 3 of the present invention is executed by a search system described in any embodiment. The method comprises the following steps:
[0058] Step S310: The search platform determines a target search statement and a target index according to the search statement input by the user.
[0059] Step S320: The search engine queries the data index library corresponding to the target index according to the search term corresponding to the target search statement, determines the data category corresponding to the search statement, and sends the data category to the search platform.
[0060] Step S330: The data platform obtains a query template determined by the search platform according to the data category, searches a database according to the query template, and determines a query result corresponding to the search statement, wherein the database includes the data index library.
[0061] The embodiment of the present invention provides a search method, wherein a search platform determines a target search statement and a target index according to a search statement input by a user; the search engine queries a data index library corresponding to the target index according to the search term corresponding to the target search statement, determines the data category corresponding to the search statement, and sends the data category to the search platform; the data platform obtains a query template determined by the search platform according to the data category, searches a database according to the query template, and determines a query result corresponding to the search statement, wherein the database includes the data index library, which solves the problem of resource waste caused by the need to save all data in the data platform to the search engine when searching through the search engine in the traditional method, and saves part of the data in the database of the data platform through the data index library in the search engine. When searching for data, query matching is first performed in the data index library, and then data query is performed in the data platform, which realizes that the search engine library only stores part of the data when querying data, thereby saving resources, and the search engine only stores part of the data, so when the search engine synchronizes data with the data platform, it saves time, reduces workload, and improves work efficiency.
[0062] Furthermore, the data index library includes an attribute value index library and an attribute name index library.
[0063] Furthermore, the search platform includes: a sentence parsing module and a template matching module.
[0064] Correspondingly, step S310 includes: the statement parsing module sends the search statement as the target search statement and the attribute value index library as the target index to the search engine, and after receiving the first data category corresponding to the first search term fed back by the search engine, if there is a search statement removing the first search term, the search statement removing the first search term is used as the target search statement and the attribute name index library is sent to the search engine as the target index, and the second data category corresponding to the second search term fed back by the search engine is received.
[0065] The method comprises: a template matching module determines a query template according to the data category sent by the search engine in combination with a preset template mapping relationship.
[0066] Furthermore, the search platform also includes: a display module.
[0067] Accordingly, the method further includes:
[0068] The display module receives the query template sent by the template matching module, sends the query template to the data platform, and receives the query result fed back by the data platform.
[0069] Furthermore, the method further comprises:
[0070] The display module displays the query results according to the set display rules.
[0071] Furthermore, the method further comprises:
[0072] If the search engine sends at least two first data categories and / or at least two second data categories, the statement parsing module determines the target data category according to the preset filtering rules, and feeds the target data category back to the template matching module so that the template matching module determines the query template in combination with the preset template mapping relationship.
[0073] Furthermore, the preset filtering rules include: a preset score or a preset neural network model.
[0074] Further, step S320 includes: determining the corresponding search term according to the target search statement in combination with the set statement analysis rules, determining the standard search term corresponding to the search term according to the search term in combination with the search term mapping relationship, querying the data index library corresponding to the target index according to the standard search term, determining the data category corresponding to the standard search term, and sending the data category to the search platform.
[0075] Furthermore, the method further comprises:
[0076] The search engine obtains the attribute name and attribute value of each data in the data platform according to a preset time interval, and updates the corresponding data index library according to each attribute name and attribute value.
[0077] The search method provided in the embodiment of the present invention can be executed by the search system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0078] Embodiment 4
[0079] Embodiment 4 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to perform a search method when executed by a computer processor, the method comprising:
[0080] The search platform determines a target search statement and a target index based on the search statement input by the user;
[0081] The search engine queries the data index library corresponding to the target index according to the search term corresponding to the target search statement, determines the data category corresponding to the search statement, and sends the data category to the search platform;
[0082] The data platform obtains the query template determined by the search platform according to the data category, searches the database according to the query template, and determines the query result corresponding to the search statement, wherein the database includes the data index library.
[0083] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, and can also execute related operations in the search method provided by any embodiment of the present invention.
[0084] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0085] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0086] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A search system, characterized in that: include: A search platform, used to determine a target search statement and a target index based on a search statement input by a user; A search engine, configured to query a data index library corresponding to the target index according to a search term corresponding to the target search statement, determine a data category corresponding to the search statement, and send the data category to the search platform; A data platform, used to obtain a query template determined by the search platform according to the data category, search a database according to the query template, and determine a query result corresponding to the search statement, wherein the database includes the data index library; The data index library includes an attribute value index library and an attribute name index library. The attribute value index library is a database that stores attribute values and attribute names of corresponding data types. The attribute name index library is a database that stores attribute names and data types of corresponding data. Accordingly, the search platform includes: a statement parsing module, configured to send the search statement as the target search statement and the attribute value index library as the target index to the search engine, and after receiving a first data category corresponding to a first search term fed back by the search engine, if there is a search statement without the first search term, send the search statement without the first search term as the target search statement and the attribute name index library as the target index to the search engine, and receive a second data category corresponding to a second search term fed back by the search engine; A template matching module, used to determine the query template according to the data category sent by the search engine and a preset template mapping relationship; The statement parsing module is further used to determine the target data category according to the preset filtering rule if the first data category sent by the search engine is at least two and / or the second data category is at least two, and feed the target data category back to the template matching module, so that the template matching module determines the query template in combination with the preset template mapping relationship; wherein the preset filtering rule includes: a preset score or a preset neural network model; Among them, the search engine is specifically used to determine the corresponding search term according to the target search statement in combination with the set statement analysis rules, determine the standard search term corresponding to the search term according to the search term in combination with the search term mapping relationship, query the data index library corresponding to the target index according to the standard search term, determine the data category corresponding to the standard search term, and send the data category to the search platform; wherein, the search term is a word used as a search term to search in the database; the data index library is an index library in the search engine that stores different types of data, and the data category is the category corresponding to the search term in the search statement.
2. The system according to claim 1, characterized in that The search platform further includes: The display module is used to receive the query template sent by the template matching module, send the query template to the data platform, and receive the query result fed back by the data platform.
3. The system according to claim 2, characterized in that The display module is further used to display the query results according to set display rules.
4. The system according to any one of claims 1 to 3, characterized in that: The search engine is also used for: The attribute name and attribute value of each data in the data platform are obtained according to a preset time interval, and the corresponding data index library is updated according to each attribute name and attribute value.
5. A search method, characterized in that: Executed by the search system according to any one of claims 1 to 4, the method comprises: The search platform determines a target search statement and a target index based on the search statement input by the user; The search engine queries the data index library corresponding to the target index according to the search term corresponding to the target search statement, determines the data category corresponding to the search statement, and sends the data category to the search platform; The data platform obtains a query template determined by the search platform according to the data category, searches a database according to the query template, and determines a query result corresponding to the search statement, wherein the database includes the data index library; The data index library includes an attribute value index library and an attribute name index library. The attribute value index library is a database that stores attribute values and attribute names of corresponding data types. The attribute name index library is a database that stores attribute names and data types of corresponding data. Accordingly, the search platform includes: The statement parsing module sends the search statement as the target search statement and the attribute value index library as the target index to the search engine, and after receiving the first data category corresponding to the first search term fed back by the search engine, if there is a search statement without the first search term, sends the search statement without the first search term as the target search statement and the attribute name index library as the target index to the search engine, and receives the second data category corresponding to the second search term fed back by the search engine; The template matching module determines the query template according to the data category sent by the search engine and the preset template mapping relationship; Wherein, if the first data category sent by the search engine is at least two and / or the second data category is at least two, the statement parsing module determines the target data category according to the preset filtering rule, and feeds the target data category back to the template matching module, so that the template matching module determines the query template in combination with the preset template mapping relationship; wherein the preset filtering rule includes: a preset score or a preset neural network model; Among them, the search engine determines the corresponding search term according to the target search statement in combination with the set statement analysis rules, determines the standard search term corresponding to the search term according to the search term in combination with the search term mapping relationship, queries the data index library corresponding to the target index according to the standard search term, determines the data category corresponding to the standard search term, and sends the data category to the search platform; wherein, the search term is a word used as a search term to search in the database; the data index library is an index library in the search engine that stores different types of data, and the data category is the category corresponding to the search term in the search statement.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a search method as claimed in claim 5 is implemented.
