Summary of the invention
The embodiment of the invention provides a kind of network resource searching method and search system, can carry out analysis and judgement according to the index entry of user's input, determines search category, so that return Search Results more rapidly and accurately.
The network resource searching method that the embodiment of the invention provides comprises:
Obtain the current search entry of user's input and the search category of user's current accessed;
First corresponding relation that coupling is set up is determined and the corresponding search category of described current search entry;
Carry out the Internet resources search according to the described search category of determining, or point out the user to be transferred to the described search category of determining and carry out resource searching;
First corresponding relation of described foundation, first corresponding relation for the different search entry of setting up according to user's historical search record and each search category of presetting specifically comprises:
In the statistics user search behavior log database, the access times of each search category corresponding with each search entry; At least comprise in described user's historical search record: the search entry that the user uses and the search category of user capture;
The search category that described access times are maximum is as the best search category of this search entry;
Set up described first corresponding relation according to each search entry in the described user search behavior log database and corresponding best search category thereof.
The embodiment of the invention also provides a kind of Internet resources search system, comprising: Subscriber Interface Module SIM, web search module, user search behavior log database, log analysis module, user personality Search Results memory module;
Described Subscriber Interface Module SIM is used to receive the searching request that client is initiated, and sends to the web search module;
Described user search behavior log database is used for described Subscriber Interface Module SIM alternately, dynamically updates and store user's historical search record, and described user's historical search record comprises the search entry that the user uses and the search category of user capture at least;
Described log analysis module, the access times that are used for adding up described user search behavior log database each search category corresponding with each search entry; The search category that described access times are maximum is as the best search category of this search entry; Set up first corresponding relation according to each search entry and corresponding best search category thereof in the described user search behavior log database;
Described user personality Search Results memory module is used to store described first corresponding relation that described log analysis module is set up;
Described web search module, after being used to receive searching request, mate first corresponding relation of storing in the described user personality Search Results memory module, carry out resource searching according to matching result, and Search Results is sent to client by described Subscriber Interface Module SIM.
Because the historical search record to the user in the embodiment of the invention is analyzed and is added up, set up the corresponding relation between different entries and each search category, therefore, when input is intended to the current entry of search in any search category of user at search engine, can mate the corresponding relation of setting up according to the search entry of user's input, it initiatively is the best search category that the user finds current entry correspondence, and in described best search category, carry out web search, perhaps point out the user in best search category, to carry out web search, like this, with respect to prior art, can return Search Results more accurately to the user more apace, save user's search time, improved the efficient of Internet resources search.
Embodiment
The embodiment of the invention provides a kind of network resource searching method, comprising: according to user's historical search record, set up first corresponding relation of different search entry and each search category of presetting; When receiving the searching request of client initiation, obtain the current search entry of user's input; Mate described first corresponding relation, determine and the corresponding search category of described current search entry; According to the search category of determining by described first corresponding relation, carry out the web search operation, or point out the user to be transferred to the described search category of determining and carry out resource searching.
Wherein, described user search record comprises search entry that the user uses and the search category that the user visited at least.In order to store user's historical search record, need set up user search behavior log database at network side.In addition, for guaranteeing that the user's historical search record in user's historical behavior log database upgrades at any time, after each web search of user finishes, determine whether to have stored in user's historical behavior daily record storehouse corresponding searching record about the current search entry in this search, if stored the corresponding record of current search entry in the user search behavior log database, then these access times of searching for the search category of being visited of user are added 1; Otherwise in user search behavior log database, increase the corresponding record of a current search entry newly.
Fig. 1 is the flow chart of setting up of first corresponding relation in the embodiment of the invention, comprising:
S101: the user capture number of times of each search category corresponding in the statistical history searching record with each search entry;
S102: the search category that user capture number of times in the historical search record is maximum is as the best search category of this search entry;
S103: first corresponding relation of setting up the best search category of different search entry and its correspondence according to the best search category of each search entry in the historical search record and correspondence thereof.
As shown in Figure 2, be the realization flow figure of network resource searching method in the embodiment of the invention.May further comprise the steps:
S201: first corresponding relation of setting up different search entry and each search category according to the historical search record.
S202: obtain the searching request that the user initiates in client, comprise the current search entry that the user imports in this searching request.
S203: first corresponding relation that coupling is set up, determine whether the current search entry has corresponding best search category, if, then continue to carry out S204, otherwise, S210 carried out.
S204: whether the search category of judging user's current accessed is consistent with best search category, if then carry out S205, otherwise carries out S206.
S205: in the search category of user's current accessed, carry out resource searching.
S206: carry out resource searching in the best search category of determining, perhaps, the prompting user is transferred in the best search category of determining and carries out resource searching.
S210: the search category in user's current accessed carries out resource searching, or carries out resource searching in the search category of acquiescence.
Among the above-mentioned steps S201, the search entry best search category corresponding with it is a kind of accurate corresponding relation, promptly comes corresponding search category in strict accordance with search entry.In the practical application, can also be by search entry be carried out word segmentation processing, set up corresponding relation with search category according to each the compound contamination after the word segmentation processing, concrete steps comprise as shown in Figure 3:
S301: each search entry in user's historical search record is split as the compound contamination of a plurality of independences.For example, certain search entry is " MP3 of A song title downloads ", then this search entry can be split as: " A song title "+" MP3 "+" download ".
S302: according to the matched rule of setting combination sorted out in each independent compound word, set up second corresponding relation of the compound contamination of different independence and each search category.For example, can be set as follows matched rule:
Different independent compound contaminations |
Corresponding search category |
Song title classification compound word+" download " |
Music searching |
Name classification compound word+" picture " |
Picture searching |
Place name classification compound word+" picture " |
Picture searching |
For each compound combination and search category of independence, this search category is called the best search category of the compound contamination of independence of its correspondence with corresponding relation.For example, can be with " music searching " best search category as " arbitrary song title compound word+download ".
Therefore, according to above-mentioned second corresponding relation, in flow process shown in Figure 2, if when determining among the step S203 that the current search entry does not have corresponding best search category, then carry out flow process as shown in Figure 4, promptly, specifically comprise the steps: with the step S210 among flow process replacement Fig. 2 shown in Figure 4
S401: the current search entry is split as the compound contamination of a plurality of independences.
S402: mate second corresponding relation, determine whether each the independent compound contamination after the current search entry splits has corresponding search category, if then continue to carry out S403, otherwise carry out S410.
S403: judge that user's current accessed search category is whether consistent with the search category that coupling second corresponding relation is determined,, otherwise carry out S405 if then carry out S404.
S404: in the search category of user's current accessed, carry out resource searching.
S405: carry out resource searching in the search category of determining, perhaps, the prompting user is transferred to the search category of determining and carries out resource searching.
S410: the search category in user's current accessed carries out resource searching, or carries out resource searching in the search category of acquiescence.
Flow process shown in Figure 4 is to adopt the further coupling of second corresponding relation to the current search entry, when promptly the current search entry adopts first corresponding relation not match corresponding best search category, can also further adopt second corresponding relation to mate.
A kind of network resource searching method corresponding to embodiment of the invention proposition, the embodiment of the invention also provides a kind of Internet resources search system, comprising: Subscriber Interface Module SIM 50, user search behavior log database 51, log analysis module 52, user personality Search Results memory module 53 and web search module 54.Wherein:
Subscriber Interface Module SIM 50 is used to receive the searching request that client is initiated, and is transmitted to web search module 54.
User search behavior log database 51 is used for Subscriber Interface Module SIM 50 alternately, dynamically updates and store user's historical search record, and described user's historical search record comprises the search entry that the user uses and the search category of user capture at least.
Log analysis module 52 is used for adding up the access times of user search behavior log database 51 each search category corresponding with each search entry; The search category that described access times are maximum is as the best search category of this search entry; Set up first corresponding relation according to each search entry in the user search behavior log database 51 and corresponding best search category thereof.
User personality Search Results memory module 53 is used for first corresponding relation that storing daily record analysis module 52 is set up.
Web search module 54, after being used to receive the searching request of Subscriber Interface Module SIM 50 forwardings, according to the current search entry in the searching request, first corresponding relation of storage in the match user individual character Search Results memory module 53, carry out resource searching according to matching result, and Search Results is sent to client by Subscriber Interface Module SIM 50.
A kind of preferable Internet resources search system also comprises: compound word splits module 55.As shown in Figure 5.
Described compound word splits module 55, is used for the search entry of user search behavior log database 51 is split as the compound contamination of a plurality of independences; According to the matched rule of setting combination sorted out in each independent compound word, set up second corresponding relation of the compound contamination of different independence and each search category, and second corresponding relation is sent to 53 storages of user personality Search Results memory module.
Web search module 54 is further according to second corresponding relation of storing in the current search entry match user individual character Search Results memory module 53 in the searching request.
Therefore, when the user imports the current search entry in any search category, network resource searching method that the embodiment of the invention provides or search system can be according to first corresponding relation and/or second corresponding relations of storage, match the search category of current search entry correspondence for the user, perhaps point out the user in the search category of determining, to search for, like this, can be fast and return Search Results more exactly and give the user, save user's search time, improve the efficient of Internet resources search.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.