CN105550177B - A kind of interference method and device of search result - Google Patents

A kind of interference method and device of search result Download PDF

Info

Publication number
CN105550177B
CN105550177B CN201410592727.3A CN201410592727A CN105550177B CN 105550177 B CN105550177 B CN 105550177B CN 201410592727 A CN201410592727 A CN 201410592727A CN 105550177 B CN105550177 B CN 105550177B
Authority
CN
China
Prior art keywords
intervention
search result
retrieval string
string
rule
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.)
Active
Application number
CN201410592727.3A
Other languages
Chinese (zh)
Other versions
CN105550177A (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.)
Tencent Cyber Shenzhen Co Ltd
Original Assignee
Tencent Cyber Shenzhen 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 Tencent Cyber Shenzhen Co Ltd filed Critical Tencent Cyber Shenzhen Co Ltd
Priority to CN201410592727.3A priority Critical patent/CN105550177B/en
Publication of CN105550177A publication Critical patent/CN105550177A/en
Application granted granted Critical
Publication of CN105550177B publication Critical patent/CN105550177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a kind of interference method of search result, which comprises receives search result intervention request, described search result intervention request includes search result to be intervened and retrieval string, and the retrieval string is for searching out the search result to be intervened;In preset retrieval string and the corresponding relationship of search result intervention rule, the corresponding search result intervention rule of the retrieval string is inquired;The search result to be intervened, search result after being intervened are handled using described search result intervention rule;Search result intervention response is sent, described search result intervention response includes search result after the intervention.Compared with prior art, the search logic of intervention logical AND search engine of the invention be distinguish completely it is independent.Meanwhile the present invention does not need the certain logic for developing search result intervention respectively for different types of searching service, undoubtedly improves the efficiency that search result interference method is added to each searching service.

Description

A kind of interference method and device of search result
Technical field
The present invention relates to search applied technical fields, and in particular to a kind of interference method and device of search result.
Background technique
Increasingly developed with big data, search engine application technology is got more and more extensive concerning of people.User is past Their search need can be met to the greatest extent toward the search result that search engine obtains is desirable with.But it is based on mesh The limitation of preceding searching algorithm etc. usually cannot often be met the needs of users using the search result that search engine obtains.
It, can be prior before displaying for a user search result in order to provide more accurate search result for user The search result of search engine is effectively handled, to obtain the search result closer to user demand finally to user's exhibition Show.The above-mentioned intervention process that search result is effectively treated being known as in advance to search result.
Search logic coupling to logical AND search engine in the interference method of search result, is intervened at present.That is, Once any one section of intervention logic goes wrong, then the search logic of entire search engine can also face the danger of paralysis.Meanwhile It is directed to different types of searching service (such as music, video search business) in existing method, needs respectively its exploitation search knot The pre- certain logic of dried fruit.This undoubtedly reduces the efficiency that searching service increases search result intervention functions.
Summary of the invention
In view of this, the present invention provides a kind of interference method of search result and devices.
The present invention provides a kind of interference methods of search result, which comprises
Search result intervention request is received, described search result intervention request includes that search result to be intervened and retrieval are gone here and there, The retrieval string is for searching out the search result to be intervened;
In preset retrieval string and the corresponding relationship of search result intervention rule, the corresponding search of the retrieval string is inquired As a result intervention rule;
The search result to be intervened, search result after being intervened are handled using described search result intervention rule;
Search result intervention response is sent, described search result intervention response includes search result after the intervention.
Preferably, described in preset retrieval string and the corresponding relationship of search result intervention rule, inquire the retrieval It goes here and there before corresponding search result intervention rule, further includes:
Whether inquire in preset retrieval string and the corresponding relationship of search result intervention rule includes that the retrieval is gone here and there;
When not including retrieval string in the retrieval string and the corresponding relationship of search result intervention rule, send not dry Pre- response, it is described not intervene response for indicating that the search result to be intervened is not intervened.
Preferably, before the reception search result intervention request, further includes:
Retrieval string intervention request is received, the retrieval string intervention request includes retrieval string;
It is gone here and there in preset retrieval and in the corresponding relationship of retrieval string intervention rule, inquires the corresponding retrieval string of the retrieval string Intervention rule;
When retrieval string intervention rule corresponding there are retrieval string, using described in retrieval string intervention rule processing Retrieval string, retrieves string after being intervened;
Retrieval string intervention response is sent, the retrieval string intervenes response including retrieving string after the intervention;
Correspondingly, described search result intervention request includes that string is retrieved after intervening search result and the intervention, it is described Retrieval string is for searching out the search result to be intervened after intervention.
Preferably, the method also includes:
With one-to-one relationship, in advance will retrieval string and search result intervention rule and or retrieval string intervention rule Corresponding relationship stores in the database;
Increase, modification and or delete database in retrieval string and search result intervention rule and or retrieval string intervene advise Corresponding relationship then.
Preferably, the method also includes:
Record handles the number of search result to be intervened using search result intervention rule;
With or, record using retrieval string intervention rule processing retrieval string number;
Correspondingly, it is described increase, modification and or delete database in retrieval string and search result intervention rule and or The corresponding relationship of retrieval string intervention rule, specifically:
According to the number of the record, increase, modification and or delete the retrieval string in database and search result intervention rule Then with or retrieval string intervention rule corresponding relationship.
The present invention also provides a kind of tampering devic of search result, described device includes:
First receiving module, for receiving search result intervention request, described search result intervention request includes wait intervene Search result and retrieval string, the retrieval string is for searching out the search result to be intervened;
First enquiry module, for inquiring institute in the corresponding relationship of preset retrieval string and search result intervention rule State the corresponding search result intervention rule of retrieval string;
First processing module is obtained for handling the search result to be intervened using described search result intervention rule Search result after intervention;
First sending module, for sending search result intervention response, described search result intervention response includes described dry Prognosis search result.
Preferably, described device further include:
Second enquiry module, for inquiring preset retrieval string and whether being wrapped in the corresponding relationship of search result intervention rule Include the retrieval string;
Second sending module is that retrieval string and search result are dry for the query result in second enquiry module When not including retrieval string in the corresponding relationship of pre- rule, response is not intervened in transmission, described not intervene response for indicating Search result to be intervened is stated not intervened.
Preferably, described device further include:
Second receiving module, for receiving retrieval string intervention request, the retrieval string intervention request includes retrieval string;
Third enquiry module, for going here and there and being retrieved in the corresponding relationship for going here and there intervention rule in preset retrieval, described in inquiry The corresponding retrieval string intervention rule of retrieval string;
Second processing module, for utilizing the retrieval when retrieval string intervention rule corresponding there are retrieval string Intervention rule of going here and there handles the retrieval string, and string is retrieved after being intervened;
Third sending module, for sending retrieval string intervention response, the retrieval string intervenes response including after the intervention Retrieval string.
Preferably, described device further include:
Memory module, for one-to-one relationship, in advance will retrieval string and search result intervention rule and or retrieval The corresponding relationship storage of string intervention rule is in the database;
Adjust module, for increase, modify and or delete database in retrieval string and search result intervention rule and Or the corresponding relationship of retrieval string intervention rule.
Preferably, described device further include:
First logging modle, for recording the number for utilizing search result intervention rule to handle search result to be intervened;With Or,
Second logging modle, for recording the number using retrieval string intervention rule processing retrieval string;
Correspondingly, the adjustment module, specifically for the number according to the record, increase, modification and or delete data In library retrieval string with search result intervention rule and or retrieval string intervention rule corresponding relationship.
In the interference method of search result provided by the invention, search result intervention request, described search knot are received first Dried fruit pre-request includes search result to be intervened and retrieval string, and the retrieval string is for searching out the search result to be intervened; Secondly, inquiring the corresponding search knot of the retrieval string in preset retrieval string and the corresponding relationship of search result intervention rule Fruit intervention rule;Again, the search result to be intervened is handled using described search result intervention rule, is searched for after being intervened As a result;Finally, sending search result intervention response, described search result intervention response includes search result after the intervention.This The search logic of the intervention logical AND search engine of invention be distinguish completely it is independent.Meanwhile the present invention is not needed for difference The searching service of type develops the certain logic of search result intervention respectively, undoubtedly improves search result interference method and is added to The efficiency of each searching service.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the interference method flow chart of search result provided by the invention;
Fig. 2 is the interference method interaction figure of search result provided by the invention;
Fig. 3 is the interference method interaction figure of search result provided by the invention;
Fig. 4 is the tampering devic structural schematic diagram of search result provided by the invention;
Fig. 5 is the partial structure diagram of server provided by the invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
It is the interference method flow chart of search result provided in an embodiment of the present invention with reference to Fig. 1, the method specifically can be with Include:
S101: search result intervention request is received, described search result intervention request includes search result to be intervened and inspection Rope string, the retrieval string is for searching out the search result to be intervened.
In the present embodiment, after searching out the corresponding search result of the retrieval string using retrieval string, by described search knot Fruit is determined as search result to be intervened.The search result intervention for receiving search result to be intervened described in carrying and the retrieval string is asked It asks, to be intervened according to described search result intervention request the search result to be intervened.
In practical application, the retrieval string can be keyword, the word etc. for user's input that search engine receives.It is described The search result that search result to be intervened can search out for search engine according to the retrieval string.The inspection such as inputted according to user Rope string " Liu Dehua ", search engine may search for out song " ice rain " and " practice ".It is corresponding to dry then to retrieve string " Liu Dehua " Pre-search result is song " ice rain " and " practice ".
S102: it in preset retrieval string and the corresponding relationship of search result intervention rule, inquires the retrieval string and corresponds to Search result intervention rule.
In the present embodiment, the corresponding relationship of retrieval string and search result intervention rule, specific setting up procedure are preset It can be configured according to searching service demand and using the demand of user.In addition, retrieval string and search result intervention rule Corresponding relationship can be one-to-one corresponding relationship.
In practical application, the corresponding relationship of HASH table memory scan string and search result intervention rule can use, wherein Retrieval string is stored in the key field of HASH table, and search result intervention rule is stored in the value field of HASH table.That is, Retrieval string inquiry HASH table can be passed through and found and its unique corresponding search result intervention rule.
In concrete application, the search result intervention rule that the searching service that can preset each type can be general, And respectively each general search result intervention rule setting retrieval string, form pair for being stored in the key-value of HASH table It should be related to.
In the present embodiment, pair of preset retrieval string and search result intervention rule can also be inquired in advance before S102 It whether include that the retrieval is gone here and there in should being related to.When not including institute in the retrieval string and the corresponding relationship of search result intervention rule When stating retrieval string, response is not intervened in transmission, described not intervene response for indicating that the search result to be intervened is not intervened.Tool Body, it is described that not intervene response may include the search result to be intervened, for indicate the search result to be intervened not by Intervene.Indicate that the search result shown to user is the search result to be intervened that is, sending and not intervening response.
In addition, continuing when including retrieval string in the retrieval string and the corresponding relationship of search result intervention rule Execute S102.
S103: the search result to be intervened is handled using described search result intervention rule, knot is searched for after being intervened Fruit.
In the present embodiment, in preset retrieval string and the corresponding relationship of search result intervention rule, the inspection is inquired After the corresponding search result intervention rule of rope string, the search result to be intervened is handled using described search result intervention rule, Finally obtain search result after intervening.
In practical application, general search result intervention rule can be set according to user demand and searching service demand, The corresponding relationship of retrieval string and general search result intervention rule is set.Several general search result intervention rule introduced below Then, it but is not limited to following several.
1, the top n ranking of result is specified search for.
It is treated and is intervened after search result handled using the 1st general search result intervention rule, after the intervention The top n ranking of search result is what the intervention rule was specified.For example, retrieval string is " Liu Dehua " in music searching business, If its corresponding search result intervention rule is preceding 3 rankings specified search in result, can be according to intervention rule Regulation makes number one specified song " ice rain ", and song " practice " comes second, and song " love of thank you " comes the Three.The desired search result that user needs quickly can be placed on search by the 1st general search result intervention rule As a result front enhances user's search experience so as to the search result that user can more intuitively be needed.
2, the final sorting position of some search result is specified.
It is treated and is intervened after search result handled using the 2nd general search result intervention rule, after the intervention The final sorting position of some search result of search result is what the intervention rule was specified.For example, in music searching business, Retrieval string is " Liu Dehua ", if it is desired to which song " ice rain " forces to come the 5th of search result, then general using the 2nd Search result intervention rule is treated intervention search result and is handled.It, can be with by specifying search for the final sorting position of result The biggish search result of user's search need is put into before search result.Alternatively, it is also possible to utilize such intervention rule, The relatively back of final search result will not be put by the search result that user needs.
3, the corresponding whole search results of some retrieval string are specified.
It can specify whole search results and the row of some retrieval string using the 2nd general search result intervention rule Sequence.For example, retrieval string is " Ren Xianqi " in music searching business, it is possible to specify whole search results are " the sad Pacific Ocean " row At first, " perfect conjugal bliss night " comes second, does not show other search results.By specifying some retrieval string corresponding complete Portion's search result can pass through such intervention rule when the search result that search obtains is not that most users need Handle search result.We can evade falling some sub-optimal results recalled by search engine, directly show more satisfactory As a result user, enhancing user search experience are given to.
4, the relative position sequence in result is specified search for.
Wherein, it can specify the relative order position of the corresponding multiple search results of a retrieval string using the intervention rule It sets.For example, retrieval string is " Liu Dehua " in music searching business, the demand of user is centainly to come song " ice rain " " to practice Practise " before, and " practice " centainly comes before " love of thank you ", while being not relevant between them whether having other songs It is bent.It then can satisfy the demand of user using this intervention rule.So search result can be increased using such intervention rule Superiority and inferiority discrimination improves the tendentiousness of search result.
5, it is filtered according to the certain field content of search result.
Wherein, certain information can be hit to certain field in the search result that search engine obtains using the intervention rule Search result be filtered.For example, retrieval string is " Liu Dehua " in music searching business, it can be by the song of search result In " singer " be " Ren Xianqi " song filtering.The intervention rule being filtered by the certain field content according to search result Then, the search result that certain fields do not meet user demand can quickly and effectively be filtered out.In fact, whether being imitated from search Fruit, or such intervention rule is effective in terms of safety.
6, two minor sorts of result are scanned for according to the certain field content of search result.
Wherein, search can be tied according to certain information in the certain field content of search result using the intervention rule Fruit carries out two minor sorts.For example, in music searching business, retrieval string is " Beijing welcomes you ", can use song code rate to searching Hitch fruit carry out two minor sorts, that is to say, that the higher search result of song code rate finally arrange closer to front.Pass through basis The certain field content of search result scans for the intervention rule of two minor sorts of result, can quickly, flexibly solve to search Hitch fruit strict order demand, increases the response speed of sequence logic.
7, some corresponding particular search result of retrieval string is filtered.
Wherein, some corresponding particular search result of retrieval string can be filtered using the intervention rule, obtains meet demand Search result.For example, in application searches business, retrieval string is " mobile phone assistant ", and business demand is to filter out that " * * * mobile phone helps The search result of hand ", but other retrievals are not filtered in the case where going here and there, then current intervention rule can satisfy the application and need It asks.Be filtered by going here and there corresponding particular search result to some retrieval, can filter out be not desired in the case where specific retrieval is gone here and there by It is recalling as a result, guarantee search result controllability.
8, the safety filtering of search result.
Wherein, certain search results, such as color can quickly be filtered out under any retrieval string using the intervention rule Feelings, violence, reaction, copyright problem etc..For example, retrieval string is " Falun Gong " in news search business, it can be by such dry Pre- rule will support the news of Falun Gong to filter out, and obtain safe search result.It, can be with by the safety filtering of search result The legitimacy for the search service that protection business itself provides, timely responds to may relate to safety problem search result.
S104: sending search result intervention response, and described search result intervention response includes search result after the intervention.
In the present embodiment, first with the corresponding search result intervention rule of retrieval string to described wait intervene search knot After fruit is handled, search result after being intervened.Secondly, sending search result for the search result intervention request received Intervene response, so as to search result after showing the intervention to user.Wherein, described search result intervention response includes described dry Prognosis search result.
It is the interference method interaction figure of search result provided in an embodiment of the present invention, the method is client with reference to Fig. 2 The search result interference method of interaction between end, search server and intervention server, can specifically include:
S201: search server receives the retrieval string from client, wherein the retrieval string can be client user The search key of input.
S202: search server according to the retrieval string scan for after, obtain search result, and determine it as to Intervene search result.Search result intervention request is sent to intervention server, described search result intervention request includes wait intervene Search result and retrieval string.
S203: after the intervention server receives described search result intervention request, the intervention of described search result is obtained Retrieval string in request, and judge locally whether there is the retrieval string.
In practical application, the intervention server is in advance in pair that retrieval string and search result intervention rule is locally stored It should be related to.Specifically, the retrieval string that judgement is locally stored is with the corresponding relationship of search result intervention rule, inquiry whether there is The retrieval string.
S204: it when the intervention server determines the local string there is no the retrieval, is sent to the described search period of service Do not intervene response, so that the search result that do not intervened is sent to client by described search server, and is shown by client To user.Wherein, described not intervene response may include the search result to be intervened, or not intervene institute including can be identified for that State the flag bit of search result to be intervened.
S205: it when the intervention server, which determines locally, has retrieval string, is tied in the retrieval string and search prestored In the corresponding relationship of fruit intervention rule, search result intervention rule corresponding with the retrieval string is inquired.
In practical application, the corresponding relationship of retrieval string and search result intervention rule can be preparatory with one-to-one relationship Storage is in the database.Wherein it is possible to by increase, modification and or cancel statement adjust database in retrieval string and search As a result the corresponding relationship of intervention rule.
S206: the search result to be intervened is handled using the search result intervention rule inquired, is searched after being intervened Hitch fruit.
S207: search result after the intervention is sent to described search server by the intervention server, so as to described Search result after the intervention is sent to client by search server, and is shown to user by client.
With reference to Fig. 3, for the interference method interaction for the search result that the embodiment of the present invention provides on the basis of above-mentioned Fig. 2 Scheme, specifically, can also include that retrieval string intervenes step before the S202 in Fig. 2.
Specifically, the retrieval string intervention step includes:
S301: it is dry that search server sends retrieval string after receiving the retrieval string from client, to intervention server Pre-request, the retrieval string intervention request include retrieval string.
S302: the intervention server inquires institute in corresponding relationship of the preset retrieval string with retrieval string intervention rule State the corresponding retrieval string intervention rule of retrieval string.Wherein, when the intervention server determines that local go here and there there are the retrieval corresponds to Retrieval string intervention rule when, handle the retrieval using retrieval string intervention rule and go here and there, retrieval is gone here and there after being intervened.
For example, the retrieval string " liudehua " that user inputs can be rewritten as " Liu De using retrieval string intervention rule China ", so that search server can search out search result according to retrieval string " Liu Dehua ".
The following are the present embodiment provides two kinds of general retrieval string intervention rules, but it is not limited only to both intervention rules.
1, retrieval falsification is write.
Wherein, it is write as using the retrieval falsification for being unfavorable for search that the intervention rule can input user corresponding Conducive to the retrieval string of search.Such as, the retrieval string " liudehua " that user inputs can be rewritten as " Liu Dehua ".Pass through such inspection The rewriting intervention rule of rope string can solve the problem that search engine recalls search result inaccuracy, being capable of guiding search engine Semantic understanding optimization.
2, search condition is concatenated into according to retrieval.
Wherein, expand a retrieval string correlated condition of retrieval using the intervention rule.For example, music searching business In, if the retrieval string of user's input is " Liu Dehua ", a search condition out can be expanded " Liu Dehua ", such as only retrieved The music of " singer " hit " Liu Dehua ".By expanding search condition, the search result that search engine is recalled can be carried out more Add and accurately control, reduces the middle noise that search engine returns the result.
S303: the intervention server sends retrieval string to described search server and intervenes response, and the retrieval string is intervened Response includes retrieval string after the intervention.
When the intervention server determines local retrieval string intervention rule corresponding there is no retrieval string, Xiang Suoshu Search server sends retrieval string and does not intervene response, wherein retrieval string does not intervene response for indicating that the retrieval string is not done In advance.It may include the retrieval string that the retrieval string, which does not intervene response,.
S304: retrieval string scans for after intervening described in described search server by utilizing, obtains search result.
In the present embodiment, after S304, the S202 in Fig. 2 is continued to execute, is finally completed the intervention of search result.
In addition, the present embodiment can be corresponding with retrieval string intervention rule by retrieval string in advance with one-to-one relationship Relationship stores in the database.It to the retrieval string in database and can be retrieved by increase, modification and or cancel statement simultaneously The corresponding relationship of string intervention rule is adjusted.
In practical application, in order to meet the needs of business, can record in real time using search result intervention rule handle to Intervene the number of search result;The number using retrieval string intervention rule processing retrieval string can also be recorded in real time.Furthermore it is possible to According to the number of the record, increase, modification and or delete retrieval string in database and search result intervention rule and or The corresponding relationship of retrieval string intervention rule.
In the interference method of search result provided in an embodiment of the present invention, the search logic for intervening logical AND search engine is It distinguishes completely independent.Meanwhile the present invention does not need to develop search result intervention respectively for different types of searching service Certain logic undoubtedly improves the efficiency that search result interference method is added to each searching service.
It is the tampering devic structural schematic diagram of search result provided in an embodiment of the present invention, described device packet with reference to Fig. 4 It includes:
First receiving module 401, for receiving search result intervention request, described search result intervention request includes to dry Pre-search result and retrieval string, the retrieval string is for searching out the search result to be intervened;
First enquiry module 402, for inquiring in the corresponding relationship of preset retrieval string and search result intervention rule Corresponding search result intervention rule is gone here and there in the retrieval;
First processing module 403 is obtained for handling the search result to be intervened using described search result intervention rule Search result after to intervention;
First sending module 404, for sending search result intervention response, described search result intervention response includes described Search result after intervention.
Wherein, described device can also include:
Second enquiry module, for inquiring preset retrieval string and whether being wrapped in the corresponding relationship of search result intervention rule Include the retrieval string;
Second sending module is that retrieval string and search result are dry for the query result in second enquiry module When not including retrieval string in the corresponding relationship of pre- rule, response is not intervened in transmission, described not intervene response for indicating Search result to be intervened is stated not intervened.
Specifically, described device can also include:
Second receiving module, for receiving retrieval string intervention request, the retrieval string intervention request includes retrieval string;
Third enquiry module, for going here and there and being retrieved in the corresponding relationship for going here and there intervention rule in preset retrieval, described in inquiry The corresponding retrieval string intervention rule of retrieval string;
Second processing module, for utilizing the retrieval when retrieval string intervention rule corresponding there are retrieval string Intervention rule of going here and there handles the retrieval string, and string is retrieved after being intervened;
Third sending module, for sending retrieval string intervention response, the retrieval string intervenes response including after the intervention Retrieval string.
Wherein, described device can also include:
Memory module, for one-to-one relationship, in advance will retrieval string and search result intervention rule and or retrieval The corresponding relationship storage of string intervention rule is in the database;
Adjust module, for increase, modify and or delete database in retrieval string and search result intervention rule and Or the corresponding relationship of retrieval string intervention rule.
Described device can also include:
First logging modle, for recording the number for utilizing search result intervention rule to handle search result to be intervened;With Or,
Second logging modle, for recording the number using retrieval string intervention rule processing retrieval string;
Correspondingly, the adjustment module, specifically for the number according to the record, increase, modification and or delete data In library retrieval string with search result intervention rule and or retrieval string intervention rule corresponding relationship.
The embodiment of the present invention can by intervene logical AND search engine search logic be distinguish completely it is independent.Meanwhile The present invention does not need the certain logic for developing search result intervention respectively for different types of searching service, undoubtedly improves and searches Hitch fruit interference method is added to the efficiency of each searching service.
It is emphasized that any one above-mentioned device provided in an embodiment of the present invention can be an independent intervention clothes Business device, is also possible to an independent intervention functions module of search server.Meanwhile if above-mentioned apparatus is one independent Intervention server can then be disposed in a manner of service cluster.
Correspondingly, the embodiment of the present invention also provides a kind of server, it is shown in Figure 5, may include:
Processor 501, memory 502, input unit 503 and output device 504.Processor 501 in intervention server Quantity can be one or more, taken a processor as an example in Fig. 5.In some embodiments of the invention, processor 501, Memory 502, input unit 503 and output device 504 can be connected by bus or other means, wherein by total in Fig. 5 For line connection.
Memory 502 can be used for storing software program and module, and processor 501 is stored in memory 502 by operation Software program and module, thereby executing the various function application and data processing of browser server.Memory 502 can It mainly include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program etc..In addition, memory 502 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Input unit 503 can be used It is related with the user setting of browser server and function control in the number or character information that receive input, and generation Key signals input.
Specifically in the present embodiment, processor 501 can be according to following instruction, by one or more application program The corresponding executable file of process be loaded into memory 502, and run and be stored in memory 502 by processor 501 Application program, to realize various functions:
Search result intervention request is received, described search result intervention request includes that search result to be intervened and retrieval are gone here and there, The retrieval string is for searching out the search result to be intervened;
In preset retrieval string and the corresponding relationship of search result intervention rule, the corresponding search of the retrieval string is inquired As a result intervention rule;
The search result to be intervened, search result after being intervened are handled using described search result intervention rule;
Search result intervention response is sent, described search result intervention response includes search result after the intervention.
Preferably, described in preset retrieval string and the corresponding relationship of search result intervention rule, inquire the retrieval It goes here and there before corresponding search result intervention rule, further includes:
Whether inquire in preset retrieval string and the corresponding relationship of search result intervention rule includes that the retrieval is gone here and there;
When not including retrieval string in the retrieval string and the corresponding relationship of search result intervention rule, send not dry Pre- response, it is described not intervene response for indicating that the search result to be intervened is not intervened.
Preferably, before the reception search result intervention request, further includes:
Retrieval string intervention request is received, the retrieval string intervention request includes retrieval string;
It is gone here and there in preset retrieval and in the corresponding relationship of retrieval string intervention rule, inquires the corresponding retrieval string of the retrieval string Intervention rule;
When retrieval string intervention rule corresponding there are retrieval string, using described in retrieval string intervention rule processing Retrieval string, retrieves string after being intervened;
Retrieval string intervention response is sent, the retrieval string intervenes response including retrieving string after the intervention;
Correspondingly, described search result intervention request includes that string is retrieved after intervening search result and the intervention, it is described Retrieval string is for searching out the search result to be intervened after intervention.
Preferably, the method also includes:
With one-to-one relationship, in advance will retrieval string and search result intervention rule and or retrieval string intervention rule Corresponding relationship stores in the database;
Increase, modification and or delete database in retrieval string and search result intervention rule and or retrieval string intervene advise Corresponding relationship then.
Preferably, the method also includes:
Record handles the number of search result to be intervened using search result intervention rule;
With or, record using retrieval string intervention rule processing retrieval string number;
Correspondingly, it is described increase, modification and or delete database in retrieval string and search result intervention rule and or The corresponding relationship of retrieval string intervention rule, specifically:
According to the number of the record, increase, modification and or delete the retrieval string in database and search result intervention rule Then with or retrieval string intervention rule corresponding relationship.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not In the case where making the creative labor, it can understand and implement.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The interference method and device for being provided for the embodiments of the invention a kind of search result above are described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (8)

