CN102945284B - The state acquiring method of search engine, device and browser - Google Patents

The state acquiring method of search engine, device and browser Download PDF

Info

Publication number
CN102945284B
CN102945284B CN201210478822.1A CN201210478822A CN102945284B CN 102945284 B CN102945284 B CN 102945284B CN 201210478822 A CN201210478822 A CN 201210478822A CN 102945284 B CN102945284 B CN 102945284B
Authority
CN
China
Prior art keywords
search engine
search
bar
state
user
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.)
Expired - Fee Related
Application number
CN201210478822.1A
Other languages
Chinese (zh)
Other versions
CN102945284A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210478822.1A priority Critical patent/CN102945284B/en
Publication of CN102945284A publication Critical patent/CN102945284A/en
Application granted granted Critical
Publication of CN102945284B publication Critical patent/CN102945284B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses the state acquiring method of a kind of search engine, device and browser.The state acquiring method of a kind of search engine that the embodiment of the present invention provides, including: before the instruction starting search engine receiving user and/or before the instruction utilizing search engine execution data search receiving user, send status poll information to the search engine server of this search engine;Receive the conditional code that search engine server returns according to status poll information;When the current state knowing search engine according to conditional code is unavailable, generate prompting search engine status to be disabled information and show user, when the current state knowing search engine according to conditional code is available, if there is prompting search engine status is disabled information, then remove this information.

Description

