CN102902828B - A kind of method and apparatus for retrieving - Google Patents
A kind of method and apparatus for retrieving Download PDFInfo
- Publication number
- CN102902828B CN102902828B CN201210466103.8A CN201210466103A CN102902828B CN 102902828 B CN102902828 B CN 102902828B CN 201210466103 A CN201210466103 A CN 201210466103A CN 102902828 B CN102902828 B CN 102902828B
- Authority
- CN
- China
- Prior art keywords
- retrieval
- search server
- available
- request
- unit
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000005540 biological transmission Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域 technical field
本发明涉及计算机检索技术领域,更具体地,涉及一种用于检索的方法和装置。The present invention relates to the technical field of computer retrieval, more specifically, to a method and device for retrieval.
背景技术 Background technique
浏览器是指可以显示网页服务器或者文件系统的HTML文件内容,并让用户与这些文件交互的一种软件。网页浏览器主要通过HTTP协议与网页服务器交互并获取网页,这些网页由URL指定,文件格式通常为HTML,并由MIME在HTTP协议中指明。A browser refers to a software that can display the content of HTML files on a web server or file system and allow users to interact with these files. The web browser mainly interacts with the web server through the HTTP protocol to obtain web pages, and these web pages are specified by URL, and the file format is usually HTML, and is specified in the HTTP protocol by MIME.
浏览器中的搜索服务现在被浏览器用户广泛地使用。例如,百度和谷歌提供的搜索服务。搜索引擎是指根据一定的策略、运用特定的计算机处理流程或者计算机程序从互联网上搜集信息,在对信息进行组织和处理后,为用户提供检索服务,将用户检索相关的信息展示给用户的系统。搜索引擎包括全文索引、目录索引、元搜索引擎、垂直搜索引擎、集合式搜索引擎、门户搜索引擎与免费链接列表等。Search services in browsers are now widely used by browser users. For example, search services provided by Baidu and Google. A search engine refers to a system that collects information from the Internet according to a certain strategy and uses a specific computer processing flow or computer program. After organizing and processing the information, it provides users with retrieval services and displays relevant information to users. . Search engines include full-text index, directory index, meta search engine, vertical search engine, collection search engine, portal search engine and free link list, etc.
然而,搜索引擎服务在不是总能够有效地进行,例如由于网络经常出现服务断网的情况而不能联系到提供搜索服务的服务器。这样,对于浏览器用户,将不能得到对应的检索结果。这意味着用户操作的本次搜索失败,由此使得搜索操作繁琐,失败率高,搜索效率较低。However, the search engine service cannot always be performed effectively, for example, the server that provides the search service cannot be contacted due to frequent service outages in the network. In this way, browser users will not be able to obtain corresponding retrieval results. This means that the current search performed by the user fails, which makes the search operation cumbersome, with a high failure rate and low search efficiency.
发明内容 Contents of the invention
鉴于上述问题,本发明提出了一种用于检索的方法和相应的装置,其在即使网络服务经常断网的情况下也能够通过选定的搜索服务器将基于检索请求的检索结果反馈给用户。In view of the above problems, the present invention proposes a search method and corresponding device, which can feed back search results based on search requests to users through a selected search server even when network services are often disconnected.
根据本发明的一方面,提供了一种用于检索的方法,包括:According to an aspect of the present invention, a method for searching is provided, comprising:
获取检索请求;get retrieval request;
判断选定的搜索服务器是否可用,如果判断为不可用,则记录所述检索请求;Judging whether the selected search server is available, if it is judged to be unavailable, recording the retrieval request;
在预设定的时间间隔后重新判断所选定的搜索服务器是否可用,如果判断为可用,则向所述搜索服务器发送所记录的检索请求;Re-judging whether the selected search server is available after a preset time interval, and if it is judged to be available, sending the recorded retrieval request to the search server;
接收所述搜索服务器发送的检索结果;receiving the search result sent by the search server;
将所述检索结果保存在浏览器所在的客户端的存储单元中;和/或saving the retrieval result in the storage unit of the client where the browser is located; and/or
显示所述检索结果。Display the search results.
在可选实施例中,所述方法还包括:在执行重新判断所选定的搜索服务器是否可用的步骤时,如果判断为不可用,则以所述时间间隔为周期继续至少一次执行重新判断所选定的搜索服务器是否可用的步骤。In an optional embodiment, the method further includes: when performing the step of re-judging whether the selected search server is available, if it is judged to be unavailable, continuing to re-judge the selected search server at least once with the time interval as a cycle. Steps to see if the selected search server is available.
在可选实施例中,所述方法还包括:由定时器计量所述预设定的时间间隔;其中,判断选定的搜索服务器是否可用或者重新判断所选定的搜索服务器是否可用包括:向所述搜索服务器发送请求,以得到所述搜索服务器返回的状态信息,根据所述状态信息判断所述搜索服务器是否可用。In an optional embodiment, the method further includes: measuring the preset time interval by a timer; wherein, judging whether the selected search server is available or re-judging whether the selected search server is available includes: The search server sends a request to obtain status information returned by the search server, and judges whether the search server is available according to the status information.
在可选实施例中,所述检索请求是包括关键字的检索请求,记录所述检索请求包括以下之一:记录检索请求中的关键字;记录包括关键字的检索请求;记录根据所述关键字向所述搜索服务器发送的检索请求的URL。In an optional embodiment, the retrieval request is a retrieval request including a keyword, and the retrieval request is recorded to include one of the following: a keyword in the retrieval request is recorded; a retrieval request including a keyword is recorded; The URL of the search request sent to the search server.
在可选实施例中,所述方法还包括:发送检索结果已获得的提示信息;In an optional embodiment, the method further includes: sending a prompt message that the retrieval result has been obtained;
显示所述检索结果包括:接收到请求所述检索结果的消息时,显示所述检索结果。Displaying the retrieval result includes: displaying the retrieval result when a message requesting the retrieval result is received.
根据本发明的又一方面,提供了一种用于检索的装置,包括:According to yet another aspect of the present invention, a device for retrieval is provided, comprising:
获取单元,用于获取检索请求;an acquisition unit, configured to acquire a retrieval request;
判断单元,用于在所述获取单元获取到所述检索请求时,判断选定的搜索服务器是否可用;a judging unit, configured to judge whether the selected search server is available when the acquiring unit acquires the retrieval request;
记录单元,用于在所述判断单元判断为所选定的搜索服务器不可用时,记录所述检索请求;a recording unit, configured to record the retrieval request when the judging unit judges that the selected search server is unavailable;
所述判断单元,还用于在预设定的时间间隔后重新判断所选定的搜索服务器是否可用,The judging unit is further configured to rejudge whether the selected search server is available after a preset time interval,
检索单元,用于在所述判断单元判断为所选定的搜索服务器可用时,向所述搜索服务器发送所记录的检索请求,以及接收所述搜索服务器发送的检索结果;a retrieval unit, configured to send a recorded retrieval request to the search server and receive a retrieval result sent by the search server when the judging unit judges that the selected search server is available;
所述检索单元,还用于在接收到所述搜索服务器发送的检索结果之后,将所述检索结果保存在浏览器所在的客户端的存储单元;发送检索结果已获得的提示信息;以及在接收到请求所述检索结果的消息时,将所保存的检索结果发送给显示单元以显示。。The retrieval unit is further configured to, after receiving the retrieval result sent by the search server, store the retrieval result in the storage unit of the client where the browser is located; send a prompt message that the retrieval result has been obtained; and upon receiving When the message of the search result is requested, the stored search result is sent to the display unit for display. .
在可选实施例中,所述装置还包括:定时器,用于计量所述预设定的时间间隔;所述判断单元判断选定的搜索服务器是否可用或者重新判断所选定的搜索服务器是否可用包括:向所述搜索服务器发送请求,以得到所述搜索服务器返回的状态信息,根据所述状态信息判断所述搜索服务器是否可用。In an optional embodiment, the device further includes: a timer for measuring the preset time interval; the judging unit judges whether the selected search server is available or re-judges whether the selected search server is Being available includes: sending a request to the search server to obtain status information returned by the search server, and judging whether the search server is available according to the status information.
在可选实施例中,所述检索请求是包括关键字的检索请求,记录所述检索请求包括以下之一:记录检索请求中的关键字;记录包括关键字的检索请求;记录根据所述关键字向所述搜索服务器发送的检索请求的URL。In an optional embodiment, the retrieval request is a retrieval request including a keyword, and the retrieval request is recorded to include one of the following: a keyword in the retrieval request is recorded; a retrieval request including a keyword is recorded; The URL of the search request sent to the search server.
在可选实施例中,所述装置是浏览器或者可安装于所述浏览器的插件。In an alternative embodiment, said means is a browser or a plug-in installable on said browser.
根据本发明的又一个方面,还提供了一种用于检索的装置,所述装置包括浏览器,其中,该浏览器包括:According to yet another aspect of the present invention, a device for retrieval is also provided, the device includes a browser, wherein the browser includes:
获取单元,用于获取检索请求;an acquisition unit, configured to acquire a retrieval request;
判断单元,用于在所述获取单元获取到所述检索请求时,判断选定的搜索服务器是否可用;a judging unit, configured to judge whether the selected search server is available when the acquiring unit acquires the retrieval request;
记录单元,用于在所述判断单元判断为所选定的搜索服务器不可用时,记录所述检索请求;a recording unit, configured to record the retrieval request when the judging unit judges that the selected search server is unavailable;
所述判断单元,还用于在预设定的时间间隔后重新判断所选定的搜索服务器是否可用,The judging unit is further configured to rejudge whether the selected search server is available after a preset time interval,
检索单元,用于在所述判断单元判断为所选定的搜索服务器可用时,向所述搜索服务器发送所记录的检索请求,以及,接收所述搜索服务器发送的检索结果。The retrieval unit is configured to send the recorded retrieval request to the search server when the judging unit judges that the selected search server is available, and receive the retrieval result sent by the search server.
本发明通过在选定搜索服务器不可用时记录或保存检索请求,并在选定服务器可用时将所记录或保存的检索请求发送给搜索服务器,从而能够简化搜索操作,提高搜索的成功率以及提高搜索效率。The present invention records or saves the retrieval request when the selected search server is unavailable, and sends the recorded or stored retrieval request to the search server when the selected server is available, thereby simplifying the search operation, improving the success rate of the search and improving the search efficiency. efficiency.
附图说明 Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的功能单元或部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same functional units or components are denoted by the same reference symbols. In the attached picture:
图1示出了根据本发明一个实施例的用于检索的方法流程图。Fig. 1 shows a flowchart of a method for retrieval according to an embodiment of the present invention.
图2是利用本发明的方法进行检索并获得检索结果后的提醒用户的界面示意图。Fig. 2 is a schematic diagram of an interface reminding the user after searching by using the method of the present invention and obtaining the search results.
图3示出了根据本发明一个实施例的用于检索的装置的框图。Fig. 3 shows a block diagram of an apparatus for retrieval according to an embodiment of the present invention.
图4示出了根据本发明另一个实施例的用于检索的装置的框图。Fig. 4 shows a block diagram of an apparatus for retrieval according to another embodiment of the present invention.
具体实施方式 detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
图1是根据本发明一个实施例的用于检索的方法流程图。如图1所述,该方法包括:Fig. 1 is a flowchart of a method for retrieval according to an embodiment of the present invention. As described in Figure 1, the method includes:
S101、获取检索请求。S101. Obtain a retrieval request.
S102、判断选定的搜索服务器是否可用。S102. Determine whether the selected search server is available.
如果执行步骤S102时判断为不可用,则进一步执行步骤S103,记录所述检索请求。在可选实施例中,检索请求是包括关键字的检索请求,记录所述检索请求包括以下之一:记录检索请求中的关键字;记录包括关键字的检索请求;记录根据所述关键字向所述搜索服务器发送的检索请求的URL。If it is judged to be unavailable when step S102 is executed, further execute step S103 to record the retrieval request. In an optional embodiment, the retrieval request is a retrieval request including a keyword, and the retrieval request is recorded to include one of the following: a keyword in the retrieval request is recorded; a retrieval request including a keyword is recorded; The URL of the retrieval request sent by the search server.
如果执行步骤S102时判断为可用,则进一步执行步骤S105,向搜索服务器发送检索请求。If it is determined that it is available when step S102 is executed, step S105 is further executed to send a search request to the search server.
在执行步骤S103后,进一步执行步骤S104、在预设定的时间间隔后重新判断所选定的搜索服务器是否可用。After step S103 is executed, step S104 is further executed to re-determine whether the selected search server is available after a preset time interval.
如果执行步骤S104时判断为可用,则进一步执行步骤S105,向搜索服务器发送检索请求,其中该检索请求是指步骤103记录的检索请求。如果执行步骤S104时判断为不可用,则返回继续执行步骤S104。If it is determined that it is available when step S104 is executed, step S105 is further executed to send a retrieval request to the search server, wherein the retrieval request refers to the retrieval request recorded in step 103 . If it is determined that it is not available when step S104 is executed, then return to continue to execute step S104.
在执行步骤S105后,则进一步执行步骤S106、接收所述搜索服务器发送的检索结果。After step S105 is executed, step S106 is further executed to receive the retrieval result sent by the search server.
下面描述根据本发明另一个实施例的用于检索的方法的一个实例。An example of a method for retrieval according to another embodiment of the present invention is described below.
在通过浏览器侧进行检索时,即浏览器侧接收到通过浏览器的输入框输入的检索请求后进行检索时,基于检索请求获取选定的搜索服务器的状态,并根据所获取的搜索服务器的状态判断搜索服务器是否可用。When searching through the browser side, that is, when the browser side receives a search request input through the input box of the browser and performs a search, it obtains the status of the selected search server based on the search request, and according to the obtained search server Status determines whether the search server is available.
在一可选实施例中,可以是根据检索请求得到用户选定的搜索服务器,然后向选定的搜索服务器发送请求,以得到搜索服务器返回的状态信息,从而判断搜索服务器当前是否可用。In an optional embodiment, the search server selected by the user may be obtained according to the search request, and then a request is sent to the selected search server to obtain status information returned by the search server, so as to determine whether the search server is currently available.
在另一可选实施例中,可以在浏览器启动后,同时启动定时器以计量时间。在计量到预设定的时间间隔后向预设置的搜索服务器发送请求,以得到该搜索服务器返回的状态信息。定时器可以是在计量到预设定的时间间隔后重置,然后重新开时计时。这样,可以每隔一预设定的时间间隔便向搜索服务器发送请求,以得到搜索服务器返回的最新状态信息。这些可以通过浏览器后台来实现。然后,可以根据搜索服务器返回的相对于检索请求时刻的最新状态信息判断搜索服务器是否可用。In another optional embodiment, after the browser is started, a timer can be started at the same time to measure the time. After the preset time interval is measured, a request is sent to a preset search server to obtain status information returned by the search server. The timer can be reset after a preset time interval has been counted, and then restarted. In this way, a request can be sent to the search server every preset time interval to obtain the latest status information returned by the search server. These can be realized through the background of the browser. Then, it can be judged whether the search server is available according to the latest status information returned by the search server relative to the time of the retrieval request.
以搜索服务器为google为例,例如发起的请求为:http://www.google.com.hk/search?q=AAAA,则搜索服务器会返回有关请求状态的信息。Taking the search server as google as an example, for example, the request initiated is: http://www.google.com.hk/search? q=AAAA, the search server returns information about the status of the request.
现有一些常见的状态代码为:200-服务器成功返回网页404-请求的网页不存在503-服务器暂时不可用。Some common status codes are: 200-the server successfully returns the web page 404-the requested web page does not exist 503-the server is temporarily unavailable.
其中对于4xx(请求错误)和5xx类别的返回状态代码可以认为服务器当前状态为不可用。上述状态代码的描述详细见:http://hi.baidu.com/wdown/item/a5598f7ac62b693e70442354Wherein, for the return status codes of 4xx (request error) and 5xx categories, the current status of the server may be considered as unavailable. For a detailed description of the above status codes, see: http://hi.baidu.com/wdown/item/a5598f7ac62b693e70442354
在进一步的可选实施例中,浏览器后台会首先确认以下三点:计算机是否已经连接到互联网;计算机上的防火墙配置是否正确;所请求的搜索服务器的门户网站当前是否存在技术问题。其中,浏览器后台对这三点的确认可以通过对操作系统中的硬件、系统配置进行查询来实现。在确认这三点之后,浏览器才向选定的搜索服务器发送请求,以获得搜索服务器的状态信息。In a further optional embodiment, the browser background will first confirm the following three points: whether the computer has been connected to the Internet; whether the firewall configuration on the computer is correct; whether the portal website of the requested search server currently has technical problems. Among them, the confirmation of these three points by the browser background can be realized by querying the hardware and system configuration in the operating system. After confirming these three points, the browser sends a request to the selected search server to obtain the status information of the search server.
在本发明实施例中,在根据搜索服务器反馈的状态信息判断为搜索服务器不可用时,触发记录检索请求的操作。例如,该记录检索请求的操作可以是记录用户在浏览器的输入框(如地址栏、搜索栏、网页检索输入框等)中输入的关键字。在另一实施例中,也可以是记录依据该输入关键子向google发送的检索请求的url,例如:In the embodiment of the present invention, when it is judged that the search server is unavailable according to the state information fed back by the search server, the operation of recording the retrieval request is triggered. For example, the operation of recording the retrieval request may be to record keywords entered by the user in an input box of the browser (such as an address bar, a search bar, a webpage retrieval input box, etc.). In another embodiment, it is also possible to record the url of the retrieval request sent to google according to the input key, for example:
http://www.google.com.hk/search?q=%BC%D3%C4%C3%B4%F3&client=aff-360daohang&hl=zh-CN&ie=gb2312&newwindow=1。http://www.google.com.hk/search? q=%BC%D3%C4%C3%B4%F3&client=aff-360daohang&hl=zh-CN&ie=gb2312&newwindow=1.
然后,在预设定的时间间隔后重新判断搜索服务器是否可用。例如,在一实施例中,在该预设定的时间间隔后向前述选定的搜索服务器发送请求,以得到该搜索服务器基于该请求返回的状态信息。Then, after a preset time interval, it is re-judged whether the search server is available. For example, in one embodiment, after the preset time interval, a request is sent to the aforementioned selected search server to obtain status information returned by the search server based on the request.
在本发明实施例中,如果根据搜索服务器判断为搜索服务器可用,则将检索请求发送给搜索服务器。或者,在预设定的时间间隔后判断为搜索服务可用,则将所记录的检索请求发送给该搜索服务器。如果在该设定的时间间隔后搜索服务器仍被判断为不可用,则以所述时间间隔为周期继续至少一次执行重新判断所选定的搜索服务器是否可用的步骤,直至判断出搜索服务器为可用时结束。In the embodiment of the present invention, if the search server determines that the search server is available, the retrieval request is sent to the search server. Or, after a preset time interval, it is determined that the search service is available, and the recorded retrieval request is sent to the search server. If the search server is still judged to be unavailable after the set time interval, the step of re-judging whether the selected search server is available is continued at least once at the time interval until it is judged that the search server is available end.
接着,搜索服务器将基于所述检索请求进行检索,并获得相应的检索结果。然后,搜索服务器将该检索结果返回给浏览器侧。在一可选实施例中,返回的检索结果可以保存在浏览器侧本地以供用户查看。在进一步的可选实施例中,向用户提醒已获得基于所述关键字的检索结果。参见图2,示出了利用本发明的方法进行检索并获得检索结果后的提醒用户的界面示意图。这样,在接收到用户的请求检索结果的消息后,将通过一显示界面显示检索结果。在可选实施例中,用户在查看检索结果后不满意的话,可以进一步地修改检索关键字。Next, the search server will perform a search based on the search request and obtain corresponding search results. Then, the search server returns the search result to the browser side. In an optional embodiment, the returned retrieval results may be saved locally on the browser side for viewing by the user. In a further optional embodiment, the user is reminded that the retrieval result based on the keyword has been obtained. Referring to FIG. 2 , it shows a schematic diagram of an interface to remind the user after searching by using the method of the present invention and obtaining the search results. In this way, after receiving a message requesting a search result from a user, the search result will be displayed through a display interface. In an optional embodiment, if the user is not satisfied after viewing the search results, he can further modify the search keywords.
在另一可选实施例中,接收到来自搜索服务器的检索结果后,可以直接通过一显示界面显示检索结果。In another optional embodiment, after receiving the retrieval result from the search server, the retrieval result may be directly displayed through a display interface.
本发明在搜索服务器暂时不可用的情况下,可以将用户输入的检索请求保存,这样无需用户在搜索服务器可用的情况下再次输入检索请求,方便了用户对搜索服务器的合理正常使用。此外,由于浏览器侧会每隔一段时间便判断搜索服务器是否可用,因此可在最快时间内将用户需要的检索结果返回给用户。The present invention can save the search request input by the user when the search server is temporarily unavailable, so that the user does not need to input the search request again when the search server is available, which facilitates the reasonable and normal use of the search server by the user. In addition, since the browser side will judge whether the search server is available at regular intervals, the search results required by the user can be returned to the user in the fastest time.
图3示出了根据本发明一个实施例的用于检索的装置的框图。如图3所示,用于检索的装置1,包括获取单元10、判断单元20、记录单元30和检索单元40。获取单元10,用于获取检索请求。判断单元20,用于在获取单元10获取到所述检索请求时,判断选定的搜索服务器是否可用。记录单元30,用于在判断单元20判断为所选定的搜索服务器不可用时,记录所述检索请求。判断单元20,还用于在预设定的时间间隔后重新判断所选定的搜索服务器是否可用。检索单元40,用于在判断单元20判断为所选定的搜索服务器可用时,向所述搜索服务器发送检索请求。进一步地,检索单元40还用于接收所述搜索服务器发送的检索结果。Fig. 3 shows a block diagram of an apparatus for retrieval according to an embodiment of the present invention. As shown in FIG. 3 , the retrieval device 1 includes an acquisition unit 10 , a judging unit 20 , a recording unit 30 and a retrieval unit 40 . The obtaining unit 10 is configured to obtain a retrieval request. The judging unit 20 is configured to judge whether the selected search server is available when the obtaining unit 10 obtains the retrieval request. The recording unit 30 is configured to record the retrieval request when the judging unit 20 judges that the selected search server is unavailable. The judging unit 20 is further configured to rejudge whether the selected search server is available after a preset time interval. The retrieval unit 40 is configured to send a retrieval request to the search server when the judging unit 20 judges that the selected search server is available. Further, the retrieval unit 40 is also configured to receive the retrieval result sent by the search server.
其中,关于上述各单元的具体实现可参考本发明实施例的用于检索的方法部分的描述。在此不再赘述。Wherein, for the specific implementation of the above units, reference may be made to the description of the method for retrieval in the embodiment of the present invention. I won't repeat them here.
图4示出了根据本发明另一个实施例的用于检索的装置的框图。如图4所示,用于检索的装置2,包括获取单元10、判断单元20、记录单元30、检索单元40和定时器50。其中,获取单元10、判断单元20、记录单元30、检索单元40可以实现图3中的各相对应单元的功能。Fig. 4 shows a block diagram of an apparatus for retrieval according to another embodiment of the present invention. As shown in FIG. 4 , the retrieval device 2 includes an acquisition unit 10 , a judging unit 20 , a recording unit 30 , a retrieval unit 40 and a timer 50 . Wherein, the acquiring unit 10, the judging unit 20, the recording unit 30, and the retrieving unit 40 can realize the functions of the corresponding units in FIG. 3 .
用于检索的装置2的定时器50,用于计量所述预设定的时间间隔。在本实施例中,判断单元20判断选定的搜索服务器是否可用或者重新判断所选定的搜索服务器是否可用包括:向选定的搜索服务器发送请求,以得到搜索服务器返回的状态信息,根据该选定的搜索服务器的状态信息判断该搜索服务器是否可用。The timer 50 of the retrieval device 2 is used to measure the preset time interval. In this embodiment, the judging unit 20 judging whether the selected search server is available or re-judging whether the selected search server is available includes: sending a request to the selected search server to obtain the status information returned by the search server, according to the The status information of the selected search server determines whether the search server is available.
在本发明实施例中,获取单元10获取的检索请求是包括关键字的检索请求。记录单元30记录所述检索请求包括以下之一:记录检索请求中的关键字;记录包括关键字的检索请求;记录根据所述关键字向所述搜索服务器发送的检索请求的URL。In the embodiment of the present invention, the retrieval request obtained by the obtaining unit 10 is a retrieval request including keywords. The recording unit 30 recording the retrieval request includes one of the following: recording the keyword in the retrieval request; recording the retrieval request including the keyword; recording the URL of the retrieval request sent to the search server according to the keyword.
在本发明可选实施例中,检索单元40,还用于在接收到所选定的搜索服务器发送的检索结果之后,将所述检索结果保存在浏览器所在的客户端的存储单元。在一可选实施例中,检索单元40还用于发送检索结果已获得的提示信息;以及在接收到请求所述检索结果的消息时,将所保存的检索结果发送给显示单元以显示。In an optional embodiment of the present invention, the retrieval unit 40 is further configured to, after receiving the retrieval result sent by the selected search server, store the retrieval result in the storage unit of the client where the browser is located. In an optional embodiment, the retrieval unit 40 is further configured to send prompt information that the retrieval result has been obtained; and when receiving a message requesting the retrieval result, send the stored retrieval result to the display unit for display.
在一可选实施例中,用于检索的装置是浏览器或者可安装于所述浏览器的插件。In an optional embodiment, the means for retrieving is a browser or a plug-in that can be installed in the browser.
在另一可选实施例中,用于检索的装置是计算机终端,该计算机终端上配置有浏览器,其中该浏览器上配置有图3示出的获取单元10、判断单元20、记录单元30和检索单元40;或者,图4中示出的获取单元10、判断单元20、记录单元30、检索单元40和定时器50。In another optional embodiment, the device for retrieval is a computer terminal, a browser is configured on the computer terminal, wherein the browser is configured with the acquiring unit 10, the judging unit 20, and the recording unit 30 shown in FIG. 3 and retrieval unit 40; or, acquisition unit 10, judgment unit 20, recording unit 30, retrieval unit 40 and timer 50 shown in FIG.
在又一可选实施例中,用于检索的装置是计算机终端,该计算机终端上配置有具有插件的浏览器。其中,该插件中配置有图3中示出的的获取单元10、判断单元20、记录单元30和检索单元40;或者,图4中示出的获取单元10、判断单元20、记录单元30、检索单元40和定时器50。In yet another optional embodiment, the means for retrieval is a computer terminal, and a browser with a plug-in is configured on the computer terminal. Wherein, the plug-in is configured with the acquiring unit 10, judging unit 20, recording unit 30 and retrieval unit 40 shown in FIG. 3; or, the acquiring unit 10, judging unit 20, recording unit 30, Retrieval unit 40 and timer 50.
通过本发明实施例,可以将搜索服务器不可用时的检索请求进行保存,并可以进行后台自动获取依据该检索请求的检索结果,方便了用户对搜索引擎的合理正常使用。Through the embodiment of the present invention, the search request when the search server is unavailable can be saved, and the search result according to the search request can be automatically acquired in the background, which facilitates the reasonable and normal use of the search engine by the user.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的用于检索的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device for retrieval according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210466103.8A CN102902828B (en) | 2012-11-16 | 2012-11-16 | A kind of method and apparatus for retrieving |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210466103.8A CN102902828B (en) | 2012-11-16 | 2012-11-16 | A kind of method and apparatus for retrieving |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102902828A CN102902828A (en) | 2013-01-30 |
CN102902828B true CN102902828B (en) | 2016-04-20 |
Family
ID=47575059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210466103.8A Active CN102902828B (en) | 2012-11-16 | 2012-11-16 | A kind of method and apparatus for retrieving |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102902828B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105448293B (en) * | 2014-08-27 | 2019-03-12 | 北京羽扇智信息科技有限公司 | Audio monitoring and processing method and equipment |
CN106713629A (en) * | 2016-12-14 | 2017-05-24 | 重庆笨瓜科技有限公司 | Global searching system for senior-citizen mobile phone |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816986A (en) * | 2003-07-14 | 2006-08-09 | 索尼株式会社 | Display,display method and display control program |
CN101296177A (en) * | 2007-04-29 | 2008-10-29 | 华为技术有限公司 | Method, system and device for implementing overload control in packet network |
CN102123179A (en) * | 2011-03-28 | 2011-07-13 | 中国人民解放军国防科学技术大学 | Load balancing method and system applied to distributed application system |
CN102222078A (en) * | 2010-12-08 | 2011-10-19 | 常华 | Real-time information pushing method and device |
CN102375772A (en) * | 2011-09-27 | 2012-03-14 | 云智慧(北京)科技有限公司 | Server monitoring method and device |
CN102915379A (en) * | 2012-11-16 | 2013-02-06 | 北京奇虎科技有限公司 | Retrieval implementation method and device |
-
2012
- 2012-11-16 CN CN201210466103.8A patent/CN102902828B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1816986A (en) * | 2003-07-14 | 2006-08-09 | 索尼株式会社 | Display,display method and display control program |
CN101296177A (en) * | 2007-04-29 | 2008-10-29 | 华为技术有限公司 | Method, system and device for implementing overload control in packet network |
CN102222078A (en) * | 2010-12-08 | 2011-10-19 | 常华 | Real-time information pushing method and device |
CN102123179A (en) * | 2011-03-28 | 2011-07-13 | 中国人民解放军国防科学技术大学 | Load balancing method and system applied to distributed application system |
CN102375772A (en) * | 2011-09-27 | 2012-03-14 | 云智慧(北京)科技有限公司 | Server monitoring method and device |
CN102915379A (en) * | 2012-11-16 | 2013-02-06 | 北京奇虎科技有限公司 | Retrieval implementation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102902828A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102929984B (en) | Inefficacy address searching method and apparatus | |
US20240346055A1 (en) | Search Suggestions Based on Native Application History | |
CN102929985A (en) | Method and system for displaying collected webpage | |
WO2013143403A1 (en) | Method and system for accessing website | |
JP2013517555A (en) | Method, apparatus, and system for collecting e-commerce website information | |
CN104536975B (en) | The method and browser client of pictorial information processing are carried out in browser | |
CN103248707B (en) | File access method, system and equipment | |
CN105516333B (en) | A kind of web-based exchange method and system | |
TWI435269B (en) | Method for opening file | |
CN102629265B (en) | A kind of method and system setting up web database | |
CN102902828B (en) | A kind of method and apparatus for retrieving | |
CN102937977A (en) | Search server and search method | |
CN103605676A (en) | Search based terminal fault solution, client and system | |
CN104980464B (en) | A kind of network request processing method, network server and network system | |
CN105630927A (en) | Link generation method and apparatus | |
WO2016000176A1 (en) | Page insertion method and device | |
CN102831250B (en) | Contact person information search system and method | |
JP2010186459A (en) | System and method for collection of content management information | |
CN102945284A (en) | Method and device for obtaining status of search engine and browser | |
CN102915379B (en) | The method and apparatus for realizing retrieval | |
CN105955980B (en) | File downloading device and method | |
CN103067481B (en) | Data transmission method, equipment and system | |
CN102902827B (en) | For collection information processing method and the device of browser | |
CN112541143B (en) | Asynchronous picture acquisition method and system | |
JP2006301987A (en) | System for automatically acquiring/browsing information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220728 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |