Flight space query method and device, electronic equipment and storage medium
By obtaining airline blocked information in search engines and distinguishing query cache areas, the problem of low accuracy of flight cabin query caused by the inability to update the freight search system in time is solved, and real-time and accurate query of flight cabin information is achieved.
Patent Information
- Application Number
- CN202411363497.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, the freight search system cannot obtain airline blocked information in a timely manner, resulting in low accuracy of air ticket agencies when querying flight cabin information, affecting flight booking and ticketing service processes.
When the search engine receives the query request from the target agency, it obtains the airline's blocked information and determines the status of the target agency based on the blocked information, querys the flight cabin information from different cache areas to ensure that the blocked and unblocked 代理机构分别查询到正确的舱位信息。
It improves the accuracy and real-time nature of flight cabin query, avoids the wrong query results caused by the agency due to shared cache, and ensures that the ticket agency obtains more accurate flight cabin information.
Smart Images

Figure CN119127953A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of aviation technology, and in particular to a flight space query method, device, electronic device and storage medium. Background Art
[0002] In the civil aviation industry, the cooperative relationship between airlines and ticket agencies is crucial. As the sales channel of airlines, ticket agencies obtain ticket fare information through the fare search system and provide flight reservation and ticketing services to customers. In this process, querying flight cabin information is an indispensable part of the fare search process.
[0003] However, in certain scenarios, some ticket agencies may be dishonest or violate regulations, which not only damages the interests of airlines, but also affects fair competition in the industry. Therefore, in order to maintain the order of the industry and their own interests, airlines will restrict the visibility of cabin space for these ticket agencies, or even block all cabin space. Since the blocking strategy of airlines is managed and adjusted internally, the search system often cannot obtain this information in the first place. When an airline adds or cancels the blocking strategy of a ticket agency, the search system may not be updated in time, resulting in the ticket agency obtaining incorrect cabin space results when querying, which in turn affects the subsequent flight booking and ticket service process.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The present application provides a flight class information query method, device, electronic device and storage medium to at least solve the technical problem in the prior art that the ticket agency has low accuracy when querying flight class information because the fare search system cannot obtain the shielded information of the airline.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a flight capacity query method is provided, comprising: when a search engine receives a query request from a target agency, obtaining shielding information, wherein the shielding information is used to represent the information of the ticket agency shielded by the airline, and the shielded ticket agency cannot query all or part of the flight capacity information published by the airline; determining the target agency status according to the shielding information, wherein the target agency status is used to represent whether the target agency belongs to the ticket agency shielded by the airline; querying the target flight capacity information from the cache area according to the target agency status, wherein target agencies with different target agency statuses query the target flight capacity information from different cache areas.
[0007] Optionally, when the search engine receives a query request from the target agency, it obtains blocked information, including: obtaining airline information, blocked agency information, airline route information and airline flight number information; and determining the blocked information based on the airline information, blocked agency information, route information and flight number information.
[0008] Optionally, before querying the target flight capacity information from the cache area according to the target agency status, the flight capacity query method also includes: generating N route plans according to the query request, wherein N is an integer greater than 1, and the route plan is used to characterize the airline route and flight number information that satisfies the itinerary included in the query request; judging whether the shielding information includes information of each route plan in the N route plans; when the shielding information includes information of the i-th route plan in the N route plans, deleting the i-th route plan, and taking the remaining route plans in the N route plans except the i-th route plan as the first target route plan, wherein the i-th route plan is any one of the N route plans; when the shielding information does not include information in any one of the N route plans, determining the N route plans as the second target route plan; determining the flight capacity information according to the first target route plan or the second target route plan, and storing it in different cache areas.
[0009] Optionally, flight capacity information is determined according to the first target route plan or the second target route plan and stored in different cache areas, including: generating a data structure for calling a target node according to the first target route plan or the second target route plan, wherein the target node is used to integrate and cache flight capacity information, the target node is connected to a search engine and a target component, and the target component is used to provide flight capacity information; generating a target message of the first target route plan or a target message of the second target route plan according to the data structure; obtaining first flight capacity information from the target component according to the target message of the first target route plan, and storing it in a first cache area, wherein the first cache area is used to store flight capacity information queried by a ticket agency that is blocked by an airline; obtaining second flight capacity information from the target component according to the target message of the second target route plan, and storing it in a second cache area, wherein the second cache area is used to store flight capacity information queried by a ticket agency that is not blocked by an airline.
[0010] Optionally, before querying the target flight capacity information from the corresponding cache area according to the target agency status, the flight capacity query method also includes: taking the flight capacity information provided by the target component as the first data; taking the airline route and flight number information that satisfies the itinerary included in the query request other than the first data as the target data; determining whether the shielded information includes the information in the target data; when the shielded information includes the information in the target data, storing the target data in the first cache area; when the shielded information does not include the information in the target data, storing the target data in the second cache area.
[0011] Optionally, the target agency is in a first state or a second state, wherein the first state represents that the target agency is a ticket agency blocked by the airline, and the second state represents that the target agency is not a ticket agency blocked by the airline.
[0012] Optionally, the target flight capacity information is queried from the corresponding cache area according to the target agency status, including: when the target agency status is a first state, searching the target flight capacity information from the first cache area according to the shielding information; when the target agency status is a second state, searching the target flight capacity information from the second cache area according to the shielding information.
[0013] According to another aspect of the present application, a flight capacity query device is also provided, including: an acquisition unit, which acquires shielding information when a search engine receives a query request from a target agency, wherein the shielding information is used to represent the information of the ticket agency shielded by the airline, and the shielded ticket agency cannot query all or part of the flight capacity information published by the airline; a determination unit, which determines the target agency status according to the shielding information, wherein the target agency status is used to represent whether the target agency belongs to the ticket agency shielded by the airline; and a query unit, which queries the target flight capacity information from a cache area according to the target agency status, wherein target agencies with different target agency statuses query the target flight capacity information from different cache areas.
[0014] According to another aspect of the present application, an electronic device is also provided, wherein the electronic device includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors execute the above-mentioned flight capacity query method.
[0015] According to another aspect of the present application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the above-mentioned flight capacity query method.
[0016] From the above content, it can be seen that in the present application, when the search engine receives a query request from the target agency, it obtains the blocking information of the target agency by the airline, and then determines whether the target agency is an agency blocked by the airline based on the content in the blocking information. After determining the status of the target agency, the target flight cabin information is finally queried from different cache areas based on the status of the target agency.
[0017] Compared with the prior art in which an agency uses a fare search system that does not include the airline's blocked information to query flight capacity information, the present application obtains the airline's blocked information when the search engine receives the agency's query request, thereby ensuring the real-time and accuracy of the queried flight capacity information, and distinguishes the agencies into blocked agencies and ordinary agencies based on the obtained blocked information, and searches for data from different caches based on different agency states. Agencies in the two states no longer use the same cache, thereby avoiding the shared cache causing the agency to query erroneous flight capacity information. In this way, the agency can obtain more accurate results, thereby achieving the technical effect of improving the accuracy of querying flight capacity information, and further solving the technical problem in the prior art that the fare search system cannot obtain the airline's blocked information, resulting in low accuracy of the ticket agency when querying flight capacity information. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a flow chart of an optional flight space query method according to an embodiment of the present application;
[0020] Figure 2 is a flow chart of an optional filtering route solution present in shielded information according to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of an optional flight space query according to an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of an optional flight space query including shielded information according to an embodiment of the present application;
[0023] Figure 5 This is a flow chart of an optional processing of flight space information from other channels according to an embodiment of the present application;
[0024] Figure 6It is a schematic diagram of an optional flight space query device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should also be noted that the information and data collected by this application are authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation portals for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or institution through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or institution.
[0028] According to an embodiment of the present application, an embodiment of a flight space query method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] It should be noted that an intelligent query system can be used as the execution subject of the flight space query method of the embodiment of the present application. It is understandable that the flight space query method provided in the embodiment of the present application can also be executed by other systems or devices, and the embodiment of the present application does not specifically limit this.
[0030] Figure 1 is a flow chart of an optional flight space query method according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0031] Step S101, when the search engine receives a query request from a target agency, it obtains shielding information.
[0032] In step S101, the shielded information is used to represent the information of the ticket agency shielded by the airline. The shielded ticket agency cannot query all or part of the flight capacity information released by the airline.
[0033] Optionally, the blocked information includes, but is not limited to, airline information, blocked agency information, airline route information, and airline flight number information.
[0034] Step S102, determining the target agency status according to the shielding information.
[0035] In step S102, the target agency status is used to indicate whether the target agency is a ticket agency blocked by the airline.
[0036] Optionally, the intelligent query system can determine the status of the target agency based on the content in the shielded information.
[0037] Step S103, querying target flight space information from the cache area according to the target agency status.
[0038] In step S103, target agencies in different target agency states query target flight space information from different buffer areas.
[0039] Optionally, agencies in different states obtain flight space information from different caches.
[0040] It can be known from the contents of step S101 to step S103 that in the present application, first, when the search engine receives a query request from the target agency, it obtains shielding information, wherein the shielding information is used to characterize the information of the ticket agency that is blocked by the airline, and the blocked ticket agency cannot query all or part of the flight capacity information published by the airline. Then, the target agency status is determined according to the shielding information, wherein the target agency status is used to characterize whether the target agency belongs to the ticket agency blocked by the airline, and then the target flight capacity information is queried from the cache area according to the target agency status, wherein target agencies with different target agency statuses query the target flight capacity information from different cache areas.
[0041] From the above content, it can be seen that in the present application, when the search engine receives a query request from the target agency, it obtains the blocking information of the target agency by the airline, and then determines whether the target agency is an agency blocked by the airline based on the content in the blocking information. After determining the status of the target agency, the target flight cabin information is finally queried from different cache areas based on the status of the target agency.
[0042] Compared with the prior art in which an agency uses a fare search system that does not include the airline's blocked information to query flight capacity information, the present application obtains the airline's blocked information when the search engine receives the agency's query request, thereby ensuring the real-time and accuracy of the queried flight capacity information, and distinguishes the agencies into blocked agencies and ordinary agencies based on the obtained blocked information, and searches for data from different caches based on different agency states. Agencies in the two states no longer use the same cache, thereby avoiding the shared cache causing the agency to query erroneous flight capacity information. In this way, the agency can obtain more accurate results, thereby achieving the technical effect of improving the accuracy of querying flight capacity information, and further solving the technical problem in the prior art that the fare search system cannot obtain the airline's blocked information, resulting in low accuracy of the ticket agency when querying flight capacity information.
[0043] In an optional embodiment, the intelligent query system obtains airline information, blocked agency information, airline route information and airline flight number information, and then determines the blocked information based on the airline information, blocked agency information, route information and flight number information.
[0044] Optionally, the shielding information may also include date information.
[0045] Optionally, the shielding information is a set of relational tables consisting of information such as airline information, office number (agency number) of the shielded agency, airline routes, airline flight numbers, etc., and is stored in a csv (Comma-Separated Values) file. Table 1 is an example of column attributes of an optional shielding information relationship table according to an embodiment of the present application. As shown in Table 1, the two-letter code of the airline refers to the IATA (International Air Transport Association) two-letter code, which is a standardized code developed by IATA for uniquely identifying each airline, usually consisting of two uppercase letters and each code is unique. The route OD (Origin and Destination) is represented by a six-digit string, where the first and second columns are required items.
[0046] Table 1
[0047] Airline two-letter code Agency office number Route OD Flight number
[0048] Optionally, if there are only two-letter airline codes and agency office number information in Table 1, it indicates that the airline has blocked the agency for all routes and no flight capacity information can be found; if there are only two-letter airline codes, agency office number and route OD information in Table 1, it indicates that the airline's specific route OD is blocked for the agency, and only when the agency inquires about the flight capacity information of the route OD, there is no information to be found, and the flight capacity information of other route ODs will not be affected; if there are only two-letter airline codes, agency office number and route OD information in Table 1, it indicates that the airline's specific route OD is blocked for the agency, and only when the agency inquires about the flight capacity information of the route OD, there is no information to be found, and the flight capacity information of other route ODs will not be affected. In the case of the two-letter airline code, agency office number, route OD and flight number information in Table 1, it indicates that the specific route OD and specific flight of the airline are blocked for the agency. Only when the agency inquires about the flight cabin information of the flight number, no information can be found. Inquiries about flight cabin information of other flight numbers are not affected. In the case of the two-letter airline code, agency office number, route OD and flight number information in Table 1, it indicates that the specific route OD and specific flight of the airline are blocked for the agency. Only when the agency inquires about the route OD and flight cabin information of the flight number, no information can be found. Inquiries about other routes and flight numbers are not affected.
[0049] From the above content, it can be seen that the intelligent query system has established shielding information based on the airline information, the blocked agency information, the airline route information, the airline flight number and other information. Through the shielding information, the blocking status of the agency by the airline can be obtained, which can ensure the accuracy of the queried flight cabin information.
[0050] In an optional embodiment, the intelligent query system first generates N route plans according to the query request, wherein N is an integer greater than 1, and the route plan is used to represent the airline route and flight number information that satisfies the itinerary included in the query request. Then, it is determined whether the shielded information includes information of each route plan in the N route plans. When the shielded information includes information of the i-th route plan in the N route plans, the i-th route plan is deleted, and the remaining route plans in the N route plans except the i-th route plan are used as the first target route plan, wherein the i-th route plan is any one of the N route plans. When the shielded information does not include information in any one of the N route plans, the N route plans are determined as the second target route plans. Finally, the flight cabin information is determined according to the first target route plan or the second target route plan, and stored in different cache areas.
[0051] Optionally, the intelligent query system first generates N route plans according to the query request of the target agency, each route plan includes airline routes, flight number information, ticket prices and other information that meet the user's itinerary. After obtaining the N route plans, it is determined whether the information in the N route plans exists in the shielded information relationship table based on the data in the shielded information relationship table. If the information in one of the N route plans exists in the shielded information relationship table, the route plan is filtered out, and the judgment is performed on each of the N route plans until all route plans existing in the shielded information relationship table are filtered out, and the remaining route plans in the N route plans are used as the first target plan. If the information in the N route plans does not exist in the shielded information relationship table, the N route plans are determined as the second target route plans, and then the corresponding flight cabin information is determined according to the first target route plan or the second target route plan, and stored in different cache areas.
[0052] Optionally, Figure 2 is a flowchart of an optional filtering route solution present in shielding information according to an embodiment of the present application, such as Figure 2 As shown, when the agency initiates a query request based on the user's itinerary, the service of the engine node is started and the shielded information relationship table is loaded into the memory. After receiving the search request, the engine node prepares to query AV (Available Seat Inventory on AV Flight) information based on the fare plan generated by the user's itinerary (the above-mentioned route plan), and then determines whether the generated fare plan exists in the shielded information relationship table. If one of the fare plans exists in the shielded information relationship table, the operation of performing AV query based on the fare plan is filtered out. If none of the fare plans exist in the shielded information relationship table, the next step of querying AV information is performed.
[0053] Optionally, the intelligent query system judges the N route plans based on the shielded information relationship table. There are only two results of the judgment. The first is that the information of at least one route plan among the N route plans is in the shielded information relationship table, and the other route plans among the N plans that do not exist in the shielded information relationship table are taken as the first target plan. The second is that the information of none of the N route plans is in the shielded information relationship table, and the N route plans are determined as the second target route plans.
[0054] Optionally, the flight capacity information obtained according to the first target plan is stored in a first cache area, and the flight capacity information obtained according to the second target route plan is stored in a second cache area, wherein the first cache area and the second cache area are two different cache areas.
[0055] From the above content, it can be seen that the intelligent query system generates N route plans according to the query request of the target agency. Combined with the shielding information, the route plans that do not meet the query requirements can be filtered out, thereby improving the efficiency of the query. By judging whether the information in the N route plans exists in the shielding information relationship table, it is determined whether the N route plans are the first target plan or the second target route plan. According to the judgment result, the flight capacity information obtained by different target route plans is stored in different cache areas, which provides a basis for subsequent agencies to query flight capacity information. In this way, the accuracy of the queried flight capacity information can be improved.
[0056] In an optional embodiment, the intelligent query system first generates a data structure for calling a target node according to the first target route plan or the second target route plan, wherein the target node is used to integrate and cache flight capacity information, the target node is connected to the search engine and the target component, and the target component is used to provide flight capacity information. Then, a target message of the first target route plan or a target message of the second target route plan is generated according to the data structure, and then the first flight capacity information is obtained from the target component according to the target message of the first target route plan, and stored in a first cache area, wherein the first cache area is used to store flight capacity information queried by a ticket agency that is blocked by the airline. Finally, the second flight capacity information is obtained from the target component according to the target message of the second target route plan, and stored in a second cache area, wherein the second cache area is used to store flight capacity information queried by a ticket agency that is not blocked by the airline.
[0057] Optionally, the target node is AVL (Availability and Pricing Lookup, a freight rate search and flight space query subsystem), and the target component is AVE system (Aviation Virtual Environment, a flight space status query system).
[0058] Optionally, the AVE system is an efficient and convenient flight class query tool designed specifically for airlines and users. The system provides users with detailed flight class information by updating flight information in real time, helping users to quickly understand flight seat distribution, number of remaining seats, seat class and other information.
[0059] Optionally, the AVL node is used to integrate AV information obtained from the AVE system and other channels, and store all the obtained AV information in a cache system.
[0060] Optionally, Figure 3 is a schematic diagram of an optional flight space query according to an embodiment of the present application, such as Figure 3 As shown, the agency initiates a query request based on the user's itinerary, the engine node receives it and generates a data structure for calling the AVL node, and then the AVL node composes the data structure into a business message (the above-mentioned target message) and sends it to the AVE system. The AVE system returns the AV information to the AVL node, and the AVL node generates a flight space information cache and stores it in the system. Then the engine node reads the flight space information cache and performs subsequent freight rate verification and other processes.
[0061] Optionally, Figure 4 is a schematic diagram of an optional flight space query including shielded information according to an embodiment of the present application, such as Figure 4 As shown, compared with the existing Figure 3 China flight cabin space query system, Figure 4 Shielding information is added between the engine node and the AVL node. When the agency initiates a query request based on the user's itinerary, the engine node receives it and determines whether the freight rate scheme generated by the query request exists in the shielding information based on the shielding information. The first target route scheme or the second target route scheme is obtained based on the judgment result. Then, a data structure for calling the AVL node is generated based on the first target route scheme or the second target route scheme. Then, the AVL node composes a business message (the above-mentioned target message) of the data structure and sends it to the AVE system. The AVE system returns the AV information queried based on the business message of the first target route scheme or the business message of the second target route scheme to the AVL node. Then, the ALV node stores the AV information obtained based on the first target route scheme in the first cache area, and the ALV node stores the AV information obtained based on the second target route scheme in the second cache area.
[0062] From the above content, it can be seen that the intelligent query system stores the flight capacity information queried by the ticket agency blocked by the airline in the first cache area, and stores the flight capacity information queried by the ticket agency not blocked by the airline in the second cache area. By storing in different cache areas, it ensures that agencies in different status can query accurate flight capacity information.
[0063] In an optional embodiment, the intelligent query system uses the flight class information provided by the target component as the first data, and uses the airline route and flight number information that satisfies the itinerary included in the query request other than the first data as the target data, and then determines whether the shielded information includes the information in the target data. When the shielded information includes the information in the target data, the target data is stored in the first cache area; when the shielded information does not include the information in the target data, the target data is stored in the second cache area.
[0064] Optionally, when the intelligent query system pushes AV information queried from other sources to the AVL node, it will also query the AV information based on the shielding information. If there is a mapping relationship between the AV information and the shielding information, the AVL node will write the AV information into a specific cache. If there is no mapping relationship between the AV information and the shielding information, the AVL node will write the AV information into a normal cache.
[0065] Optionally, other sources may refer to airline direct data sources, regional aviation information service providers, and global distribution systems, among which, airline direct data sources: airlines may have their own cabin management systems, which can directly provide cabin status information to fare search engines; regional aviation information service providers: in some regions, there may be regional aviation information service providers, which collect and provide cabin information for local or regional flights; global distribution system: provides global flight information, fares and cabin management services to airlines and travel agents.
[0066] Optionally, Figure 5 is a flowchart of an optional processing of flight space information from other sources according to an embodiment of the present application, such as Figure 5 As shown, the AV information obtained by the AVE system is pushed to the AVL node, and the shielding information is loaded into the memory when the AVL node service is started. Then, it is determined whether the AV information obtained from other channels exists in the shielding information. If it exists in the shielding information, the AV information obtained from other channels is stored in a special cache. If it does not exist in the shielding information, the AV information obtained from other channels is stored in a normal cache.
[0067] From the above content, it can be seen that the flight capacity information from other sources will be received by the AVL node, and the flight capacity information will be judged according to the shielding information, and then stored in different cache areas according to the judgment results, so that the engine node can perform subsequent freight rate verification and other processes, which provides a basis for subsequent users to use agencies in different states to obtain flight capacity information, and ensures that the intelligent query system can provide the most accurate and comprehensive flight capacity information.
[0068] In an optional embodiment, the target agency is in a first state or a second state, wherein the first state indicates that the target agency is a ticket agency blocked by the airline, and the second state indicates that the target agency is not a ticket agency blocked by the airline.
[0069] Optionally, the target agency status has two states, the first state is a ticket agency blocked by the airline, and the second state is a ticket agency not blocked by the airline. When the target agency is in the first state, it means that when the user uses the target agency to query, the flight capacity information of all airlines authorized by the target agency can be queried, and when the target agency is in the second state, it means that when the user uses the target agency to query, only part of the flight capacity information can be queried.
[0070] In an optional embodiment, the intelligent query system searches for the target flight space information from the first cache area according to the shielding information when the target agency status is in the first state, and searches for the target flight space information from the second cache area according to the shielding information when the target agency status is in the second state.
[0071] Optionally, the intelligent query system determines the status of the target agency based on the shielding information. When the target agency is in a first state, the engine node filters out target flight seat information that meets the user's itinerary from the first cache area based on the shielding information. When the target agency is in a second state, the engine node filters out target flight seat information that meets the user's itinerary from the second cache area based on the shielding information.
[0072] From the above content, it can be seen that the intelligent query system divides the agencies into shielded agencies and unshielded agencies according to the shielding information, and searches for flight capacity information from different cache areas according to the different status of the agencies, distinguishing the flight capacity information of the two, which can prevent the agency from obtaining the wrong flight capacity information.
[0073] According to another aspect of the embodiments of the present application, an embodiment of a flight space query device is also provided. Figure 6 is a schematic diagram of an optional flight space query device according to an embodiment of the present application, such as Figure 6As shown, the flight space query device includes: an acquisition unit 601, a determination unit 602, and a query unit 603.
[0074] Optionally, the acquisition unit 601 is used to obtain shielding information when the search engine receives a query request from the target agency, wherein the shielding information is used to represent the information of the ticket agency blocked by the airline, and the shielded ticket agency cannot query all or part of the flight capacity information published by the airline; the determination unit 602 is used to determine the target agency status according to the shielding information, wherein the target agency status is used to represent whether the target agency is a ticket agency blocked by the airline; the query unit 603 is used to query the target flight capacity information from the cache area according to the target agency status, wherein target agencies with different target agency statuses query the target flight capacity information from different cache areas.
[0075] Optionally, the acquisition unit 601 includes: a first acquisition subunit and a first determination subunit. The first acquisition subunit is used to acquire airline information, blocked agency information, airline route information, and airline flight number information; the first determination subunit is used to determine the blocked information according to the airline information, blocked agency information, route information, and flight number information.
[0076] Optionally, the query unit 603 includes: a first generation subunit, a first judgment subunit, a first processing subunit, a second determination subunit, and a first storage subunit. The first generation subunit is used to generate N route plans according to the query request, wherein N is an integer greater than 1, and the route plan is used to represent the airline route and flight number information that meets the itinerary included in the query request; the first judgment subunit is used to determine whether the shielding information includes the information of each route plan in the N route plans; the first processing subunit is used to delete the i-th route plan when the shielding information includes the information of the i-th route plan in the N route plans, and use the remaining route plans in the N route plans except the i-th route plan as the first target route plan, wherein the i-th route plan is any one of the N route plans; the second determination subunit is used to determine the N route plans as the second target route plan when the shielding information does not include the information of any one of the N route plans; the first storage subunit is used to determine the flight space information according to the first target route plan or the second target route plan, and store it in different cache areas.
[0077] Optionally, the first storage subunit includes: a first generation module, a second generation module, a first storage module and a second storage module. The first generation module is used to generate a data structure for calling a target node according to the first target route plan or the second target route plan, wherein the target node is used to integrate and cache flight capacity information, the target node is connected to the search engine and the target component, and the target component is used to provide flight capacity information; the second generation module is used to generate a target message of the first target route plan or a target message of the second target route plan according to the data structure; the first storage module is used to obtain the first flight capacity information from the target component according to the target message of the first target route plan, and store it in the first cache area, wherein the first cache area is used to store the flight capacity information queried by the ticket agency blocked by the airline; the second storage module is used to obtain the second flight capacity information from the target component according to the target message of the second target route plan, and store it in the second cache area, wherein the second cache area is used to store the flight capacity information queried by the ticket agency not blocked by the airline.
[0078] Optionally, the query unit 603 includes: a second processing subunit, a third processing subunit, a second judgment subunit, a second cache subunit, and a third cache subunit. The second processing subunit is used to use the flight class information provided by the target component as the first data; the third processing subunit is used to use the airline route and flight number information that meets the itinerary included in the query request other than the first data as the target data; the second judgment subunit is used to determine whether the shielded information includes the information in the target data; the second cache subunit is used to store the target data in the first cache area when the shielded information includes the information in the target data; the third cache subunit is used to store the target data in the second cache area when the shielded information does not include the information in the target data.
[0079] Optionally, the target agency is in a first state or a second state, wherein the first state represents that the target agency is a ticket agency blocked by the airline, and the second state represents that the target agency is not a ticket agency blocked by the airline.
[0080] Optionally, the query unit 603 includes: a first search subunit and a second search subunit. The first search subunit is used to search for the target flight space information from the first cache area according to the shielding information when the target agency state is the first state; the second search subunit is used to search for the target flight space information from the second cache area according to the shielding information when the target agency state is the second state.
[0081] According to another aspect of an embodiment of the present application, an electronic device is also provided, wherein the electronic device includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned flight capacity query method.
[0082] According to another aspect of an embodiment of the present application, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the above-mentioned flight capacity query method.
[0083] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0084] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0085] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0087] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0089] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A flight space query method, characterized in that: include: When the search engine receives a query request from a target agency, the blocking information is obtained, wherein the blocking information is used to represent the information of the ticket agency blocked by the airline, and the blocked ticket agency cannot query all or part of the flight capacity information published by the airline; Determining a target agency status according to the blocking information, wherein the target agency status is used to indicate whether the target agency is a ticket agency blocked by the airline; The target flight space information is queried from the cache area according to the target agency status, wherein target agencies with different target agency statuses query the target flight space information from different cache areas.
2. The flight space query method according to claim 1, characterized in that: When the search engine receives a query request from a target agency, it obtains shielding information, including: Obtaining information about the airline, blocked agency information, route information about the airline, and flight number information about the airline; The shielding information is determined according to the airline information, the shielded agency information, the route information and the flight number information.
3. The flight space query method according to claim 1, characterized in that: Before querying the target flight capacity information from the cache area according to the target agency status, the flight capacity query method further includes: Generate N route plans according to the query request, where N is an integer greater than 1, and the route plans are used to represent airline routes and flight number information that meet the itinerary included in the query request; Determining whether the shielding information includes information of each of the N route plans; When the shielding information includes information of the i-th route scheme among the N route schemes, the i-th route scheme is deleted, and the remaining route schemes among the N route schemes except the i-th route scheme are used as the first target route scheme, wherein the i-th route scheme is any one of the N route schemes; When the shielding information does not include information in any one of the N route plans, determining the N route plans as the second target route plan; Flight space information is determined according to the first target route plan or the second target route plan, and stored in different cache areas.
4. The flight space query method according to claim 3, characterized in that: Determining flight space information according to the first target route plan or the second target route plan and storing the information in different cache areas includes: Generate a data structure for calling a target node according to the first target route plan or the second target route plan, wherein the target node is used to integrate and cache the flight capacity information, the target node is connected to the search engine and the target component, and the target component is used to provide the flight capacity information; generating a target message of the first target route plan or a target message of the second target route plan according to the data structure; Acquire first flight capacity information from the target component according to the target message of the first target route plan, and store it in a first buffer area, wherein the first buffer area is used to store flight capacity information queried by the ticket agency blocked by the airline; The second flight capacity information is obtained from the target component according to the target message of the second target route plan and stored in a second cache area, wherein the second cache area is used to store the flight capacity information queried by the ticket agency that is not blocked by the airline.
5. The flight space query method according to claim 4, characterized in that: Before querying the target flight space information from the corresponding cache area according to the target agency status, the flight space query method further includes: Using the flight space information provided by the target component as first data; Using airline routes and flight number information that meets the itinerary included in the query request other than the first data as target data; Determining whether the shielding information includes information in the target data; When the shielding information includes information in the target data, storing the target data in the first buffer area; When the shielding information does not include information in the target data, the target data is stored in the second buffer area.
6. The flight space query method according to claim 4, characterized in that: The target agency is in a first state or a second state, wherein the first state indicates that the target agency is a ticket agency blocked by the airline, and the second state indicates that the target agency is not a ticket agency blocked by the airline.
7. The flight space query method according to claim 6, characterized in that: Querying target flight space information from the corresponding cache area according to the target agency status includes: When the state of the target agency is the first state, searching the first cache area for the target flight space information according to the shielding information; When the state of the target agency is the second state, the target flight space information is searched from the second cache area according to the shielding information.
8. A flight space query device, characterized in that: include: an acquisition unit, when the search engine receives a query request from a target agency, acquiring blocked information, wherein the blocked information is used to represent information of ticket agencies blocked by the airline, and the blocked ticket agencies cannot query all or part of the flight capacity information published by the airline; a determination unit, for determining a target agency status according to the shielding information, wherein the target agency status is used to indicate whether the target agency is a ticket agency shielded by the airline; The query unit queries the target flight space information from the cache area according to the target agency status, wherein target agencies with different target agency statuses query the target flight space information from different cache areas.
9. An electronic device, characterized in that: The invention comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the flight space query method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the flight capacity query method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Data query method and device and storage medium
CN110968602A
Data query method and device, electronic equipment and computer readable medium
CN114912144A
Data query control method and device, electronic equipment and storage medium
CN115017545A
Protein supplements with improved muscle function and improved digestive absorption, and their manufacturing methods
KR102644179B1
Database access method and system for user role defined access
US6732100B1
