Preferred embodiment
Advantages of the present invention, feature and reach the method for the purpose will be bright by attached drawing and subsequent detailed description
Really.
This application involves to search refer to user access website when occur browsing webpage after search information, pays attention to search for
Interior identical web page browsing can be merged, therefore be not in similar A->The search information of A.
Using markov random walk model, algorithm idea and PageRank algorithms are similar:
1) it is repeatedly quoted by other websites according to one website of fruit, then this website may be important;2) station
Although point is not quoted repeatedly, quoted by an important website, this website may also be important;3) station
The importance of point can be transmitted to the website cited in it by link.Assuming that user by network linking it is random between website it is clear
It lookes at, will be jumped in other websites at random when user does not have specific interest and continue to browse
Based on vocabulary in its most basic deployment, Fig. 1 be according to the present invention tracking cookie longest browse search
The method flow diagram of Suo Changdu.
Shown in Fig. 1, the method for the longest browsing search length of tracking cookie includes according to lower step:
Step T10, tracks the search deployment information for the browsing search listing disposed in advance, and search deployment information includes:It searches
The banner of each webpage, the browsing search length of each webpage and previous browsing search length in rope browsing list.
Step T30, acquisition user browses within the cookie stages searches for information caused by webpage, and search information includes:
The banner of each webpage in the cookie stages.Preferably, the search information in the step is to obtain the number of user's web page browsing
According to.
Search information and search deployment information are compared step T50, and each webpage is after comparison in tracking cookie
Obtain browsing search length and previous browsing search length.
Step T70 obtains browsing search length and previous browsing search length according to each webpage in cookie after comparison
Degree, the purpose search length of each webpage in cookie is arranged.
Step T90 calculates the mesh that each webpage in cookie obtains previous browsing search length and each webpage after comparison
Search length phase difference, generate cookie in each webpage browsing search length phase difference.
The webpage that browsing search length phase difference is 1 in step T110, extraction cookie, according to browsing search length difference
The longest that browsing search length corresponding to webpage of the number for 1 tracks cookie browses search length.
In the application is above-mentioned, within the stage that user initiates a cookie, it can be searched based on deployed good browsing
The search deployment information of Suo Liebiao, to determine the browsing search length and previous browsing step of each webpage in current cookie
Suddenly, it to which the purpose search length of each webpage in cookie further be arranged, is finally obtained after comparison according to each webpage previous
The purpose search length of browsing search length and each webpage carries out the browsing search length phase difference that each webpage is calculated, most
Search length is browsed by the longest for obtaining current cookie of screening afterwards.
The step of the application is above-mentioned interior, the search deployment information for the browsing search listing that step T10 trackings are disposed in advance can
To include according to lower realization method:
Step T1, deployment browse the access order of webpage and webpage in search listing.Preferably, which can lead to
The access search in administration of customer department browsing search listing is crossed, access search includes the access of the webpage information and webpage that access
Sequentially.
Step T2 searches for length to the banner of each webpage of Web Page Tags in browsing search listing, the browsing of each webpage
Degree and previous browsing search length.Preferably, which can be that the flag of current search length is stamped in each browsing search, can be with
Browsing search length including current web page and previous browsing search length.
Step T3, the browsing search length that setting browses the last one webpage in search listing are special search length
Value.Preferably, whether that step which may be implemented to finally complete is deployed to particular value, completed with distinguishing.
Preferably, above-mentioned steps obtain the search browsing list disposed, the search browsing list can by client according to
Disposed according to predetermined information, search for deployment information in have recorded search browsing list in each webpage deployment search browsing list
Interior browsing search length and previous browsing search length, meanwhile, net when being browsed successfully in search browsing list can be set
The particular value of page, you can corresponding particular value is arranged in webpage when being completed for the search browsing list, and example is according to particular value can
With according to 100.
In the application is above-mentioned, step T50 will search for information and search deployment information is compared, and track each in cookie
It may include according to lower realization method that webpage obtains browsing search length and the step of previous browsing search length after comparison:
Step T501, by the webpage of each webpage in the banner of each webpage in the cookie stages and search browsing list
Mark is extracted, and the webpage that there is same web page to identify is obtained.Preferably, it is the search information that user is carried out to web page browsing
And search deployment information is compared in it, and step T502 is successfully executed in the case that comparing.
Step T502, the browsing search length of webpage in extraction search browsing list with same web page mark and preceding
Browsing search length and previous browsing search length are assigned to the webpage in cookie, are searched by secondary browsing search length
The browsing search length of each webpage and previous browsing search length in rope information.Each webpage i.e. in output search information
Cookie is identified, and searches for the current search length in deployment information and a upper search length.
The application above-mentioned steps T501 to step T503 is realized, after getting the web page browsing of user, note
The search information of this browsing is recorded, which records the web page contents and browsing sequence of this web page browsing.According to upper
The search deployment information for stating the search browsing list of deployment, processing, as user are compared to the search information of this browsing
Each web page browsing compared accordingly, when this browsing search information be included in search browsing list in, then compare
Success then records the search browsing search length of each webpage in the search of this browsing, and the upper search length of search browsing
Degree.
Preferably, in the application, user can send out multiple cookie, and each cookie will include multiple web page access,
It is just described in detail below to above-mentioned by taking cookiePage1, Page2, Page3, Page4 as an example.
The source data that above-mentioned steps T501 is tracked after being executed to step T503 can be preserved in the form of tables of data.
Preferably, it is known that:
3 webpages that user accesses in cookiePage1 compare successfully in search deployment information, that is, browse search listing
Interior includes browsing webpage all in this cookiePage1, in, first webpage obtains in search deployment information after comparison
It is 1 to browse search length, and it is 0 that previous browsing search length is obtained after comparison;Secondary webpage is in search deployment information through comparing
After obtain browsing search length be 2, obtained after comparison previous browsing search length be 1;Webpage is in search deployment information again
The interior browsing search length that obtained after comparison is 100, and it is 2 that previous browsing search length is obtained after comparison.It follows that current
CookieTit1 is a completely successful cookie of browsing.
2 webpages that user accesses in cookiePage2 compare successfully in search deployment information, that is, browse search listing
Interior includes browsing webpage all in this cookiePage2, in, first webpage obtains in search deployment information after comparison
It is 1 to browse search length, and the previous browsing search length compared is 0;Secondary webpage obtains in search deployment information after comparison
It is 1 to browsing search length, it is 0 that previous browsing search length is obtained after comparison.It follows that current cookieTit2 is one
The no completely successful cookie of a browsing, since the webpage accessed twice obtains browsing search length and previous after comparison
Browsing search length is all identical, and therefore, current cookieTit2 is the cookie of a repeated accesses.
3 webpages that user accesses in cookiePage3 compare successfully in search deployment information, that is, browse search listing
Interior includes browsing webpage all in this cookiePage3, in, first webpage obtains in search deployment information after comparison
It is 1 to browse search length, and it is 0 that previous browsing search length is obtained after comparison;Secondary webpage is in search deployment information through comparing
After obtain browsing search length be 2, obtained after comparison previous browsing search length be 1;Webpage is in search deployment information again
The interior browsing search length that obtained after comparison is 100, and it is 5 that previous browsing search length is obtained after comparison.It follows that current
CookieTit3 is a completely successful cookie of browsing, but is grown since webpage again obtains previous browsing search after comparison
Degree is 5, and therefore, some search for no purposes between illustrating to compare in browsing search listing this cookie.
3 webpages that user accesses in cookiePage4 compare successfully in search deployment information, in, first webpage exists
It is 2 to obtain browsing search length in search deployment information after comparison, and it is 1 that previous browsing search length is obtained after comparison;It is secondary
It is 3 that webpage obtains browsing search length in search deployment information after comparison, and previous browsing search length is obtained after comparison
It is 2;It is 100 that webpage obtains browsing search length in search deployment information after comparison again, is obtained after comparison previous clear
Search length of looking at is 3.It follows that current cookieTit1 is a completely successful cookie of browsing, but lack deployment
The first webpage in search listing is browsed, that is, is browsed in search listing not comprising browsing net all in this cookiePage1
Page, this time cookie is primary invalid cookie.
After executing the step T50 or step T502, inputted into comparison result is obtained as the data for calculating step
The step of.
Preferably, the application is above-mentioned interior, and step T70 obtains browsing search length according to each webpage in cookie after comparison
And previous browsing search length, the step of purpose search length each webpage in cookie is arranged may include according to lower reality
Existing mode:
Step T701 presses all webpages according to the browsing step and previous browsing search length of each webpage in cookie
Arranged according to certain sequence, and will in the webpage after sequence browse step and/or previous browsing search length it is identical
Web Page Tags optimize flag.The step generate one derive from row, example according to:It is grouped by cookie marks, search browsing
Search length ascending sort optimizes sequence using denTe_rank, this value is arranged as derivation.
The purpose search length of each webpage in cookie is arranged according to the ranking results sequence of webpage by step T702, in,
The purpose search length for being provided with the webpage of optimization flag is identical.
Preferably, it is still described in detail to above-mentioned by taking cookiePage1, Page2, Page3, Page4 as an example.It is above-mentioned
Step T701 can derive from data row after being executed to step T702, that is, derive from the number that a row reach search length, can adopt
It is in each Cookie after being grouped according to CookieID with the SQLTerver of ranking function denTe_rank from tape function
All webpage purpose search lengths carry out ascending order arrangement, and stamp the flag after optimization, optimization refers to continuous purpose search length
Degree can be labeled with identical sequencing numbers.
Preferably, it is known that:
By the purpose search length of the browsed several webpages of user be respectively 1,2,3 in cookiePage1, i.e. the browsing
In completely successful cookie, three webpages are to complete to access according to predetermined deployment rule.
The purpose search length for 2 webpages that user accesses in cookiePage2 is respectively 1,1, i.e. the cookieTit2
It is a no completely successful cookie of browsing, in, the webpage of the 2nd access still browses the first net in search listing
Page, the webpage accessed twice is that repeated accesses are searched for obtain, therefore, the webpage of repeated accesses twice in current cookieTit2
Corresponding search is provided with identical optimization flag.
By the purpose search length of the browsed several webpages of user be respectively 1,2,3 in cookiePage3, i.e. the browsing
In completely successful cookie, three webpages are to complete to access according to predetermined deployment rule.
By the purpose search length of the browsed several webpages of user it is respectively 1,2,3 in cookiePage4.
Preferably, the application is above-mentioned interior, after executing the step T70 or step T702, enters step T90.In it, step
Rapid T90 calculates the purpose search length that each webpage in cookie obtains previous browsing search length and each webpage after comparison
Phase difference, generate cookie in each webpage browsing search length phase difference.That is what applying step T70 or step T702 was obtained
Value, then a upper search length for the search browsing in source data is subtracted, derive from this phase difference series.
Preferably, it is still described in detail to above-mentioned by taking cookiePage1, Page2, Page3, Page4 as an example.It is above-mentioned
Step T90 may be implemented to derive from the tables of data of Sorted list after executing, and can derive from a phase difference series again, be searched for characterizing browsing
Suo Changdu phase differences, preferred calculation are DenTerankRowNumber-configuredLaTtTtepIndex, even if
Phase difference is asked to calculate with previous browsing search length and corresponding purpose search length;
Preferably, it is known that:
The browsing search length phase difference that each webpage derives from cookiePage1 is respectively 1,1,1, i.e. the browsing is complete
In complete successfully cookie, the browsing search length in each webpage and scheduled search deployment information is identical.
The browsing search length phase difference that each webpage derives from cookiePage2 is respectively 1,1, i.e., should
Two webpages and the scheduled browsing search length searched in deployment information are identical in cookieTit2.
The browsing search length phase difference that each webpage derives from cookiePage3 is respectively 1,1, -2, the i.e. browsing
In completely successful cookie, the browsing search length only in the first two webpage and scheduled search deployment information is identical.
The browsing search length phase difference that each webpage derives from cookiePage4 is respectively 0,0,0, i.e., should
All webpages and the scheduled browsing search length searched in deployment information are different from cookieTit4.
Preferably, the application is above-mentioned each interior, and including multiple cookie, the cookie of each cookie is arranged
Mark, in, in step T110 implementation phases, the browsing corresponding to webpage for being 1 according to browsing search length phase difference is searched for
The step of longest that length tracks cookie browses search length may include according to lower realization method:
Step T1101 is grouped cookie according to cookie marks so that each cookie marks correspondence is at least one
Browse search length phase difference.Example according to CookieID according to being grouped.
Step T1102 after browsing search length phase difference is 1 webpage in extraction cookie, reads browsing search
The browsing search length corresponding to webpage that length phase difference is 1 obtains at least one pre-selection browsing search length.Preferably,
The step, which realizes, selects the data line that all phase difference series are 1, illustrates continuously to search for access.
Step T1103 extracts longest pre-selection browsing search length and browses search length as the longest of cookie.Example according to
According to longest browsing search length can be chosen after grouping in the data of each CookieId as final longest browsing search length
Degree.
Preferably, it is still described in detail to above-mentioned by taking cookiePage1, Page2, Page3, Page4 as an example.
In it, above-mentioned steps T1101 realizes screening and obtains the cookie that browsing search length phase difference is 1.
Preferably, it is known that:
For the row of browsing search length phase difference non-1, certain default search length in it is also just illustrated, example is according to institute
The page4 stated, phase difference are 0 explanation on search purpose search length, compare the default search length in search front,
100 search lengths its phase difference series compared in page3 are -2, illustrate user when accessing the search length, before lack
3 search lengths (i.e. 3,4,5 steps) in deployment browsing search.Finally according to above as a result, be grouped again to Cookie,
The greatest length of its interior TtepIndex is taken respectively, just obtains final handling result.
Further, then to Cookie it is grouped, takes the greatest length of its interior TtepIndex respectively, just obtain final
Handling result.
It follows that cookiePage1 is the completely successful cookie of browsing, and access and to have gone to final step clear
Look at webpage.And success does not browse cookiePage2 completely, and first webpage has only been accessed and has just terminated;CookiePage3 not at
Work(browses completely, and secondary webpage has only been accessed and has just terminated;CookiePage4 not success browsings completely, and the first access net
Page does not all access.
In summary, in example provided by the present application, pass through the completion search length to search browsing, i.e. final step
Particular value defines, to distinguish common search browsing search length and last completion search length;It is browsed by using search
Current search length and previous step information auxiliary come efficiently calculate longest purpose search length;By to cookie
It is grouped, is ranked up according to search browsing search length, and the denTe_rank of optimizing application is ranked up
Derive from row, and and search browsing previous step carry out phase difference sequence, determine phase difference be 1 special record row illustrate to connect
Continuous search accesses.
It should be noted that step shown in the flowchart of the accompanying drawings can be all according to a group of computer-executable instructions
Computer in execute, although also, logical order is shown in flow chart, in some cases, can be with difference
Shown or described step is executed in sequence herein.
Attached drawing is turned to, interior identical reference label refers to identical element, and the principle of the application is illustrated as closing at one
It is realized in suitable computing environment.Be described below based on the application, and be not considered as about not specifically described herein
It replaces and limits the application.
It should be noted that for each method above-mentioned, for simple description, therefore it is all expressed as a series of action
Combination, but those skilled in the art should understand that, the application is not limited by the described action sequence, because according to this
Application, certain steps can be performed in other orders or simultaneously.Next, those skilled in the art should also know that, explanation
It is described in book to belong to preferably, necessary to involved action and module not necessarily the application.
Above-mentioned interior, all emphasize particularly on different fields to each description, the part not being described in detail in some may refer to other phases
Close description.
It is provided herein it is several in, it should be understood that disclosed device can be realized by another way.
Example is according to device described above is only schematical, and example is according to the division of the unit, only a kind of logic function
It divides, formula that in actual implementation, there may be another division manner, example can be combined or can be integrated according to multiple units or component
Another is arrived, or some features can be ignored or not executed.
In several embodiments provided herein, it should be understood that disclosed, device and method, Ke Yitong
Other modes are crossed to realize.Example is according to the apparatus embodiments described above are merely exemplary, and example is according to the module
Or the division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, example is according to multiple
Unit or component may be combined or can be integrated into another, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be in two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The integrated unit is realized in the form of SFU software functional unit according to fruit and sells or make as independent product
Used time can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention essence
On all or part of the part that contributes to existing technology or the technical solution can be with the shape of software product in other words
Formula embodies, which is stored in a storage medium, including some instructions are used so that a calculating
It is each that machine equipment (can be personal computer, server or the network equipment etc.) or processor (proceTTor) execute the present invention
The all or part of step of a embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random AcceTT Memory), magnetic disc or CD
Etc. the various media that can store program code.
The above, only the preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, it is any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.