Method and device for acquiring state of search engine and browser
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for obtaining a state of a search engine, and a browser including the apparatus for obtaining a state of a search engine.
Background
The search engine is a system that collects information from the internet by using a specific computer program according to a certain policy, provides a retrieval service for a user after organizing and processing the information, and displays information related to user retrieval to the user. The search engine includes a full text index search engine, a directory index search engine, a meta search engine, a vertical search engine, a collective search engine, a portal search engine, a free link list search engine, and the like. Hundredths and google, etc. are representative of search engines.
However, some existing search engines often have a service outage phenomenon, when a user needs to use these search engines to perform retrieval, after a period of waiting for inputting retrieval information in the search engine, a normal search result is sometimes returned, and more web pages indicating that the search engine has problems are returned.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a state acquisition method of a search engine, a state acquisition apparatus of a search engine, and a browser including the state acquisition apparatus of a search engine that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for obtaining a state of a search engine, including:
sending status query information to a search engine server of a search engine before receiving an instruction of a user to start the search engine and/or before receiving an instruction of the user to perform a data search using the search engine; receiving a state code returned by the search engine server according to the state query information; and when the current state of the search engine is known to be available according to the state code, generating information for prompting that the state of the search engine is unavailable and displaying the information to a user, and when the current state of the search engine is known to be available according to the state code, if the information for prompting that the state of the search engine is unavailable exists, clearing the information.
When receiving at least part of address keywords of a search engine input by a user in an address bar of a browser, confirming that the user is about to start the search engine, and sending state query information to a search engine server of the search engine; and/or when receiving data input by a user in a search bar of a search engine, confirming that the user is going to perform data search by using the search engine, and sending state query information to a search engine server of the search engine; and/or sending the state query information to a search engine server of the search engine at regular time after the search bar of the search engine is opened and before the data input by the user in the search bar of the search engine is received.
Wherein, the obtaining that the current state of the search engine is unavailable according to the state code comprises:
knowing that the current state of the search engine is unavailable when the status code indicates at least one of: network connection reset, network connection denied, network connection dropped, network connection failed, domain name resolution failed, address invalid, connection timeout, or socket not connected.
Wherein, the generating and presenting the information prompting that the search engine state is unavailable to the user comprises: and displaying information prompting that the state of the search engine is unavailable in an address bar, a state bar and/or a search bar of the search engine of the browser.
Wherein, when the information for prompting the unavailable state of the search engine is generated and displayed to the user, the method further comprises the following steps: prohibiting the search bar of the search engine from receiving data input by setting attribute elements of an input control of the search bar of the search engine;
when the current state of the search engine is available according to the state code, if information prompting that the state of the search engine is unavailable exists, the information is cleared, and meanwhile, the method further comprises the following steps: the search bar of the search engine is allowed to receive input of data by setting attribute elements of an input control of the search bar of the search engine.
Wherein, instead of generating and showing the information prompting that the state of the search engine is unavailable to the user when the current state of the search engine is known to be unavailable according to the state code, if the information prompting that the state of the search engine is unavailable exists when the current state of the search engine is known to be available according to the state code, the method further comprises the steps of: when the search bar of the search engine displayed in the browser is the search bar of the first search engine and the current state of the first search engine is unavailable, selecting one search engine from the search engines with the current state being available, and switching the search bar of the first search engine in the browser to the search bar of the selected search engine;
after switching the search bar of the first search engine in the browser to the search bar of the selected search engine, the method further comprises the following steps: and when the current state of the first search engine is available according to the state code, switching the search bar of the search engine in the browser back to the search bar of the first search engine.
According to another aspect of the present invention, there is provided a state acquiring apparatus of a search engine, including: a receiver, a communication unit, a determiner and a presentation unit,
a receiver adapted to receive an input from a user;
the communication unit is suitable for sending state query information to a search engine server of the search engine before the receiver receives an instruction of a user for starting the search engine and/or before the receiver receives an instruction of the user for performing data search by utilizing the search engine, and is also suitable for receiving a state code returned by the search engine server according to the state query information;
a determiner adapted to determine whether a current state of the search engine is available when the search engine is determined to be available according to the state code;
and the presentation unit is suitable for generating and presenting information for prompting that the state of the search engine is unavailable to a user when the current state of the search engine is known to be unavailable according to the state code, and clearing the information if the information for prompting that the state of the search engine is unavailable exists when the current state of the search engine is known to be available according to the state code.
The communication unit is specifically suitable for confirming that a user is about to start a search engine when the receiver receives at least part of search engine address keywords input by the user in a browser address bar, and sending state query information to a search engine server of the search engine; and/or, when the receiver receives data input by a user in a search bar of a search engine, confirming that the user is going to perform a data search by using the search engine, and sending status query information to a search engine server of the search engine; and/or sending status query information to a search engine server of the search engine at regular time after a search bar of the search engine is opened and before the receiver receives data input by a user in the search bar of the search engine.
Wherein the determiner is specifically adapted to determine that the current state of the search engine is unavailable when the status code indicates at least one of: network connection reset, network connection denied, network connection dropped, network connection failed, domain name resolution failed, address invalid, connection timeout, or socket not connected.
The presentation unit is specifically suitable for presenting information prompting that the state of the search engine is unavailable in an address bar, a state bar and/or a search bar of the search engine of the browser.
The receiver is further suitable for forbidding the search bar of the search engine from receiving data input by setting the attribute elements of the input control of the search bar of the search engine while the presentation unit generates and presents information prompting that the state of the search engine is unavailable to a user; and the receiver is further suitable for allowing the search bar of the search engine to receive the input of the data by setting the attribute element of the input control of the search bar of the search engine while the presentation unit clears the generated information prompting that the state of the search engine is unavailable.
Wherein, instead of the presentation unit, the apparatus further comprises a switching unit adapted to select one search engine from the search engines of which the current state is available and switch the search bar of the first search engine in the browser to the search bar of the selected search engine when the search bar of the search engine displayed in the browser is the search bar of the first search engine and the determiner determines that the current state of the first search engine is unavailable; and the number of the first and second groups,
and the switching unit is also suitable for switching the search bar of the first search engine in the browser back to the search bar of the first search engine when the judger confirms that the current state of the first search engine is available according to the state code after switching the search bar of the first search engine in the browser to the search bar of the selected search engine.
According to still another aspect of the present invention, there is provided a browser including the state acquisition apparatus of the search engine described above.
As described above, in the embodiments of the present invention, before a user performs a data search using a search engine, the state of the search engine is queried in a search engine server, and a technical means for generating information indicating whether the search engine is available or not is generated from the queried state of the search engine, so that the user can know the state of the search engine before performing the data search through the information, and the user operation is guided, thereby saving the search time of the user. And the information indicating the availability of the search engine can be used for initiating the search request under the condition of better network state, so that the probability of the occurrence of search failure is reduced, and the information indicating the unavailability of the search engine is used for avoiding the network state deterioration caused by receiving a large number of search requests when the network state is worse, thereby improving the network performance.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a diagram illustrating a state acquisition apparatus of a search engine according to an embodiment of the present invention;
FIG. 2 shows a schematic diagram of presenting information in an address bar of a browser prompting a search engine status as unavailable, according to one embodiment of the invention, and
FIG. 3 illustrates a diagram showing information in a status bar of a browser prompting a search engine for unavailable status, according to one embodiment of the present invention;
FIG. 4 illustrates a diagram showing information in a search bar of a search engine that suggests that the state of the search engine is unavailable, in accordance with one embodiment of the present invention;
FIG. 5 is a schematic workflow diagram of a browser including a status acquisition device of a search engine according to one embodiment of the present invention;
FIG. 6 is a flow diagram illustrating a method for obtaining a state of a search engine according to one embodiment of the invention;
FIG. 7 is a diagram illustrating a state acquisition device of a search engine for a navigation page according to one embodiment of the present invention;
fig. 8 illustrates a flowchart of a server of a state acquisition apparatus of a search engine for a navigation page according to an 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. While 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 to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a status acquiring apparatus 100 of a search engine, referring to fig. 1, including a receiver 111, a communication unit 112, a determiner 113, and a presenting unit 114.
The receiver 111 is adapted to receive input from a user. For example, the receiver 111 may receive data or the like input by a user through a search bar of a search engine or an address bar of a browser.
The communication unit 112 is adapted to transmit status query information to the search engine server 200 of the search engine before the receiver 111 receives an instruction of the user to start the search engine and/or before receiving an instruction of the user to perform a data search using the search engine, and is further adapted to receive a status code returned by the search engine server 200 according to the status query information.
The communication unit 112 may periodically transmit the status query information to the search engine server 200 before the receiver 111 receives an instruction of a user to start the search engine, i.e., before the search engine is not started.
The communication unit 112 may periodically transmit status query information to the search engine server 200 during a period until the search engine has been started to perform a data search by the search engine. During the starting period of the search engine, after the search bar of the search engine is opened and before the receiver receives the data input by the user in the search bar of the search engine, the state query information is sent to the search engine server of the search engine at regular time.
For example, for setting the state acquisition apparatus 100 of the search engine in a browser scenario, the browser may set a timer, which triggers the communication unit 112 to transmit the state query information to the search engine server 200 every predetermined time in the background.
In addition to using the timer to send the status query information, the communication unit 112 may also send the status query information to the search engine server 200 in at least any one of the following scenarios:
1) when the receiver 111 receives at least a part of the search engine address keyword input by the user in the browser address bar, the communication unit 112 confirms that the user is about to start the search engine, and transmits status query information to the search engine server 200 of the search engine.
For example, if the address keyword of the search engine is abcde, the receiver 111 determines that the user wants to use the abcde search engine when receiving data such as abcde, abcd, or ab in the browser address bar, and the search engine is about to be started, and sends status query information to the search engine server of the search engine.
2) When the receiver receives data input by a user in a search bar of a search engine, confirms that the user is about to perform a data search using the search engine, and then sends status query information to a search engine server of the search engine.
For example, when the information that the user needs to search is "patent application", when the receiver 111 receives "patent" or "patent" from the search bar, it is determined that the user wants to perform a search using the search engine, and status query information is transmitted to the search engine server of the search engine.
Through the above operation, the communication unit 112 can ensure that the status code returned by the search engine server 200 according to the status query information is received before the user performs a data search, for example, before the receiver 111 receives an instruction to perform a search sent by the user by clicking a search key, so as to know the status of the search engine.
The determiner 113 is adapted to determine whether the current state of the search engine is available according to the state code. The decider 113 is specifically adapted to confirm that the current state of the search engine is unavailable when the status code indicates at least one of:
network CONNECTION RESET, network CONNECTION rejected, network CONNECTION dropped, network CONNECTION FAILED, domain NAME resolution FAILED, ADDRESS INVALID, CONNECTION timeout, or SOCKET NOT CONNECTED.
The presentation unit 114 is adapted to generate and present to the user information that prompts the search engine status as unavailable. Specifically, referring to fig. 2, the presentation unit 114 may generate information prompting that the search engine status is unavailable in an address bar of the browser, such as "XX unavailable current" as an example of the information, and XX represents a search engine name.
Referring to fig. 3, the presentation unit 114 may generate information in a status bar of the browser, which prompts that the search engine status is unavailable, such as "XX is currently unavailable" and XX represents a search engine name.
Referring to fig. 4, the presentation unit 114 may present information prompting that the search engine state is unavailable, such as "XX is currently unavailable" in a search bar of the search engine.
The presentation unit 114 is further adapted to clear already existing information prompting the search engine status as unavailable. Corresponding to the location where the information is presented, the presentation unit 114 may delete already existing information in the address bar, status bar, and/or search bar of the browser that prompts the search engine to be unavailable.
Further, in this embodiment, the receiver 111 is further adapted to prohibit the search bar of the search engine from receiving data input by setting a property element of an input control of the search bar of the search engine while the presenting unit 114 generates and presents information to the user, which indicates that the state of the search engine is unavailable. For example, by setting the attribute element type (type) of the input control of the search bar to hidden (hidden), the search bar of the search engine is prohibited from receiving input of data. And the receiver 111 is further adapted to allow the search bar of the search engine to receive an input of data by setting a property element of an input control of the search bar of the search engine, such as setting a property element type of an input control of the search bar to available, while the presentation unit 114 clears the generated information prompting that the search engine status is not available. By the arrangement of the receiver, the operation of searching data by using the search engine is further controlled, the search request is only allowed to be initiated under the condition of good network state, the probability of search failure is reduced, and the network state deterioration caused by receiving a large number of search requests when the network state is poor is avoided, so that the network performance is improved.
In still another structure of the search engine status acquisition apparatus 100 provided in this embodiment, the presentation unit is replaced by a switching unit, that is, the search engine status acquisition apparatus 100 is composed of a receiver, a communication unit, a determiner, and a switching unit. The switching unit, when the search bar of the search engine displayed in the browser is the search bar of the first search engine and the judger 113 confirms that the current state of the first search engine is unavailable, selects one search engine from the search engines of which the current state is available, and switches the search bar of the first search engine in the browser to the search bar of the selected search engine; and the switching unit is further adapted to switch the search bar of the search engine in the browser back to the search bar of the first search engine when the determiner 113 confirms that the current state of the first search engine is available according to the state code after switching the search bar of the first search engine in the browser to the search bar of the selected search engine. The first search engine may be a default search engine in the browser, or may be a search engine selected by the user in the browser. The switching mechanism can inform the user in time when the first search engine is available, and when the first search engine is unavailable, the available search engine can be provided for the user as long as the available search engine exists in the network, so that the data searching operation is facilitated.
Still another embodiment of the present invention provides a browser including a state acquisition apparatus 100 of a search engine. Referring to fig. 5, a schematic view of the browser workflow is shown.
S500: the browser sends state query information to a search engine server through a state acquisition device of a search engine arranged on the browser;
s502: the browser receives the status code returned by the search engine server.
The specific contents of steps S500 and S502 can be referred to the communication unit 112 described above.
S504: the browser knows the current state of the search engine, e.g., available or unavailable.
In step S504, the browser may call the determiner 113 in the state acquisition device of the search engine to determine the current state of the search engine.
S506: the browser updates the information prompting the state of the engine, for example, when the current state of the search engine is unavailable, the browser may invoke the presentation unit 114 in the state acquisition device of the search engine to generate and present information indicating that the current state of the search engine is unavailable to the user, and when the current state of the search engine is available, the browser may invoke the presentation unit 114 in the state acquisition device of the search engine to delete the existing information indicating that the state of the search engine is unavailable.
The specific way of operating the search engine status acquisition device 100 by the browser and the specific way of operating the search engine status acquisition device 100 in the browser can be found in the above embodiments of the search engine status acquisition device.
Still another embodiment of the present invention further provides a method for obtaining a state of a search engine, referring to fig. 6, including:
s601: the status query information is sent to a search engine server of the search engine.
The status query information is sent to a search engine server of a search engine prior to receiving an instruction of a user to start the search engine and/or prior to receiving an instruction of the user to perform a data search with the search engine.
S602: and receiving the state code returned by the search engine server according to the state query information.
S603: judging whether the current state of the search engine is available according to the state code, if so, executing step S604, and if not, executing step S605;
s604: and when the current state of the search engine is available according to the state code, if the information prompting that the state of the search engine is unavailable exists, clearing the information.
S605: and when the current state of the search engine is unavailable according to the state code, generating information for prompting that the state of the search engine is unavailable and displaying the information to a user.
Wherein, step S601 may include at least the following processes: when receiving at least partial address keywords of a search engine input by a user in an address bar of a browser, confirming that the user is about to start the search engine, and sending state query information to a search engine server of the search engine; and/or when receiving data input by a user in a search bar of a search engine, confirming that the user is going to perform data search by using the search engine, and sending state query information to a search engine server of the search engine; and/or sending the state query information to a search engine server of the search engine at regular time after the search bar of the search engine is opened and before the data input by the user in the search bar of the search engine is received.
Wherein, the obtaining that the current state of the search engine is unavailable according to the state code comprises:
knowing that the current state of the search engine is unavailable when the status code indicates at least one of: network connection reset, network connection denied, network connection dropped, network connection failed, domain name resolution failed, address invalid, connection timeout, or socket not connected.
In step S605, generating and displaying information that prompts that the search engine is unavailable to the user includes: and displaying information prompting that the state of the search engine is unavailable in an address bar, a state bar and/or a search bar of the search engine of the browser.
In step S605, while the information prompting that the search engine is unavailable in state is generated and displayed to the user, the search bar of the search engine is prohibited from receiving data input by setting the attribute element of the input control of the search bar of the search engine; in step S604, when the current state of the search engine is known to be available according to the state code, if there is information prompting that the state of the search engine is unavailable, the information is cleared, and at the same time, the search bar of the search engine is allowed to receive data input by setting the attribute element of the input control of the search bar of the search engine.
Wherein, the embodiment further provides a switching mechanism of a search engine, and in place of the above steps S604 and S605, the embodiment may perform the following operations: when the search bar of the search engine displayed in the browser is the search bar of the first search engine and the current state of the first search engine is unavailable, selecting one search engine from the search engines with the current state being available, and switching the search bar of the first search engine in the browser to the search bar of the selected search engine; and after the search bar of the first search engine in the browser is switched to the search bar of the selected search engine, switching the search bar of the search engine in the browser back to the search bar of the first search engine when the current state of the first search engine is available according to the state code.
The specific implementation manner of each step in the embodiment of the present invention may be referred to the above embodiment of the apparatus of the present invention.
As described above, in the embodiments of the present invention, before a user performs a data search using a search engine, the state of the search engine is queried in a search engine server, and a technical means for generating information indicating whether the search engine is available or not is generated from the queried state of the search engine, so that the user can know the state of the search engine before performing the data search through the information, and the user operation is guided, thereby saving the search time of the user. And the information indicating the availability of the search engine can be used for initiating the search request under the condition of better network state, so that the probability of the occurrence of search failure is reduced, and the information indicating the unavailability of the search engine is used for avoiding the network state deterioration caused by receiving a large number of search requests when the network state is worse, thereby improving the network performance.
The apparatus 700 for obtaining the state of a search engine for a navigation page according to another embodiment of the present invention, referring to fig. 7, includes a receiver 702, a communication unit 704, a determiner 706, and a presenting unit 708.
The receiver 702 is adapted to receive input from a user, for example, the receiver may receive data entered by the user through a search bar of a search engine on a navigation page or an address bar of the navigation page, or the like.
The communication unit 704 may perform at least the following operations:
1) the communication unit 704 is adapted to (periodically) send status query information to the search engine server 800 before the receiver 702 receives the user's instruction to launch the navigation page 900. Specifically, in this scenario, when the receiver 702 receives an address keyword of at least a part of the navigation page 900 input by the user in the browser address bar, the communication unit may confirm that the user is about to start the navigation page, and then send status query information to the search engine server 800.
2) The navigation page 900 is generally provided with a plurality of search engine icons, and a user sends a selection instruction to indicate a search engine to be used by clicking on the icons, and when the receiver 702 receives a selection instruction of a search engine in the navigation page 900 from the user after the navigation page has been started, the communication unit 704 sends status query information to the search engine server 800.
3) Before the receiver 702 receives an instruction of a user to perform a data search using a search bar of a search engine in the navigation page 900, the communication unit 704 transmits status query information to the search engine server. This scenario is related to the operation of the communication unit 704 after the navigation page has been started, for example, in this scenario, when the receiver 702 receives data input by the user in the search bar of the search engine of the navigation page 900, the communication unit 704 confirms that the user is about to perform a data search using the search bar of the search engine in the navigation page 900, and then sends status query information to the search engine server 800 of the search engine; and/or, after the navigation page 900 is opened and before the receiver 702 receives data input by the user in the search bar of the search engine, the communication unit 704 sends status query information to the search engine server. And/or, the communication unit 704 sends the status query information to the search engine server at regular time before the receiver 702 receives a user selection instruction for a search engine in the navigation page.
4) The communication unit 704 is further adapted to receive a status code returned by the search engine server 800 based on the status query information.
The decider 706 is adapted to decide whether the current state of the search engine is available or not according to the state code
The presenting unit 708 is adapted to generate and present information prompting that the state of the search engine is unavailable to the user when the current state of the search engine is known to be unavailable according to the state code, and clear the information if the information prompting that the state of the search engine is unavailable exists when the current state of the search engine is known to be available according to the state code
The receiver 702 is further adapted to inhibit the search bar of the search engine from receiving the input of the data by setting a property element of an input control of the search bar of the search engine in the navigation page while generating the information prompting the search engine to be unavailable, for example, the receiver 702 automatically sets a property type of an input control of the search bar in the navigation page to hidden, or the receiver 702 sets a disabled property of an input control of a search box of a corresponding search engine in a source code of a navigation page at a server side of the navigation page to unavailable, inhibiting the input of the data to the navigation page.
The receiver 702 is further adapted to allow the search bar of the search engine to receive input of data by setting the attribute elements of the input control of the search bar of the search engine in the navigation page while clearing information prompting the search engine that the state is unavailable in the navigation page if the information is present in the navigation page when the current state of the search engine is known to be available from the state code. For example, the receiver 702 sets the attribute type of the input control of the search bar in the navigation page 900 to be available, or the receiver 702 sets the disabled attribute of the input control of the search box of the corresponding search engine in the source code of the navigation page 900 on the server side of the navigation page 900 to be available, allowing data to be input to the navigation page 900, such as deleting the disabled value by JavaScript instruction, and switching the value of the input control to be available.
Preferably, in yet another structure of the apparatus 700 for acquiring a state of a search engine for a navigation page of the present embodiment, the presenting unit is replaced by a switching unit, that is, the apparatus 700 for acquiring a state of a search engine for a navigation page includes a receiver, a communication unit, a determiner, and a switching unit. When the search bar of the search engine displayed in the navigation page is the search bar of the first search engine and the judger confirms that the current state of the first search engine is unavailable, the switching unit selects one search engine from the search engines with the current state being available and switches the search bar of the first search engine in the navigation page into the search bar of the selected search engine; and the switching unit is also suitable for switching the search bar of the first search engine in the navigation page back to the search bar of the first search engine when the judger confirms that the current state of the first search engine is available according to the state code after switching the search bar of the first search engine in the navigation page to the search bar of the selected search engine. The first search engine may be a default search engine in the navigation page, or may be a search engine selected by the user in the navigation page. The switching mechanism can inform the user in time when the first search engine is available, and when the first search engine is unavailable, the available search engine can be provided for the user as long as the available search engine exists in the network, so that the data searching operation is facilitated.
The invention further provides a server comprising the state acquisition device of the search engine for the navigation page, and the server can be a background server. Referring to fig. 8, a schematic diagram of the background server workflow is shown.
S800: the background server sends state query information to the search engine server through a state acquisition device of a search engine aiming at the navigation page, which is arranged on the background server;
s802: and the background server receives the state code returned by the search engine server.
The specific content of the background server execution in steps S800 and S802 can be referred to the communication unit 704 described above.
S804: the backend server knows the current state of the search engine, e.g., available or unavailable.
In step S804, the backend server may call the determiner 706 in the state acquisition device of the search engine for the navigation page to determine the current state of the search engine.
S806: the background server updates the information prompting the engine state in the navigation page, for example, when the current state of the search engine is available, the background server may invoke a presentation unit in the state acquisition device of the search engine for the navigation page to generate information indicating that the state of the search engine is unavailable, and when the current state of the search engine is available, the background server may invoke the presentation unit in the state acquisition device of the search engine for the navigation page to delete the existing information indicating that the state of the search engine is unavailable.
The invention further provides a method for acquiring the state of the search engine aiming at the navigation page, which comprises the following steps:
s900: before receiving an instruction of a user for starting a navigation page, and/or when receiving a selection instruction of the user for a search engine in the navigation page, and/or before receiving an instruction of the user for performing data search by using a search bar of the search engine in the navigation page, sending state query information to a search engine server;
s902: receiving a state code returned by the search engine server according to the state query information;
s904: when the current state of the search engine is unavailable according to the state code, generating information for prompting that the state of the search engine is unavailable;
s906: and when the current state of the search engine is available according to the state code, if the information prompting that the state of the search engine is unavailable exists in the navigation page, clearing the information.
Step S900 may include the following specific operations: when receiving at least partial address keywords of a navigation page input by a user in an address bar of a browser, confirming that the user is about to start the navigation page, and sending state query information to a search engine server; and/or when receiving data input by a user in a search bar of a search engine of a navigation page, confirming that the user is about to perform data search by using the search bar of the search engine in the navigation page, and sending state query information to a search engine server of the search engine; and/or sending the state query information to the search engine server at regular time after the navigation page is opened and before data input by the user in a search bar of the search engine is received or before a selection instruction of the user on the search engine in the navigation page is received.
When the information prompting that the state of the search engine is unavailable is generated in the step S904, the search bar of the search engine is prohibited from receiving data input by setting the attribute element of the input control of the search bar of the search engine in the navigation page;
in step S906, when the current state of the search engine is available according to the state code, if there is information prompting that the state of the search engine is unavailable in the navigation page, the information is cleared, and meanwhile, the search bar of the search engine is allowed to receive data input by setting the attribute element of the input control of the search bar of the search engine in the navigation page.
In this embodiment of the present invention, a switching operation of a search engine is further provided, and instead of the above steps S904 and S906, the following operations may also be performed in this embodiment: when the search bar of the search engine displayed in the navigation page is the search bar of the first search engine and the current state of the first search engine is unavailable, selecting one search engine from the search engines with the current state being available, and switching the search bar of the first search engine in the navigation page into the search bar of the selected search engine; and after the search bar of the first search engine in the navigation page is switched to the search bar of the selected search engine, switching the search bar of the search engine in the navigation page back to the search bar of the first search engine when the current state of the first search engine is available according to the state code.
As described above, in the embodiments of the present invention, before a user performs a data search using a search engine in a navigation page, the state of the search engine is queried in a search engine server, and a technical means for generating information indicating whether the search engine is available or not is generated from the queried state of the search engine, so that the user can know the state of the search engine before performing the data search using the navigation page through the information, and the operation of the user is guided, thereby saving the search time of the user. And moreover, the information indicating the availability of the search engine in the navigation page can be used for initiating the search request under the condition of a better network state, so that the probability of search failure is reduced, and the information indicating the unavailability of the search engine in the navigation page is used for avoiding the network state deterioration caused by receiving a large number of search requests when the network state is poorer, thereby improving the network performance.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, 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 an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed 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 will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any 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 appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the state acquisition means of the search engine and the browser including the state acquisition means of the search engine according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or 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 may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (9)

