Summary of the invention
In view of this, the embodiment of the present invention provides a kind of searching method and system, can provide abundanter for userSearch Results, and realize simple, convenient.
Technical scheme of the present invention is achieved in that
The invention provides a kind of searching method, comprising: according to looking into of the query string identification user of user's inputAsk intention, need to carry out vertical search according to the query intention identifying is definite time, carry out universal search simultaneouslyAnd vertical search, and vertical search result and generic search results are integrated, obtain final Search Results.
In such scheme, the method also comprises: show described final Search Results.
In such scheme, the described query intention according to the query string identification user of user's input is: receive and useThe query string of family input, and the query string of receiving is carried out to pretreatment; According to pretreatment result identification user'sQuery intention.
In such scheme, the method also comprises: determine and do not need to carry out vertically according to the query intention identifyingWhen search, carry out universal search; And using generic search results as final Search Results.
In such scheme, the method further comprises: identify query intention for need to obtain word category information,And word category information beyond at least one other types information time, determine need to carry out vertical search.
In such scheme, the method further comprises: described final Search Results is entered according to click volume situationLine ordering.
The present invention also provides a kind of search system, comprising: query string processing module, universal search engine,Vertical search engine, Search Results acquisition module; Wherein,
Described query string processing module, for identify user's query intention according to the query string of user's input,Need to vertically retrieve according to the query intention identifying is definite time, to universal search engine and vertical searchEngine sends inquiry request;
Described universal search engine, for completing universal search, and sends to search knot by generic search resultsFruit acquisition module;
Described vertical search engine, for completing vertical search, and sends to search knot by vertical search resultFruit acquisition module;
Described Search Results acquisition module, for carrying out the generic search results of receiving and vertical search resultIntegrate, and using the Search Results after integration as final Search Results.
In such scheme, this system also comprises search result display module; Described Search Results acquisition module,Also for final Search Results is sent to search result display module; Described search result display module, usesShow in the final Search Results that Search Results acquisition module is sent.
In such scheme, described query string processing module further comprises: query string receiving element, pretreatmentUnit, identification and judging unit; Wherein, described query string receiving element, for receiving looking into of user's inputAsk string, and the query string of receiving is sent to pretreatment unit; Described pretreatment unit, for receivingQuery string carries out pretreatment, and pretreatment result is sent to identification and judging unit; Described identification and judgementUnit, for according to pretreatment result identification user's query intention, determines need to carry out vertical search time,Send inquiry request to universal search engine and vertical search engine.
Wherein, described identification and judging unit specifically for: identifying query intention according to pretreatment result isNeed to obtain at least one the other types information beyond word category information and word category information time, determineNeed to carry out vertical search, and send inquiry request to universal search engine and vertical search engine.
Searching method provided by the invention and system, according to the query string identification user's of user's input inquiry meaningFigure, determining according to the query intention that identifies need to carry out vertical search time, carry out simultaneously universal search andVertical search, and the Search Results of the Search Results of vertical search and universal search is combined and offeredUser. So, can provide varied Search Results that meets user's request for user, as news, video,Picture, blog, forum etc.
The present invention, according to the query string identification user query intention of user's input, can not only fully understand user'sQuery intention, and implementation is simple, convenient; The present invention is combined in one by universal search and vertical searchRising, can be the Search Results that user provides more professional, precision is higher, abundanter.
Detailed description of the invention
In the embodiment of the present invention, according to the query string identification user's of user input query intention, according to knowledgeThe query intention not going out is determined need to carry out vertical search time, carries out universal search and vertical search simultaneously, andVertical search result and generic search results are integrated, and the Search Results after integration is as final Search Results.
Here, if only there is generic search results, directly using generic search results as final Search Results;That is to say, if only have generic search results, process by the implementation of prior art.
Further, obtain after final Search Results, the final Search Results obtaining can be shown to user.
Below in conjunction with accompanying drawing, realization of the present invention is described in detail.
Searching method of the present invention as shown in Figure 1, comprises the following steps:
Step 101: receive the query string of user's input, and the query string of receiving is carried out to pretreatment;
Here, described pretreatment mainly refers to that the query string to receiving carries out word segmentation processing, described word segmentation processingIdentify by implication phonetically the query string of receiving exactly, and be multiple words by query string cutting, described inWord can be respectively as query word; For example, the query string of receiving is: 26 Games for university students, this query string can quiltCutting is: 26,, three words of Games for university students, so, 26,, Games for university students can be used as three query words.Specifically how query string is carried out to pretreatment and belong to prior art, no longer describe in detail here.
Step 102: according to pretreatment result, identification user's query intention;
Here according to the query word obtaining after pretreatment, can analyze the current query intention of user, example,As, if current query word is mobile communication, so, query intention is inquiry word relevant information, bagDraw together news, noun introduction, correlation technique introduction, Related product introduction etc.; If query word is Liu Dehua,So, user expect inquiry should comprise news information, video information, pictorial information, blog information etc.Deng, be polytype combination.
Due to each user if before retrieved, all can history of existence searching record, in this step, enter oneStep, can be in conjunction with this pretreatment result and the common identification of historical search record user's query intention. RatioAs: when user inputs certain name inquiry for the first time, may only provide news information, character introduction informationDeng, but user is by further search, has obtained again this personage's video information, blog information, picture letterBreath, so, needs to obtain news information, character introduction information, video information, blog letter after input nameBreath and pictorial information just become historical search record; When this user retrieves after input inquiry string again, asFruit is confirmed to be name, and news information, character introduction information, video information, blog letter can be provided simultaneouslyPolytype information such as breath, pictorial information, to meet user's demand.
Step 103~105: determine whether to carry out vertical search according to the user's query intention identifying,If need to carry out vertical search, search engine, in completing universal search, carries out vertical search,Afterwards, search engine returns to respectively generic search results and vertical search result, execution step 106b; Otherwise,Search engine only completes universal search, and returns to generic search results, execution step 106a;
For example, if confirm only to need to obtain the information of word class according to pretreated query word, just determineDo not need to carry out vertical search; If confirm to obtain word class letter except needs according to pretreated query wordBeyond breath, also need to obtain the information of the other types such as video and/or picture and/or blog, determine and needCarry out vertical search.
In this step, determine whether query intention comprises after vertical search, then send to corresponding search engineInquiry request, concrete, determine while not needing to carry out vertical search, only send inquiry to universal search engineRequest, carries query string in request; Determine need to carry out vertical search time, simultaneously to universal search engine andVertical search engine sends inquiry request, carries query string in request.
For determining whether to carry out vertical search, can also set in advance query intention model of cognition, in inquiryIntention provides rule or the condition of various query intentions in model of cognition, so, according to pretreatment result orMeet which kind of rule according to pretreatment result and historical search record analysis and just complete which kind of retrieval, such as: symbolThe information that only needs universal search of A, C normally, when meeting regular B, D, also needs are vertically searchedThe information of rope; Accordingly, by carry out in pretreated query word and query intention model of cognition rule orCondition is mated, to identify the current query intention of user, and then determines whether to carry out vertical search.
In the application, adopt vertical search, data volume is less comparatively speaking, almost can accomplish to upgrade very soon, thisSample, directly lifting user's experience.
Step 106a: using generic search results as final Search Results, finish current handling process;
Step 106b: generic search results and vertical search result are integrated, and by the search after integratingResult is as final Search Results;
Here, for the situation of only having generic search results, directly using generic search results as final searchResult; For the situation of returning to generic search results and vertical search result simultaneously, need to be by two kinds of search knotsFruit is integrated, and namely the set of two Search Results is merged and asks union, and by searching after integratingHitch fruit is as final Search Results.
Wherein, for final Search Results, can also be further according to the click in gathered historical dataAmount situation, sorts to the current final Search Results obtaining, and comes clicking maximum Search ResultsAbove, other Search Results can be pressed click volume successively from how to arrange to few order; And, due to click volume feelingsCondition is real-time change, so can enter the sequence of Search Results the final Search Results obtaining at every turnRow is adjusted in real time. As: the final Search Results obtaining comprises seven Search Results A1~A7, according to historyClick volume, can be arranged as A3, A5, A1, A2, A4, A6, A7 by seven Search Results; A3 canFor video search result, A5 can be audio search result, and A1 is picture search result, and A2 can be newHear Search Results, A4 can be Blog Search result, and A6, A7 can be text search result.
Further, the method also comprises: obtained final Search Results is shown to user; Wherein,Described final Search Results can be the Search Results through sequence.
For realizing said method, the present invention also provides a kind of search system, as shown in Figure 2, comprising: look intoAsk string manipulation module, universal search engine, vertical search engine, Search Results acquisition module; Wherein,
Query string processing module, for identify user's query intention according to the query string of user's input, according toThe query intention identifying is determined need to vertically retrieve time, to universal search engine and vertical search engineSend inquiry request; Wherein, in inquiry request, carry query string.
Universal search engine, for completing universal search, and sends to Search Results to obtain generic search resultsDelivery piece;
Vertical search engine, for completing vertical search, and sends to Search Results to obtain vertical search resultDelivery piece;
Search Results acquisition module, for the generic search results of receiving and vertical search result are integrated,And using the Search Results after integration as final Search Results.
Further, if query string processing module, according to the query intention identifying, is determined and is not needed to carry outVertical retrieval, query string processing module only sends inquiry request to universal search engine; Accordingly, only haveUniversal search engine sends generic search results to Search Results acquisition module; Search Results acquisition module is only receivedDuring to generic search results, using generic search results as final Search Results.
Above-mentioned query string processing module further comprises: query string receiving element, pretreatment unit, identification andJudging unit; Wherein,
Query string receiving element, for receiving the query string of user's input, and sends to the query string of receivingPretreatment unit; Pretreatment unit, for the query string of receiving is carried out to pretreatment, and by pretreatment resultSend to identification and judging unit;
Here, pretreatment unit can be participle unit, described participle unit can by the query string of receiving according toLinguistics implication is divided into one or more words, afterwards word segmentation result is sent to identification and judging unit;
Identification and judging unit, for according to pretreatment result identification user's query intention, determine to enterWhen row vertical search, send inquiry request to universal search engine and vertical search engine.
This identification and judging unit specifically for: identify query intention for obtaining according to pretreatment resultWhen at least one other types information beyond word category information and word category information, determine and need to carry outVertical search, and send inquiry request to universal search engine and vertical search engine.
In addition, this identification and judging unit, determining while not needing to carry out vertical search, only draw to universal searchHold up transmission inquiry request.
This system also comprises search result display module; Described Search Results acquisition module, also final for inciting somebody to actionSearch Results sends to search result display module, and described search result display module, for searching for knotThe final Search Results that fruit acquisition module is sent shows.
The above, be only preferred embodiment of the present invention, is not intended to limit protection model of the present inventionEnclose, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all shouldWithin being included in protection scope of the present invention.