CN104750794B - A kind of data search method, device and system - Google Patents
A kind of data search method, device and system Download PDFInfo
- Publication number
- CN104750794B CN104750794B CN201510109439.2A CN201510109439A CN104750794B CN 104750794 B CN104750794 B CN 104750794B CN 201510109439 A CN201510109439 A CN 201510109439A CN 104750794 B CN104750794 B CN 104750794B
- Authority
- CN
- China
- Prior art keywords
- search
- terminal
- search result
- service module
- http service
- 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 45
- 230000000977 initiatory effect Effects 0.000 claims abstract description 105
- 239000003795 chemical substances by application Substances 0.000 claims description 93
- 230000010354 integration Effects 0.000 claims description 20
- 238000004891 communication Methods 0.000 claims description 19
- 230000003993 interaction Effects 0.000 claims description 15
- 230000002452 interceptive effect Effects 0.000 claims description 7
- 239000003999 initiator Substances 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000003860 storage Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000009434 installation Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of data search methods, device and system, are provided with HTTP service module in advance in the terminal for providing search service, and search agent end receives the search key that search initiating terminal is sent;According to preconfigured HTTP service module information, described search keyword and local search instruction are sent to each HTTP service module;It obtains HTTP service module terminal where it and carries out the search result returned after the local search for described search keyword, and described search result is returned into described search initiating terminal.The present invention can be realized the data search to other terminals, i.e., except through additionally providing a kind of mode of data search except search engine so that user at the terminal can it is faster, widely search data.
Description
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer application technologies, and in particular, to a data search method, apparatus, and system.
[ background of the invention ]
Searching is one of the main means for acquiring information, and users can acquire information desired by themselves from internet services or locally through a search engine. However, sometimes the data required by the user is not on the internet service or the local terminal device, but may be on other terminal devices, and the user cannot accurately know which terminal device the user is on, and the user can only ask for and check one by one, and then data transmission is performed through a communication mode between the terminal devices, which obviously wastes time and labor.
[ summary of the invention ]
In view of the above, the present invention provides a method, an apparatus and a system for searching data, so as to obtain data more quickly and more widely.
The specific technical scheme is as follows:
the invention provides a data search method, wherein an HTTP service module is configured on a terminal for providing search service in advance, and the method comprises the following steps:
the search agent end receives a search keyword sent by the search initiating terminal;
sending the search keyword and the local search instruction to each HTTP service module according to the preset HTTP service module information;
and obtaining a search result returned by the HTTP service module after the HTTP service module performs local search for the search keyword at the terminal, and returning the search result to the search initiating terminal.
According to a preferred embodiment of the invention, the method further comprises: the search agent end sends the search keyword to a search server and obtains a search result returned by the search server;
returning the search result to the search initiation terminal includes: and integrating the search result returned by the HTTP service module with the search result returned by the search server, and returning the integrated search result to the search initiating terminal.
According to an alternative embodiment of the invention, the method further comprises:
preferentially displaying the search results returned by the HTTP service module in the search results obtained after integration; or,
marking the search result returned by the HTTP service module in the search result obtained after integration; or,
and highlighting the search result returned by the HTTP service module in the search result obtained after integration.
According to an optional embodiment of the present invention, the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
According to a preferred embodiment of the invention, the method further comprises:
and after receiving the identification information of the terminal from which the search result is sent by the search initiating terminal, the search agent end returns the address information of the terminal from which the search result is sent to the search initiating terminal.
The invention also provides a data search method, wherein the HTTP service module is configured on the terminal providing the search service in advance, and the method comprises the following steps:
the search initiating terminal sends a search keyword to the search agent terminal;
receiving a search result returned by the search agent terminal, wherein the search result comprises: and the HTTP service module carries out local search on the search keyword sent by the search agent terminal at the terminal where the HTTP service module is located and then returns the search result.
According to a preferred embodiment of the present invention, the search result further includes: and the search server returns the search result to the search agent terminal after receiving the search keyword sent by the search agent terminal.
According to an optional embodiment of the present invention, the search result returned by the HTTP service module is preferentially displayed in the search result returned to the search initiator; or,
the search result returned by the HTTP service module is marked in the search result returned to the search initiating terminal; or,
and the search result returned by the HTTP service module is highlighted in the search result returned to the search initiating terminal.
According to an optional embodiment of the present invention, the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
According to an alternative embodiment of the invention, the method further comprises:
when the search result returned by the HTTP service module is selected by a user, the search initiating terminal sends the identification information of the terminal from which the selected search result comes to the search agent terminal, establishes HTTP connection with the terminal from which the selected search result comes after acquiring the address information of the terminal from which the selected search result comes returned by the search agent terminal, requests the terminal from which the selected search result comes and acquires the data corresponding to the selected search result; or,
after the search result returned by the HTTP service module is selected by a user, the search initiating terminal establishes HTTP connection with the terminal from which the selected search result comes by utilizing the address information of the terminal from which the selected search result comes, requests the terminal from which the selected search result comes and acquires data corresponding to the selected search result; or,
and when the search result returned by the HTTP service module is selected by the user, the search initiating terminal establishes HTTP connection with the terminal from which the selected search result comes by using the address information of the terminal from which the selected search result comes, and acquires data corresponding to the selected search result by using the path information of the selected search result in the terminal from which the selected search result comes.
The invention also provides a data search method, wherein the HTTP service module is configured on the terminal providing the search service in advance, and the method comprises the following steps:
the HTTP service module receives a search keyword and a local search instruction sent by a search agent terminal;
and searching the terminal aiming at the search keyword by using the search keyword, and if data corresponding to the search keyword is searched, returning a search result to the search agent terminal.
According to a preferred embodiment of the invention, the method further comprises:
the HTTP service module establishes HTTP connection with a search initiating terminal and returns data corresponding to a search result requested by the search initiating terminal to the search initiating terminal.
The invention provides a data search device, comprising:
the first interactive module is used for receiving search keywords sent by the search initiating terminal;
the second interaction module is used for sending the search keyword and the local search instruction to each HTTP service module according to the preset HTTP service module information; acquiring a search result returned by the HTTP service module after the HTTP service module performs local search aiming at the search keyword at the terminal;
the first interactive module is further configured to return the search result to the search initiating terminal;
wherein the HTTP service module is pre-configured in a terminal providing a search service.
According to a preferred embodiment of the invention, the apparatus further comprises:
the third interactive module is used for sending the search keyword to a search server and acquiring a search result returned by the search server;
the result integration unit is used for integrating the search result returned by the HTTP service module with the search result returned by the search server and providing the integrated search result to the first interaction unit;
and the search result returned to the search initiating terminal by the first interaction unit is the integrated search result.
According to an optional embodiment of the present invention, the result integration unit is further configured to preferentially display the search result returned by the HTTP service module in the search results obtained after integration; or,
marking the search result returned by the HTTP service module in the search result obtained after integration; or,
and highlighting the search result returned by the HTTP service module in the search result obtained after integration.
According to an optional embodiment of the present invention, the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
According to a preferred embodiment of the present invention, the first interaction unit is further configured to return address information of a terminal from which the search result originates to the search initiation terminal after receiving the identification information of the terminal from which the search result originates, where the identification information is sent by the search initiation terminal.
The present invention also provides a data search apparatus, comprising:
the search initiating module is used for sending search keywords to the search agent terminal;
a result obtaining module, configured to receive a search result returned by the search agent, where the search result includes: the HTTP service module carries out local search on the search keyword sent by the search agent terminal at the terminal where the HTTP service module is located and then returns a search result;
wherein the HTTP service module is pre-configured in a terminal providing a search service.
According to a preferred embodiment of the present invention, the search result further includes: and the search server returns the search result to the search agent terminal after receiving the search keyword sent by the search agent terminal.
According to an optional embodiment of the present invention, the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
According to a preferred embodiment of the invention, the apparatus further comprises:
the address acquisition module is used for sending the identification information of the terminal from which the selected search result comes to the search agent terminal after the search result returned by the HTTP service module is selected by the user, and acquiring the address information of the terminal from which the selected search result comes returned by the search agent terminal;
and the terminal communication module is used for establishing HTTP connection with the terminal from which the selected search result comes according to the address information of the terminal from which the selected search result comes, requesting the terminal from which the selected search result comes and acquiring data corresponding to the selected search result.
According to an alternative embodiment of the invention, the device further comprises:
the terminal communication module is used for establishing HTTP connection with the terminal from which the selected search result comes after the search result returned by the HTTP service module is selected by a user, requesting the terminal from which the selected search result comes and acquiring data corresponding to the selected search result; or, the HTTP server module is configured to establish an HTTP connection with the source terminal of the selected search result after the search result returned by the HTTP service module is selected by the user, and acquire data corresponding to the selected search result by using path information of the selected search result in the source terminal.
The present invention also provides a data search apparatus, which is provided on a terminal providing a search service, the apparatus comprising:
the HTTP service module is used for receiving search keywords and local search instructions sent by the search agent terminal; and searching the terminal aiming at the search keyword by using the search keyword, and if data corresponding to the search keyword is searched, returning a search result to the search agent terminal.
According to a preferred embodiment of the invention, the apparatus further comprises:
and the terminal communication module is used for establishing HTTP connection with the search initiating terminal and returning data corresponding to the search result requested by the search initiating terminal to the search initiating terminal.
The present invention additionally provides a data search system, comprising: a search initiation terminal, a search agent terminal, and a terminal providing a search service.
According to the technical scheme, the data search of other terminals can be realized by the method provided by the invention, namely, a data search method is provided besides a search engine, so that a user can search the data of other terminals on the terminal more quickly and widely.
[ description of the drawings ]
FIG. 1 is a schematic diagram of roles according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first method provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a second method provided by the embodiments of the present invention;
FIG. 4 is a flow chart of a third method provided by an embodiment of the present invention;
fig. 5 is a diagram illustrating an example of a layout in a lan according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an example of search results provided by an embodiment of the present invention;
FIG. 7 is a diagram illustrating an example of playing video data in a search results page according to an embodiment of the present invention;
fig. 8 is a diagram illustrating a structure of a device installed at a search agent according to an embodiment of the present invention;
fig. 9 is a diagram illustrating a structure of a device installed in a search initiation terminal according to an embodiment of the present invention;
fig. 10 is a diagram illustrating a structure of a device installed in a terminal providing a search service according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The roles related to the embodiment of the present invention are shown in fig. 1, and mainly include: a search initiating terminal, a terminal providing a searched service, and a search agent terminal. The search initiation terminal refers to a terminal used by a user to initiate a search, for example, if the user inputs a search keyword on a certain terminal, the terminal is the search initiation terminal. A terminal providing a search service refers to a terminal capable of providing data of the terminal to the outside as a search resource. The search agent terminal is responsible for receiving search keywords of a search initiating terminal, and the agent performs data search for the search keywords in a terminal providing a searched service. The search agent terminal can be arranged on the terminal or other equipment. When provided on a terminal, the terminal may simultaneously act as a search initiating terminal and/or a terminal providing a searched service. That is, one terminal may serve as a search initiation terminal, a terminal providing a service to be searched, a search agent terminal, or any combination of the three roles.
The terminal involved in the embodiments of the present invention may be, for example, a personal computer, a notebook computer, a smart phone, a Personal Digital Assistant (PDA), a tablet computer, or other computer system. These terminals are architecturally composed of basic components, such as a bus, a processing system, a memory system, one or more input/output systems, and a communications interface. A bus may include one or more conductors that facilitate communication among the components of a server or terminal device. Processing systems include various types of processors or microprocessors that execute instructions, process processes, or threads. The storage system may include a dynamic memory such as a Random Access Memory (RAM) for storing dynamic information, a static memory such as a Read Only Memory (ROM) for storing static information, and a mass storage including a magnetic or optical recording medium and a corresponding drive. The input system is used for a user to input information to a server or a terminal device, such as a keyboard, a mouse, a stylus pen, a voice recognition system, a biometric system and the like. The output system includes a display, a printer, speakers, etc., for outputting information. The communication interface is used to enable a server or terminal device to communicate with other systems or systems. The communication interfaces can be connected to the network through a wired connection, a wireless connection or an optical connection, and the terminals or the terminals and the search agent end can realize mutual communication through the network. The network may include a Local Area Network (LAN), a Wide Area Network (WAN), a telephone network such as the Public Switched Telephone Network (PSTN), an intranet, the internet, a combination thereof, or the like.
The terminal may include operating system software for managing system resources and controlling the operation of other programs, and application software for implementing specific functional modules.
The preferred application scenario of the embodiment of the invention is a local area network, namely, a search initiating terminal, a terminal for providing searched service and a search agent terminal are realized in the local area network.
In the embodiment of the present invention, the following configuration needs to be made in advance:
1) an HTTP service module is provided at a terminal providing a searched service. The HTTP service module adopts HTTP to send and receive data, and can also realize the data search function in the terminal. The HTTP service module opens an IP address and port number to the search agent side.
2) And setting information of a search proxy terminal at the search initiating terminal, wherein the information comprises the IP address and the port number of the search proxy terminal.
3) The setting of the information of the HTTP service module in the terminal providing the searched service at the search agent side may include: IP address and port number.
Fig. 2 is a flowchart of a method provided in an embodiment of the present invention, where the embodiment is used for a terminal in a local area network to search for data in other terminals. As shown in fig. 2, the method may include the steps of:
in 201, the search initiation terminal sends the search keyword input by the user to the search agent terminal according to the information of the search agent terminal configured in advance.
The search agent terminal and the search initiating terminal can be one terminal, that is, after the user inputs the search keyword in the search initiating module, the search keyword is sent to the search agent module of the terminal.
The search agent terminal and the search initiation terminal may not be one terminal, and the user inputs a search keyword in the search initiation terminal and then sends the search keyword to a terminal or a server serving as the search agent terminal.
At 202, the search agent sends the search keyword and the local search command to the HTTP service module of each terminal providing the search service according to the information of the HTTP service module configured in advance.
If the data search inside the local area network is combined with the big search, the search agent can further send the search keyword to the search server.
In 203, after the HTTP service module of the terminal providing the search service receives the search keyword and the local search instruction, the terminal searches for the search keyword and returns the search result to the search agent.
Because the search initiating terminal may also be provided with an HTTP service module, the search initiating terminal may also receive a search keyword and a local search instruction, perform a search in the local terminal, and return a search result to the search agent terminal.
In addition, the search agent terminal may also be provided with an HTTP service module, so that the HTTP service module of the search agent terminal also receives the search keyword and the local search instruction, searches in the terminal, and returns the search result to the search agent terminal.
In 204, the search agent integrates the search result returned by the terminal providing the search service with the search result returned by the search server, and returns the integrated search result to the search initiation terminal.
In this step, the data search and the large search in the local area network are combined, and the search results of the data search and the large search are integrated, so that the search result received by the search initiating terminal is the search result integrating the local area network and the large search.
Among the search results returned to the search initiation terminal, the search results returned by the terminal providing the search service may be preferentially presented, for example, the search results returned by the terminal providing the search service may be ranked in the top position. The search result returned by the terminal providing the search service may also be identified in the search result, for example, the search result returned by the terminal providing the search service in the search result is identified by using a label box, an identifier, a character, and the like. The search result returned by the terminal providing the search service may also be highlighted in the search result, for example, at a preset position above the search result page, or in a special color or font.
The search result returned by the terminal providing the search service may further include information of the source terminal, such as an identifier of the source terminal, or address information, which may include an IP address and a port number. And may further include path information of the search result in the source terminal.
If a user is interested in a certain search result, for example, clicks on a certain search result, rapid distribution of data can be performed, and the following steps are continuously performed:
if the search result clicked by the user only contains the identifier of the source terminal, the search initiation terminal sends the identifier information of the source terminal of the search result to the search agent terminal in 205, and the search initiation terminal acquires the address information of the source terminal of the search result from the search agent terminal in 206. At 207, the search initiation terminal establishes an HTTP connection with the terminal from which the search result originates according to the address information of the terminal from which the search result originates, and at 208, the search initiation terminal sends a request including data corresponding to the search result to the terminal from which the search result originates, and acquires the data corresponding to the search result from the terminal from which the search result originates.
If the search result clicked by the user includes the address information of the source terminal, the step shown in 305 in fig. 3 may be executed, where the search initiation terminal establishes an HTTP connection with the source terminal using the address information of the source terminal of the search result, and in 306, the search initiation terminal sends a request including data corresponding to the search result to the source terminal of the search result, and acquires the data corresponding to the search result from the terminal from which the search result is sourced.
If the search result clicked by the user includes the address information of the source terminal and the path information of the search result in the source terminal, the step shown in 405 in fig. 4 may be executed, the search initiation terminal establishes an HTTP connection with the source terminal using the address information of the source terminal of the search result, and in 406, obtains data corresponding to the search result using the path information of the search result in the source terminal.
The data corresponding to the search result may include, but is not limited to: text, video, audio, picture, installation files and even process information. Through the process, multimedia data such as video, audio and the like do not need to be downloaded on the search initiation terminal, and data can be directly acquired from other terminals in the local area network and played at the search initiation terminal. Or the application can be directly acquired from other terminals in the local area network without downloading the application on the search initiation terminal, and the installation file is installed on the search initiation terminal.
Taking an example:
assuming that each terminal in a local area network is configured with an HTTP service module, as shown in fig. 5, each terminal can be used as a search initiating terminal, and the terminal 2 is used as a search agent, that is, each terminal is configured with an IP address and a port number of the search agent, the search agent is provided with the IP address and the port number of each HTTP service module, and assuming that the terminal 1 is used as a search initiating terminal, and a user of the terminal 1 wants to watch "martial art legend", a search keyword "martial art legend" is input in the terminal 1. The terminal 1 sends a search keyword 'Wumeinian legend' to the terminal 2 according to the information of the pre-configured search agent terminal. The terminal 2 transmits the search keyword and a local search instruction to each HTTP service module according to information of the HTTP service module of the terminal providing the search service configured in advance, and transmits the search keyword to the search server. Since each terminal is equipped with an HTTP service module, terminals 1, 2, 3 and 4 each perform a local search, and assuming that there is data on terminal 4 about "mary legend", terminal 4 returns the searched data of "mary legend" to terminal 2. The responses returned by the other terminals to terminal 2 do not contain the search results. The terminal 2 also receives the result of the large search returned by the search server, integrates the search result returned by the terminal 4 with the search result returned by the search server, and returns the integrated search result to the terminal 1.
The search result of the terminal 4 is ranked first among the search results received by the terminal 1, and the search result of the terminal 4 is labeled as shown in fig. 6. The search result of the terminal 4 may include information of data corresponding to the search result, address information of the terminal 4 as the source terminal, and path information of the data corresponding to the search result in the terminal 4. When the user clicks the search result of the terminal 4, the terminal 1 establishes an HTTP connection with the terminal 4 by using the address information of the terminal 4, and acquires data corresponding to the search result from the terminal 4 according to the path information of the data corresponding to the search result in the terminal 4. Assuming that the search result of the terminal 4 is video data of the "Wumeinian legend", the user can realize the playing of the "Wumeinian legend" at the terminal 1.
In particular, the terminal 1 may play the wu mei legend acquired from the terminal 4 in the form of "alading" in the search result, that is, call a video player in the search result page, and embed a canvas in the search result page, on which the video player plays the wu mei nian legend. As shown in fig. 7.
The above is a detailed description of the method provided by the present invention. The apparatus provided by the present invention is described in detail below.
Fig. 8 is a structural diagram of an apparatus disposed at a search agent end according to an embodiment of the present invention, and as shown in fig. 8, the apparatus may include: the system comprises a first interaction module 01, a second interaction module 02, a third interaction module 03 and a result integration unit 04.
The first interaction module 01 is responsible for receiving search keywords sent by the search initiation terminal. Since the search agent terminal is pre-configured with information of the HTTP service module in the terminal providing the search service, the second interaction module 02 may transmit the search keyword and the local search instruction to each HTTP service module; and obtaining a search result returned by the HTTP service module after the HTTP service module performs local search aiming at the search keyword. And then the first interactive module 01 returns the search result to the search initiating terminal.
On the other hand, the third interaction module 03 may send the search keyword to the search server for performing a large search, and obtain a search result returned by the search server, that is, a search result of the large search. In this case, the result integrating unit 04 may integrate the search result returned by the HTTP service module with the search result returned by the search server, and provide the integrated search result to the first interacting unit 01, where the search result returned by the first interacting unit 01 to the search initiating terminal is the integrated search result.
The result integrating unit 04 may preferentially present the search results returned by the HTTP service module among the search results obtained after integration, for example, place the ranking of the search results returned by the terminal providing the search service at a front position. The search result returned by the HTTP service module may also be labeled in the search result obtained after the integration, for example, the search result returned by the terminal providing the search service in the search result is identified by using a labeling box, an identifier, a character, and the like. The search results returned by the HTTP service module may also be highlighted in the search results obtained after the integration, for example, the search results are displayed in a preset position above the search result page, or displayed in a special color or font.
The search result returned by the HTTP service module contains the information of the terminal from which the search result comes, or further contains the path information of the search result in the terminal from which the search result comes; the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
If the user selects the search result returned by the HTTP service module at the search initiating terminal and the search result only contains the identification information of the terminal from which the search result comes, the search initiating terminal sends the identification information of the terminal from which the search result comes to the search agent terminal. At this time, after receiving the identification information of the terminal from which the search result is sent by the search initiating terminal, the first interaction unit 01 of the search agent returns the address information of the terminal from which the search result is sent to the search initiating terminal, so that the search initiating terminal can establish HTTP connection with the terminal from which the search result is sent by using the address information to obtain data corresponding to the search result.
Fig. 9 is a structural diagram of an apparatus provided in a search initiation terminal according to an embodiment of the present invention, and as shown in fig. 9, the apparatus includes: the search initiating module 11 and the result obtaining module 12 may further include an address obtaining module 13 and a terminal communication module 14.
When a user inputs a search keyword at a search initiation terminal, the search initiation terminal is pre-configured with information of a search agent terminal, and a search initiation module 11 sends the search keyword to the search agent terminal. The result obtaining module 12 is responsible for receiving search results returned by the search agent, where the search results include: and the HTTP service module carries out local search on the search keyword sent by the search agent terminal at the terminal where the HTTP service module is located and then returns a search result. The search results may also include: and the search server returns the search result to the search agent terminal after receiving the search keyword sent by the search agent terminal. That is, the search result may be a search result obtained after integrating the search result returned by the HTTP service module and the search result returned by the search server.
In addition, the search result returned by the HTTP service module may include information of the terminal from which the search result originates, or further include path information of the search result in the terminal from which the search result originates; the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
When the search result returned by the HTTP service module is selected by the user, if the search result only includes the identification information of the terminal from which the search result originates, the address acquisition module 13 sends the identification information of the terminal from which the selected search result originates to the search agent terminal, and acquires the address information of the terminal from which the selected search result originates returned by the search agent terminal. Then, the terminal communication module 14 establishes HTTP connection with the terminal from which the selected search result originates according to the address information of the terminal from which the selected search result originates, and requests and acquires data corresponding to the selected search result from the terminal from which the selected search result originates.
If the search result selected by the user includes address information of the terminal from which the search result originates, the terminal communication module 14 may establish an HTTP connection with the terminal from which the selected search result originates using the address information, and request and acquire data corresponding to the selected search result from the terminal from which the selected search result originates.
If the search result selected by the user includes the address information of the source terminal of the search result and the path information of the data corresponding to the search result in the source terminal, the terminal communication module 14 may establish an HTTP connection with the source terminal of the selected search result using the address information, and acquire the data corresponding to the selected search result using the path information of the selected search result in the source terminal.
Fig. 10 is a block diagram of an apparatus provided in a terminal providing a search service according to an embodiment of the present invention, and as shown in fig. 10, the apparatus includes: an HTTP service module 21 and a terminal communication module 22.
The HTTP service module 21 is responsible for interacting with the search agent, that is, receiving a search keyword and a local search instruction sent by the search agent; and searching for the search keyword on the terminal by using the search keyword, and if data corresponding to the search keyword is searched, returning a search result to the search agent terminal.
When the user of the search initiation terminal initiates an HTTP connection with the terminal from which the search result originates by selecting the search result returned by the HTTP service module, the terminal communication module 22 in the terminal from which the search result originates establishes an HTTP connection with the search initiation terminal, and returns data corresponding to the search result requested by the search initiation terminal to the search initiation terminal. Wherein data corresponding to the search result requested by the terminal can be provided to the terminal communication module 22 by the HTTP service module 21.
Since the search initiation terminal and the search agent terminal may be the same terminal, the search initiation terminal and the terminal providing the search service may be the same terminal, the search agent terminal and the terminal providing the search service may be the same terminal, and one terminal may also be simultaneously used as the search initiation terminal, the search agent terminal, and the terminal providing the search service, the apparatuses shown in fig. 8, 9, and 10 may be disposed at the same terminal in an arbitrary combination manner.
It should be noted that, in the embodiment of the present invention, the search of the HTTP service module in the terminal may be a search of any data file, and the search authority of the HTTP service module in the terminal may be flexibly set, for example, the search may be full terminal-wide, or application-wide, and the search of a system level file may be prohibited.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (25)
1. A data search method is characterized in that a terminal providing search service is provided with an HTTP service module in advance, the HTTP service module adopts HTTP to send and receive data and has a data search function in the terminal, and the method comprises the following steps:
the search agent end receives a search keyword sent by the search initiating terminal;
sending the search keyword and the local search instruction to each HTTP service module according to the preset HTTP service module information;
and obtaining a search result returned by the HTTP service module after the HTTP service module performs local search for the search keyword at the terminal, and returning the search result to the search initiating terminal.
2. The method of claim 1, further comprising: the search agent end sends the search keyword to a search server and obtains a search result returned by the search server;
returning the search result to the search initiation terminal includes: and integrating the search result returned by the HTTP service module with the search result returned by the search server, and returning the integrated search result to the search initiating terminal.
3. The method of claim 2, further comprising:
preferentially displaying the search results returned by the HTTP service module in the search results obtained after integration; or,
marking the search result returned by the HTTP service module in the search result obtained after integration; or,
and highlighting the search result returned by the HTTP service module in the search result obtained after integration.
4. The method according to claim 1 or 2, wherein the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
5. The method of claim 4, further comprising:
and after receiving the identification information of the terminal from which the search result is sent by the search initiating terminal, the search agent end returns the address information of the terminal from which the search result is sent to the search initiating terminal.
6. A data search method is characterized in that a terminal providing search service is provided with an HTTP service module in advance, the HTTP service module adopts HTTP to send and receive data and has a data search function in the terminal, and the method comprises the following steps:
the search initiating terminal sends a search keyword to the search agent terminal;
receiving a search result returned by the search agent terminal, wherein the search result comprises: and the HTTP service module carries out local search on the search keyword sent by the search agent terminal at the terminal where the HTTP service module is located and then returns the search result.
7. The method of claim 6, wherein the search results further comprise: and the search server returns the search result to the search agent terminal after receiving the search keyword sent by the search agent terminal.
8. The method according to claim 7, wherein the search result returned by the HTTP service module is preferentially presented in the search result returned to the search initiator; or,
the search result returned by the HTTP service module is marked in the search result returned to the search initiating terminal; or,
and the search result returned by the HTTP service module is highlighted in the search result returned to the search initiating terminal.
9. The method according to claim 6 or 7, wherein the search result returned by the HTTP service module includes information of a source terminal from which the search result originated, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
10. The method of claim 9, further comprising:
when the search result returned by the HTTP service module is selected by a user, the search initiating terminal sends the identification information of the terminal from which the selected search result comes to the search agent terminal, establishes HTTP connection with the terminal from which the selected search result comes after acquiring the address information of the terminal from which the selected search result comes returned by the search agent terminal, requests the terminal from which the selected search result comes and acquires the data corresponding to the selected search result; or,
after the search result returned by the HTTP service module is selected by a user, the search initiating terminal establishes HTTP connection with the terminal from which the selected search result comes by utilizing the address information of the terminal from which the selected search result comes, requests the terminal from which the selected search result comes and acquires data corresponding to the selected search result; or,
and when the search result returned by the HTTP service module is selected by the user, the search initiating terminal establishes HTTP connection with the terminal from which the selected search result comes by using the address information of the terminal from which the selected search result comes, and acquires data corresponding to the selected search result by using the path information of the selected search result in the terminal from which the selected search result comes.
11. A data search method is characterized in that a terminal providing search service is provided with an HTTP service module in advance, the HTTP service module adopts HTTP to send and receive data and has a data search function in the terminal, and the method comprises the following steps:
the HTTP service module receives a search keyword and a local search instruction sent by a search agent terminal;
and searching the terminal aiming at the search keyword by using the search keyword, and if data corresponding to the search keyword is searched, returning a search result to the search agent terminal.
12. The method of claim 11, further comprising:
the HTTP service module establishes HTTP connection with a search initiating terminal and returns data corresponding to a search result requested by the search initiating terminal to the search initiating terminal.
13. A data search apparatus, comprising:
the first interactive module is used for receiving search keywords sent by the search initiating terminal;
the second interaction module is used for sending the search keyword and the local search instruction to each HTTP service module according to the preset HTTP service module information; acquiring a search result returned by the HTTP service module after the HTTP service module performs local search aiming at the search keyword at the terminal;
the first interactive module is further configured to return the search result to the search initiating terminal;
the HTTP service module is configured in advance in a terminal providing search service, and the HTTP service module adopts HTTP to send and receive data and has a data search function in the terminal.
14. The apparatus of claim 13, further comprising:
the third interactive module is used for sending the search keyword to a search server and acquiring a search result returned by the search server;
the result integration unit is used for integrating the search result returned by the HTTP service module with the search result returned by the search server and providing the integrated search result to the first interaction unit;
and the search result returned to the search initiating terminal by the first interaction unit is the integrated search result.
15. The apparatus according to claim 14, wherein the result integration unit is further configured to preferentially present, in the search results obtained after integration, the search results returned by the HTTP service module; or,
marking the search result returned by the HTTP service module in the search result obtained after integration; or,
and highlighting the search result returned by the HTTP service module in the search result obtained after integration.
16. The apparatus according to claim 13 or 14, wherein the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
17. The apparatus of claim 16, wherein the first interaction unit is further configured to, after receiving identification information of a terminal from which a search result sent by the search initiation terminal originates, return address information of the terminal from which the search result originates to the search initiation terminal.
18. A data search apparatus, comprising:
the search initiating module is used for sending search keywords to the search agent terminal;
a result obtaining module, configured to receive a search result returned by the search agent, where the search result includes: the HTTP service module carries out local search on the search keyword sent by the search agent terminal at the terminal where the HTTP service module is located and then returns a search result;
the HTTP service module is configured in advance in a terminal providing search service, and the HTTP service module adopts HTTP to send and receive data and has a data search function in the terminal.
19. The apparatus of claim 18, wherein the search results further comprise: and the search server returns the search result to the search agent terminal after receiving the search keyword sent by the search agent terminal.
20. The apparatus according to claim 18 or 19, wherein the search result returned by the HTTP service module includes information of a source terminal from which the search result originates, or further includes path information of the search result in the source terminal;
the information of the terminal from which the search result comes includes identification information or address information of the terminal from which the search result comes.
21. The apparatus of claim 20, further comprising:
the address acquisition module is used for sending the identification information of the terminal from which the selected search result comes to the search agent terminal after the search result returned by the HTTP service module is selected by the user, and acquiring the address information of the terminal from which the selected search result comes returned by the search agent terminal;
and the terminal communication module is used for establishing HTTP connection with the terminal from which the selected search result comes according to the address information of the terminal from which the selected search result comes, requesting the terminal from which the selected search result comes and acquiring data corresponding to the selected search result.
22. The apparatus of claim 20, further comprising:
the terminal communication module is used for establishing HTTP connection with the terminal from which the selected search result comes after the search result returned by the HTTP service module is selected by a user, requesting the terminal from which the selected search result comes and acquiring data corresponding to the selected search result; or, the HTTP server module is configured to establish an HTTP connection with the source terminal of the selected search result after the search result returned by the HTTP service module is selected by the user, and acquire data corresponding to the selected search result by using path information of the selected search result in the source terminal.
23. A data search apparatus provided in a terminal providing a search service, the apparatus comprising:
the HTTP service module is used for sending and receiving data by adopting HTTP, has a data searching function in the terminal and is used for receiving searching keywords and local searching instructions sent by the searching agent end; and searching the terminal aiming at the search keyword by using the search keyword, and if data corresponding to the search keyword is searched, returning a search result to the search agent terminal.
24. The apparatus of claim 23, further comprising:
and the terminal communication module is used for establishing HTTP connection with the search initiating terminal and returning data corresponding to the search result requested by the search initiating terminal to the search initiating terminal.
25. A data search system, the system comprising: the system comprises a search initiating terminal, a search agent terminal and a terminal for providing search service;
the search initiating terminal comprising an apparatus as claimed in any of claims 13 to 17;
the search agent side comprises an apparatus according to any one of claims 18 to 22;
the terminal providing a search service comprises the apparatus of claim 23 or 24.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510109439.2A CN104750794B (en) | 2015-03-12 | 2015-03-12 | A kind of data search method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510109439.2A CN104750794B (en) | 2015-03-12 | 2015-03-12 | A kind of data search method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104750794A CN104750794A (en) | 2015-07-01 |
CN104750794B true CN104750794B (en) | 2019-02-12 |
Family
ID=53590478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510109439.2A Active CN104750794B (en) | 2015-03-12 | 2015-03-12 | A kind of data search method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104750794B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577777A (en) * | 2017-09-12 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of file reference method, apparatus and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1672866A1 (en) * | 2004-12-15 | 2006-06-21 | Siemens S.p.A. | Method and system to the instant transfer of multimedia files between mobile radio users within the scope of combinational services |
CN101039247A (en) * | 2007-03-13 | 2007-09-19 | 华为技术有限公司 | Point-to-point network system and intercommunicating method for overlapped network node |
CN101072109A (en) * | 2006-05-12 | 2007-11-14 | 乐金电子(昆山)电脑有限公司 | Internet protocol sharing device and method |
CN101075242A (en) * | 2006-12-25 | 2007-11-21 | 腾讯科技(深圳)有限公司 | System and method for acquiring webpage elements |
CN101110750A (en) * | 2007-08-20 | 2008-01-23 | 阳术国 | Processing method for implementing resource sharing of built-in equipment based on p2p technology |
CN101115019A (en) * | 2006-07-28 | 2008-01-30 | 中国科学院声学研究所 | Peer-to-peer networking file sharing service network structure |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101309237B (en) * | 2008-06-30 | 2011-04-20 | 中兴通讯股份有限公司 | Home gateway, system and method for remotely sharing multimedia data |
CN101316275B (en) * | 2008-07-01 | 2012-01-11 | 中兴通讯股份有限公司 | Method for remotely sharing multimedia data by mobile terminal and household electrical appliance terminal |
-
2015
- 2015-03-12 CN CN201510109439.2A patent/CN104750794B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1672866A1 (en) * | 2004-12-15 | 2006-06-21 | Siemens S.p.A. | Method and system to the instant transfer of multimedia files between mobile radio users within the scope of combinational services |
CN101072109A (en) * | 2006-05-12 | 2007-11-14 | 乐金电子(昆山)电脑有限公司 | Internet protocol sharing device and method |
CN101115019A (en) * | 2006-07-28 | 2008-01-30 | 中国科学院声学研究所 | Peer-to-peer networking file sharing service network structure |
CN101075242A (en) * | 2006-12-25 | 2007-11-21 | 腾讯科技(深圳)有限公司 | System and method for acquiring webpage elements |
CN101039247A (en) * | 2007-03-13 | 2007-09-19 | 华为技术有限公司 | Point-to-point network system and intercommunicating method for overlapped network node |
CN101110750A (en) * | 2007-08-20 | 2008-01-23 | 阳术国 | Processing method for implementing resource sharing of built-in equipment based on p2p technology |
Also Published As
Publication number | Publication date |
---|---|
CN104750794A (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7351907B2 (en) | Online document sharing methods, devices, electronic devices and storage media | |
US10824670B2 (en) | Real-time audio stream search and presentation system | |
US20160330150A1 (en) | Message service providing method for message service linked to search service and message server and user terminal to perform the method | |
US10789614B2 (en) | Method and system for issuing recommended information | |
WO2015043547A1 (en) | A method, device and system for message response cross-reference to related applications | |
TW201437832A (en) | Information recommendation method and device thereof and information resource recommendation system | |
US10061806B2 (en) | Presenting previously selected search results | |
CN115079884B (en) | Session message display method, device, equipment and storage medium | |
CN113094521A (en) | Multimedia resource searching method, device, system, equipment and storage medium | |
CN109597929A (en) | Methods of exhibiting, device, terminal and the readable medium of search result | |
WO2023051294A9 (en) | Prop processing method and apparatus, and device and medium | |
CN103744575A (en) | Method and equipment for providing input auxiliary areas of input applications | |
CN110647827A (en) | Comment information processing method and device, electronic equipment and storage medium | |
US20150372952A1 (en) | Method and system for enhanced content messaging | |
US20200007957A1 (en) | Wearable device, information processing method, apparatus and system | |
CN114053697A (en) | Cloud game interaction method and device, readable medium and electronic equipment | |
CN113885976A (en) | Interaction method and device and electronic equipment | |
CN104750794B (en) | A kind of data search method, device and system | |
JP2018529149A (en) | Method and apparatus for push distributing information | |
CN112084441A (en) | Information retrieval method and device and electronic equipment | |
CN108363707B (en) | Method and device for generating webpage | |
CN115221444A (en) | Data processing method and device, electronic equipment and storage medium | |
JP5612544B2 (en) | Information presentation method and information presentation system | |
US20170161237A1 (en) | Method for creating a hyperlink in a video-playing page and electronic device | |
CN113360704A (en) | Voice playing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |