A flight and cabin search method and device, a storage medium and an electronic device

By employing flight and cabin class search methods and utilizing interactive filtering and search optimization, the system can pinpoint target flights and cabin classes, solving the problem of information overload in international fare search systems. This enables rapid and accurate determination of flights and cabin classes, improving user experience and airline operational efficiency.

CN122155800APending Publication Date: 2026-06-05TRAVELSKY TECHNOLOGY LIMITED

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TRAVELSKY TECHNOLOGY LIMITED
Filing Date
2026-02-03
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Traditional flight search methods can easily lead to information overload in international fare search systems, making it difficult to quickly find flights and cabin classes that meet user needs.

Method used

This paper provides a method for searching flights and cabin classes. Through preliminary search and interactive filtering, it identifies target flights and cabin classes, generates a formatted fare search request, and optimizes the search to obtain accurate search results.

Benefits of technology

Reduce computational load, quickly identify flights and cabin classes that meet the expectations of target users, improve the richness and accuracy of search results, reduce decision anxiety, and enhance user experience and airline operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122155800A_ABST
    Figure CN122155800A_ABST
Patent Text Reader

Abstract

The application discloses a flight and cabin searching method and device, a storage medium and an electronic device, and belongs to the field of international passenger ticket fare searching. The method comprises the following steps: in response to a first fare searching request, performing preliminary searching through a fare searching component to obtain a corresponding initial searching result; obtaining a check operation of a target user on a plurality of check keys on an interactive interface in which a plurality of check keys are displayed; determining a target object selected by the target user through the check operation; processing the target object through a specified flight construction component to generate a corresponding second fare searching request; and in response to the second fare searching request, performing optimized searching through the fare searching component based on the target object to obtain an optimized searching result. Through the provided interactive filtering, the flight and cabin meeting the expectation of the target user can be quickly determined, and the calculation amount can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of international passenger ticket fare search, and specifically relates to a method, apparatus, storage medium and electronic device for searching flights and cabin classes. Background Technology

[0002] With the continuous expansion of global aviation networks, international routes have become increasingly diverse, covering not only traditional popular cities in Europe, America, and the Asia-Pacific region, but also niche destinations such as Africa and South America. Furthermore, multiple airlines often operate on the same routes, offering different flight schedules, aircraft configurations, and fare structures. When passengers enter their international itineraries, the system retrieves a vast number of fare types and flight results. Traditional flight search methods can easily lead to information overload, making it difficult for passengers to quickly find flights that meet their needs.

[0003] The international fare search system serves major airlines and travel agents, and is a high-performance search engine used to find fare, flight, and other information on the internet. Based on the user's formatted itinerary information, the international fare search system needs to return multiple itineraries that meet the user's needs and their corresponding lowest available fares within a very short time. The international fare search system involves enormous computational demands, making the balance between computational load and time crucial.

[0004] In conclusion, the problem to be solved is how to provide a search method for flights and cabin classes that can quickly identify flights and cabin classes that meet the expectations of target users. Summary of the Invention

[0005] To address the aforementioned issues, this application provides a method, apparatus, storage medium, and electronic device for searching flights and cabin classes, which can instantly disconnect failed user connections.

[0006] In a first aspect, embodiments of this application provide a method for searching flights and cabin classes, the method comprising: In response to the first fare search request, a preliminary search is performed through the fare search component to obtain the corresponding initial search results. The initial search results include: multiple trips that match the input multiple information and multiple fare information. The fare search request is generated based on the multiple information input by the target user. The multiple fare information includes: fare information corresponding to each of the multiple trips, and the lowest available fare information among all trips. On an interactive interface displaying multiple checkboxes, the selection actions of the target user on the multiple checkboxes are obtained, wherein the multiple checkboxes are generated based on the preliminary search results; The target object selected by the target user is determined by the checkbox operation. The target object includes: target flight and / or target cabin class. Based on the target object, the corresponding second fare search request is generated by processing the specified flight construction component. In response to the second fare search request, an optimized search is performed using the fare search component based on the target flight and the target cabin class to obtain optimized search results.

