Summary of the invention
For the problems referred to above, a kind of method for building up of stroke list two-stage set of keywords, the method for building up of the trip list two-stage set of keywords comprises following steps:
S1: set up stroke list triplet sets;
S2: the first order set of keywords setting up stroke list;
S3: the second level set of keywords setting up stroke list;
Wherein, stroke list tlv triple is < stroke list numbering, travel itinerary keyword, page number >, when the page number refers to and uses the trip list keyword search and download the stroke list of this numbering, the page number at place shown by the stroke list of this numbering, in tlv triple, putting in order of ternary represents the search priority of ternary, the priority of the more forward ternary that sorts is higher, the tlv triple of a certain numbering stroke list has multiple tlv triple according to travel itinerary keyword difference, and the plurality of tlv triple is a triplet sets; First order key word is the set of extracting all key words used when searching for and download certain one stroke list; Second level key word extracts when searching for and download certain one stroke list to make the trip list be illustrated in the key word of the forward page.
According to the method for building up of above-mentioned stroke list two-stage set of keywords, when step S2 sets up stroke list first order set of keywords, the priority of ternary in the stroke list triplet sets of a certain numbering is adjusted, form new triplet sets, new tlv triple is < travel itinerary keyword, stroke list is numbered, page number >.
According to the method for building up of above-mentioned stroke list two-stage set of keywords, step S3 collects page number value and is less than the key word of N as second level key word on the basis of first order key word.
According to the method for building up of above-mentioned stroke list two-stage set of keywords, N be less than 10 positive integer.
A kind of stroke single search method, be applicable to the two-stage set of keywords that said method is set up, the trip single search method is:
S11: collect the key word that user uses;
S12: coupling second level key word, if meet, then skips to step S15, if do not meet, then carry out step S13;
S13: coupling first order key word, if meet, then skips to step S15, if do not meet, then carry out step S14;
S14: exit search;
S15: provide corresponding stroke list according to the numbering of stroke list in the tlv triple at key word place.
According to above-mentioned stroke single search method, when step S14 exits search, show the prompting that search is failed simultaneously.
According to above-mentioned stroke single search method, when step S14 exits search, show the stroke list of random search simultaneously.
The invention provides a kind of foundation and searching method of stroke list two-stage set of keywords, stroke list numbering is comprised by setting up, the triplet sets of travel itinerary keyword and the page number, set up first order set of keywords and the second level set of keywords for searching for a certain numbering stroke list, wherein the single sequence of the stroke of second level keyword search is earlier, during user search stroke list, first second level set of keywords higher to key word and search efficiency is mated, if can mate, number according to tlv triple search stroke list and show stroke list, if do not mate, then it is mated with first order key word, if can mate, number according to tlv triple search stroke list and show stroke list, if do not mate, exit search, the present invention effectively can solve user's stroke list that the search that occurs really needs less than user when using keyword search stroke list or the single sequence of stroke problem very rearward, improve search efficiency, improve user search to experience.
Embodiment
For making there is further understanding to object of the present invention, feature and function thereof, embodiment is hereby coordinated to be described in detail as follows.
See the method for building up process flow diagram that Fig. 1, Fig. 1 are stroke list two-stage set of keywords provided by the invention, the method for building up of the trip list two-stage set of keywords comprises following steps:
S1: set up stroke list triplet sets;
S2: the first order set of keywords setting up stroke list;
S3: the second level set of keywords setting up stroke list;
Wherein, stroke list tlv triple is < stroke list numbering, travel itinerary keyword, page number >, when the page number refers to and uses the trip list keyword search and download the stroke list of this numbering, the page number at place shown by the stroke list of this numbering, in tlv triple, putting in order of ternary represents the search priority of ternary, the priority of more forward unit of sorting is higher, because a certain numbering stroke list is owing to having multiple different travel itinerary keyword when searching for stroke list, each key word and its stroke list is numbered and the page number forms a tlv triple, tlv triple like this for a certain numbering has multiple, the plurality of tlv triple forms a triplet sets, first order key word in step S2 comprises the set of all key words used when searching for and download certain one stroke list, the second level key word of step S3 comprises when searching for and download certain one stroke list can make the trip list be illustrated in the key word of the forward page.
Further, when step S2 sets up stroke list first order set of keywords, the priority of ternary in the stroke list triplet sets of a certain numbering is adjusted, form new triplet sets, new tlv triple is < travel itinerary keyword, and stroke list is numbered, page number >, that is, the priority of travel itinerary keyword is mentioned the highest, user-friendly travel itinerary keyword search stroke list.
Further, step S3 collects page number value and is less than the key word of N as second level key word on the basis of first order key word, wherein, N be less than 10 positive integer, generally be set as 5, can think that stroke list is illustrated in first 5 pages and checks that often, search efficiency is relatively high for user, how many concrete N is for can arranging according to the actual requirements, and the present invention does not limit.
The present invention separately provides a kind of stroke single search method, and be applicable to the two-stage set of keywords that said method is set up, be stroke single search method flow diagram provided by the invention see Fig. 2, Fig. 2, the trip single search method is:
S11: collect the key word that user uses;
S12: coupling second level key word, if meet, then skips to step S15, if do not meet, then carry out step S13;
S13: coupling first order key word, if meet, then skips to step S15, if do not meet, then carry out step S14;
S14: exit search;
S15: provide corresponding stroke list according to the numbering of stroke list in the tlv triple at key word place.
User is when searching for stroke list, the key word first user search stroke list used and second level keyword match, if meet, then direct according to the corresponding stroke list of stroke list numbering search in the tlv triple corresponding to key word, if do not meet, then the key word that user is used and first order keyword match, if meet, then direct according to the corresponding stroke list of stroke list numbering search in the tlv triple corresponding to key word, if do not meet, exit search.Because second level set of keywords to make stroke list be illustrated in first N pages, search for so first stroke list high-level efficiency can be realized with second level keyword match, when with second level keyword match not mate with first order key word, entirety realizes stroke list and efficiently searches for fast.
Further, while step S14 exits search, show the prompting that search is failed, or, show the stroke list of random search while step S14 exits search.
The invention provides a kind of foundation and searching method of stroke list two-stage set of keywords, stroke list numbering is comprised by setting up, the triplet sets of travel itinerary keyword and the page number, set up first order set of keywords and the second level set of keywords for searching for a certain numbering stroke list, wherein the single sequence of the stroke of second level keyword search is earlier, during user search stroke list, first second level set of keywords higher to key word and search efficiency is mated, if can mate, number according to tlv triple search stroke list and show stroke list, if do not mate, then it is mated with first order key word, if can mate, number according to tlv triple search stroke list and show stroke list, if do not mate, exit search, the present invention effectively can solve user's stroke list that the search that occurs really needs less than user when using keyword search stroke list or the single sequence of stroke problem very rearward, improve search efficiency, improve user search to experience.
The present invention is described by above-mentioned related embodiment, but above-described embodiment is only enforcement example of the present invention.Must it is noted that the embodiment disclosed limit the scope of the invention.On the contrary, change done without departing from the spirit and scope of the present invention and retouching, all belong to scope of patent protection of the present invention.