Data Query Method, Device, Equipment and Medium
Through the MaaP management platform combining the query results of the MaaP platform and all query databases, weight fusion and similarity analysis are used to solve the problem of low accuracy of query data on the MaaP platform and achieve higher query accuracy.
Patent Information
- Application Number
- CN202111617601.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-12-27
AI Technical Summary
The accuracy of the MaaP platform query data is low, mainly due to data isolation between regions and the use of a unified search strategy.
Receive the query results and query information of the MaaP platform through the MaaP management platform, generate the second query results in combination with all query databases, and determine the target query results based on the first and second query results, and use weight fusion and similarity analysis to improve accuracy.
The accuracy of query data is improved, and more accurate target query results are generated by combining the weight fusion and similarity analysis of multiple query results.
Smart Images

Figure CN114297345B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular, to a data query method, apparatus, device and medium. Background Art
[0002] RCS (English full name: Rich Communitcation Suite, Chinese: Rich Media Communication) is an intelligent upgrade based on traditional SMS. RCS provides users with a richer form of SMS chat. Users can send various instant communication messages such as expressions, pictures, voices, videos, shared locations, and file transfers in SMS.
[0003] To enable RCS to bring a richer communication experience to individual users, MaaP (English full name: Messaging as a Platform, Chinese: Message as a Platform) is introduced. The aim is to upgrade SMS to RCS messages through the operator's messaging platform, in the way of "RCS + Platform (Chinese: Platform) + Chatbot (Chinese: Chatbot)", so that users can complete one-stop service experiences such as searching and interacting within the message window.
[0004] Currently, the MaaP platform is set up according to regions, with data isolation between each region and unified management by the MaaP management platform. Although the MaaP platform is set up according to regions, the data search strategies of each MaaP platform are the same and there is data isolation between regions. Therefore, the accuracy of currently querying data is relatively low. Summary of the Invention
[0005] The present invention provides a data query method, apparatus, device and medium to solve the problem of relatively low accuracy in querying data on the current MaaP platform.
[0006] In the first aspect of the present invention, a data query method is provided, which is applied to the MaaP management platform of the messaging as a platform. The method includes:
[0007] Receiving a first query result and query information sent by the MaaP platform of the messaging as a platform; the first query result is generated after querying data from a matching query database according to the query information sent by the user terminal;
[0008] Querying data in all query databases according to the query information to generate a second query result;
[0009] Determining a target query result according to the first query result and the second query result;
[0010] Sending the target query result to the MaaP platform, so that the MaaP platform feeds back the target query result to the user terminal.
[0011] Further, in the method described above, there are multiple first query results; there are multiple second query results;
[0012] Determining the target query result according to the first query result and the second query result includes:
[0013] Fusing each of the first query results and each of the second query results to generate a target query result; the target query result includes at least one first query result and / or at least one second query result.
[0014] Further, in the method described above, fusing each of the first query results and each of the second query results to generate a target query result includes:
[0015] Obtaining a first weight value matching each of the first query results and a second weight value matching each of the second query results;
[0016] Arranging each of the first weight values and each of the second weight values in descending order;
[0017] Determining the first weight value or the second weight value arranged before the preset position as the weight value to be selected;
[0018] Determining the first query result or the second query result corresponding to the weight value to be selected as the target query result.
[0019] Further, in the method described above, obtaining a first weight value matching each of the first query results and a second weight value matching each of the second query results includes:
[0020] Determining matching historical query results from a preset database according to the user terminal and the query information; the mapping relationship between the user terminal, the query information and the historical query results is stored in the preset database; the historical query result is the final query result selected by the user terminal from the historical target query results;
[0021] Determining each of the first weight values and each of the second weight values that match according to the historical query results, each of the first query results, and each of the second query results.
[0022] Further, in the method described above, determining each of the first weight values and each of the second weight values that match according to the historical query results, each of the first query results, and each of the second query results includes:
[0023] Determining a first similarity between the historical query results and each of the first query results;
[0024] Determine the second similarity between the historical query result and each of the second query results;
[0025] Determine each of the first weights and each of the second weights that match according to each of the first similarities and each of the second similarities.
[0026] The second aspect of the present invention provides a data query method, which is applied to the MaaP platform. The method includes:
[0027] Obtain the query information sent by the user terminal, and send the query information to the MaaP management platform, so that the MaaP management platform generates a second query result after querying data from all query databases according to the query information;
[0028] Query data from the matching query database according to the query information to generate a first query result;
[0029] Send the first query result to the MaaP management platform;
[0030] Receive the target query result fed back by the MaaP management platform; the target query result is determined by the MaaP management platform according to the first query result and the second query result;
[0031] Send the target query result to the user terminal.
[0032] Further, in the method as described above, the query information includes the location information of the user terminal and the query content data;
[0033] The querying data from the matching query database according to the query information to generate a first query result includes:
[0034] Determine the query database that matches the location information according to the location information;
[0035] Query data from the matching query database according to the query content data to generate a first query result.
[0036] The third aspect of the present invention provides a data query device, which is located in the MaaP management platform. The device includes:
[0037] A receiving module, configured to receive the first query result and the query information sent by the MaaP platform; the first query result is generated after querying data from the matching query database according to the query information sent by the user terminal;
[0038] A query module, configured to query data in all query databases according to the query information to generate a second query result;
[0039] A determination module, configured to determine a target query result according to the first query result and the second query result;
[0040] A sending module, configured to send the target query result to the MaaP platform, so that the MaaP platform feeds back the target query result to the user terminal.
[0041] Further, in the above-mentioned device, there are multiple first query results; there are multiple second query results;
[0042] The determination module is specifically configured to:
[0043] Fuse each of the first query results and each of the second query results to generate a target query result; the target query result includes at least one first query result and / or at least one second query result.
[0044] Further, in the above-mentioned device, when the determination module fuses each of the first query results and each of the second query results to generate a target query result, it is specifically configured to:
[0045] Obtain a first weight matching each of the first query results and a second weight matching each of the second query results; arrange each of the first weights and each of the second weights in descending order; determine the first weight or the second weight arranged before a preset position as the weight to be selected; determine the first query result or the second query result corresponding to the weight to be selected as the target query result.
[0046] Further, in the above-mentioned device, when the determination module obtains the first weight matching each of the first query results and the second weight matching each of the second query results, it is specifically configured to:
[0047] Determine a matching historical query result from a preset database according to the user terminal and the query information; the mapping relationship among the user terminal, the query information, and the historical query result is stored in the preset database; the historical query result is the final query result selected by the user terminal from the historical target query results; determine each of the first weights and each of the second weights that match according to the historical query result, each of the first query results, and each of the second query results.
[0048] Further, in the above-mentioned device, when the determination module determines each of the first weights and each of the second weights that match according to the historical query result, each of the first query results, and each of the second query results, it is specifically configured to:
[0049] Determine a first similarity between the historical query result and each of the first query results; determine a second similarity between the historical query result and each of the second query results; determine each of the first weights and each of the second weights that match according to each of the first similarities and each of the second similarities.
[0050] The fourth aspect of the present invention provides a data query device located on the MaaP platform. The device includes:
[0051] An acquisition module, configured to acquire query information sent by a user terminal and send the query information to the MaaP management platform, so that the MaaP management platform generates a second query result after querying data from all query databases according to the query information;
[0052] A query module, configured to query data from a matching query database according to the query information to generate a first query result;
[0053] A first sending module, configured to send the first query result to the MaaP management platform;
[0054] A receiving module, configured to receive a target query result fed back by the MaaP management platform; the target query result is determined by the MaaP management platform according to the first query result and the second query result;
[0055] A second sending module, configured to send the target query result to the user terminal.
[0056] Further, for the device as described above, the query information includes the location information of the user terminal and the query content data;
[0057] The query module is specifically configured to:
[0058] Determine a query database that matches the location information according to the location information; query data from the matching query database according to the query content data to generate a first query result.
[0059] The fifth aspect of the present invention provides a MaaP management platform, including: a memory, a processor;
[0060] A memory; a memory for storing executable instructions of the processor;
[0061] Wherein, the processor is configured to execute the data query method according to any one of the first aspects by the processor.
[0062] The sixth aspect of the present invention provides a MaaP platform, including: a memory, a processor;
[0063] A memory; a memory for storing the processor-executable instructions;
[0064] Wherein, the processor is configured to execute the data query method according to any one of the second aspect by the processor.
[0065] A seventh aspect of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the data query method according to any one of the first aspect or the second aspect.
[0066] An eighth aspect of the present invention provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the data query method according to any one of the first aspect or the second aspect.
[0067] A data query method, device, equipment and medium provided by the present invention, the method includes: receiving a first query result and query information sent by a messaging platform MaaP platform; the first query result is generated after querying data from a matching query database according to the query information sent by a user terminal; querying data in all query databases according to the query information to generate a second query result; determining a target query result according to the first query result and the second query result; sending the target query result to the MaaP platform, so that the MaaP platform feeds back the target query result to the user terminal. In the data query method of the present invention, the MaaP platform queries the first query result from the matching query database according to the query information. At the same time, the MaaP management platform queries data in all query databases according to the query information to generate a second query result. Combining the first query result and the second query result to determine a target query result with higher accuracy, thereby improving the accuracy of querying data. Description of the Drawings
[0068] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present invention, and are used together with the description to explain the principles of the present invention.
[0069] Figure 1 It is a scenario diagram for implementing the data query method of the embodiments of the present invention;
[0070] Figure 2 It is a schematic flowchart of the data query method provided by the first embodiment of the present invention;
[0071] Figure 3 It is a schematic flowchart of the data query method provided by the second embodiment of the present invention;
[0072] Figure 4Schematic flowchart of the data query method provided in the third embodiment of the present invention;
[0073] Figure 5 Schematic structural diagram of the data query device provided in the fourth embodiment of the present invention;
[0074] Figure 6 Schematic structural diagram of the data query device provided in the fifth embodiment of the present invention;
[0075] Figure 7 Schematic structural diagram of the MaaP management platform provided in the sixth embodiment of the present invention;
[0076] Figure 8 Schematic structural diagram of the MaaP platform provided in the seventh embodiment of the present invention.
[0077] Through the above-mentioned drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art by referring to specific embodiments. Detailed implementation manners
[0078] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0079] The technical solution of the present invention will be described in detail below with specific embodiments. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the drawings.
[0080] To clearly understand the technical solution of this application, the solutions of the prior art will be introduced in detail first. In the deployment of the operator's 5G (fully known as: 5th Generation Mobile Communication Technology) messaging platform, multiple MaaP platforms are deployed in multiple regions, with data isolation between each region, and all regions are managed by the same MaaP management platform. The MaaP management platform does not synchronize all data of all major regions in real time, but only synchronizes important information in real time and synchronizes some data information through scheduled tasks. At the same time, the MaaP management platform synchronizes a unified search strategy to each MaaP platform, and the MaaP platforms in different major regions perform corresponding searches and result sorting based on this strategy.
[0081] This method of implementing by uniformly formulating a search strategy upstream and synchronizing it downstream, because the data search strategies of each MaaP platform are the same and there is data isolation between regions, results in a relatively low accuracy of querying data.
[0082] Therefore, aiming at the problem of relatively low accuracy of querying data in the current MaaP platform in the prior art, the inventor found in the research that to solve this problem, the query results of the MaaP management platform and the query results of the MaaP platform can be combined, and a preset selection strategy is used to determine the final target query result to be fed back, improving the accuracy of querying data.
[0083] Specifically, first, the MaaP management platform receives the first query result and query information sent by the MaaP platform. The first query result is generated by querying data from the matching query database according to the query information sent by the user terminal. Then, data is queried in all query databases according to the query information to generate a second query result. At the same time, the target query result is determined based on the first query result and the second query result. This target query result is the query result fed back to the user terminal.
[0084] In the data query method of the present invention, the MaaP platform queries the first query result from the matching query database according to the query information. At the same time, the MaaP management platform queries data in all query databases according to the query information to generate a second query result. Combining the first query result and the second query result to determine a target query result with higher accuracy, thereby improving the accuracy of querying data.
[0085] Based on the above creative discovery, the inventor proposed the technical solution of this application.
[0086] Next, the application scenario of the data query method provided by the embodiments of the present invention will be introduced. As Figure 1As shown in the figure, where 1 is the MaaP management platform, 2 is the MaaP platform group, and 3 is the user terminal group. The network architecture of the application scenario corresponding to the data query method provided by the embodiment of the present invention includes: the MaaP management platform 1, the MaaP platform group 2, and the user terminal group 3. The MaaP platform group 2 includes multiple MaaP platforms, such as MaaP platform A, MaaP platform B, and MaaP platform N, etc. The user terminal group 3 includes multiple user terminals, such as user terminal A, user terminal B, and user terminal N, etc.
[0087] Suppose the user sends a query message through user terminal A, and it is determined that user terminal A belongs to the processing scope of MaaP platform A. At this time, MaaP platform A sends the query message to the MaaP management platform 1, and at the same time, queries data from the matching query database according to the query message to generate a first query result. Then, MaaP platform A sends the first query result to the MaaP management platform 1. Among them, MaaP platform A can also send the query message and the first query result simultaneously to improve the data query efficiency of the MaaP platform.
[0088] After the MaaP management platform 1 receives the query message, it can immediately query data from all query databases according to the query message to generate a second query result. After receiving the first query result, the MaaP management platform 1 determines the target query result according to the first query result and the second query result, and feeds back the target query result to MaaP platform A so that MaaP platform A feeds back the target query result to user terminal A. At this time, the user can view the target query result and determine the subsequent processing flow.
[0089] The embodiments of the present invention will be introduced below in conjunction with the accompanying drawings of the specification.
[0090] Figure 2 It is a schematic flow chart of the data query method provided by the first embodiment of the present invention. As Figure 2 shown, in this embodiment, the execution subject of the embodiment of the present invention is a data query device, and this data query device can be integrated in the MaaP management platform. The MaaP management platform can include at least one electronic device. Then the data query method provided by this embodiment includes the following steps:
[0091] Step S101, receive the first query result and the query message sent by the MaaP platform, that is, the platform. The first query result is generated by querying data from the matching query database according to the query message sent by the user terminal.
[0092] In this embodiment, the first query result and the query information can be received simultaneously or in batches. For example, the query information can be received first, and then the first query result. When the query result is received, data can be queried from all query databases according to the query result first.
[0093] The query information can include the location information of the user terminal, query content data, user terminal identifier, etc., which facilitates the subsequent query process.
[0094] Step S102: Perform data query in all query databases according to the query information to generate a second query result.
[0095] In this embodiment, the data stored in all query databases is the total amount of data stored in the query databases matched by each MaaP platform. Assume that the MaaP platforms are divided into 3 according to regions, and each MaaP platform can only search the data in the corresponding query database, while the MaaP management platform can query the data stored in all query databases.
[0096] Therefore, the second query result queried by the MaaP management platform is not necessarily the same as the first query result queried by the MaaP platform. For example, if a user wants to search for a certain bank through the user terminal, the MaaP platform may search for a certain bank related to the local area, while the MaaP management platform may not include a certain bank related to the local area in the query result, but banks in the entire region.
[0097] Step S103: Determine the target query result according to the first query result and the second query result.
[0098] In this embodiment, there can be one or more first query results, one or more second query results. The target query result can be the query result generated after removing duplicates from the first query result and the second query result, or the query result fused by assigning different weights to the first query result and the second query result according to the user terminal's historical search results. It can also be in other ways, which are not limited in this embodiment.
[0099] Step S104: Send the target query result to the MaaP platform so that the MaaP platform can feedback the target query result to the user terminal.
[0100] In this embodiment, after the target query result is determined, it can be feedback to the user terminal through the MaaP platform.
[0101] A data query method provided by an embodiment of the present invention includes: receiving a first query result and query information sent by the platform MaaP platform. The first query result is generated after querying data from a matching query database according to the query information sent by the user terminal. Query data in all query databases according to the query information to generate a second query result. Determine a target query result according to the first query result and the second query result. Send the target query result to the MaaP platform so that the MaaP platform can feedback the target query result to the user terminal.
[0102] In the data query method of the present invention, the MaaP platform queries the first query result from the matching query database according to the query information. At the same time, the MaaP management platform queries data in all query databases according to the query information to generate a second query result. Combine the first query result and the second query result to determine a target query result with higher accuracy, thereby improving the accuracy of querying data.
[0103] The data query method provided in this embodiment further refines each step on the basis of the data query method provided in the previous embodiment of the present invention. Then the data query method provided in this embodiment includes the following steps.
[0104] Optionally, in this embodiment, when there are multiple first query results and multiple second query results, determining the target query result according to the first query result and the second query result may specifically be:
[0105] Fuse each first query result and each second query result to generate a target query result. The target query result includes at least one first query result and / or at least one second query result.
[0106] In this embodiment, the fusion may be a query result generated by de-duplicating the first query result and the second query result, or a query result fused by assigning different weights to the first query result and the second query result according to the historical search results of the user terminal.
[0107] At the same time, the specific process of fusing each first query result and each second query result by means of weights is as follows:
[0108] Obtain a first weight matching each first query result and a second weight matching each second query result.
[0109] Arrange each first weight and each second weight in descending order.
[0110] Determine the first weight or the second weight before the preset position as the weight to be selected.
[0111] Determine the first query result or the second query result corresponding to the option weight to be the target query result.
[0112] Suppose the user terminal searches for a certain square. The first query results are a certain square in City A, a certain square in Area A of City A, and a certain square in Area B of City A. The second query results are a certain square in City A and a certain square in City B.
[0113] If the weight of a certain square in City A is 0.5, the weight of a certain square in Area A of City A is 0.2, the weight of a certain square in Area B of City A is 0.2, and the weight of a certain square in City B is 0.1. Then the first query result or the second query result ranked among the top can be determined as the target query result. For example, a certain square in City A or a certain square in City A, a certain square in Area A of City A can be used as the target query result.
[0114] The weight can be set in advance or determined during the query process. Specifically:
[0115] Determine the matching historical query results from the preset database according to the user terminal and the query information. The preset database stores the mapping relationship among the user terminal, the query information, and the historical query results. The historical query result is the final query result selected by the user terminal from the historical target query results.
[0116] Determine the matching first weights and second weights according to the historical query results, each first query result, and each second query result.
[0117] In this embodiment, after each query, the query result finally selected by the user terminal can be stored in the preset database as the historical query result. As the user terminal keeps querying, more matching query results can be gradually output to the user terminal, improving the accuracy of data query.
[0118] Optionally, in this embodiment, when determining the first weight and the second weight through the historical query results, it can be determined according to the similarity between the historical query result and the first query result or the second query result. Specifically:
[0119] Determine the first similarity between the historical query result and each first query result.
[0120] Determine the second similarity between the historical query result and each second query result.
[0121] Determine the matching first weights and second weights according to each first similarity and each second similarity.
[0122] Figure 3 It is a schematic flowchart of the data query method provided by the second embodiment of the present invention, as Figure 3As shown in the figure, the data query method provided in this embodiment describes the process on the MaaP platform side based on the data query method provided in the previous embodiment of the present invention. The data query method provided in this embodiment includes the following steps.
[0123] Step S201: Obtain the query information sent by the user terminal and send the query information to the MaaP management platform, so that the MaaP management platform generates a second query result after querying data from all query databases according to the query information.
[0124] In this embodiment, the query information includes the location information of the user terminal and the query content data. The location information of the user terminal can be used to match the MaaP platform.
[0125] Step S202: Query data from the matching query database according to the query information to generate a first query result.
[0126] Optionally, in this embodiment, querying data from the matching query database according to the query information to generate a first query result can be specifically:
[0127] Determine the query database that matches the location information according to the location information.
[0128] Query data from the matching query database according to the query content data to generate a first query result.
[0129] In this embodiment, the query database matches the MaaP platform, and the MaaP platform matches the regional scope. Therefore, the matching relationship between the location information and the query database can be set in advance.
[0130] Step S203: Send the first query result to the MaaP management platform.
[0131] Step S204: Receive the target query result feedback by the MaaP management platform. The target query result is determined by the MaaP management platform according to the first query result and the second query result.
[0132] Step S205: Send the target query result to the user terminal.
[0133] In this embodiment, after sending the first query result, wait for the target query result to be output and feedback by the MaaP management platform, and output the target query result to the user terminal for the user to view and select.
[0134] To better understand the data query method in this embodiment, the following will be combined with Figure 4 for detailed description. As Figure 4As shown in the figure, the network architecture includes a user terminal, a MaaP platform, and a MaaP management platform. In this embodiment, an example is given in the way that after receiving the query information, the MaaP immediately sends the query information to the MaaP management platform.
[0135] The specific process of the user terminal querying data is as follows:
[0136] Step S301, the user terminal sends the query information to the MaaP platform.
[0137] Step S302, the MaaP platform sends the query information to the MaaP management platform.
[0138] Step S303, the MaaP platform queries data from the matching query database according to the query information to generate a first query result.
[0139] Step S304, the MaaP management platform queries data from all query databases according to the query information to generate a second query result. Step S304 and step S303 can be carried out simultaneously.
[0140] Step S305, the MaaP platform sends the first query result to the MaaP management platform.
[0141] Step S306, the MaaP management platform determines the target query result according to the first query result and the second query result.
[0142] Step S307, the MaaP management platform sends the target query result to the MaaP platform.
[0143] Step S308, the MaaP platform sends the target query result to the user terminal, thus completing the current data query.
[0144] Figure 5 It is a schematic structural diagram of the data query device provided in the fourth embodiment of the present invention. As Figure 5 shown, in this embodiment, the data query device 400 is located in the MaaP management platform. The data query device 400 includes:
[0145] A receiving module 401, configured to receive the first query result and the query information sent by the MaaP platform. The first query result is generated after querying data from the matching query database according to the query information sent by the user terminal.
[0146] A query module 402, configured to query data in all query databases according to the query information to generate a second query result.
[0147] A determining module 403, configured to determine the target query result according to the first query result and the second query result.
[0148] The sending module 404 is configured to send the target query result to the MaaP platform, so that the MaaP platform feeds back the target query result to the user terminal.
[0149] Meanwhile, based on the data query device provided in the previous embodiment, the data query device provided by the present invention further refines the data query device 400.
[0150] Optionally, in this embodiment, the first query result is multiple, and the second query result is multiple.
[0151] The determining module 403 is specifically configured to:
[0152] Fuse each first query result and each second query result to generate a target query result. The target query result includes at least one first query result and / or at least one second query result.
[0153] Optionally, in this embodiment, when the determining module 403 fuses each first query result and each second query result to generate a target query result, it is specifically configured to:
[0154] Obtain a first weight matching each first query result and a second weight matching each second query result. Arrange each first weight and each second weight in descending order. Determine the first weight or the second weight before a preset position as the weight to be selected. Determine the first query result or the second query result corresponding to the weight to be selected as the target query result.
[0155] Optionally, in this embodiment, when the determining module 403 obtains the first weight matching each first query result and the second weight matching each second query result, it is specifically configured to:
[0156] Determine the matching historical query results from a preset database according to the user terminal and the query information. The preset database stores the mapping relationship among the user terminal, the query information, and the historical query results. The historical query result is the final query result selected by the user terminal from the historical target query results. Determine the matching first weights and second weights according to the historical query results, each first query result, and each second query result.
[0157] Optionally, in this embodiment, when the determining module 403 determines the matching first weights and second weights according to the historical query results, each first query result, and each second query result, it is specifically configured to:
[0158] Determine the first similarity between the historical query result and each first query result. Determine the second similarity between the historical query result and each second query result. Determine the matching first weights and second weights according to each first similarity and each second similarity.
[0159] The data query device provided in this embodiment can execute Figure 2 the technical solutions of the method embodiments shown, and its implementation principle and technical effects are similar to Figure 2 those of the method embodiments shown, which will not be elaborated here one by one.
[0160] Figure 6 FIG. is a schematic structural diagram of the data query device provided in the fifth embodiment of the present invention. As Figure 6 shown, in this embodiment, the data query device 500 is located in the MaaP platform. The data query device 500 includes:
[0161] An acquisition module 501, configured to acquire query information sent by a user terminal and send the query information to the MaaP management platform, so that the MaaP management platform generates a second query result after querying data from all query databases according to the query information.
[0162] A query module 502, configured to query data from a matching query database according to the query information to generate a first query result.
[0163] A first sending module 503, configured to send the first query result to the MaaP management platform.
[0164] A receiving module 504, configured to receive a target query result fed back by the MaaP management platform. The target query result is determined by the MaaP management platform according to the first query result and the second query result.
[0165] A second sending module 505, configured to send the target query result to the user terminal.
[0166] Meanwhile, on the basis of the data query device provided in the previous embodiment of the present invention, the data query device 500 is further refined.
[0167] Optionally, in this embodiment, the query information includes the location information of the user terminal and the query content data.
[0168] The query module 502 is specifically configured to:
[0169] Determine a query database that matches the location information according to the location information. Query data from the matching query database according to the query content data to generate a first query result.
[0170] The data query device provided in this embodiment can execute Figure 3 the technical solutions of the method embodiments shown, and its implementation principle and technical effects are similar to Figure 3 those of the method embodiments shown, which will not be elaborated here one by one.
[0171] According to an embodiment of the present invention, the present invention also provides a MaaP management platform, a MaaP platform, a computer-readable storage medium, and a computer program product.
[0172] As Figure 7 and Figure 8 shown, Figure 7 FIG. 9 is a schematic structural diagram of the MaaP management platform provided by the sixth embodiment of the present invention. Figure 8 FIG. 10 is a schematic structural diagram of the MaaP platform provided by the seventh embodiment of the present invention. The MaaP management platform and the MaaP platform may include an electronic device, which is intended to be various forms of digital computers, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0173] As Figure 7 shown, the MaaP management platform includes: a processor 601 and a memory 602, and the MaaP platform includes: a processor 701 and a memory 702. Each component is interconnected using different buses and can be installed on a common motherboard or otherwise installed as needed. The processor can process instructions executed within the electronic device.
[0174] The memory 602 and the memory 702 are the non-transitory computer-readable storage media provided by the present invention. Among them, the memory stores instructions executable by at least one processor, so that at least one processor executes the data query method provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions, and the computer instructions are used to cause a computer to execute the data query method provided by the present invention.
[0175] The memory 602, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the data query method in the embodiments of the present invention (for example, the receiving module 401, the query module 402, the determining module 403, and the sending module 404 shown in Figure 5 FIG. 4). The processor 601 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions, and modules stored in the memory 602, that is, implements the data query method in the above method embodiments.
[0176] The memory 702, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the data query method in the embodiments of the present invention (for example, the acquisition module 501, the query module 502, the first sending module 503, the receiving module 504, and the second sending module 505 shown in Figure 6 the appended figure). The processor 701 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions, and modules stored in the memory 702, that is, implements the data query method in the above method embodiments.
[0177] Meanwhile, this embodiment also provides a computer product. When the instructions in this computer product are executed by the processor of an electronic device, the electronic device can execute the data query methods in the above Embodiments 1 to 3.
[0178] Those skilled in the art will readily conceive of other implementations of the embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the embodiments of the present invention, which follow the general principles of the embodiments of the present invention and include the well-known common general knowledge or conventional technical means in the technical field not disclosed in the embodiments of the present invention. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the embodiments of the present invention are pointed out by the following claims.
[0179] It should be understood that the embodiments of the present invention are not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the embodiments of the present invention is only limited by the appended claims.
Claims
1. A data query method, characterized in that, Applied to the Messaging as a Platform (MaaP) management platform, the method includes: Receiving a first query result and query information sent by the MaaP platform; the first query result is generated by querying data from a matching query database according to the query information sent by the user terminal, and there are multiple first query results; Querying data in all query databases according to the query information to generate a second query result, and there are multiple second query results; wherein, the data stored in all query databases is the total amount of data stored in the query databases matched by each MaaP platform; Obtaining a first weight matching each of the first query results and a second weight matching each of the second query results; arranging each of the first weights and each of the second weights in descending order; Determining the first weight or the second weight arranged before a preset position as the weight to be selected; Determining the first query result or the second query result corresponding to the weight to be selected as the target query result; Sending the target query result to the MaaP platform, so that the MaaP platform feeds back the target query result to the user terminal.
2. The method according to claim 1, characterized in that The obtaining the first weight matching each of the first query results and the second weight matching each of the second query results includes: Determining a matching historical query result from a preset database according to the user terminal and the query information; the mapping relationship between the user terminal, the query information and the historical query result is stored in the preset database; the historical query result is the final query result selected by the user terminal from the historical target query results; Determining each of the first weights and each of the second weights that match according to the historical query result, each of the first query results, and each of the second query results.
3. The method according to claim 2, wherein The determining each of the first weights and each of the second weights that match according to the historical query result, each of the first query results, and each of the second query results includes: Determining a first similarity between the historical query result and each of the first query results; Determining a second similarity between the historical query result and each of the second query results; Determining each of the first weights and each of the second weights that match according to each of the first similarities and each of the second similarities.
4. A data query method, characterized in that, Applied to the MaaP platform, the method includes: Obtaining query information sent by the user terminal and sending the query information to the MaaP management platform, so that the MaaP management platform generates a second query result after querying data from all query databases according to the query information, and there are multiple second query results; wherein, the data stored in all query databases is the total amount of data stored in the query databases matched by each MaaP platform; Querying data from a matching query database according to the query information to generate a first query result, and there are multiple first query results; Sending the first query result to the MaaP management platform; Receive the target query result fed back by the MaaP management platform; the target query result is determined by the MaaP management platform according to the first query result corresponding to the first weight matched by each of the first query results and the second query result corresponding to the second weight matched by each of the second query results after arranging them from largest to smallest, and is determined according to the first query result corresponding to the first weight or the second query result corresponding to the second weight before the preset position in the arrangement; Send the target query result to the user terminal.
5. The method according to claim 4, characterized in that The query information includes the location information of the user terminal and the query content data; The querying data from the matching query database according to the query information to generate a first query result includes: Determine the query database matched with the location information according to the location information; Query data from the matching query database according to the query content data to generate a first query result.
6. A data query device, characterized in that, Located in the MaaP management platform, the device includes: A receiving module, configured to receive the first query result and the query information sent by the MaaP platform; the first query result is generated after querying data from the matching query database according to the query information sent by the user terminal, and there are multiple first query results; A query module, configured to query data in all query databases according to the query information to generate a second query result, and there are multiple second query results; wherein, the data stored in all query databases is the total amount of data stored in the query databases matched by each MaaP platform; A determining module, configured to obtain the first weight matched with each of the first query results and the second weight matched with each of the second query results; arrange each of the first weights and each of the second weights from largest to smallest; Determine the first weight or the second weight before the preset position in the arrangement as the weight to be selected; Determine the first query result or the second query result corresponding to the weight to be selected as the target query result; A sending module, configured to send the target query result to the MaaP platform, so that the MaaP platform feeds back the target query result to the user terminal.
7. A data query device, characterized in that, Located in the MaaP platform, the device includes: An obtaining module, configured to obtain the query information sent by the user terminal and send the query information to the MaaP management platform, so that the MaaP management platform generates a second query result after querying data from all query databases according to the query information, and there are multiple second query results; wherein, the data stored in all query databases is the total amount of data stored in the query databases matched by each MaaP platform; A query module, configured to query data from the matching query database according to the query information to generate a first query result, and there are multiple first query results; A first sending module, configured to send the first query result to the MaaP management platform; A receiving module, configured to receive the target query result fed back by the MaaP management platform; the target query result is determined by the MaaP management platform according to the first query result corresponding to the first weight and the second query result corresponding to the second weight that are matched, after arranging them in descending order, and selecting the first query result corresponding to the first weight or the second query result corresponding to the second weight that is arranged before the preset position; A second sending module, configured to send the target query result to the user terminal.
8. A MaaP management platform, characterized in that, Comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the data query method according to any one of claims 1 to 3.
9. A MaaP platform, characterized in that, Comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the data query method according to claim 4 or 5.
10. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the data query method according to any one of claims 1 to 3 or claims 4 to 5.
Citation Information
Patent Citations
Information recommendation method and apparatus
CN107526807A
Interest point input method, device, equipment and storage medium
CN113608628A