1. A state acquisition method of a search engine comprises the following steps:
sending status query information to a search engine server of a search engine before receiving an instruction of a user to start the search engine and/or before receiving an instruction of the user to perform a data search using the search engine;
receiving a state code returned by the search engine server according to the state query information;
when the current state of the search engine is known to be unavailable according to the state code, generating information prompting that the state of the search engine is unavailable and displaying the information to a user in an address bar, a state bar and/or a search bar of the browser, and when the current state of the search engine is known to be available according to the state code, if the information prompting that the state of the search engine is unavailable exists, clearing the information in the address bar, the state bar and/or the search bar of the browser, wherein,
while generating and presenting to the user information that suggests that the search engine state is unavailable, the method further comprises: prohibiting the search bar of the search engine from receiving data input by setting attribute elements of an input control of the search bar of the search engine;
when the current state of the search engine is available according to the state code, if information prompting that the state of the search engine is unavailable exists, the information is cleared, and meanwhile, the method further comprises the following steps: the search bar of the search engine is allowed to receive input of data by setting attribute elements of an input control of the search bar of the search engine.
2. The method of claim 1, wherein,
when receiving at least partial address keywords of a search engine input by a user in an address bar of a browser, confirming that the user is about to start the search engine, and sending state query information to a search engine server of the search engine; and/or
When receiving data input by a user in a search bar of a search engine, confirming that the user is about to perform data search by using the search engine, and sending state query information to a search engine server of the search engine; and/or
The method comprises the steps of sending status query information to a search engine server of a search engine regularly after a search bar of the search engine is opened and before data input by a user in the search bar of the search engine is received.
3. The method of claim 1 or 2, wherein the learning from the status code that the current status of the search engine is unavailable comprises:
and when the status code indicates at least one of the following conditions, the current status of the search engine is known to be unavailable:
network connection reset, network connection denied, network connection dropped, network connection failed, domain name resolution failed, address invalid, connection timeout, or socket not connected.
4. The method of claim 1, wherein instead of generating and presenting to the user information that prompts that the search engine status is unavailable when the current status of the search engine is known to be unavailable according to the status code, if there is information that prompts that the search engine status is unavailable when the current status of the search engine is known to be available according to the status code, the method further comprises:
when the search bar of the search engine displayed in the browser is the search bar of the first search engine and the current state of the first search engine is unavailable, selecting one search engine from the search engines with the current state being available, and switching the search bar of the first search engine in the browser to the search bar of the selected search engine;
after the switching the search bar of the first search engine in the browser to the search bar of the selected search engine, the method further includes:
and switching the search bar of the search engine in the browser back to the search bar of the first search engine when the current state of the first search engine is available according to the state code.
5. A state acquisition apparatus of a search engine, comprising: a receiver, a communication unit, a determiner, and a presentation unit,
the receiver is suitable for receiving input of a user;
the communication unit is suitable for sending state query information to a search engine server of the search engine before the receiver receives an instruction of a user for starting the search engine and/or before the receiver receives an instruction of the user for performing data search by utilizing the search engine, and is also suitable for receiving a state code returned by the search engine server according to the state query information;
the judger is suitable for judging whether the current state of the search engine is available according to the state code;
the presentation unit is suitable for generating information prompting that the state of the search engine is unavailable and displaying the information to a user in an address bar, a state bar and/or a search bar of the browser when the current state of the search engine is known to be unavailable according to the state code, and clearing the information in the address bar, the state bar and/or the search bar of the browser if the information prompting that the state of the search engine is unavailable exists when the current state of the search engine is known to be available according to the state code; wherein,
the receiver is further suitable for forbidding the search bar of the search engine from receiving data input by setting the attribute elements of the input control of the search bar of the search engine while the presenting unit generates and displays information prompting that the state of the search engine is unavailable to the user; and the number of the first and second groups,
the receiver is further adapted to allow the search bar of the search engine to receive the input of data by setting the attribute element of the input control of the search bar of the search engine while the presentation unit clears the generated information prompting that the state of the search engine is unavailable.
6. The apparatus of claim 5, wherein,
the communication unit is specifically suitable for sending state query information to a search engine server of a search engine when the receiver receives at least part of search engine address keywords input by a user in a browser address bar and confirms that the user is about to start the search engine; and/or when the receiver receives data input by a user in a search bar of a search engine, confirming that the user is going to perform data search by using the search engine, and sending state query information to a search engine server of the search engine; and/or sending status query information to a search engine server of the search engine at regular time after the search bar of the search engine is opened and before the receiver receives data input by a user in the search bar of the search engine.
7. The apparatus as claimed in claim 6, wherein the determiner is specifically adapted to confirm that the current status of the search engine is unavailable when the status code indicates at least one of:
network connection reset, network connection denied, network connection dropped, network connection failed, domain name resolution failed, address invalid, connection timeout, or socket not connected.
8. The apparatus according to claim 5, wherein, instead of the presentation unit, the apparatus further comprises a switching unit,
the switching unit is suitable for selecting one search engine from the search engines with the available current state and switching the search bar of the first search engine in the browser to the search bar of the selected search engine when the search bar of the search engine displayed in the browser is the search bar of the first search engine and the judger confirms that the current state of the first search engine is unavailable; and the number of the first and second groups,
the switching unit is further adapted to switch the search bar of the first search engine in the browser back to the search bar of the first search engine when the judger confirms that the current state of the first search engine is available according to the state code after switching the search bar of the first search engine in the browser to the search bar of the selected search engine.
9. A browser comprising state acquisition means of a search engine according to one of claims 5 to 8.
CN201210478822.1A 2012-11-22 2012-11-22 The state acquiring method of search engine, device and browser Expired - Fee Related CN102945284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210478822.1A CN102945284B (en) 2012-11-22 2012-11-22 The state acquiring method of search engine, device and browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210478822.1A CN102945284B (en) 2012-11-22 2012-11-22 The state acquiring method of search engine, device and browser