[0007] Optionally, before performing a preliminary search using the fare search component in response to the first fare search request to obtain the corresponding initial search results, the method further includes: The information obtained includes: the departure point of the itinerary, the destination of the itinerary, the departure date of the itinerary, the return date of the itinerary, passenger quantity information, passenger type information, cabin class information, transit association information, and preference association information. The transit association information includes whether transit is allowed and the maximum number of transits. The preference association information includes the preferred airline information and the preferred aircraft type information. The first fare search request is generated based on the aforementioned information. The first fare search request has a standardized format and includes: trip elements, preference parameters, and verification information.

[0008] Optionally, in response to the second fare search request, optimizing the search based on the target object using the fare search component to obtain optimized search results includes: In response to the second fare search request, obtain the flight that matches the second fare search request, and designate that flight as the target flight; Search for full cabin class data corresponding to the target flight; The fare rules for the selected route are re-validated to obtain the validated fare rules. Based on the full cabin class data and the verified fare rules, the fare search component is used to perform an optimized search to obtain the optimized search results, which include: cabin class details and corresponding price information for the target user.

[0009] Optionally, after obtaining the target user's selection operations on the multiple checkmarks on the interactive interface displaying multiple checkmarks, the method further includes: For the checkbox operation, the corresponding selection instruction is captured, and the selection instruction carries the matching flight information and the matching cabin class information; Information is extracted from the selection instruction to obtain the corresponding flight core identification information, which includes: flight number information, carrier airline information, departure and arrival airport information, and departure and arrival time information; Based on the core flight identification information and the cabin class parameters selected by the target user, a corresponding query request is generated.

[0010] Optionally, after obtaining the target user's selection operations on the multiple checkmarks on the interactive interface displaying multiple checkmarks, the method further includes: If the first flight is selected as the designated flight based on the checkmark operation, a corresponding request is generated based on the first flight information; or... If the second flight is selected as the designated flight based on the aforementioned checkbox operation, tap the full cabin class search function key to initiate a full cabin class search operation for the second flight; or... Based on the aforementioned selection operation, the status of multiple cabin classes will be set to "cabin status uncertain"; or... Based on the aforementioned checkbox operation, the status of multiple cabin classes will be set to cabin status determination.

[0011] Secondly, embodiments of this application provide a flight and cabin class search device, the device comprising: The first search module is used to respond to the first fare search request by performing a preliminary search through the fare search component to obtain the corresponding initial search results. The initial search results include: multiple trips that match the input multiple information and multiple fare information. The fare search request is generated based on the input information of the target user. The multiple fare information includes: fare information corresponding to each of the multiple trips and the lowest available fare information among all trips. The acquisition module is used to acquire the target user's selection operations on multiple check buttons on an interactive interface that displays multiple check buttons, wherein the multiple check buttons are generated based on the preliminary search results; The determination module is used to determine the target object selected by the target user through the check operation, the target object including: target flight and / or target cabin class; The generation module is used to generate a corresponding second fare search request based on the target object by processing it through a specified flight construction component. The second search module is used to respond to the second fare search request and, based on the target flight and the target cabin class, perform an optimized search using the fare search component to obtain optimized search results.

[0012] Optionally, the acquisition module is further configured to: Before performing a preliminary search using the fare search component in response to the first fare search request and obtaining the corresponding initial search results, the following multiple pieces of information are obtained: the departure point of the trip, the destination of the trip, the departure date of the trip, the return date of the trip, passenger quantity information, passenger type information, cabin class information, transit association information, and preference association information. The transit association information includes whether transit is allowed and the maximum number of transits. The preference association information includes the preferred airline information and the preferred aircraft type information. The generation module is also used for: The first fare search request is generated based on the aforementioned information. The first fare search request has a standardized format and includes: trip elements, preference parameters, and verification information.

[0013] Optionally, the second search module is specifically used for: In response to the second fare search request, obtain the flight that matches the second fare search request, and designate that flight as the target flight; Search for full cabin class data corresponding to the target flight; The fare rules for the selected route are re-validated to obtain the validated fare rules. Based on the full cabin class data and the verified fare rules, the fare search component is used to perform an optimized search to obtain the optimized search results, which include: cabin class details and corresponding price information for the target user.

[0014] Thirdly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the method of the first aspect.

[0015] Fourthly, an electronic device is provided, including a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method of the first aspect.