1. a kind of interference method of search result, which is characterized in that the described method includes:
Retrieval string intervention request is received, the retrieval string intervention request includes retrieval string;
It goes here and there and is retrieved in the corresponding relationship for going here and there intervention rule in preset retrieval, inquire the corresponding retrieval string intervention of the retrieval string Rule;The retrieval string intervention rule includes the search condition concatenated according to retrieval, and the retrieval string intervention rule is for expanding Fill search condition of the retrieval string when being retrieved;
When retrieval string intervention rule corresponding there are retrieval string, retrieval string intervention rule is utilized to handle the retrieval String retrieves string after being intervened;
Retrieval string intervention response is sent, the retrieval string intervenes response including retrieving string after the intervention;
Search result intervention request is received, described search result intervention request includes examining after intervening search result and the intervention Rope string, retrieval string is for searching out the search result to be intervened after the intervention;
Preset retrieval string in the corresponding relationship of search result intervention rule, inquire after the intervention that retrieval string is corresponding to be searched Hitch fruit intervention rule;Search result intervention rule in the corresponding relationship be for each type searching service it is general 's;
The search result to be intervened, search result after being intervened are handled using described search result intervention rule;
Search result intervention response is sent, described search result intervention response includes search result after the intervention.
2. the method according to claim 1, wherein described in preset retrieval string and search result intervention rule Corresponding relationship in, inquire retrieval after the intervention and go here and there before corresponding search result intervention rule, further includes:
It inquires in preset retrieval string and the corresponding relationship of search result intervention rule and whether is gone here and there including being retrieved after the intervention;
When not including retrieving to go here and there after the intervention in the retrieval string and the corresponding relationship of search result intervention rule, send not Intervene response, it is described not intervene response for indicating that the search result to be intervened is not intervened.
3. the method according to claim 1, wherein the method also includes:
With one-to-one relationship, in advance will retrieval string with search result intervention rule and or retrieval go here and there intervention rule it is corresponding Relationship stores in the database;
Increase, modification and or delete retrieval string in database and search result intervention rule and or retrieval string intervention rule Corresponding relationship.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Record handles the number of search result to be intervened using search result intervention rule;
With or, record using retrieval string intervention rule processing retrieval string number;
Correspondingly, it is described increase, modification and or delete database in retrieval string and search result intervention rule and or retrieval The corresponding relationship of string intervention rule, specifically:
According to the number of the record, increase, modification and or delete retrieval string and search result intervention rule in database With or retrieval string intervention rule corresponding relationship.
5. a kind of tampering devic of search result, which is characterized in that described device includes:
Second receiving module, for receiving retrieval string intervention request, the retrieval string intervention request includes retrieval string;
Third enquiry module, for inquiring the retrieval in corresponding relationship of the preset retrieval string with retrieval string intervention rule Go here and there corresponding retrieval string intervention rule;The retrieval string intervention rule includes the search condition concatenated according to retrieval, the inspection Rope string intervention rule is used to expand search condition of the retrieval string when being retrieved;
Second processing module, for being gone here and there using the retrieval dry when retrieval string intervention rule corresponding there are retrieval string String is retrieved described in pre- rule process, and string is retrieved after being intervened;
Third sending module, for sending retrieval string intervention response, the retrieval string intervenes response including retrieving after the intervention String;
First receiving module, for receiving search result intervention request, described search result intervention request includes wait intervene search As a result with retrieval string after the intervention, retrieval string is for searching out the search result to be intervened after the intervention;
First enquiry module, for inquiring described dry in the corresponding relationship of preset retrieval string and search result intervention rule The corresponding search result intervention rule of prognosis retrieval string;Search result intervention rule in the corresponding relationship is for each class The searching service of type is general;
First processing module is intervened for handling the search result to be intervened using described search result intervention rule Search result afterwards;
First sending module, for sending search result intervention response, described search result intervention response is including after the intervention Search result.
6. device according to claim 5, which is characterized in that described device further include:
Second enquiry module, for inquiring preset retrieval string and whether including institute in the corresponding relationship of search result intervention rule String is retrieved after stating intervention;
Second sending module is retrieval string and search result intervention rule for the query result in second enquiry module Do not include that response is not intervened in transmission in corresponding relationship then when retrieving string after the intervention, it is described do not intervene respond for indicating The search result to be intervened is not intervened.
7. device according to claim 5, which is characterized in that described device further include:
Memory module, for one-to-one relationship, in advance will retrieval string and search result intervention rule and or retrieval string it is dry The corresponding relationship storage of pre- rule is in the database;
Adjust module, for increase, modify and or delete database in retrieval string and search result intervention rule and or inspection The corresponding relationship of rope string intervention rule.
8. device according to claim 7, which is characterized in that described device further include:
First logging modle, for recording the number for utilizing search result intervention rule to handle search result to be intervened;With or,
Second logging modle, for recording the number using retrieval string intervention rule processing retrieval string;
Correspondingly, the adjustment module, specifically for the number according to the record, increase, modification and or delete in database Retrieval string with search result intervention rule and or retrieval string intervention rule corresponding relationship.
CN201410592727.3A 2014-10-28 2014-10-28 A kind of interference method and device of search result Active CN105550177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410592727.3A CN105550177B (en) 2014-10-28 2014-10-28 A kind of interference method and device of search result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410592727.3A CN105550177B (en) 2014-10-28 2014-10-28 A kind of interference method and device of search result