Publications (2)

Publication Number Publication Date
CN102945284A CN102945284A (en) 2013-02-27
CN102945284B true CN102945284B (en) 2016-06-29

Family

ID=47728228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210478822.1A Expired - Fee Related CN102945284B (en) 2012-11-22 2012-11-22 The state acquiring method of search engine, device and browser

Country Status (1)

Country Link
CN (1) CN102945284B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035970B (en) * 2014-05-20 2018-10-09 北京奇虎科技有限公司 A kind of method and apparatus scanned in a browser
CN104021154B (en) * 2014-05-20 2018-03-02 北京奇虎科技有限公司 A kind of method and apparatus scanned in a browser
CN106412296B (en) * 2016-09-29 2019-07-16 中国联合网络通信集团有限公司 Terminal equipment control method and device
CN107979856B (en) * 2017-11-22 2020-10-27 深圳市沃特沃德股份有限公司 Method and device for connecting engines
CN111914148A (en) * 2019-05-08 2020-11-10 阿里巴巴集团控股有限公司 Switching method and device of search engine and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489069A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Content-oriented load equalizing method and apparatus
CN1839385A (en) * 2003-04-25 2006-09-27 汤姆森环球资源公司 Distributed search methods, architectures, systems, and software
CN101196928A (en) * 2007-12-29 2008-06-11 杭州华三通信技术有限公司 Contents searching method, system and engine distributing unit
CN101296177A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Method, system and device for implementing overload control in packet network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1564638B1 (en) * 2004-02-10 2008-02-20 Sap Ag A method of reassigning objects to processing units
US7373505B2 (en) * 2004-04-15 2008-05-13 Microsoft Corporation Displaying a security element with a browser window

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489069A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Content-oriented load equalizing method and apparatus
CN1839385A (en) * 2003-04-25 2006-09-27 汤姆森环球资源公司 Distributed search methods, architectures, systems, and software
CN101296177A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Method, system and device for implementing overload control in packet network
CN101196928A (en) * 2007-12-29 2008-06-11 杭州华三通信技术有限公司 Contents searching method, system and engine distributing unit