[0016] Compared with the prior art, this application has the following advantages: The interactive filtering provided not only reduces computational load but also quickly identifies flights and cabin classes that meet the target user's expectations.

[0017] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating a method for searching flights and cabin classes according to an embodiment of this application is shown; Figure 2 A schematic diagram of the structure of a flight and cabin search device 200 according to an embodiment of this application is shown. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0021] This application provides a method and apparatus for searching flights and cabin classes, a computer-readable medium, and an electronic device, which will be described below with reference to the accompanying drawings.

[0022] The flight and cabin class search method provided in this application allows passengers to prioritize a desired flight segment or a specific cabin class when planning international trips, and then conduct a secondary search, achieving an iterative process of initial search, feedback, and precise search. This reduces the time wasted and decision-making anxiety caused by filtering through a large amount of invalid information, while also improving the richness and accuracy of search results, providing passengers with more travel options.

[0023] Please refer to Figure 1 It illustrates flowcharts of flight and cabin class search methods provided by some embodiments of this application, such as... Figure 1 As shown, the method for searching flights and cabin classes may include the following steps: Step S101: In response to the first fare search request, a preliminary search is performed through the fare search component to obtain the corresponding initial search results. The initial search results include: multiple trips that match the input multiple information and multiple fare information. The fare search request is generated based on the multiple information input by the target user. The multiple fare information includes: fare information corresponding to each of the multiple trips, and the lowest available fare information among all trips.

[0024] In one example, before performing a preliminary search using the fare search component in response to a first fare search request and obtaining the corresponding initial search results, the flight and cabin class search method provided in this application embodiment further includes the following steps: The system retrieves multiple pieces of information, including: the departure point of the itinerary, the destination of the itinerary, the departure date of the itinerary, the return date of the itinerary, passenger quantity information, passenger type information, cabin class information, transit-related information, and preference-related information. The transit-related information includes whether transit is allowed and the maximum number of transits. The preference-related information includes the preferred airline information and the preferred aircraft type information. A first fare search request is generated based on multiple pieces of information. The first fare search request has a standardized format and includes: trip elements, preference parameters, and verification information.

[0025] In practical applications, the preliminary search process described above is as follows: First, users fill in the specific itinerary details on the booking interface of each airline's official website or authorized agent, including the departure point, destination, departure and return dates (if it is a round trip), number and type of passengers (such as adults, children, infants), etc. At the same time, they can select their preferred options according to their personal needs, such as cabin class (economy class, business class, etc.), whether transfers are allowed and the maximum number of transfers, preferred airlines or aircraft types, etc. After the information is submitted, a standardized fare search request is automatically generated (this fare search request applies not only to international routes but also to domestic routes). This request will include itinerary elements, preference parameters, and necessary verification information to ensure that it can be accurately identified and parsed by the backend fare query system. It efficiently retrieves and rigorously verifies massive amounts of flight dynamic data, real-time updated fare information, and complex business rule data from the global route network. Within a limited time, it performs high-frequency and accurate calculations based on passenger query conditions, providing passengers with real-time flight seat information, accurate fares, and other information that meet passenger needs and airline sales intentions.

[0026] Step S102: On the interactive interface displaying multiple checkboxes, obtain the target user's selection operations on the multiple checkboxes, wherein the multiple checkboxes are generated based on the preliminary search results.

[0027] In practical applications, through the aforementioned interactive interface, target users can adjust their filtering criteria in real time on the search results page by checking boxes or other operations, such as specifying a specific flight or a specific cabin class on a specific flight.

[0028] In one example, after obtaining the target user's selection operations on the multiple checkboxes on an interactive interface displaying multiple checkboxes, the flight and cabin class search method provided in this application embodiment further includes the following steps: For checkbox operations, capture the corresponding selection command, which carries the matching flight information and the matching cabin class information; Information is extracted from the selection command to obtain the corresponding core flight identification information, which includes: flight number information, carrier airline information, departure and arrival airport information, and departure and arrival time information; Based on the core flight identification information and the cabin class parameters selected by the target user, a corresponding query request is generated.

[0029] In one example, after obtaining the target user's selection operations on the multiple checkboxes on an interactive interface displaying multiple checkboxes, the flight and cabin class search method provided in this application embodiment further includes the following steps: If the first flight is selected as the designated flight based on the checkbox operation, a corresponding request is generated based on the information of the first flight.

