CN103729353B - The searching method and server of ticket information - Google Patents

The searching method and server of ticket information Download PDF

Info

Publication number
CN103729353B
CN103729353B CN201210382054.XA CN201210382054A CN103729353B CN 103729353 B CN103729353 B CN 103729353B CN 201210382054 A CN201210382054 A CN 201210382054A CN 103729353 B CN103729353 B CN 103729353B
Authority
CN
China
Prior art keywords
ticket information
information
time
ticket
cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210382054.XA
Other languages
Chinese (zh)
Other versions
CN103729353A (en
Inventor
王冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210382054.XA priority Critical patent/CN103729353B/en
Publication of CN103729353A publication Critical patent/CN103729353A/en
Application granted granted Critical
Publication of CN103729353B publication Critical patent/CN103729353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is related to the searching method and server of a kind of ticket information.The method includes:Ticketing service provides the current request message that server receives the search ticket information that client sends, and the request message includes search condition information;Judge whether there is the ticket information for meeting search condition in the ticket information being locally stored in correspondence cache-time, wherein, the ticket information being locally stored is that ticketing service provides the historical requests message that was received according to before of server and meets search condition and be stored in local ticket information from what Ticketing Centre's server was obtained, and the corresponding cache-time of the ticket information being locally stored to be search condition information and historical search object information in the historical requests message be calculated;If it has, then obtaining the ticket information for meeting search condition, and send to client.The embodiment of the present application improves reasonability of the ticket information in the cache-time being locally stored, and alleviates the access burden of Ticketing Centre's server.

Description

The searching method and server of ticket information
Technical field
The application is related to network communication field, more particularly to a kind of ticket information searching method and server.
Background technology
With the rapid popularization of the network communications technology, increasing user is inquired about or is ordered using booking tickets on net system Ticketing service.Currently the larger problem that faces is booking tickets on net system:Because booking tickets on net system calls outside ticket query service Time it is long, it is therefore desirable to the local caching for carrying out ticket query result.Local cache ticket query result data is removed includes one Outside a little essential informations (such as order of classes or grades at school of flight, origin, destination), it is most important that the also remaining seat including that can sell Number, this information determines whether user can place an order reservation ticketing service.
Due to remaining seat number be ticket business reservation system share, therefore the local cache time of ticket query result length Short is highly important.If cache-time is long, then the remaining seat the sold number of local cache can be forbidden, and cause user to search Rope to ticketing service cannot but place an order ticket booking, so as to influence the experience of user.But, if cache-time is too short, then a side Face can improve the call number of external service, increase cost;On the other hand the display time of ticketing service search results pages can be extended, The experience of user can be influenceed.
Under prior art, the typically basis of the local cache time of ticket query result is manually set a cache-time. The method to set up subjectivity of this local cache time is too strong, if the cache-time for setting is long, cache information will be caused to lose Effect, user will obtain invalid cache information, and this has a strong impact on the experience of user;And if the cache-time for setting is too short, will Aggravate the access burden of Ticketing Centre server, easily occur because Ticketing Centre's server access amount it is excessive caused by react speed The problem that degree declines to a great extent, this equally has a strong impact on the experience of user.
The content of the invention
The purpose of the application is to provide the searching method and server of a kind of ticket information, to improve ticket information at this The reasonability of ground cache-time, mitigates the access burden of Ticketing Centre's server, improves Consumer's Experience.
To achieve the above object, this application provides a kind of searching method of ticket information, methods described includes:
Ticketing service provides the current request message that server receives the search ticket information that client sends, the current request Message includes search condition information;
According to the current request message, judgement is in the ticket information being locally stored in corresponding cache-time It is no to have the ticket information for meeting the search condition;Wherein, the ticket information being locally stored is that the ticketing service provides service The historical requests message that device was received according to before meets search condition and is stored in local from what Ticketing Centre's server was obtained Ticket information;The corresponding cache-time of the ticket information being locally stored is the search in the historical requests message What conditional information and historical search object information were calculated;
Believe when there is the ticketing service for meeting the search condition in the ticket information being locally stored in cache-time is corresponded to During breath, the ticket information for meeting search condition is obtained;
Send the ticket information for meeting search condition to the client.
Correspondingly, present invention also provides a kind of server, the server includes:
Receiving unit, the current request for providing the search ticket information that server receives client transmission for ticketing service disappears Breath, the current request message includes search condition information;
Judging unit, for according to the current request message, judging being locally stored in corresponding cache-time Ticket information in whether have the ticket information for meeting the search condition;Wherein, the ticket information being locally stored is institute State ticketing service the historical requests message that was received according to before of server is provided and meet searching bar from what Ticketing Centre's server was obtained Part is simultaneously stored in local ticket information;The corresponding cache-time of the ticket information being locally stored is please according to the history Ask what search condition information and historical search object information in message were calculated;
Acquiring unit, the search is met for that ought be in have in the ticket information being locally stored in correspondence cache-time During the ticket information of condition, the ticket information for meeting search condition is obtained;
Transmitting element, for sending the ticket information for meeting search condition to the client.
Therefore, the application realizes the current request message that server receives the search ticket information of client transmission Afterwards, according to the current request message, judge whether there is search in the ticket information being locally stored in correspondence cache-time Meet the ticket information of search condition, and will search and meet the ticket information of search condition and send to client.Due to local The corresponding cache-time of the ticket information of the local cache in cache database is the search condition in historical requests message What information and historical search object information were calculated, therefore reasonability of the ticket information in the local cache time is improve, subtract The access burden of Qing Liao Ticketing Centres server, improves Consumer's Experience.
Brief description of the drawings
The system architecture diagram that a kind of searching method of ticket information that Fig. 1 is provided by the embodiment of the present application is applied;
A kind of flow chart of the searching method of ticket information that Fig. 2 is provided for the embodiment of the present application;
A kind of schematic diagram of server that Fig. 3 is provided for the embodiment of the present application.
Specific embodiment
Below by drawings and Examples, the technical scheme to the application is described in further detail.
The searching method and server of the ticket information that the application is provided, provide server and receive client hair by ticketing service The current request message of the search ticket information sent, the current request message includes search condition information;Worked as according to described Preceding request message, whether judgement has in the ticket information being locally stored in corresponding cache-time meets the searching bar The ticket information of part;Wherein, the ticket information being locally stored is that the ticketing service offer server was received according to before Historical requests message meets search condition and is stored in local ticket information from what Ticketing Centre's server was obtained;It is described local The corresponding cache-time of the ticket information of storage is search condition information and historical search in the historical requests message What object information was calculated;Meet the searching bar when having in the ticket information being locally stored in correspondence cache-time During the ticket information of part, the ticket information for meeting search condition is obtained;Send the ticket information for meeting search condition To the client.Because the corresponding cache-time of the ticket information of the local cache in local cache database is according to history What search condition information and historical search object information in request message were calculated, therefore ticket information is improve local The reasonability of cache-time, alleviates the access burden of Ticketing Centre's server, improves Consumer's Experience.
The system architecture that the searching method of the application ticket information is applied is introduced first below, as shown in figure 1, the system Including:Ticketing Centre's server, multiple ticketing services provide clients 1,2 ..., N, and with client 1,2 ..., N it is right respectively Multiple ticketing services for answering provide server 1,2 ..., N.Ticketing service provides customer end A and is providing server A transmission search ticket to ticketing service After the request message of business information, ticketing service provides server A and is searched for first in local cache information database and meets search condition Ticket information, and the ticket information for meeting search condition that will be searched send to ticketing service provide customer end A shown.Such as The ticket information of search condition is met in the local cache information database of fruit ticketing service offer server A, then ticketing service is carried The request message of search ticket information can be sent to Ticketing Centre's server for server A, Ticketing Centre's server will meet The ticket information of search condition sends to ticketing service and provides server A, and now ticketing service provides the ticketing service that server A will can be received Information is saved in local cache information database, and by the ticket information be sent to ticketing service provide customer end A shown.By The ticket information provided in Ticketing Centre's server is that multiple ticketing services offer servers are shared, therefore ticketing service provides server It is very important in the time length of local cache ticket information.In the application, ticketing service provides being locally stored for server The corresponding cache-time of ticket information is search condition information and historical search object information meter in historical requests message Obtain, rather than what is set by user's subjectivity, therefore can greatly improve conjunction of the ticket information in the local cache time Rationality, reduces the search time of user, and reduces the cost for calling external service.
Describe for convenience, in the embodiment of the present application by taking the search of air ticket as an example, describe the searching method of ticket information, but It is protection domain that air ticket is not limited to the application, the ticket information can also be fire in addition to can be for ticket information The various ticket informations such as ticket, the admission ticket of concert.
As shown in Fig. 2 a kind of flow chart of the searching method of its ticket information provided for the embodiment of the present application.The implementation Example main body is that ticketing service provides server, which describes in detail how searching for the ticket information that meets condition, and shows user. The searching method of the embodiment of the present application ticket information specifically includes following steps:
Step 21, ticketing service provides the current request message that server receives the search ticket information that client sends, described Current request message includes search condition information;
When user needs booking tickets on net, an air ticket flight search system can be logged in, and by system client to clothes Business device sends a request message for search ticket information, carry search condition information in the request message, and such as air ticket goes out Hair city, arrival city, date, the type (such as economy class, first-class cabin, business class) of air ticket.
Step 22, according to the current request message, judges the ticketing service being locally stored in corresponding cache-time Whether the ticket information that meets the search condition is had in information;Wherein, the ticket information being locally stored is the ticketing service The historical requests message that offer server was received according to before meets search condition and deposits from what Ticketing Centre's server was obtained It is stored in local ticket information;The corresponding cache-time of the ticket information being locally stored is according to the historical requests message In search condition information and historical search object information be calculated;
After ticketing service provides server gets corresponding ticket information from Ticketing Centre's server, for convenience in user Corresponding Query Result rapidly is shown to user when inquiring about the ticket information, ticketing service provides server and will can be taken from Ticketing Centre The ticket information that business device gets is stored in local local cache information database.
Specifically, after user end to server sends the request message of search ticket information, server both can be at this The ticket information for meeting search condition is searched in ground cache information database, it is also possible to obtain corresponding from Ticketing Centre's server Ticket information, and the ticket information got from Ticketing Centre's server is stored in local cache information database, and The ticket information is stored in the searching bar of corresponding cache-time in local cache information database in historical requests message Part information and historical search object information are calculated.The time that ticket information is stored in local cache information database surpasses When crossing cache-time, server deletes the ticket information for this being exceeded cache-time from local cache information database.
Alternatively, the calculating of ticket information correspondence cache-time can be calculated according to day, it is also possible to according to the moon, week Calculate, can also be calculated according to season, for example, the departure time interval of the time flight corresponding with air ticket when user's inquiry air ticket During less than one month, the air ticket Query Result can be calculated according to day in local cache-time;When user's inquiry air ticket The departure time of time flight corresponding with air ticket is spaced during more than one month, can be tied according to air ticket inquiry is calculated in the moon or season Fruit is in local cache-time;It is spaced more than a season when the departure time of the time flight corresponding with air ticket of user's inquiry air ticket When spending, the air ticket Query Result can be calculated in local cache-time according to season calculating.
The server of air ticket flight search system is received user and is disappeared by the request that client sends search ticket information After breath, can first determine whether whether there is the ticket information for meeting search condition in local cache information database, if can be local The ticket information for meeting search condition is searched in cache information database, then performs step 23.
The cache-time in local cache information database is stored in for ticket information, the application is according to actual user The data that behavior is produced are calculated.Specifically, the data for being produced according to actual user's behavioral data are calculated, specifically can be with It is that a cache-time computation model is produced according to actual user's behavioral data, the model coefficient of cache-time computation model can be with Constantly corrected with the increase of user behavior data amount, the cache-time computation model for drawing also constantly is repaiied therewith Just, the cache-time for being drawn using cache-time computation model also can be more reasonable.
Specifically, in order to draw more accurately cache-time computation model, first have to determine influence ticket information at this The factor of the time of ground caching, including:Ticketing service reservation date, the time interval was general apart from the time interval of ticketing service use date In units of day, if its variable is x;Whether ticketing service belongs to festivals or holidays using day, if be festivals or holidays configured information to strain It is y to measure, and it is typically very fast that the ticketing service of festivals or holidays can sell number of variations;The popular degree of ticketing service, can be with the historical search of user time Number is foundation, if its variable is z;The type of ticketing service, such as general type, luxurious type, commercial type, the affiliated grade of ticketing service are got over Height, can sell that number is fewer, and the change that it can sell number influences bigger to the accuracy that can sell number, if its variable is w;Ticketing service number How much is purpose, if its variable is v;When cache-time is p, whether ticket information subscribes successful identification information, if its variable It is q.
After ticketing service provides the current request message that server receives the search ticket information that client sends, server The search condition information in current request message will also be recorded as the search condition information in historical requests message, and recorded The corresponding Search Results of the request message as historical search object information, so when cache-time computation model is calculated below Just cache-time can be calculated using the model.
After user's search ticket information, general or execution ticket booking operation, and record whether correspondence ticketing service subscribes successfully Identification information.And over time, the search condition information of the historical requests message according to record, statistics is directed to The search frequency of the ticket information, obtains the popular degree of the ticket information correspondence ticketing service.
For example, variable x can provide server by ticketing service receives the time of searching request and making for ticketing service by calculating Obtained with the difference of time, such as user inquired about the information of certain flight of August 15 in 2012 in August 1 in 2012, then The value of x variables is 14 days;And the popular degree of ticketing service can be then that foundation is configured according to the historical search number of times of user, example Such as, the searching times of the ticket information of certain flight are daily 100000 times, then the value of y variables is hot topic.
Wherein, correspondence cache-time is negatively correlated with the popular degree of the corresponding ticketing service of the ticket information, i.e. ticketing service is popular Degree is higher, and cache-time is smaller, and ticketing service popular degree is lower, and cache-time is more long;The correspondence cache-time and the ticket Whether the corresponding ticketing service of business information subscribes successfully negatively correlated, i.e. ticketing service is subscribed when successfully, and cache-time is smaller, ticketing service reservation not into During work(, cache-time is more long;Whether the correspondence cache-time is section with the use time of the corresponding ticketing service of the ticket information Holiday is negatively correlated, i.e., if festivals or holidays, then cache-time is shorter, if not being festivals or holidays, cache-time is more long;It is described right The use time of cache-time and the corresponding ticketing service of the ticket information is answered apart from the time interval positive correlation of ticket query time, I.e. time interval is more long, and cache-time is more long, and time interval is shorter, and cache-time is shorter;It is described correspondence cache-time with it is described The number positive correlation of the corresponding ticketing service of ticket information, i.e. ticketing service number is bigger, and cache-time is more long, during the smaller caching of ticketing service number Between it is shorter.
And the search condition in the corresponding cache-time according to the ticket information being locally stored and the historical requests message The correlation of the search parameter in information, and the corresponding cache-time of the ticket information being locally stored is believed with the ticketing service Whether the corresponding ticketing service of breath subscribes successful negative correlation, can be that the search parameter and the historical search result are set Corresponding weight is worth to cache-time computation model, is calculated using cache-time computation model, you can obtain the ticket The corresponding cache-time of business information.
For example, for air ticket, variable x can represent time interval of the plane ticket booking date from the date;Variable y Can indicate whether to be festivals or holidays;Variable z can represent the popular degree in air ticket course line;Variable w can represent the type of boat position, Such as economy class, first-class freight space, public affair freight space, the freight space number of first-class cabin are few, therefore, even if reducing by a first-class freight space, The accuracy that pair can sell freight space number is also what is had a significant impact;Variable v represents the number of freight space number, and variable q represents ticket information Whether make a reservation for successfully.
It is determined that, it is necessary to determine the formula of cache-time computation model again after the factor of influence ticket information cache-time, should Formula can be the formula that linear formula, exponential formula, logarithmic formula or polytype formula are combined, computation model formula Type can be by the correlation of each Variable Factors, such as linear correlation, correlation of indices, logarithm are related determines.
It should be noted that whether whether rationally computation model formula, can be succeeded by user's predetermined ticketing service that places an order To verify.For example, when user is by air ticket flight search system predetermined air ticket, system server is first by the corresponding of local cache The ticket information of flight, including the flight the remaining seat sold number, if can sell remaining seat digital display shows also remaining air ticket Can buy, when user places an order purchase, system server meeting real-time calling external service is obtained by Ticketing Centre's server Whether taking most can accurately sell seating capacity, and provide the successful prompt message of order.Therefore, it can whether make a reservation for into by air ticket Whether work(is reasonable to verify the local cache time, and then verifies whether the cache-time computation model for being used for calculating cache-time closes Reason.
Its model can be obtained by following steps:According to search condition information, the property value of x variables, y variables are obtained Property value, the property value of z variables, the property value of w variables, the property value of v variables, the property value of q variables, wherein, q variables are ticket Whether the corresponding ticketing service of business information subscribes successful identification information, and x variables are ticketing service use time apart from the ticket query time Time interval, y variables be ticketing service use time whether be festivals or holidays configured information, z variables for ticketing service popular degree, w become The type for ticketing service is measured, v variables are the number of ticketing service;According to default cache-time initial value p, and first day all The property value of the corresponding x variables of request message, the property value of y variables, the property value of z variables, the property value of w variables, v variables The property value of property value, q variables, the cache-time computation model of first day is calculated by least square method, wherein, p becomes It is cache-time to measure;The request message of the search ticket information that the client sends is received when i+1 day and from described Ticketing Centre's server is obtained when meeting the ticket information of the search condition information, and mould is calculated using the cache-time of i-th day Type is calculated, the ticket information for meeting search condition information for being searched in the cache-time being locally stored, to obtaining The property value of the corresponding p variables of all request messages of the i+1 day for arriving, the property value of x variables, the property value of y variables, z become The property value of amount, the property value of w variables, the property value of v variables, the property value of q variables and corresponding cache-time are by minimum Square law is calculated the cache-time computation model of i+1 day, and wherein i is the integer value more than or equal to 1.
Specifically, it is daily by collecting user when the formula that cache-time computation model is described below is linear formula Inquiry data come the value of computation model coefficient, the method for drawing cache-time computation model.After starting server, server is the Cache-time p was set to initial value p0 in one day, such as 10 minutes, then collects user's flight inquiring data of first day, obtained One group of variate-value (x11, y11, z11, w11, v11, q11), (x12, y12, z12, w12, v12, q12) ... ..., (x1n, y1n, Z1n, w1n, v1n, q1n), wherein, n represents the flight inquiring data amount check being collected into for first day, for linear formula p=ax+ By+cz+dw+ev+fq, according to this group of variate-value being collected into, can be calculated using the least square method in statistical analysis The value of equation coefficients a, b, c, d, e, f is respectively a1, b1, c1, d1, e1, f1, draws cache-time computation model p=a1x+b1y +c1z+d1w+e1v+f1q.In i+1 day, ticketing service provides the request that server receives the search ticket information of user's transmission During message, if there is no the corresponding ticket information of the request message in local cache information database, from Ticketing Centre's service Device obtains corresponding ticket information, and the request message is drawn into corresponding variate-value (x (i+1) 1, y (i+1) 1, z (i+1) 1, w (i+1) 1, v (i+1) 1, q (i+1) 1) bring computation model p=aix+biy+ciz+diw+eiv+fiq into, obtain cache-time p's The ticketing service letter that value p (i+1) 1, i.e. server will can get from Ticketing Centre's server is stored in local cache information data The time of the length of p (i+1) 1 in storehouse, for each inquiry request received in i+1 day, p=aix+biy can be used + ciz+diw+eiv+fiq models calculate the cache-time of ticket information.At the end of i+1 day, collection in second day can be counted The inquiry data for arriving, obtain one group of variate-value (x (i+1) 1, y (i+1) 1, z (i+1) 1, w (i+1) 1, v (i+1) 1, q (i+1) 1), (x (i+1) 2, y (i+1) 2, z (i+1) 2, w (i+1) 2, v (i+1) 2, q (i+1) 2), ..., (x (i+1) n, y (i+1) n, z (i+ 1) n, w (i+1) n, v (i+1) n, q (i+1) n), wherein, n represents the flight inquiring data amount check that i+1 day is collected into, for line Property formula p=ax+by+cz+dw+ev+fq, according to this group of variate-value being collected into, uses the least square in statistical analysis Method can calculate value respectively a (i+1), b (i+1), c (i+1), d (i+1), e (i+1), the f of equation coefficients a, b, c, d, e, f (i+1) cache-time computation model p=a (i+1) x+b (i+1) y+c (i+1) z+d (i+1) w+e (i+1) v+f (i+1) q, is drawn, Wherein, i be more than or equal to integer value.The like, use least square method according to all inquiry data being collected into daily Daily cache-time computation model can be obtained, and after being calculated using the cache-time computation model for calculating daily The cache-time of the ticket information for searching for a day.
Equally, the moon, model can be obtained by following steps:According to search condition information, property value, the y of x variables are obtained The property value of variable, the property value of z variables, the property value of w variables, the property value of v variables, the property value of q variables, wherein, q becomes Measure as whether the corresponding ticketing service of ticket information subscribes successful identification information, x variables are ticketing service use time apart from ticket query The time interval of time, y variables be ticketing service use time whether be festivals or holidays configured information, z variables for ticketing service popular journey Degree, w variables are the type of ticketing service, and v variables are the number of ticketing service;According to default second cache-time initial value, and first Property value, the property value of y variables, the property value of z variables, the property value of w variables, the category of v variables of all of x variables of individual month Property value, the property value of q variables, the cache-time computation model of first month is calculated by least square method;When i+1 Receive the request message of the search ticket information that the client sends the moon and obtain full from Ticketing Centre's server During the ticket information of the foot search condition information, calculated using the cache-time computation model of i-th month, searched for To the ticket information for meeting search condition information in the cache-time p being locally stored, the institute of the i+1 month to getting The property value of some x variables, the property value of y variables, the property value of z variables, the property value of w variables, the property value of v variables, q become The property value of amount and corresponding cache-time are calculated the cache-time computation model of i+1 month by least square method, Wherein, i is the integer value more than or equal to 1.
Season, model can be obtained by following steps:According to search condition information, property value, the y variables of x variables are obtained Property value, the property value of z variables, the property value of w variables, the property value of v variables, the property value of q variables, wherein, q variables are Whether the corresponding ticketing service of ticket information subscribes successful identification information, and x variables are ticketing service use time apart from the ticket query time Time interval, y variables be ticketing service use time whether be festivals or holidays configured information, z variables for ticketing service popular degree, w Variable is the type of ticketing service, and v variables are the number of ticketing service;According to default 3rd cache-time initial value, and the first season Property value, the property value of y variables, the property value of z variables, the property value of w variables, the attribute of v variables of all of x variables of degree Value, the property value of q variables, the cache-time computation model of first quarter is calculated by least square method;When i+1 Receive the request message of the search ticket information that the client sends season and obtained from Ticketing Centre's server When meeting the ticket information of the search condition information, calculated using the cache-time computation model in i-th season, obtained The ticket information for meeting search condition information for searching in the cache-time p being locally stored, to the i+1 season for getting All of x variables property value, the property value of y variables, the property value of z variables, the property value of w variables, the attribute of v variables Value, the property value of q variables and corresponding cache-time are calculated the cache-time meter in i+1 season by least square method Model is calculated, wherein, i is the integer value more than or equal to 1.
Step 23, when there is the ticketing service that meets the search condition in the ticket information being locally stored in cache-time During information, the ticket information for meeting search condition is obtained;
Step 24, sends the ticket information for meeting search condition to the client.
When having the ticket information for meeting search condition in local cache information database, server can directly from database The middle acquisition corresponding ticket information of the request message, and send to client and shown.
Thus, the application realizes ticketing service and provides the current request that server receives the search ticket information that client sends Message, the current request message includes search condition information;According to the current request message, judge in corresponding slow Whether deposit in the ticket information being locally stored in the time has the ticket information for meeting the search condition;Wherein, it is described local The ticket information of storage is that the historical requests message that the ticketing service offer server was received according to before is serviced from Ticketing Centre What device was obtained meets search condition and is stored in local ticket information;During the correspondence caching of the ticket information being locally stored Between be that search condition information and historical search object information in the historical requests message is calculated;When in right Answer in the ticket information being locally stored in cache-time when having the ticket information for meeting the search condition, obtain the satisfaction The ticket information of search condition;Send the ticket information for meeting search condition to the client.Due to local cache number According to the corresponding cache-time of the ticket information of the local cache in storehouse be search condition information in historical requests message and Historical search object information is calculated, therefore improves reasonability of the ticket information in the local cache time, alleviates ticket The access burden of business central server, improves Consumer's Experience.
As shown in Fig. 2 in a preferred embodiment, after step 22, also including:
Step 25, obtains from Ticketing Centre's server and meets the ticket information of search condition and be sent to client.
The step specifically may include:Searched when described in no satisfaction in the ticket information being locally stored in cache-time During the ticket information of rope condition, the request message of the search ticket information is sent to Ticketing Centre's server;Receive institute The ticket information for meeting search condition that Ticketing Centre's server sends is stated, according to the search condition information and cache-time meter Calculate model and calculate the ticket information storage for meeting search condition in local cache-time, and the satisfaction that will be received The ticket information storage of search condition is performed and sends the ticket information for meeting search condition to the client local The step of being shown.
Preferably, after ticket information to the client for meeting search condition is sent, also include:Receive institute State the reservation message of the corresponding ticketing service of the reservation ticket information of client transmission;It is corresponding predetermined according to the reservation message As a result, whether the corresponding ticketing service for recording the ticket information subscribes successful identification information, and changes the ticketing service being locally stored Information.
The value of each model variable of cache-time computation model can provide reality of the server according to user by ticketing service Searching request and reservation request are obtained.For example:Whether make a reservation for successful identification information for ticketing service, clothes can be provided by ticketing service Business device is obtained according to the actual predetermined result record of user, and the popular degree of ticketing service can provide server according to connecing by ticketing service The historical search number of times assessment for the ticket information for receiving is obtained.
After corresponding ticket information being got from Ticketing Centre's server, can be according to the above-mentioned calculating local cache time Method calculates the local cache time of the ticket information, when the time that ticket information is preserved in local cache information database During more than the local cache time, the ticket information is deleted from local cache information database.
Correspondingly, the embodiment of the present application additionally provides a kind of server, as shown in figure 3, it is provided for the embodiment of the present application A kind of server schematic diagram.As shown in figure 3, the server includes:
Receiving unit 31, the current request for providing the search ticket information that server receives client transmission for ticketing service disappears Breath, the current request message includes search condition information;
Judging unit 32, for according to the current request message, judging locally depositing in corresponding cache-time Whether the ticket information that meets the search condition is had in the ticket information of storage;Wherein, the ticket information that is locally stored is The satisfaction search that the historical requests message that the ticketing service offer server was received according to before is obtained from Ticketing Centre's server Condition is simultaneously stored in local ticket information;The corresponding cache-time of the ticket information being locally stored is according to the history What search condition information and historical search object information in request message were calculated;
Acquiring unit 33, searches for that ought be in have described in satisfaction in the ticket information being locally stored in correspondence cache-time During the ticket information of rope condition, the ticket information for meeting search condition is obtained;
First transmitting element 34, for sending the ticket information for meeting search condition for searching to the client End.
The server may also include:Second transmitting element 35, for what ought be locally stored in correspondence cache-time When the ticket information of the search condition is not met in ticket information, the search ticket is sent to Ticketing Centre's server The request message of business information;Processing unit 36, for receiving and store that Ticketing Centre's server sends meet searching bar To local, search condition information and historical search object information in historical requests message are calculated and received the ticket information of part The ticket information for arriving is stored in local corresponding cache-time, and performs the transmission ticket information for meeting search condition The step of to the client.
Thus, the application realizes ticketing service and provides the current request that server receives the search ticket information that client sends Message, the current request message includes search condition information;According to the current request message, judge in corresponding slow Whether deposit in the ticket information being locally stored in the time has the ticket information for meeting the search condition;Wherein, it is described local The ticket information of storage is that the historical requests message that the ticketing service offer server was received according to before is serviced from Ticketing Centre What device was obtained meets search condition and is stored in local ticket information;During the correspondence caching of the ticket information being locally stored Between be that search condition information and historical search object information in the historical requests message is calculated;When in right Answer in the ticket information being locally stored in cache-time when having the ticket information for meeting the search condition, obtain the satisfaction The ticket information of search condition;Send the ticket information for meeting search condition to the client.Due to local cache number According to the corresponding cache-time of the ticket information of the local cache in storehouse be search condition information in historical requests message and Historical search object information is calculated, therefore improves reasonability of the ticket information in the local cache time.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, hard in order to clearly demonstrate The interchangeability of part and software, generally describes the composition and step of each example according to function in the above description. These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme. Professional and technical personnel can realize described function to each specific application using distinct methods, but this realization It is not considered that exceeding scope of the present application.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination is implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described specific embodiment, purpose, technical scheme and beneficial effect to the application have been carried out further Describe in detail, should be understood that the specific embodiment that the foregoing is only the application, be not used to limit the application Protection domain, all any modification, equivalent substitution and improvements within spirit herein and principle, done etc. all should include Within the protection domain of the application.

Claims (8)

1. a kind of searching method of ticket information, it is characterised in that methods described includes:
Ticketing service provides the current request message that server receives the search ticket information that client sends, the current request message Include search condition information;
According to the current request message, judge whether have in the ticket information being locally stored in corresponding cache-time Meet the ticket information of the search condition;Wherein, the ticket information being locally stored is that the ticketing service provides server root Meet search condition and be stored in local ticket from what Ticketing Centre's server was obtained according to the historical requests message for receiving before Business information;The corresponding cache-time of the ticket information being locally stored is the search condition in the historical requests message What information and historical search object information were calculated;
When having the ticket information for meeting the search condition in the ticket information being locally stored in correspondence cache-time, Obtain the ticket information for meeting search condition;
Send the ticket information for meeting search condition to the client;
Wherein, the corresponding cache-time of the ticket information being locally stored is the searching bar in the historical requests message What part information and historical search object information were calculated is specially:Correspondence caching according to the ticket information being locally stored The correlation of the search parameter in search condition information in time and the historical requests message, and described be locally stored Whether the corresponding cache-time of ticket information subscribes successful negative correlation with the corresponding ticketing service of the ticket information, it is determined that described Search parameter and the corresponding weighted value of historical search result are simultaneously calculated, and obtain the correspondence caching of the ticket information Time.
2. the searching method of ticket information according to claim 1, it is characterised in that when the judgement is in correspondence caching Whether have in the interior ticket information being locally stored after the ticket information for meeting the search condition, also include:
When the ticket information that the search condition is not met in the ticket information being locally stored in correspondence cache-time When, the request message of the search ticket information is sent to Ticketing Centre's server;
The ticket information for meeting search condition that Ticketing Centre's server sends is received and stored to local;
Search condition information and historical search object information in historical requests message calculate the ticket information for receiving and deposit Storage performs transmission and described meets the ticket information of search condition to the step of the client in local corresponding cache-time Suddenly.
3. the searching method of ticket information according to claim 1 and 2, it is characterised in that ticketing service provides server and receives After the current request message of the search ticket information that client sends, also include:Record the institute in the current request message Search condition information is stated as the search condition information in the historical requests message, and records the current request message pair The search result information answered is used as the historical search object information.
4. the searching method of ticket information according to claim 3, it is characterised in that the transmission is described to meet searching bar After the ticket information of part to the client, also include:
Receive the reservation message of the corresponding ticketing service of the reservation ticket information that the client sends;
According to the corresponding predetermined result of the reservation message, whether the corresponding ticketing service for recording the ticket information subscribes successfully mark Knowledge information, and change the ticket information being locally stored.
5. the searching method of ticket information according to claim 4, it is characterised in that methods described also includes:
The search condition information of the historical requests message according to record, statistics is directed to the search of the ticket information frequently It is secondary, obtain the popular degree of the ticket information correspondence ticketing service.
6. the searching method of ticket information according to claim 5, it is characterised in that searching in the historical requests message Rope conditional information includes one or more in following search parameters:The popular degree of ticketing service, the use time of ticketing service whether be Festivals or holidays, ticketing service use time apart from the time interval of ticket query time, the number of ticketing service, ticketing service type;
The historical search object information includes:Whether the corresponding ticketing service of the ticket information subscribes successful identification information.
7. the searching method of ticket information according to claim 6, it is characterised in that the correspondence cache-time with it is described The popular degree of the corresponding ticketing service of ticket information is negatively correlated, and the correspondence cache-time is with the corresponding ticketing service of the ticket information No to subscribe successfully negatively correlated, whether the correspondence cache-time is false section with the use time of the corresponding ticketing service of the ticket information Day is negatively correlated, described to correspond to cache-time with the use time of the corresponding ticketing service of the ticket information apart from the ticket query time Time interval positive correlation, the number positive correlation for corresponding to cache-time and the corresponding ticketing service of the ticket information.
8. a kind of server, it is characterised in that the server includes:
Receiving unit, the current request message that server receives the search ticket information that client sends, institute are provided for ticketing service Stating current request message includes search condition information;
Judging unit, for according to the current request message, judging the ticket being locally stored in corresponding cache-time Whether the ticket information that meets the search condition is had in business information;Wherein, the ticket information being locally stored is the ticket The historical requests message that business offer server was received according to before meets search condition simultaneously from what Ticketing Centre's server was obtained It is stored in local ticket information;The corresponding cache-time of the ticket information being locally stored is disappeared according to the historical requests What search condition information and historical search object information in breath were calculated;
Acquiring unit, the search condition is met for that ought be in have in the ticket information being locally stored in correspondence cache-time Ticket information when, obtain the ticket information for meeting search condition;
Transmitting element, for sending the ticket information for meeting search condition to the client;
The corresponding cache-time of the ticket information being locally stored is the search condition letter in the historical requests message What breath and historical search object information were calculated is specially:According to the corresponding cache-time of the ticket information being locally stored With the correlation of the search parameter in the search condition information in the historical requests message, and the ticketing service being locally stored Whether the corresponding cache-time of information subscribes successful negative correlation with the corresponding ticketing service of the ticket information, determines the search Parameter and the corresponding weighted value of historical search result are simultaneously calculated, when obtaining the correspondence caching of the ticket information Between.
CN201210382054.XA 2012-10-10 2012-10-10 The searching method and server of ticket information Active CN103729353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210382054.XA CN103729353B (en) 2012-10-10 2012-10-10 The searching method and server of ticket information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210382054.XA CN103729353B (en) 2012-10-10 2012-10-10 The searching method and server of ticket information

Publications (2)

Publication Number Publication Date
CN103729353A CN103729353A (en) 2014-04-16
CN103729353B true CN103729353B (en) 2017-05-31

Family

ID=50453431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210382054.XA Active CN103729353B (en) 2012-10-10 2012-10-10 The searching method and server of ticket information

Country Status (1)

Country Link
CN (1) CN103729353B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105023049B (en) * 2014-04-30 2019-09-10 中国电信股份有限公司 In the method, system and overload protection arrangement of line selection seat
CN104268281B (en) * 2014-10-17 2018-10-16 上海携程商务有限公司 Optimize the search system and method for place keyword when subscribing ticketing service
CN104537563B (en) * 2015-01-05 2019-02-15 中国农业银行股份有限公司 A kind of quota data processing method and server
CN104794191B (en) * 2015-04-16 2018-05-15 北京京东尚科信息技术有限公司 A kind of method and apparatus for air ticket data update
CN106557823A (en) * 2015-09-25 2017-04-05 百度在线网络技术(北京)有限公司 The loading method and device of seating maps
CN105740480B (en) * 2016-03-29 2019-05-31 上海携程商务有限公司 Air ticket recommended method and system
CN105897556A (en) * 2016-05-12 2016-08-24 湖南汇博电子技术有限公司 Information acquisition method and system and server
CN105825735A (en) * 2016-05-19 2016-08-03 成都零线科技有限公司 Airport ticketing simulation system
CN106023702A (en) * 2016-05-19 2016-10-12 成都零线科技有限公司 Airport ticket service simulation system and implementation method thereof
CN106023700A (en) * 2016-05-19 2016-10-12 成都零线科技有限公司 Airport ground service simulation system and implementation method thereof
CN107885743A (en) * 2016-09-29 2018-04-06 南京途牛科技有限公司 Position querying method more than a kind of flight based on caching
CN107948230B (en) * 2016-10-13 2021-07-30 北京京东尚科信息技术有限公司 Method and device for determining cache time of data from server
CN108228582B (en) * 2016-12-09 2022-02-18 阿里巴巴集团控股有限公司 Searching method and device
CN108268559A (en) * 2017-01-04 2018-07-10 阿里巴巴集团控股有限公司 Information providing method and device based on ticketing service search
CN108287757A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 The method and device that a kind of data acquisition, data are shown
CN106920149B (en) * 2017-02-28 2020-10-30 武汉大学 Method for supporting multi-party networking ticket business
CN107301215B (en) * 2017-06-09 2020-12-18 北京奇艺世纪科技有限公司 Search result caching method and device and search method and device
CN107291901A (en) * 2017-06-23 2017-10-24 携程旅游网络技术(上海)有限公司 Main passive combination obtains method, system, equipment and the storage medium of air ticket data
CN110417836A (en) * 2018-04-28 2019-11-05 阿里巴巴集团控股有限公司 A kind of processing method of business datum, processing unit and processing system
CN108628998B (en) * 2018-05-02 2021-02-23 百度在线网络技术(北京)有限公司 Air ticket checking and booking ratio control method, device, server and storage medium
CN110460902B (en) * 2018-05-08 2022-02-22 腾讯科技(深圳)有限公司 Media information playing method and device, storage medium and electronic device
CN110866206B (en) * 2018-08-27 2023-04-18 阿里巴巴集团控股有限公司 Data update setting method and device
CN111611283A (en) * 2020-05-27 2020-09-01 贝壳技术有限公司 Data caching method and device, computer readable storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934717B1 (en) * 1995-12-01 2005-08-23 British Telecommunications Public Limited Company Database access
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101458706A (en) * 2008-11-11 2009-06-17 航旅信通(北京)信息技术有限公司 Method and system for precisely enquiring GDS flight caching data
CN102254001A (en) * 2011-07-14 2011-11-23 青岛海信网络科技股份有限公司 Efficient data management method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934717B1 (en) * 1995-12-01 2005-08-23 British Telecommunications Public Limited Company Database access
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101458706A (en) * 2008-11-11 2009-06-17 航旅信通(北京)信息技术有限公司 Method and system for precisely enquiring GDS flight caching data
CN102254001A (en) * 2011-07-14 2011-11-23 青岛海信网络科技股份有限公司 Efficient data management method and system

Also Published As

Publication number Publication date
CN103729353A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN103729353B (en) The searching method and server of ticket information
Mao et al. Faster deliveries and smarter order assignments for an on-demand meal delivery platform
CA2821095C (en) System and method for detecting fraudulent account access and transfers
US9002774B2 (en) Systems and methods for generating a forecasting model and forecasting future values
CN107146089A (en) The single recognition methods of one kind brush and device, electronic equipment
Vergori Forecasting tourism demand: the role of seasonality
CN108269087A (en) The processing method and processing device of location information
CN107784577A (en) A kind of credit product distribution and recommendation method and the system for realizing this method
CN107103548A (en) The monitoring method and system and risk monitoring and control method and system of network behavior data
CN104166663A (en) Taxi taking position recommending system and method based on multiple dimensions
Hensher et al. Valuing travel time variability within a rank-dependent utility framework and an investigation of unobserved taste heterogeneity
CN107480624A (en) Permanent resident population's acquisition methods, apparatus and system, computer installation and storage medium
CN105303418A (en) Site selection method and device
CN110175869A (en) Vehicle allocation method and device, electronic equipment and computer readable storage medium
CN114880581A (en) User data processing method, storage medium and electronic device
CN113724067A (en) Receiving method, storage medium and device
CN109325657A (en) A kind of measures and procedures for the examination and approval of credit operation, storage medium and server
US20150302522A1 (en) Weather related purchase guaranty for payment networks
CN113888312A (en) Method, device, electronic equipment and medium for determining business quota
CN107038537A (en) A kind of city rail traffic evaluation method and device
CN111753386B (en) Data processing method and device
CN111476613A (en) Shopping guide auxiliary method and device based on passenger flow analysis, server and storage medium
CN110473016A (en) Data processing method, device and storage medium
CN110400106A (en) Information acquisition method, device and electronic equipment
CN109656972A (en) The determination method and device of region public security degree

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant