Searching method and device for value attribute information, processor and electronic equipment
By obtaining request information, searching for search permission information and searching for value attribute information in the international freight search system, the problem that the system is difficult to balance search time with user expectations when processing a large amount of data is solved, and a more efficient search process is achieved.
Patent Information
- Application Number
- CN202411917710.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-28
AI Technical Summary
When the international freight search system processes a large amount of data, it is difficult to balance the search time with user expectations, which makes it difficult to control the search time.
By obtaining the request information of the account of the object to be traveled when accessing the target system, searching for search permission information in the target configuration library, and searching for value attribute information matching the itinerary information from the target system based on this information.
The calculation amount of the target system is reduced, the problem of difficulty in balancing search time and user expectations is solved, and better search efficiency is achieved.
Smart Images

Figure CN119719464A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, processor and electronic device for searching value attribute information. Background Art
[0002] Due to the huge amount of data on freight rates and flight information, international freight rate search systems usually need to perform a large amount of calculations, for example, at least one or a combination of the following calculations: route selection, flight combination, freight rate calculation, and rule verification.
[0003] However, the flight price and other information obtained by the above search method is strongly dependent on the flight cabin status, and the search time is difficult to control, which leads to the technical problem of difficulty in balancing the search time and user expectations.
[0004] Currently, no effective solution has been proposed for the above-mentioned technical problem of difficulty in balancing search time and user expectations. Summary of the invention
[0005] Embodiments of the present invention provide a method, device, processor and electronic device for searching value attribute information, so as to at least solve the technical problem of difficulty in balancing search time and user expectations.
[0006] According to one aspect of an embodiment of the present invention, a method for searching value attribute information is provided, the method comprising: obtaining request information input by an account of a person to be traveled when accessing a target system, wherein the request information includes itinerary information of the person to be traveled, first identification information of an agent object selected by the person to be traveled, and second identification information of a sales channel adaptable to the agent object; searching, from a target configuration library of the target system, for search permission information corresponding to the first identification information and the second identification information in the request information, wherein the target configuration library includes a mapping relationship between identification information of different agent objects, identification information of different sales channels, and different search permission information; based on the search permission information, searching, from the target system, for at least one value attribute information matching the itinerary information.
[0007] Optionally, searching for search permission information corresponding to the first identification information and the second identification information in the request information from the target configuration library of the target system includes: extracting the first identification information and the second identification information from the request information; in response to the identification information of different proxy objects including the first identification information, and the identification information of different sales channels including the second identification information, searching for search permission information in which the first identification information and the second identification information satisfy the mapping relationship from the target configuration library.
[0008] Optionally, the method further includes: in response to the identification information of different proxy objects not including the first identification information and the identification information of different sales channels not including the second identification information, determining the initial search authority information as the search authority information.
[0009] Optionally, based on the search authority information, at least one value attribute information matching the itinerary information is searched from the target system, including: comparing the search authority information with the target search authority information to obtain a comparison result, wherein the target search authority information is used to indicate that the account has high-order search authority; based on the comparison result, at least one value attribute information is searched from the target system.
[0010] Optionally, based on the comparison result, at least one value attribute information is searched from the target system, including: in response to the comparison result being a first comparison result, determining that the search permission information includes sub-search permission information, wherein the first comparison result is used to indicate that the search permission information is the same as the target search permission information, and the sub-search permission information is used to at least indicate that the account has itinerary splitting authority; under the sub-search permission information, the itinerary information is split; according to the split itinerary information, at least one value attribute information matching the split itinerary information is searched from the target system.
[0011] Optionally, the method further includes: in response to the comparison result being a second comparison result, outputting prompt information, wherein the second comparison result is used to indicate that the search authority information is different from the target search authority information, and the prompt information is used to prompt the travel object that the search authority information does not include sub-search authority information.
[0012] According to one aspect of an embodiment of the present invention, a device for searching value attribute information is provided, and the device may include: an acquisition unit, used to acquire request information input by an account of a person to be traveled when accessing a target system, wherein the request information includes itinerary information of the person to be traveled, first identification information of an agent object selected by the person to be traveled, and second identification information of a sales channel adaptable to the agent object; a search unit, used to search for search permission information corresponding to the first identification information and the second identification information in the request information from a target configuration library of the target system, wherein the target configuration library includes a mapping relationship between identification information of different agent objects, identification information of different sales channels and different search permission information; a search unit, used to search for at least one value attribute information matching the itinerary information from the target system based on the search permission information.
[0013] According to another aspect of an embodiment of the present invention, a processor is provided, which is used to run a program, wherein when the program is run by the processor, the method for searching value attribute information in an embodiment of the present invention is executed.
[0014] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein when the program is running, the method for searching value attribute information in each embodiment of the present invention is executed.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, which includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for searching value attribute information in the present invention.
[0016] According to another aspect of an embodiment of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the method for searching value attribute information in the embodiment of the present invention is implemented.
[0017] According to another aspect of an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method for searching value attribute information in an embodiment of the present invention is implemented.
[0018] According to another aspect of an embodiment of the present invention, an embodiment of the present application further provides a computer program, which, when executed by a processor, implements the method for searching value attribute information in the above-mentioned embodiment of the present invention.
[0019] In the embodiment of the present invention, when searching for value attribute information, the request information input by the account of the object to be traveled when accessing the target system can be obtained. From the target configuration library of the target system, the search authority information corresponding to the first identification information and the second identification information in the obtained request information can be searched, and according to the search authority information found, at least one value attribute information matching the itinerary information can be searched from the target system, thereby achieving the purpose of reducing the calculation amount of the target system, thereby solving the technical problem of difficulty in balancing the search time and user expectations, and further achieving the technical effect of balancing the search time and user expectations. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0021] Figure 1 is a flow chart of a method for searching value attribute information according to an embodiment of the present invention;
[0022] FIG. 2( a ) is a schematic diagram of a process structure of an international freight rate search system according to an embodiment of the present invention;
[0023] FIG2( b ) is a flow chart of a method for searching freight rates according to an embodiment of the present invention;
[0024] Figure 3 2 is a schematic diagram of a device for searching value attribute information according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] According to an embodiment of the present invention, a method for searching value attribute information 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.
[0028] Figure 1 is a flowchart of a method for searching value attribute information according to an embodiment of the present invention. The method may include the following steps:
[0029] Step S101, obtaining request information input by the account of the person to be transported when accessing the target system.
[0030] In the technical solution provided in the above step S101 of the present invention, the above request information may include itinerary information of the person to be traveled, first identification information of the agent object selected by the person to be traveled, and second identification information of the sales channel to which the agent object can adapt.
[0031] In this embodiment, if the above account is a real-name authentication account, the relationship between the account and the object to be traveled can be one-to-one, that is, the object to be traveled has only a unique account; if the above account is not a real-name authentication account, the relationship between the account and the object to be traveled can be many-to-one, that is, the object to be traveled can have multiple different accounts. This is only an example for illustration and is not specifically limited.
[0032] In this embodiment, the target system may be a fare search system (e.g., an international fare search system), and the itinerary information may include the departure location, destination location, and departure time of the person to be traveled. The departure location and destination location may be cities in a certain country, and the departure time may be a certain day or a few days. For example, if the itinerary information is within the time range from December 12, 2024 to December 14, 2024, the departure location selected by Wang is City A, and the selected destination location is City B, then it means that the person to be traveled is Wang, the departure location is City A, the destination location is City B, and the departure time is any day between December 12, 2024 and December 14, 2024. This is only an example and is not specifically limited.
[0033] In this embodiment, the above-mentioned first identification information can be used to represent the number (TravelAgencyCode) of the agent object selected by the user. The agent object can include any one of the following objects: travel agency and ticket agency, etc. TravelAgencyCode can also be called the user agent number, which is only used as an example here and is not specifically limited.
[0034] In this embodiment, the above-mentioned second identification information can be used to represent the number (ChannelId) of the sales channel to which the agent object can adapt. The sales channel may include different sales channels or platforms. Different sales channels or platforms may include the official website of an airline and the internal system of a travel agency, etc. This is only an example and is not specifically limited.
[0035] In this embodiment, the request information input by the account of the person to be traveled when accessing the target system is obtained. Optionally, in response to the account of the person to be traveled accessing the target system, this embodiment detects the type of operation performed by the account in the target system. If the operation type is detected to be an input operation type, the request information input by the account when accessing the target system can be obtained. For example, the itinerary information of the person to be traveled, the first identification information of the agent object selected by the person to be traveled, and the second identification information of the sales channel that the agent object can adapt to can be obtained. This is only an example and is not specifically limited.
[0036] Optionally, if the operation type is detected to be a read operation type, the operation type performed by the account in the target system continues to be detected until the operation type is detected to be an input operation type, and then the request information input by the account when accessing the target system is obtained.
[0037] Step S102: searching the target configuration library of the target system for search permission information corresponding to the first identification information and the second identification information in the request information.
[0038] In the technical solution provided in the above step S102 of the present invention, the above target configuration library may include the mapping relationship between the identification information of different proxy objects, the identification information of different sales channels and the different search authority information.
[0039] In this embodiment, the target configuration library may include a personalized configuration table, and the search permission information may be represented by a personalized search capability value (Value). The search permission information may also be referred to as search capability information, which is only used as an example here and is not specifically limited.
[0040] In this embodiment, after obtaining the request information input by the account of the object to be traveled when accessing the target system, the search permission information corresponding to the first identification information and the second identification information in the request information is searched from the target configuration library of the target system. Optionally, based on the obtained request information, this embodiment can find the search permission information corresponding to the above-mentioned first identification information and the second identification information according to the mapping relationship between the identification information of different proxy objects, the identification information of different sales channels and different search permission information in the target configuration library.
[0041] Optionally, the relationship between the identification information of different proxy objects and the first identification information may be judged to obtain a first judgment result, and the relationship between the identification information of different sales channels and the second identification information may be judged to obtain a second judgment result. Based on the first judgment result and the second judgment result, and the mapping relationship between the identification information of different proxy objects, the identification information of different sales channels and different search authority information, the search authority information corresponding to the first identification information and the second identification information may be found.
[0042] Step S103, based on the search authority information, searching for at least one value attribute information matching the itinerary information from the target system.
[0043] In the technical solution provided in the above step S103 of the present invention, the above value attribute information can be used to at least indicate the value attribute of the flight that meets the itinerary information and the flight type to which the flight that meets the itinerary information belongs. For example, the above value attribute can be the price of the flight that meets the itinerary information, the flight type can include a direct flight type and a transfer type, and the transfer type can include a same airport transfer type and a different airport transfer type.
[0044] In this embodiment, after searching the target configuration library of the target system for search permission information corresponding to the first identification information and the second identification information in the request information, the target system is searched for at least one value attribute information matching the itinerary information based on the search permission information. Optionally, based on the search permission information found, this embodiment splits the itinerary information according to the search permission information found, and searches the target system for at least one value attribute information matching the split itinerary information. The split location can be a default location in the target system or a location set by the user.
[0045] For example, if the above itinerary information is within the time range of December 17, 2024 to December 20, 2024, the departure point selected by Zhang is City C, and the destination point selected is City D, and at the same time, the split point is City B, then according to the above search authority information found, City B is used as the transit city between City C and City D (that is, the split point), and the above itinerary information is split to obtain the first sub-trip information from City B to City C, and the second sub-trip information from City B to City D. From the target system, at least one value attribute information matching the split first sub-trip information and the second sub-trip information is searched, which is only used as an example here and is not specifically limited.
[0046] In the above steps S101 to S103 of the present application, when searching for value attribute information, the request information input by the account of the object to be traveled when accessing the target system can be obtained. From the target configuration library of the target system, the search permission information corresponding to the first identification information and the second identification information in the obtained request information can be searched, and based on the search permission information found, at least one value attribute information matching the itinerary information can be searched from the target system, thereby achieving the purpose of reducing the calculation amount of the target system, thereby solving the technical problem of low efficiency of fare search, and further achieving the technical effect of improving the efficiency of fare search.
[0047] The above method of this embodiment is further introduced below.
[0048] As an optional implementation method, step S102, searching for search permission information corresponding to the first identification information and the second identification information in the request information from the target configuration library of the target system, includes: extracting the first identification information and the second identification information from the request information; in response to the identification information of different proxy objects including the first identification information, and the identification information of different sales channels including the second identification information, searching for search permission information in which the first identification information and the second identification information satisfy the mapping relationship from the target configuration library.
[0049] In this embodiment, after obtaining the request information input by the account of the object to be traveled when accessing the target system, the first identification information and the second identification information are extracted from the request information. Optionally, based on the obtained request information, this embodiment performs exception processing on the obtained request information, and the first identification information and the second identification information can be extracted from the request information after the exception processing. The above-mentioned exception processing operation can include at least one of the following operations or a combination thereof: a missing value filling operation and a redundant value deletion operation, etc.
[0050] In this embodiment, after extracting the first identification information and the second identification information from the request information, in response to the identification information of different proxy objects including the first identification information, and the identification information of different sales channels including the second identification information, search permission information for which the first identification information and the second identification information satisfy a mapping relationship is searched from the target configuration library. Optionally, this embodiment, on the basis of extracting the first identification information and the second identification information, judges the relationship between the identification information of different proxy objects and the above-mentioned first identification information to obtain a first judgment result, and judges the relationship between the identification information of different sales channels and the above-mentioned second identification information to obtain a second judgment result. If the first judgment result obtained indicates that the identification information of different proxy objects includes the first identification information, and the second judgment result obtained indicates that the identification information of different sales channels includes the second identification information, then the search permission information for which the first identification information and the second identification information satisfy a mapping relationship can be searched from the target configuration library.
[0051] As an optional embodiment, the method further includes: in response to the identification information of different proxy objects not including the first identification information and the identification information of different sales channels not including the second identification information, determining the initial search authority information as the search authority information.
[0052] In this embodiment, the initial search permission information may be used to indicate that the account does not have high-level search permission.
[0053] In this embodiment, in response to the fact that the identification information of different proxy objects does not include the first identification information, and the identification information of different sales channels does not include the second identification information, the initial search authority information is determined as the search authority information. Optionally, this embodiment, based on the extraction of the first identification information and the second identification information, judges the relationship between the identification information of different proxy objects and the above-mentioned first identification information to obtain a first judgment result, and judges the relationship between the identification information of different sales channels and the above-mentioned second identification information to obtain a second judgment result. If the first judgment result obtained indicates that the identification information of different proxy objects does not include the first identification information, and the second judgment result obtained indicates that the identification information of different sales channels does not include the second identification information, the initial search authority information is determined as the search authority information.
[0054] As an optional implementation method, step S103, based on the search authority information, searches for at least one value attribute information matching the itinerary information from the target system, including: comparing the search authority information with the target search authority information to obtain a comparison result; based on the comparison result, searches for at least one value attribute information from the target system.
[0055] In this embodiment, the above target search permission information can be used to indicate that the account has high-level search permission.
[0056] In this embodiment, after searching the target configuration library of the target system for search permission information corresponding to the first identification information and the second identification information in the request information, the search permission information is compared with the target search permission information to obtain a comparison result. Optionally, this embodiment, based on searching for search permission information corresponding to the first identification information and the second identification information in the request information, compares the search permission information found with the target search permission information to obtain a comparison result, wherein the comparison result can be used to represent the relationship between the search permission information and the target search permission information.
[0057] In this embodiment, after the search authority information is compared with the target search authority information and a comparison result is obtained, at least one value attribute information is searched from the target system based on the comparison result. Optionally, based on the comparison result, the embodiment splits the itinerary information according to the comparison result, and searches from the target system for at least one value attribute information that matches the split itinerary information.
[0058] Optionally, if the above itinerary information is within the time range of December 26, 2024 to December 30, 2024, the departure point selected by Zhang Moumou is City C, and the destination point selected is City D, and at the same time, the split location is City E, then according to the comparison result, City E is used as a transit city between City C and City D (that is, the split location), and the above itinerary information is split to obtain the third sub-trip information from City E to City C, and the fourth sub-trip information from City E to City D. From the target system, at least one value attribute information matching the split third sub-trip information and the fourth sub-trip information is searched, which is only used as an example here and is not specifically limited.
[0059] As an optional implementation method, based on the comparison result, at least one value attribute information is searched from the target system, including: in response to the comparison result being a first comparison result, determining that the search authority information includes sub-search authority information; under the sub-search authority information, splitting the itinerary information; according to the split itinerary information, searching from the target system for at least one value attribute information that matches the split itinerary information.
[0060] In this embodiment, the first comparison result can be used to indicate that the search permission information is the same as the target search permission information. The sub-search permission information can be used to indicate that the account has at least itinerary splitting permission, route selection permission, route combination permission, fare verification permission, and space query permission.
[0061] In this embodiment, after the search permission information is compared with the target search permission information and a comparison result is obtained, in response to the comparison result being the first comparison result, it is determined that the search permission information includes sub-search permission information. Optionally, based on the comparison result, if the comparison result obtained is the first comparison result, it can be determined that the search permission information includes sub-search permission information, that is, it can be determined that the account has itinerary splitting permission, route selection permission, route combination permission, freight rate verification permission, and space query permission, etc.
[0062] In this embodiment, in response to the comparison result being the first comparison result, after determining that the search authority information includes sub-search authority information, the itinerary information is split under the sub-search authority information. Optionally, this embodiment splits the itinerary information according to the split location under the sub-search authority information on the basis of determining that the search authority information includes sub-search authority information. For example, if the split location is city B, the departure location is city C, and the destination point is city D, then city B is used as a transit city between city C and city D (that is, the split location), and the above itinerary information is split to obtain the first sub-trip information from city B to city C, and the second sub-trip information from city B to city D. This is only an example and is not specifically limited.
[0063] In this embodiment, after the itinerary information is split under the sub-search permission information, at least one value attribute information matching the split itinerary information is searched from the target system according to the split itinerary information. Optionally, this embodiment can obtain sub-trip information on the basis of splitting the itinerary information, and at least one value attribute information matching the split sub-trip information can be searched from the target system. For example, if the split location is city B, the departure location is city C, and the destination location is city D, then city B is used as a transit city between city C and city D (that is, the split location); the itinerary information from city C to city D is split to obtain the first sub-trip information from city B to city C, and the second sub-trip information from city B to city D; and at least one value attribute information matching the split first sub-trip information and the second sub-trip information is searched from the target system. This is only an example and is not specifically limited.
[0064] As an optional implementation manner, the method further includes: in response to the comparison result being a second comparison result, outputting prompt information.
[0065] In this embodiment, the second comparison result may be used to indicate that the search authority information is different from the target search authority information. The prompt information may be used to prompt the person to be transported that the search authority information does not include sub-search authority information.
[0066] In this embodiment, in response to the comparison result being the second comparison result, prompt information is output. Optionally, based on the comparison result, if the comparison result is the second comparison result, prompt information may be output, that is, if the search authority information is different from the target search authority information, prompt information may be output, wherein the prompt information may be displayed in the following forms: voice form and pop-up window form, etc.
[0067] In the embodiment of the present invention, when searching for value attribute information, the request information input by the account of the object to be traveled when accessing the target system can be obtained. From the target configuration library of the target system, the search authority information corresponding to the first identification information and the second identification information in the obtained request information can be searched, and according to the search authority information found, at least one value attribute information matching the itinerary information can be searched from the target system, thereby achieving the purpose of reducing the calculation amount of the target system, thereby solving the technical problem of difficulty in balancing the search time and user expectations, and further achieving the technical effect of balancing the search time and user expectations.
[0068] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0069] Due to the huge amount of data on freight rates and flight information, international freight rate search systems usually need to perform a large amount of calculations, for example, at least one or a combination of the following calculations: route selection, flight combination, freight rate calculation, and rule verification.
[0070] However, the flight price and other information obtained by the above search method is strongly dependent on the flight cabin status, and the search time is difficult to control, which leads to the technical problem of difficulty in balancing the search time and user expectations.
[0071] In order to solve the above technical problems, an embodiment of the present invention proposes a method for searching value attribute information. On the basis of obtaining the request information input by the account of the object to be traveled when accessing the target system, the search permission information corresponding to the identification information in the request information is searched from the target configuration library, and according to the obtained search permission information, at least one value attribute information matching the itinerary information can be searched from the target system, thereby achieving the purpose of reducing the calculation amount of the target system, thereby solving the technical problem of difficulty in balancing the search time and user expectations, and further achieving the technical effect of balancing the search time and user expectations.
[0072] In this embodiment, the communication mode between the processes of the international freight rate search system can be shown in Figure 2 (a). For example, Figure 2 (a) is a schematic diagram of the process structure of an international freight rate search system according to an embodiment of the present invention. In Figure 2 (a), the request information is sent to the work modules (WORKER) 201 to 20n, the management module (Master) 202 can control the control modules (CONTROLLER) 203 to 204 to perform the steps of pre-processing personalized configuration data, and the control modules 203 to 204 can be connected to the work modules respectively, and the control modules 203 to 204 can be used to perform personalized configuration pre-processing functions.
[0073] In this embodiment, the fare search method is executed, and at least one value attribute information matching the itinerary information can be searched from the target system. For example, FIG2(b) is a flow chart of a fare search method according to an embodiment of the present invention. As shown in FIG2(b), the method may include the following steps:
[0074] Step S210: pre-processing personalized configuration data.
[0075] In the technical solution provided by the above step S210 of the present invention, the personalized configuration data is stored in the form of a file. In order to improve the search capability configuration, the personalized configuration data is loaded when the service is started, and the personalized configuration data is stored in the form of a key-value pair. Among them, the key (Key) can be the user agent number TravelAgencyCode and the sales channel number ChannelId, and the personalized search capability value (value) can be the search capability information of different travel types.
[0076] In this embodiment, the international freight rate search system provides software services through a background process, and the personalized configuration table is parsed in real time when the background process is started. The personalized configuration table can be stored in a comma-separated values (CSV) format, and the personalized configuration table can include information such as TravelAgencyCode, ChannelId, cabin query configuration, search speed, and the maximum time period allowed by the calendar mode.
[0077] Optionally, when parsing CSV data, the string TravelAgencyCode+ChannelId can represent the user source as the Key value of the key-value pair, and the Value is stored in the form of a structure, and the members in the Value are assigned according to the search capability data in the table.
[0078] After preprocessing the personalized configuration data, the process proceeds to step S211 to parse the request information.
[0079] In the technical solution provided in step S211 of the present invention, the user requests to access the international freight rate search system in a lightweight data exchange format (JavaScript Object Notation, referred to as JSON). By parsing the request information, at least the following information can be obtained: the user's itinerary information (Segemnt), passenger information (Passenger), sales identity information (Agency), and travel preference information (Preference).
[0080] In this embodiment, the passenger information may include the passenger type, the sales identity information may include the TravelAgencyCode and key customer code, etc., and the travel preferences may include multiple cabin classes and brands, etc. These are merely examples and are not specifically limited.
[0081] Optionally, if the itinerary information includes a departure location, a destination point, and a departure time, when there are multiple departure locations, destination points, and departure times, it is considered a multi-segment request, and when the departure time is set as a time period, it is considered a calendar mode. For example, if the itinerary information includes PEK-LAX departing on October 1, 2024, the itinerary is a single-segment itinerary; if the itinerary information includes PEK-LAX departing on October 1, 2024, and LAX-PEK departing on October 10, 2024, the itinerary is a round trip; if the itinerary information includes PEK-LAX departing on October 1, 2024, LAX-HKG departing on October 10, 2024, and HKG-PEK departing on October 12, 2024, the itinerary is a multi-segment itinerary; if the itinerary information includes the fare results of PEK-LAX for ten days from October 1, 2024 to October 10, 2024, it is a calendar mode.
[0082] Optionally, if the travel preference information includes cabin information (cabin) that the user wants, the cabin may include economy class (Y), premium economy class (W), business class (C), and first class (F). The basic fare search returns a lowest price for each flight combination by default. When the multi-cabin mode is set in the travel preference information, a lowest price is returned for each cabin. For example, if the request information includes cabins Y and C, in the basic fare search, each flight combination only returns the lowest price result for cabin Y or cabin C; in the multi-cabin mode, if both cabin Y and cabin C have available space, each flight combination will return the lowest price results for both cabins.
[0083] After parsing the request information, proceed to step S212 to search for search capability information.
[0084] In the technical solution provided in the above step S212 of the present invention, the above search capability information may include two types of data, namely whether the high-level function authority is possessed, and whether the corresponding search capability authority of different types is possessed.
[0085] In this embodiment, the request processing module can be used to obtain TravelAgencyCode and ChannelId as the key (Key) of the key-value pair, and the corresponding personalized search capability value (Value) is found in the key-value pair in the preprocessing of step S210, where the Value can be used to indicate whether the user request has high-level function permissions, as well as the search capability corresponding to the request type.
[0086] In this embodiment, if the request information includes part of the search capability data, the request information is verified based on the obtained user search capability data. If the search capability information set in the request information exceeds the upper limit in the personalized configuration table, the search capability information will be reset to the upper limit in the personalized configuration table. In addition, the request may belong to multiple types, and the search capability information is assigned according to the most stringent one. For example: in the request information, the user sets the cabin query level to the highest level, but the upper limit in the personalized configuration table is medium, then the cabin query level needs to be adjusted to medium.
[0087] Optionally, high-level functional permissions may include: calendar mode, multiple user agent numbers, multiple cabin classes, brands, multiple segments, upward search function, downward search function, whether to support split tickets, quick search function, and airline preference function, etc. Search capability permissions may include: cabin query level, maximum number of results, maximum response time, maximum route combination fare, etc.
[0088] In this embodiment, if the user does not have the above-mentioned high-level functional authority, a prompt message indicating that the freight rate calculation will not be performed will be directly returned; if the user has the above-mentioned high-level functional authority, the corresponding search capabilities will be granted according to different request types. Since the request may belong to multiple itinerary types and will match multiple search capabilities, the system determines to process it with the most stringent capability. Among them, the request types may include the following types: flight shopping requests, multi-segment requests, multi-cabin requests, calendar requests, and brand requests, etc. Multi-segment requests, multi-cabin requests, calendar requests, etc. are types that are only available under high-level functional authority, and different permissions can be configured according to the user level.
[0089] After searching the search capability information, the process proceeds to step S213 to determine whether the user's account has high-level search permissions.
[0090] If it is determined that the user's account does not have advanced search permissions, the process ends.
[0091] If it is determined that the user's account has high-level search permissions, the process proceeds to step S214 and step S215 to determine the search optimization permissions corresponding to the request information and search for fares that match the itinerary.
[0092] In the technical solution provided in the above step S214 of the present invention, the above search optimization authority may include: itinerary splitting authority, route selection authority, route combination authority, freight rate verification authority and space query authority, etc. Through personalized configuration, critical values can be set at multiple stages of the freight rate search stage. When the critical value is reached, the next processing work will be carried out, thereby preventing the user experience from being affected by too much calculation, avoiding the long time of the full search and the unsatisfactory result type, and achieving a win-win situation between resource performance and user expectations.
[0093] In this embodiment, if the above account has the permission to split the itinerary, the international fare search system will first calculate according to the departure point and destination point in the request information. When the search capability is configured with the itinerary splitting permission and the number of split itineraries, more fare combinations will be found.
[0094] For example, if an account requests Beijing-Los Angeles in the international fare search system, it will first search for direct flights from Beijing to Los Angeles, and then split the direct flights from Beijing to Los Angeles. For example, if Hong Kong is used as the split point, the fare combination results for Beijing-Hong Kong and Hong Kong-Los Angeles will be queried. When splitting the itinerary, there will also be a threshold for the number of split itineraries, thereby preventing the response time from being too long due to too many split points in the international fare search.
[0095] In this embodiment, if the above account has the space query permission, different space query levels are customized for the user to meet the user's needs. For example, if an agent has a low query rate, pursues fast query speed, and allows occasional deviations in space status, a cache query is set for it, in which the cache levels are also different, and personalized configuration is performed according to user needs.
[0096] For example, taking the largest route combination in the search capability information as an example, finding route combinations plays an important role in international freight rate searches. Some route combinations can reach tens of thousands. If there is no restriction, the route combination stage will take up to 10 seconds, resulting in no results returned within the response time, which seriously affects the user experience. Through reasonable data restrictions, a balance can be achieved between response time and returned results.
[0097] In this embodiment, when searching for value attribute information, the request information input by the account of the object to be traveled when accessing the target system can be obtained. From the target configuration library of the target system, the search authority information corresponding to the first identification information and the second identification information in the obtained request information can be found, and according to the found search authority information, at least one value attribute information matching the itinerary information can be searched from the target system, thereby achieving the purpose of reducing the calculation amount of the target system, thereby solving the technical problem of difficulty in balancing the search time and user expectations, and further achieving the technical effect of balancing the search time and user expectations.
[0098] According to an embodiment of the present invention, a device for searching value attribute information is also provided. It should be noted that the device for searching value attribute information can be used to execute a method for searching value attribute information in an embodiment.
[0099] Figure 3 FIG. 1 is a schematic diagram of a device for searching value attribute information according to an embodiment of the present invention. Figure 3 As shown, the value attribute information searching device 300 may include: an acquiring unit 301 , a searching unit 302 and a searching unit 303 .
[0100] The acquisition unit 301 is used to obtain the request information input by the account of the person to be traveled when accessing the target system, wherein the request information includes the itinerary information of the person to be traveled, the first identification information of the agent object selected by the person to be traveled, and the second identification information of the sales channel that the agent object can adapt to.
[0101] The search unit 302 is used to search for search permission information corresponding to the first identification information and the second identification information in the request information from the target configuration library of the target system, wherein the target configuration library includes the mapping relationship between the identification information of different agent objects, the identification information of different sales channels and different search permission information.
[0102] The search unit 303 is used to search at least one value attribute information matching the itinerary information from the target system based on the search authority information.
[0103] Optionally, the search unit 302 may include: an extraction module, used to extract the first identification information and the second identification information from the request information; a search module, used to search for search permission information that satisfies the mapping relationship between the first identification information and the second identification information from the target configuration library in response to the identification information of different proxy objects including the first identification information and the identification information of different sales channels including the second identification information.
[0104] Optionally, the value attribute information search device 300 may further include: a determination unit for determining the initial search authority information as the search authority information in response to the identification information of different agent objects not including the first identification information and the identification information of different sales channels not including the second identification information.
[0105] Optionally, the search unit 303 may include: a comparison module, used to compare the search authority information with the target search authority information to obtain a comparison result, wherein the target search authority information is used to indicate that the account has high-order search authority; a search module, used to search for at least one value attribute information from the target system based on the comparison result.
[0106] Optionally, the search module may include: a determination sub-module, used to determine, in response to a comparison result being a first comparison result, that the search authority information includes sub-search authority information, wherein the first comparison result is used to indicate that the search authority information is the same as the target search authority information, and the sub-search authority information is used to at least indicate that the account has itinerary splitting authority; a splitting sub-module, used to split the itinerary information under the sub-search authority information; and a search sub-module, used to search from the target system for at least one value attribute information that matches the split itinerary information according to the split itinerary information.
[0107] Optionally, the search device 300 for value attribute information may further include: an output unit for outputting prompt information in response to the comparison result being a second comparison result, wherein the second comparison result is used to indicate that the search authority information is different from the target search authority information, and the prompt information is used to prompt the object to be traveled that the search authority information does not include sub-search authority information.
[0108] In this embodiment, an acquisition unit is used to obtain request information input by the account of the person to be traveled when accessing the target system, wherein the request information includes the itinerary information of the person to be traveled, the first identification information of the agent object selected by the person to be traveled, and the second identification information of the sales channel that the agent object can adapt to; a search unit is used to search for search permission information corresponding to the first identification information and the second identification information in the request information from the target configuration library of the target system, wherein the target configuration library includes the mapping relationship between the identification information of different agent objects, the identification information of different sales channels and different search permission information; a search unit is used to search for at least one value attribute information matching the itinerary information from the target system based on the search permission information, wherein the value attribute information is used to at least represent the value attributes of the flights that meet the itinerary information, thereby achieving the purpose of reducing the computational complexity of the target system, thereby solving the technical problem of difficulty in balancing the search time and user expectations, and further achieving the technical effect of balancing the search time and user expectations.
[0109] According to an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein when the program is run by the processor, the method for searching value attribute information in the embodiment is executed.
[0110] According to an embodiment of the present invention, there is also provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method for searching value attribute information in the embodiment is executed when the program is running.
[0111] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for searching value attribute information in the embodiment.
[0112] According to an embodiment of the present invention, a computer program product is also provided. The computer program product includes a computer program. When the computer program is executed by a processor, the method for searching value attribute information in the embodiment is implemented.
[0113] According to an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method for searching value attribute information in the embodiment is implemented.
[0114] According to an embodiment of the present invention, a computer program is also provided, which implements the method for searching value attribute information in the embodiment when the computer program is executed by a processor.
[0115] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0116] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0117] 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 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.
[0118] 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 over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0119] In addition, each functional unit in each embodiment of the present invention 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.
[0120] 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 invention, or the part that contributes to the relevant technology or the whole or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for 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 methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, referred to as Read-Only Memory), random access memory (RAM, referred to as Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0121] The above are only preferred embodiments of the present invention. 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 invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for searching value attribute information, characterized in that: include: Obtaining request information input by the account of the person to be traveled when accessing the target system, wherein the request information includes the itinerary information of the person to be traveled, the first identification information of the agent selected by the person to be traveled, and the second identification information of the sales channel that the agent can adapt to; searching, from a target configuration library of the target system, search permission information corresponding to the first identification information and the second identification information in the request information, wherein the target configuration library includes mapping relationships between identification information of different proxy objects, identification information of different sales channels and different search permission information; Based on the search authority information, at least one value attribute information matching the itinerary information is searched from the target system.
2. The method according to claim 1, characterized in that Searching for search permission information corresponding to the first identification information and the second identification information in the request information from a target configuration library of the target system includes: Extracting the first identification information and the second identification information from the request information; In response to the identification information of the different proxy objects including the first identification information, and the identification information of the different sales channels including the second identification information, searching for search permission information in which the first identification information and the second identification information satisfy the mapping relationship from the target configuration library.
3. The method according to claim 2, characterized in that The method further comprises: In response to the identification information of the different proxy objects not including the first identification information and the identification information of the different sales channels not including the second identification information, initial search authority information is determined as the search authority information.
4. The method according to claim 1, characterized in that: Based on the search authority information, searching the target system for at least one value attribute information matching the itinerary information includes: Comparing the search authority information with the target search authority information to obtain a comparison result, wherein the target search authority information is used to indicate that the account has a high-level search authority; Based on the comparison result, at least one value attribute information is searched from the target system.
5. The method according to claim 4, characterized in that Based on the comparison result, searching at least one value attribute information from the target system includes: In response to the comparison result being a first comparison result, determining that the search permission information includes sub-search permission information, wherein the first comparison result is used to indicate that the search permission information is the same as the target search permission information, and the sub-search permission information is used to indicate at least that the account has itinerary splitting permission; Under the sub-search authority information, the itinerary information is split; According to the split itinerary information, at least one value attribute information matching the split itinerary information is searched from the target system.
6. The method according to claim 5, characterized in that The method further comprises: In response to the comparison result being a second comparison result, a prompt message is output, wherein the second comparison result is used to indicate that the search authority information is different from the target search authority information, and the prompt message is used to prompt the travel object that the search authority information does not include the sub-search authority information.
7. A device for searching value attribute information, characterized in that: include: An acquisition unit, configured to acquire request information input by an account of a person to be transported when accessing a target system, wherein the request information includes itinerary information of the person to be transported, first identification information of an agent selected by the person to be transported, and second identification information of a sales channel adaptable to the agent; a search unit, configured to search for search permission information corresponding to the first identification information and the second identification information in the request information from a target configuration library of the target system, wherein the target configuration library includes a mapping relationship between identification information of different proxy objects, identification information of different sales channels and different search permission information; The search unit is used to search at least one value attribute information matching the itinerary information from the target system based on the search authority information.
8. A processor, characterized in that: The processor is used to run a program, wherein the program, when run by the processor, executes the method for searching value attribute information as described in any one of claims 1 to 6.
9. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program, when running, executes the method for searching value attribute information as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the value attribute information search method described in any one of claims 1 to 6.