[0030] In another example, on an interactive interface displaying multiple checkboxes, after obtaining the target user's selection operations on the multiple checkboxes, the flight and cabin class search method provided in this application embodiment further includes the following steps: If the second flight is selected as the designated flight based on the checkmark operation, touch the full cabin class query function key to start the full cabin class query operation for the second flight.

[0031] In another example, after obtaining the target user's selection operations on the multiple checkboxes on an interactive interface displaying multiple checkboxes, the flight and cabin class search method provided in this application embodiment further includes the following steps: The checkbox operation sets the status of multiple cabin classes to "uncertain".

[0032] In another example, after obtaining the target user's selection operations on the multiple checkboxes on an interactive interface displaying multiple checkboxes, the flight and cabin class search method provided in this application embodiment further includes the following steps: The checkbox operation sets the status of multiple cabins to "cabin status confirmed".

[0033] In specific application scenarios, the process of constructing a precise request is as follows: Through an interactive feedback mechanism, when a user selects a specific flight in the search results, or precisely specifies a particular cabin class for a flight, the system will immediately capture this selection instruction. Subsequently, the system will automatically extract the core identifying information of the flight, such as flight number, operating airline, departure and arrival airports, and time, while integrating the cabin class parameters selected by the user, and generating a formatted query request containing a clear flight information according to preset industry data interaction standards.

[0034] A formatted fare search request consists of the nodes segment, agency, passenger, preference, and journeypreferency. The segment includes the origin, destination, and flight combinations. Precise request construction involves building the corresponding flight combination node.

[0035] The request may include requests for specific flights, real-time cabin availability for specific flights, or specific flights and some available cabins.

[0036] Step a1: Based on whether it is a full flight, it can be divided into: Designated flights: Once a flight segment is confirmed, the system generates a formatted request for that segment. For example, if a user requests a round trip from Beijing to New York, the initial search results will return multiple transit options via Casablanca, Morocco, Cairo, Dubai, and Hong Kong. Users can then filter based on their itinerary and travel preferences. When the first segment, CX337 departing from Beijing to Hong Kong at 7:40 PM, is selected, a precise request for that specific flight segment will be generated.

[0037] Search for all cabin classes on a designated flight: Once users have determined their flight based on key factors such as time, they can enable the full cabin class search function if they want to learn more about the differentiated fares and service benefits corresponding to different cabin classes.

[0038] Step a2, depending on whether a cabin class is specified, can be divided into: Specified cabin class, no cabin class status: Cabin status can be specified using the av node in Flights. For example, an uncertain cabin status is av: "E, B, C", indicating that the cabin status of E, B, and C is uncertain.

[0039] Specified cabin class status: The confirmed cabin status is av: "E:0, B:9, C:9", indicating that cabin E is unavailable, while cabins B and C are available.

[0040] Step S103: Determine the target object selected by the target user through a checkbox operation. The target object includes: target flight and / or target cabin class.

[0041] Step S104: Based on the target object, process it through the specified flight construction component to generate the corresponding second fare search request.

[0042] Step S105: In response to the second fare search request, optimize the search based on the target object using the fare search component to obtain optimized search results.

[0043] In one example, in response to a second fare search request, an optimized search is performed based on the target object using the fare search component to obtain optimized search results, including the following steps: In response to the second fare search request, retrieve the flight that matches the second fare search request and set that flight as the target flight; Search for full cabin class data corresponding to the target flight; The fare rules for the selected route are re-validated to obtain the validated fare rules. Based on full cabin class data and verified fare rules, the fare search component is used to optimize the search and obtain optimized search results, which include: cabin class details and corresponding price information for the target user.

[0044] In step S105 above, the fare search component implements optimized searching (i.e., precise searching). The fare search component uses a fare-oriented search mechanism to query fare result combinations based on user requests. During the search process, it filters results using flight and cabin class information specified by the user.

