CN105159980A - Method and system for positioning website - Google Patents

Method and system for positioning website Download PDF

Info

Publication number
CN105159980A
CN105159980A CN201510541370.0A CN201510541370A CN105159980A CN 105159980 A CN105159980 A CN 105159980A CN 201510541370 A CN201510541370 A CN 201510541370A CN 105159980 A CN105159980 A CN 105159980A
Authority
CN
China
Prior art keywords
section
character set
network address
priority
match
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.)
Granted
Application number
CN201510541370.0A
Other languages
Chinese (zh)
Other versions
CN105159980B (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology China Co 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 Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510541370.0A priority Critical patent/CN105159980B/en
Publication of CN105159980A publication Critical patent/CN105159980A/en
Application granted granted Critical
Publication of CN105159980B publication Critical patent/CN105159980B/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the communication field, in particular to a method and a system for positioning a website. The method of the embodiment of the invention comprises the following steps: receiving a character set input by a user; independently dividing each website in a website set into N zones, wherein each zone in the N zones independently corresponds to different priorities, and N is a positive integer greater than 1; according to a high-to-low sequence of the priorities, matching the zone corresponding to each priority of the website with the character set, and determining the zone matched with the character set as a target zone; and displaying the website corresponding to the target zone as a positioning result. In the method for positioning the website of the embodiment, since the website is divided into the zones of different priorities, if a characteristic character part, except a starting part, of the website can be put into the certain zone of a high priority, unnecessary matching processes can be greatly reduced, and website positioning efficiency is improved.

Description

A kind of method and system of locating network address
Technical field
The present invention relates to the communications field, be specifically related to a kind of method and system of locating network address.
Background technology
Browser refers to can the HyperText Markup Language (HyperTextMarkupLanguage of display web page or file system, HTML) file content, and allowing a kind of software of user and these file interactions, it is used for being presented at word, image and other information in WWW or LAN (Local Area Network) etc.These words or image, can be the hyperlink connecting other network address, user can browse various information rapidly and easily.
Current browser is when the character locating network address inputted by user, browser all includes all the elements of the network address on server in comparison range, namely can from the first character of network address match user input character, as user input a character time, this character of a can be mated from the beginning of network address, the network address with a character is shown alternatively network address, as most of network address all starts in " http://www " or " https: //www " mode etc., no matter all these characters first will be mated once when mating which character, if and input for network address start in character time, the network address with this beginning will be mated, be difficult to Rapid matching to the network address wanted.
Therefore, the mode of this location network address is the character that can mate some unnecessary couplings, thus reduces matching efficiency, and due to the restriction of this body structure of network address, there will be the problem of location less than the network address wanted.
Summary of the invention
Embodiments provide a kind of method and system of locating network address, can not mate some unnecessary characters, thus improve matching efficiency, improve system performance.
In view of this, embodiment of the present invention first aspect provides a kind of method of locating network address, can comprise:
Receive the character set of user's input;
Each network address in address set is divided into N number of section respectively, and the priority that in N number of section, each section is corresponding different respectively, N be greater than 1 positive integer;
According to priority order from high to low, section corresponding for each priority of network address is mated with character set, and the section matched with character set is defined as target section;
Network address corresponding for target section is shown as positioning result.
In conjunction with first aspect, in the first possible implementation of first aspect, according to priority order from high to low, section corresponding for each priority of network address is mated with character set, and is defined as target section by with the character set section that the match is successful, can comprise:
Each section corresponding with limit priority for character set is mated, if the match is successful, then the section corresponding with the character set limit priority that the match is successful is defined as target section;
If the character set each section corresponding with limit priority does not all match, then each section that character set is corresponding with time high priority is mated;
If the match is successful, then the section corresponding with the character set secondary high priority that the match is successful is defined as target section.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, according to priority order from high to low, section corresponding for each priority of network address and character set are carried out mating and can be comprised:
Each section corresponding with limit priority for character set is mated, if the match is successful, then the section corresponding with the character set limit priority that the match is successful is defined as target section;
If the character set each section corresponding with limit priority does not all match, then section corresponding for the limit priority of each network address in URL library and section corresponding to time high priority are combined and form combination section;
Character set is mated with combination section;
If the match is successful, then the combination section matched with character set is defined as target section.
In conjunction with first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the third possible implementation of first aspect, according to priority order from high to low, section corresponding for each priority of network address and character set are carried out mating and can be comprised:
Partial character in acquisition character set is as target character collection;
According to priority order from high to low, section corresponding for each priority of network address is mated with target character collection, and the section matched with target character collection is defined as target section.
In conjunction with first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the 4th kind of possible implementation of first aspect, network address corresponding for target section is carried out displaying as positioning result can be comprised:
When the network address as positioning result is two or more, according to the IP address of user or the browsing histories of user, plural network address is sorted;
Plural network address after sequence is shown as positioning result.
Embodiment of the present invention second aspect also provides a kind of system of locating network address, can comprise:
Receiver module, for receiving the character set of user's input;
Divide module, for each network address in address set is divided into N number of section respectively, and the priority that in N number of section, each section is corresponding different respectively, N be greater than 1 positive integer;
Matching module, mates section corresponding for each priority of network address with character set according to priority order from high to low, and the section matched with character set is defined as target section;
Display module, for showing network address corresponding for target section as positioning result.
In conjunction with second aspect, in the first possible implementation of second aspect, matching module specifically for:
Each section corresponding with limit priority for character set is mated, if the match is successful, then the section corresponding with the character set limit priority that the match is successful is defined as target section;
If the character set each section corresponding with limit priority does not all match, then each section that character set is corresponding with time high priority is mated;
If the match is successful, then the section corresponding with the character set secondary high priority that the match is successful is defined as target section.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, matching module specifically for:
Each section corresponding with limit priority for character set is mated, if the match is successful, then the section corresponding with the character set limit priority that the match is successful is defined as target section;
If the character set each section corresponding with limit priority does not all match, then section corresponding for the limit priority of each network address in URL library and section corresponding to time high priority are combined and form combination section;
Character set is mated with combination section;
If the match is successful, then the combination section matched with character set is defined as target section.
In conjunction with second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the third possible implementation of second aspect, matching module specifically for:
Partial character in acquisition character set is as target character collection;
According to priority order from high to low, section corresponding for each priority of network address is mated with target character collection, and the section matched with target character collection is defined as target section.
In conjunction with second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the 4th kind of possible implementation of second aspect, display module specifically for:
When the network address as positioning result is two or more, according to the IP address of user or the browsing histories of user, plural network address is sorted;
Plural network address after sequence is shown as positioning result.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: in the embodiment of the present invention, the section of each network address of network address set is divided into N number of section respectively, and all corresponding priority of each section in a network address, thus when user inputs character is mated, mate from having high to Low priority with the character set of input, and the section matched with character set can be defined as target section, then network address corresponding for target section can be shown as positioning result, adopt this matching way, owing to network address to be divided into the section of different priorities, as can character characteristic part after the section of a certain high priority puts into the removing beginning and end part of network address, unnecessary matching process can be greatly reduced, improve the efficiency of IP address location.
Term " first ", " second ", " the 3rd " " 4th " etc. (if existence) in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.The embodiments described herein should be appreciated that the data used like this can be exchanged in the appropriate case, so that can be implemented with the order except the content except here diagram or description.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or module that the process of series of steps or module, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or module.
Refer to Fig. 1, be an enforcement illustration of the method for the location network address of the embodiment of the present invention, as shown in Figure 1, one embodiment of the present of invention provide a kind of method of locating network address, can comprise following content:
101, the character set of user's input is received.
Wherein, when user's open any browser input character collection positions network address, subscriber equipment can receive the foundation character set of location network address.
102, each network address in address set is divided into N number of section respectively.
Wherein, the priority that each section is corresponding different respectively, N be greater than 1 positive integer.In order to improve matching efficiency and matching precision, each network address in address set can be divided into N number of section respectively, the corresponding priority of each section, this priority refers to the priority of the coupling in subsequent match process.
It should be noted that, the operation that network address is divided into N number of section has two kinds of modes to carry out, first kind of way is that subscriber equipment divides the address set be stored in subscriber equipment, namely address set is pre-stored within subscriber equipment, and concrete ways can adopt from server download or the address set receiving the transmission of other equipment; The second way is divided by server each network address to the address set be stored in server, namely in which, address set stores in advance in the server, server only needs to carry out section partition to these network address, in two kinds of modes, the any mode of concrete employing or two kinds of modes combine, can determine according to actual conditions.
Be understandable that between step 101 and step 102, there is no inevitable ordinal relation.
103, according to priority order from high to low, section corresponding for each priority of network address is mated with character set, and the section matched with character set is defined as target section.
Wherein, receiving character set and after network address is divided, according to priority order from high to low, section corresponding for each priority of network address will be mated with character set, and when a certain section and character set match, the section matched with character set can be defined as target section.
Be understandable that, in the process of this coupling, the section that the same priority that each coupling is matching web site is corresponding, namely mates the section that the same priority of all network address is corresponding, as mated the limit priority of all network address in once coupling.
It should be noted that, the operation that corresponding network address is divided into N number of section has two kinds of modes, also can adopt when mating and carry out in two ways, if the section partition that subscriber equipment self carries out, it is then local coupling when mating, namely without the need to being connected into network, only just network need be connected into when accessing the network address matched, if the second way, the network address division operation of being undertaken by server, then this character set to be only included in IP address location request as a transmitting terminal and to send to server by subscriber equipment, then mated by server, and give subscriber equipment restoring to normal position result, this result then shown by subscriber equipment, concrete employing first kind of way, the second way or the two combines, local coupling one time can be set to, then send character set to server, again by server matches one time, the result of finally showing is the comprehensive of both sides' result of mating, which kind of mode of concrete employing can be determined according to actual conditions, specifically be not construed as limiting.
As optionally, on the basis of the embodiment shown in Fig. 1, the matching process of step 103 can be taked as under type, refers to Fig. 2, and Fig. 2 is another enforcement illustration of the method for the location network address of the embodiment of the present invention, and wherein, step 103 can comprise the steps:
103a, each section corresponding with limit priority for character set to be mated.
Wherein, if the match is successful, then jump to step 103b, if it fails to match, then jump to step 103c.
103b, the section corresponding with the character set limit priority that the match is successful is defined as target section.
103c, each section that character set is corresponding with time high priority to be mated.
Wherein, if the match is successful, then step 103d is jumped to.
103d, the section corresponding with the character set secondary high priority that the match is successful is defined as target section.
As can be seen here, character set is mated with each section of network address according to priority by step 103a to 103d successively from high to low, should be understood that, if the match is successful not yet for step 103c, then can proceed the coupling of the section of next priority, namely the section lower than secondary high priority is mated herein, until match the section matched with character set, then can it can be used as target section, if all priority sections all contrast complete, still do not match the section matched with character set, then show acquiescence positioning result, this acquiescence positioning result can be the network address of the high rate of people logging in pre-set.
104, network address corresponding for target section is shown as positioning result.
Wherein, after determining target section, the network address corresponding to target section can be found, then these network address be shown as positioning result.
For example, if a network address is " tieba.baidu.com ", can using " baidu " section as limit priority, by " tieba " section as time high priority, if the character set of now input is " ieb ", when mating, first the section " baidu " of limit priority is mated, when finding that it fails to match, all it fails to match with character set to suppose the section of all limit priorities herein, now " ieb " can be mated with the section " tieba " of time high priority, can the match is successful, then by " tieba " as target section, then will the network address corresponding to target section show, " tieba.baidu.com " can be shown herein.
As optional, step 104 also can comprise:
104a, according to the IP address of user or the browsing histories of user, plural network address to be sorted.
Wherein, when the network address as positioning result is two or more, can sort to plural network address according to the IP address of user or the browsing histories of user.
104b, using sequence after plural network address show as positioning result.
It can thus be appreciated that, when the network address as positioning result is two or more, according to the IP address of user or the browsing histories of user, plural network address is sorted, be understandable that due to user IP address or browsing histories is not identical, the sequence of the positioning result obtained when therefore each user uses the present embodiment to carry out IP address location can be not identical, then can show as positioning result the plural network address after sequence.
As can be seen here, in the embodiment of the present invention, the section of each network address of network address set is divided into N number of section respectively, and all corresponding priority of each section in a network address, thus when user inputs character is mated, mate from having high to Low priority with the character set of input, and the section matched with character set can be defined as target section, then network address corresponding for target section can be shown as positioning result, adopt this matching way, owing to network address to be divided into the section of different priorities, as can be put into the character characteristic part of the removing the beginning part of network address at the section of a certain high priority, unnecessary matching process can be greatly reduced, improve the efficiency of IP address location.
It should be noted that, except above-mentioned for priority from high in the end successively coupling except, the mode merging section also can be adopted to mate, refer to Fig. 3, Fig. 3 is another enforcement illustration of the method for the location network address of the embodiment of the present invention, Fig. 3 provides a kind of method of locating network address, and the method also can comprise:
201, the character set of user's input is received.
202, each network address in address set is divided into N number of section respectively.
203a, each section corresponding with the limit priority of network address for character set to be mated.
If the match is successful, then jump to step 203b, if it fails to match, then jump to step 203c.
203b, the section corresponding with the character set limit priority that the match is successful is defined as target section;
203c, section corresponding for the limit priority of each network address in URL library and section corresponding to secondary high priority combined form combination section.
203d, by character set with combination section mate.
Wherein, if the match is successful, then step 203e is jumped to.
203e, the combination section matched with character set is defined as target section.
For example, if a network address is " translate.google.cn ", can using " google " section as limit priority, by " translate " section as time high priority, if the character set of now input is " glet ", when mating, first the section " google " of limit priority is mated, when finding that it fails to match, all it fails to match with character set to suppose the section of all limit priorities herein, now " google " can be combined into the section " translate " of time high priority and combine section " googletranslate ", now can the match is successful, then by " googletranslate " as target section, then will the network address corresponding to target section show, " translate.google.cn " can be shown herein.
As can be seen here, step 203a to 203e is the another kind of mode of character set being carried out with each section of network address from high to low according to priority successively mating, namely can combination section be become to proceed coupling with the members of time high priority the section of limit priority when the section coupling of limit priority is unsuccessful, should be understood that, if the match is successful not yet for step 203d, the section that then can proceed next priority carries out the new combination section of combination producing with combination section, mate with character set again, namely the section lower than secondary high priority is combined with combination section herein and obtain new combination section and proceed to mate, until match the combination section matched with character set, then can it can be used as target section, if all priority sections all contrast complete, still do not match the section matched with character set, then show acquiescence positioning result, this acquiescence positioning result can be the network address of the high rate of people logging in pre-set.
204, network address corresponding for target section is shown as positioning result.
It should be noted that, in the embodiment shown in above-mentioned Fig. 1 and Fig. 2, when character set is mated with section, all the partial character can chosen among character set mates.
As optionally, according to priority order from high to low, section corresponding for each priority of network address and character set are carried out mating and can be comprised:
Partial character in acquisition character set is as target character collection;
According to priority order from high to low, section corresponding for each priority of network address is mated with target character collection, and the section matched with target character collection is defined as target section.
As from the foregoing, when mating, partial character can be chosen in character set as target character collection, then mated with the section of network address by target character collection, wherein, this standard choosing target character collection can be preset, as being set to more than 50 character of percent in random selecting character set as target character collection, or the character of the continuous print in random selecting character set 40 percent is as target character collection etc., can arrange voluntarily, be not construed as limiting according to actual match situation herein.
Above the mode of the location network address of the embodiment of the present invention is introduced, below the subscriber equipment of the embodiment of the present invention is introduced.
Refer to Fig. 4, Fig. 4 is that of the system of the location network address of the embodiment of the present invention implements illustration, and as shown in Figure 4, the embodiment of the present invention provides a kind of system of locating network address, can comprise:
Receiver module 301, for receiving the character set of user's input;
Divide module 302, for each network address in address set is divided into N number of section respectively, and the priority that in N number of section, each section is corresponding different respectively, N be greater than 1 positive integer;
Matching module 303, mates section corresponding for each priority of network address with character set according to priority order from high to low, and the section matched with character set is defined as target section;
Display module 304, for showing network address corresponding for target section as positioning result.
As can be seen here, in the embodiment of the present invention, receiver module 301 is after the character set receiving user's input, by division module 302, the section of each network address of network address set is divided into N number of section respectively, and all corresponding priority of each section in a network address, thus when user inputs character is mated, matching module 303 mates from having high to Low priority with the character set of input, and the section matched with character set can be defined as target section, then network address corresponding for target section can be shown as positioning result by display module 304, adopt this matching way, owing to network address to be divided into the section of different priorities, as can be put into the character characteristic part of the removing the beginning part of network address at the section of a certain high priority, unnecessary matching process can be greatly reduced, improve the efficiency of IP address location.
It should be noted that, display module 304 is when showing, if the positioning result of multiple network address, also can show after sequence.
As optionally, display module 304 specifically for:
When the network address as positioning result is two or more, according to the IP address of user or the browsing histories of user, plural network address is sorted;
Plural network address after sequence is shown as positioning result.
It can thus be appreciated that, when the network address as positioning result is two or more, display module 304 sorts to plural network address according to the IP address of user or the browsing histories of user, be understandable that due to user IP address or browsing histories is not identical, the sequence of the positioning result obtained when therefore each user uses the present embodiment to carry out IP address location can be not identical, and then display module 304 can be shown as positioning result the plural network address after sequence.
As optionally, the matching way of matching module 303 has section cyclic to mate and members mates two kinds of modes, wherein, when section cyclic mates:
As optionally, matching module 303 specifically for:
Each section corresponding with limit priority for character set is mated, if the match is successful, then the section corresponding with the character set limit priority that the match is successful is defined as target section;
If the character set each section corresponding with limit priority does not all match, then each section that character set is corresponding with time high priority is mated;
If the match is successful, then the section corresponding with the character set secondary high priority that the match is successful is defined as target section.
As can be seen here, character set is mated with each section of network address according to priority by matching module 303 successively from high to low, should be understood that, if matching module 303 is for the section of secondary high priority, the match is successful not yet, then can proceed the coupling of the section of next priority, namely the section lower than secondary high priority is mated herein, until match the section matched with character set, matching module 303 can it can be used as target section, if all priority sections all contrast complete, still do not match the section matched with character set, then show acquiescence positioning result, this acquiescence positioning result can be the network address of the high rate of people logging in pre-set.
Wherein, when members mates:
As optionally, this matching module 303 specifically for:
Each section corresponding with limit priority for character set is mated, if the match is successful, then the section corresponding with the character set limit priority that the match is successful is defined as target section;
If the character set each section corresponding with limit priority does not all match, then section corresponding for the limit priority of each network address in URL library and section corresponding to time high priority are combined and form combination section;
Character set is mated with combination section;
If the match is successful, then the combination section matched with character set is defined as target section.
It can thus be appreciated that, character set is carried out the another kind of mode of mating by matching module 303 successively from high to low with each section of network address according to priority, namely can combination section be become to proceed coupling with the members of time high priority the section of limit priority when the section coupling of limit priority is unsuccessful, should be understood that, if the match is successful not yet for the combination section that the section of limit priority is formed with the section of time high priority, matching module 303 can proceed the section of next priority and this combination section carries out the new combination section of combination producing, mate with character set again, namely the section lower than secondary high priority is combined with combination section herein and obtain new combination section and proceed to mate, until match the combination section matched with character set, then can it can be used as target section, if all priority sections all contrast complete, still do not match the section matched with character set, then show acquiescence positioning result, this acquiescence positioning result can be the network address of the high rate of people logging in pre-set.
It should be noted that, matching module 303 is when character set is mated with section, and the partial character can chosen among character set mates.
As optionally, matching module 303 specifically for:
Partial character in acquisition character set is as target character collection;
According to priority order from high to low, section corresponding for each priority of network address is mated with target character collection, and the section matched with target character collection is defined as target section.
As from the foregoing, when mating, partial character can be chosen in character set as target character collection, then mated with the section of network address by target character collection, wherein, this standard choosing target character collection can be preset, as being set to more than 50 character of percent in random selecting character set as target character collection, or the character of the continuous print in random selecting character set 40 percent is as target character collection etc., can arrange voluntarily, be not construed as limiting according to actual match situation herein.
It should be noted that, if when this locality stores address set or obtains by other modes and store address set, the system of the location network address in the present embodiment only can comprise a subscriber equipment, namely subscriber equipment can comprise receiver module 301, divide module 302, matching module 303 and display module 304, completes the function of IP address location, if when subscriber equipment does not store address set and also cannot obtain address set, the system of the location network address in the present embodiment then comprises subscriber equipment and server, can by division module 302, matching module 303 is arranged in be had on the server of address set, receiver module 301 and display module 304 are arranged on subscriber equipment, now subscriber equipment as one transmitting-receiving and show equipment, character set is sent to server by subscriber equipment, a positioning result is returned to subscriber equipment after being completed by server matches, by subscriber equipment, this positioning result is shown, therefore, corresponding implementation can be selected according to actual conditions, be not construed as limiting.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that of the method for the location network address of the embodiment of the present invention implements illustration;
Fig. 2 is another enforcement illustration of the method for the location network address of the embodiment of the present invention;
Fig. 3 is another enforcement illustration of the method for the location network address of the embodiment of the present invention;
Fig. 4 is that of the system of the location network address of the embodiment of the present invention implements illustration.
Embodiment
Embodiments provide a kind of method and system of locating network address, can not mate some unnecessary characters, thus improve matching efficiency, improve system performance.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Below be described in detail respectively.

Claims (10)

1. locate a method for network address, it is characterized in that, described method comprises:
Receive the character set of user's input;
Each network address in address set is divided into N number of section respectively, and the priority that in described N number of section, each section is corresponding different respectively, described N be greater than 1 positive integer;
According to priority order from high to low, section corresponding for each priority of described network address is mated with described character set, and the section matched with described character set is defined as target section;
Network address corresponding for described target section is shown as positioning result.
2. method according to claim 1, it is characterized in that, describedly according to priority order from high to low, section corresponding for each priority of described network address to be mated with described character set, and the section matched with described character set is defined as target section comprises:
Each section corresponding with limit priority for described character set is mated, if the match is successful, then the section corresponding with the described character set limit priority that the match is successful is defined as target section;
If the described character set each section corresponding with limit priority does not all match, then each section that described character set is corresponding with time high priority is mated;
If the match is successful, then the section corresponding with the described character set secondary high priority that the match is successful is defined as target section.
3. method according to claim 1, it is characterized in that, describedly according to priority order from high to low, section corresponding for each priority of described network address to be mated with described character set, and the section matched with described character set is defined as target section comprises:
Each section corresponding with limit priority for described character set is mated, if the match is successful, then the section corresponding with the described character set limit priority that the match is successful is defined as target section;
If the described character set each section corresponding with limit priority does not all match, then section corresponding for the limit priority of each network address in described URL library and section corresponding to time high priority are combined and form combination section;
Described character set is mated with described combination section;
If the match is successful, then the combination section matched with described character set is defined as target section.
4. according to the method in any one of claims 1 to 3, it is characterized in that, describedly according to priority order from high to low, section corresponding for each priority of described network address to be mated with described character set, and the section matched with described character set is defined as target section comprises:
Obtain partial character in described character set as target character collection;
According to priority order from high to low, section corresponding for each priority of described network address is mated with described target character collection, and the section matched with described target character collection is defined as target section.
5. the method according to any one of claims 1 to 3, is characterized in that, network address corresponding for described target section is carried out displaying as positioning result and comprises:
When the network address as positioning result is two or more, according to the IP address of described user or the browsing histories of user, described plural network address is sorted;
Plural network address after sequence is shown as positioning result.
6. locate a system for network address, it is characterized in that, comprising:
Receiver module, for receiving the character set of user's input;
Divide module, for each network address in address set is divided into N number of section respectively, and the priority that in described N number of section, each described section is corresponding different respectively, described N be greater than 1 positive integer;
Matching module, mates section corresponding for each priority of described network address with described character set according to priority order from high to low, and the section matched with described character set is defined as target section;
Display module, for showing network address corresponding for described target section as positioning result.
7. the system of location according to claim 6 network address, is characterized in that, described matching module specifically for:
Each section corresponding with limit priority for described character set is mated, if the match is successful, then the section corresponding with the described character set limit priority that the match is successful is defined as target section;
If the described character set each section corresponding with limit priority does not all match, then each section that described character set is corresponding with time high priority is mated;
If the match is successful, then the section corresponding with the described character set secondary high priority that the match is successful is defined as target section.
8. the system of location according to claim 6 network address, is characterized in that, described matching module specifically for:
Each section corresponding with limit priority for described character set is mated, if the match is successful, then the section corresponding with the described character set limit priority that the match is successful is defined as target section;
If the described character set each section corresponding with limit priority does not all match, then section corresponding for the limit priority of each network address in described URL library and section corresponding to time high priority are combined and form combination section;
Described character set is mated with described combination section;
If the match is successful, then the combination section matched with described character set is defined as target section.
9. the system of the location network address according to any one of claim 6 to 8, is characterized in that, described matching module specifically for:
Obtain partial character in described character set as target character collection;
According to priority order from high to low, section corresponding for each priority of described network address is mated with described target character collection, and the section matched with described target character collection is defined as target section.
10. the system of the location network address according to any one of claim 6 to 8, is characterized in that, described display module specifically for:
When the network address as positioning result is two or more, according to the IP address of described user or the browsing histories of user, described plural network address is sorted;
Plural network address after sequence is shown as positioning result.
CN201510541370.0A 2015-08-27 2015-08-27 A kind of method and system positioning network address Active CN105159980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510541370.0A CN105159980B (en) 2015-08-27 2015-08-27 A kind of method and system positioning network address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510541370.0A CN105159980B (en) 2015-08-27 2015-08-27 A kind of method and system positioning network address

Publications (2)

Publication Number Publication Date
CN105159980A true CN105159980A (en) 2015-12-16
CN105159980B CN105159980B (en) 2019-03-19

Family

ID=54800836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510541370.0A Active CN105159980B (en) 2015-08-27 2015-08-27 A kind of method and system positioning network address

Country Status (1)

Country Link
CN (1) CN105159980B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539949A (en) * 2008-11-13 2009-09-23 北京搜狗科技发展有限公司 URL completion prompting method and device
CN101876986A (en) * 2009-11-27 2010-11-03 福建星网锐捷网络有限公司 Character string matching method based on finite state automation and content filtering equipment
CN102819524A (en) * 2011-09-08 2012-12-12 金蝶软件(中国)有限公司 Key-based segmentation method and device for character sequences
CN102955850A (en) * 2012-10-30 2013-03-06 北京奇虎科技有限公司 Method and device for loading sequencing website
CN102982078A (en) * 2012-10-30 2013-03-20 北京奇虎科技有限公司 Loading method of sequencing website and client with sequencing website being loaded
CN103377259A (en) * 2012-04-28 2013-10-30 北京新媒传信科技有限公司 Multiple-mode-string matching method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539949A (en) * 2008-11-13 2009-09-23 北京搜狗科技发展有限公司 URL completion prompting method and device
CN101876986A (en) * 2009-11-27 2010-11-03 福建星网锐捷网络有限公司 Character string matching method based on finite state automation and content filtering equipment
CN102819524A (en) * 2011-09-08 2012-12-12 金蝶软件(中国)有限公司 Key-based segmentation method and device for character sequences
CN103377259A (en) * 2012-04-28 2013-10-30 北京新媒传信科技有限公司 Multiple-mode-string matching method and device
CN102955850A (en) * 2012-10-30 2013-03-06 北京奇虎科技有限公司 Method and device for loading sequencing website
CN102982078A (en) * 2012-10-30 2013-03-20 北京奇虎科技有限公司 Loading method of sequencing website and client with sequencing website being loaded

Also Published As

Publication number Publication date
CN105159980B (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN105550356B (en) A kind of browsing content pre-add support method and terminal
CN107025216A (en) Sentence extracting method and system
CN107590214A (en) The recommendation method, apparatus and electronic equipment of search key
CN104679855A (en) Playlist creation method and terminal device
US20100332476A1 (en) Web graph compression through scalable pattern mining
CN103780677A (en) Method for performing classified information push and system thereof
CN103548076A (en) Device and method for recognizing content using audio signals
CN102841736A (en) Handheld electronic device and method for accessing bookmark
CN104699737A (en) Method and system for managing a search
CN103619054A (en) Method and device for selecting network frequency band and router
CN110362737B (en) Recommended content pushing method and device and server
CN103414745A (en) Mobile terminal cross-browser login method and device
JP5493845B2 (en) Search support program, search support device, and search support method
CN105141605A (en) Session method, web server and browser
CN103714141A (en) Information pushing method and device
CN102904765A (en) Method and equipment for data reporting
CN103812906B (en) Website recommendation method and device and communication system
CN102831117A (en) Method for selecting, determining, recommending and generating character style and equipment for character style
CN104349320A (en) Sharing method and electronic equipment
CN104598507A (en) Information searching method and device
CN103064989A (en) Webpage storing and opening method and device
CN105808740A (en) Information search method and information search device
CN103530385A (en) Method and device for searching for information based on vertical searching channels
CN105491094A (en) HTTP request handling method and device
CN105354342A (en) Retrieval method and mobile terminal

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee after: MEIZU TECHNOLOGY Co.,Ltd.

Address before: 519000 technology innovation coastal Meizu science and technology building, Zhuhai, Guangdong

Patentee before: Meizu Technology (China) Co.,Ltd.