Also Published As

Publication number Publication date
CN102945284A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
US7895175B2 (en) Client-side federated search
JP6013604B2 (en) User interface that provides localized search functionality
CN102945284B (en) The state acquiring method of search engine, device and browser
US8533173B2 (en) Generating search query suggestions
RU2640720C2 (en) Method and device for web application control
CN104484193A (en) Method and device for rapidly starting application program
US20140280468A1 (en) Automatic updating of redirected location references
US9785710B2 (en) Automatic crawling of encoded dynamic URLs
EP3179370A1 (en) Webpage automatic test method and apparatus
CN103136342A (en) Searching method, system and searching server of application programs (APP)
CN104199985B (en) A kind of method and system and search server of self-defined top set search result
US8321428B1 (en) System and method for navigating documents
US20150199412A1 (en) Mobile communications device, non-transitory computer-readable medium and method for displaying a search result cover page and switching from the search result cover page to a search result page
KR20110022030A (en) Program and method for present page auto log in
CN106909486B (en) Method, device and system for processing business exception
CN102968483B (en) For the state acquiring method of the search engine of navigation page and device and server
CN104932910A (en) Method and system for application program interface extension
JP2014532942A (en) Social page trigger
CN102436509A (en) Method and system for browsing web page at mobile terminal
CN104699836A (en) Multi-keyword search prompting method and multi-keyword search prompting device
US8478517B2 (en) Method and apparatus to provide location information
US20170147658A1 (en) Pre-instantiating native applications in background
CN105786869B (en) Method and device for obtaining question and answer special topic data based on search
CN104199991B (en) Processing method and client side for providing user-defined top search result items
CN111367703A (en) Troubleshooting method and device

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

Effective date of registration: 20220725

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.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160629

CF01 Termination of patent right due to non-payment of annual fee