[0045] In practical applications, when a user finds a specific flight of interest in the initial search results, or wants to learn more about the cabin availability of a particular flight, they can take further action through the interactive feedback function. For example, they can click the "View More Cabin Availability" button next to the target flight, or directly select a flight combination to initiate a precise search. Upon receiving the instruction, the system will focus on the flight resources specified by the user, conduct a deep search of the full cabin data for that flight, and re-validate the fare rules for the selected route. Finally, it will output cabin details and corresponding quotes that accurately match the user's needs, reducing interference from invalid information while meeting the user's need for in-depth search of specific flight resources.

[0046] In practical applications, the above-mentioned optimized search process is described in detail below: By formatting the request information, the system retrieves the flight information specified by the user, with different search methods depending on whether the flight and cabin class are specified.

[0047] Step b1, based on whether it is a full flight, can be divided into: Designated flights: During the parsing phase, when the departure and destination information of a flight combination does not completely match the departure and destination information of a segment, a search is performed on a specified portion of the flights. This flight can be used as a filter for subsequent international fare searches, and can be removed during itinerary planning, route selection, and other stages to prevent the flight from appearing in the results.

[0048] For example, if a user requests a round trip from Beijing to New York and selects flight CX337 with a layover in Hong Kong, Hong Kong should be prioritized as the fare splitting point when splitting the itinerary. Route selection can filter out routes that do not include this flight and delete flights other than CX337. Precise filtering rules can significantly improve search efficiency and optimize result quality.

[0049] All cabins on designated flights: When using the full-class cabin search mode, the international fare search system first performs precise filtering based on flights, and then returns the lowest price for all cabin classes. Within each route combination, it first groups passengers by economy, business, and first class, and then performs a Cartesian product combination on the RBD data in the Meizu system, including different group combinations.

[0050] Step b2, depending on whether a cabin class is specified, can be divided into: Specified cabin class, no cabin class status: The cabin status can be specified using the av node in Flights. For example, if the cabin status is uncertain, av is "E, B, C". The status information of these three cabins needs to be queried in real time and the fare needs to be verified.

[0051] Specified cabin class status: Perform freight rate verification based on the cabin status specified by the user.

[0052] The flight and cabin class search method provided in this application, through its interactive filtering, not only reduces computational load but also quickly identifies flights and cabin classes that meet the target user's expectations. Furthermore, for the target user, specifying flight and cabin class status grants more precise control over their itinerary; by locking onto a specific flight and cabin class status, they can intuitively understand the corresponding fare class and service benefits (e.g., baggage allowance, meal standards), thereby finding the optimal balance between budget and experience and reducing decision-making blind spots. Additionally, for airlines, specifying flight and cabin class status is an important tool for achieving refined operations. On the one hand, by synchronizing the sales status and fare data of each flight's cabin class in real time, the airline can accurately grasp the dynamics of market demand, making it easier to flexibly adjust cabin allocation strategies (for example, increasing the supply of high-class cabins on popular routes and offering discounted cabins for flights during off-peak periods), thereby improving seat utilization and revenue. On the other hand, a clear display of cabin class status can reduce disputes over refunds and changes caused by unclear information. At the same time, based on passenger selection data for specific cabin classes, the airline can optimize service configuration (for example, improving in-flight service standards based on the proportion of high-class cabin passengers), thereby enhancing the target users' trust and loyalty to the airline.

[0053] In the above embodiments, a method for searching flights and cabin classes is provided. Correspondingly, this application also provides a device for searching flights and cabin classes. The flight and cabin class search device provided in this application can implement the above-described flight and cabin class search method. This flight and cabin class search device can be implemented by software, hardware, or a combination of both. For example, the flight and cabin class search device may include integrated or separate functional modules or units to perform the corresponding steps in the above methods.

[0054] Please refer to Figure 2 This illustration shows a schematic diagram of a flight and cabin search device provided by some embodiments of this application. Since the device embodiments are basically similar to the method embodiments, the description is relatively simple; relevant details can be found in the description of the method embodiments. The device embodiments described below are merely illustrative.

[0055] like Figure 2 As shown, the flight and cabin search device 200 may include: The first search module 201 is used to respond to the first fare search request by performing a preliminary search through the fare search component to obtain the corresponding initial search results. The initial search results include: multiple trips that match the input multiple information and multiple fare information. The fare search request is generated based on the input information of the target user. The multiple fare information includes: fare information corresponding to each of the multiple trips and the lowest available fare information among all trips. The acquisition module 202 is used to acquire the target user's selection operation on multiple check buttons on an interactive interface that displays multiple check buttons, wherein the multiple check buttons are generated based on preliminary search results; The determination module 203 is used to determine the target object selected by the target user through a check-in operation. The target object includes: target flight and / or target cabin class. The generation module 204 is used to generate a corresponding second fare search request based on the target object by processing it through the specified flight construction component. The second search module 205 is used to respond to the second fare search request, and based on the target object, perform an optimized search through the fare search component to obtain optimized search results.

[0056] In some embodiments of this application, the acquisition module 202 is further configured to: Before performing a preliminary search using the fare search component in response to the first fare search request and obtaining the corresponding initial search results, several pieces of information are obtained. These include: the departure point of the trip, the destination of the trip, the departure date of the trip, the return date of the trip, passenger quantity information, passenger type information, cabin class information, transfer-related information, and preference-related information. The transfer-related information includes whether transfers are allowed and the maximum number of transfers. The preference-related information includes the preferred airline information and the preferred aircraft type information. The generation module 204 is also used for: A first fare search request is generated based on multiple pieces of information. The first fare search request has a standardized format and includes: trip elements, preference parameters, and verification information.

[0057] In some embodiments of this application, the second search module 205 is specifically used for: In response to the second fare search request, retrieve the flight that matches the second fare search request and set that flight as the target flight; Search for full cabin class data corresponding to the target flight; The fare rules for the selected route are re-validated to obtain the validated fare rules. Based on full cabin class data and verified fare rules, the fare search component is used to optimize the search and obtain optimized search results, which include: cabin class details and corresponding price information for the target user.

[0058] In some embodiments of this application, the flight and cabin search device 200 may further include: Query request generation module (in Figure 2(not shown in the image), specifically used for: On the interactive interface that displays multiple check buttons, after obtaining the target user's check button selection operation, capture the corresponding selection instruction for the check button operation, and the selection instruction carries the matching flight information and the matching cabin information. Information is extracted from the selection command to obtain the corresponding core flight identification information, which includes: flight number information, carrier airline information, departure and arrival airport information, and departure and arrival time information; Based on the core flight identification information and the cabin class parameters selected by the target user, a corresponding query request is generated.

[0059] In some embodiments of this application, the flight and cabin search device 200 may further include: Execution module (in) Figure 2 (not shown in the image), specifically used for: On an interactive interface displaying multiple checkboxes, after obtaining the target user's checkbox selections, and if the first flight is determined as the specified flight based on the checkbox selections, a corresponding request is generated based on the first flight information; or, If the second flight has been selected as the designated flight based on the checkbox operation, tap the full cabin class search function key to initiate a full cabin class search operation for the second flight; or... Based on the checkbox operation, the status of multiple cabin classes can be set to "cabin status uncertain"; or... The checkbox operation sets the status of multiple cabins to "cabin status confirmed".

[0060] According to another embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed in a computer, causes the computer to perform the above-described method for searching flights and cabin classes.

[0061] According to another embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the above-described method for searching flights and cabin classes.

[0062] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium.

[0063] Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for searching flights and cabin classes, characterized in that, The method includes: In response to the first fare search request, a preliminary search is performed through the fare search component to obtain the corresponding initial search results. The initial search results include: multiple trips that match the input multiple information and multiple fare information. The fare search request is generated based on the multiple information input by the target user. The multiple fare information includes: fare information corresponding to each of the multiple trips, and the lowest available fare information among all trips. On an interactive interface displaying multiple checkboxes, the selection actions of the target user on the multiple checkboxes are obtained, wherein the multiple checkboxes are generated based on the preliminary search results; The target object selected by the target user is determined by the checkbox operation. The target object includes: target flight and / or target cabin class. Based on the target object, the corresponding second fare search request is generated by processing the specified flight construction component. In response to the second fare search request, an optimized search is performed based on the target object using the fare search component to obtain optimized search results.

2. The search method according to claim 1, characterized in that, Before responding to the first fare search request and performing a preliminary search using the fare search component to obtain the corresponding initial search results, the method further includes: The information obtained includes: the departure point of the itinerary, the destination of the itinerary, the departure date of the itinerary, the return date of the itinerary, passenger quantity information, passenger type information, cabin class information, transit-related information, and preference-related information. The transit-related information includes whether transit is allowed and the maximum number of transits. The preference-related information includes the preferred airline information and the preferred aircraft type information. The first fare search request is generated based on the aforementioned information. The first fare search request has a standardized format and includes: trip elements, preference parameters, and verification information.

3. The search method according to claim 1, characterized in that, In response to the second fare search request, based on the target object, the fare search component is used to perform an optimized search to obtain optimized search results, including: In response to the second fare search request, obtain the flight that matches the second fare search request, and designate that flight as the target flight; Search for full cabin class data corresponding to the target flight; The fare rules for the selected route are re-validated to obtain the validated fare rules. Based on the full cabin class data and the verified fare rules, the fare search component is used to perform an optimized search to obtain the optimized search results, which include: cabin class details and corresponding price information for the target user.

4. The search method according to claim 1, characterized in that, After obtaining the target user's selection operations on the multiple checkboxes on the interactive interface displaying multiple checkboxes, the method further includes: For the checkbox operation, the corresponding selection instruction is captured, and the selection instruction carries the matching flight information and the matching cabin class information; Information is extracted from the selection instruction to obtain the corresponding flight core identification information, which includes: flight number information, carrier airline information, departure and arrival airport information, and departure and arrival time information; Based on the core flight identification information and the cabin class parameters selected by the target user, a corresponding query request is generated.

5. The search method according to claim 1, characterized in that, After obtaining the target user's selection operations on the multiple checkboxes on the interactive interface displaying multiple checkboxes, the method further includes: If the first flight is selected as the designated flight based on the checkmark operation, a corresponding request is generated based on the first flight information; or... If the second flight is selected as the designated flight based on the aforementioned checkbox operation, tap the full cabin class search function key to initiate a full cabin class search operation for the second flight; or... Based on the aforementioned selection operation, the status of multiple cabin classes will be set to "cabin status uncertain"; or... Based on the aforementioned checkbox operation, the status of multiple cabin classes will be set to cabin status determination.

6. A flight and cabin class search device, characterized in that, The device includes: The first search module is used to respond to the first fare search request by performing a preliminary search through the fare search component to obtain the corresponding initial search results. The initial search results include: multiple trips that match the input multiple information and multiple fare information. The fare search request is generated based on the input information of the target user. The multiple fare information includes: fare information corresponding to each of the multiple trips and the lowest available fare information among all trips. The acquisition module is used to acquire the target user's selection operations on multiple check buttons on an interactive interface that displays multiple check buttons, wherein the multiple check buttons are generated based on the preliminary search results; The determination module is used to determine the target object selected by the target user through the check-in operation, the target object including: target flight and / or target cabin class; The generation module is used to generate a corresponding second fare search request based on the target object by processing it through a specified flight construction component. The second search module is used to respond to the second fare search request, and based on the target object, perform an optimized search using the fare search component to obtain optimized search results.

7. The search device according to claim 6, characterized in that, The acquisition module is also used for: Before performing a preliminary search using the fare search component in response to the first fare search request and obtaining the corresponding initial search results, the following multiple pieces of information are obtained: the departure point of the trip, the destination of the trip, the departure date of the trip, the return date of the trip, passenger quantity information, passenger type information, cabin class information, transit association information, and preference association information. The transit association information includes whether transit is allowed and the maximum number of transits. The preference association information includes the preferred airline information and the preferred aircraft type information. The generation module is also used for: The first fare search request is generated based on the aforementioned information. The first fare search request has a standardized format and includes: trip elements, preference parameters, and verification information.

8. The search device according to claim 6, characterized in that, The second search module is specifically used for: In response to the second fare search request, obtain the flight that matches the second fare search request, and designate that flight as the target flight; Search for full cabin class data corresponding to the target flight; The fare rules for the selected route are re-validated to obtain the validated fare rules. Based on the full cabin class data and the verified fare rules, the fare search component is used to perform an optimized search to obtain the optimized search results, which include: cabin class details and corresponding price information for the target user.

9. A computer-readable storage medium, characterized in that, It contains a computer program that, when executed in a computer, causes the computer to perform the method described in any one of claims 1 to 5.

10. An electronic device, characterized in that, The method includes a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method according to any one of claims 1 to 5.