Publications (2)

Publication Number Publication Date
CN105550177A CN105550177A (en) 2016-05-04
CN105550177B true CN105550177B (en) 2019-11-19

Family

ID=55829366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410592727.3A Active CN105550177B (en) 2014-10-28 2014-10-28 A kind of interference method and device of search result

Country Status (1)

Country Link
CN (1) CN105550177B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096642B (en) * 2019-03-19 2021-06-15 义乌市执御信息技术有限公司 Search engine optimization method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079033A (en) * 2006-06-30 2007-11-28 腾讯科技(深圳)有限公司 Integrative searching result sequencing system and method
CN101404018A (en) * 2007-10-05 2009-04-08 富士通株式会社 Implementing an expanded search and providing expanded search results
CN103246654A (en) * 2012-02-03 2013-08-14 腾讯科技(深圳)有限公司 Display processing method and display processing apparatus of search results
CN103294670A (en) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 Searching method and system based on word list
CN104063400A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Data search method and data search device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079033A (en) * 2006-06-30 2007-11-28 腾讯科技(深圳)有限公司 Integrative searching result sequencing system and method
CN101404018A (en) * 2007-10-05 2009-04-08 富士通株式会社 Implementing an expanded search and providing expanded search results
CN103246654A (en) * 2012-02-03 2013-08-14 腾讯科技(深圳)有限公司 Display processing method and display processing apparatus of search results
CN103294670A (en) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 Searching method and system based on word list
CN104063400A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Data search method and data search device

Also Published As

Publication number Publication date
CN105550177A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
KR101183404B1 (en) Systems and methods for providing a user interface with an automatic search menu
CN102075570B (en) Method for implementing HTTP (hyper text transport protocol) message caching mechanism based on keywords
CN101371220B (en) Equipment for transferring and displaying hierarchical data and machine realization method
JP2007094449A5 (en)
CN104965826B (en) Search method and retrieval device based on browser
CN1996302A (en) Method and apparatus for managing bookmark information for content stored in a networked media server
CN101267330A (en) Method and device for playing multimedia file
CA2410747A1 (en) System and method for saving browsed data
CN110321325A (en) File inode lookup method, terminal, server, system and storage medium
CN104090976A (en) Method and device for crawling webpages by search engine crawlers
CN105573667A (en) Data reading method and storage server
CN109471838B (en) Directory document operation method and device, electronic equipment and readable storage medium
CN101226530A (en) Media system having synchronization with preemptive prioritization of synchronization order
CN102982174A (en) Method and device for performing web search in browser
JP2007509410A (en) System and method for generating an aggregated data view in a computer network
KR20120106544A (en) Method for accessing files of a file system according to metadata and device implementing the method
CN102930012A (en) Client and search pilot method
CN103020239A (en) Web searching method and device
CN105745644A (en) Establishment of state representation of a web page represented in a web browser
CN103150357A (en) Browser, system and method capable of realizing compare search
KR20170132294A (en) Provide native application search results with web search results
WO2014059848A1 (en) Web page search device and method
CN104065736A (en) URL redirection method, device, and system
CN107968807A (en) Automatically update the method and device of local cache resource
CN103077196B (en) A kind of access method from public network WEB website to intranet data storehouse

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant