CN110765341A - Searching method and device - Google Patents

Searching method and device Download PDF

Info

Publication number
CN110765341A
CN110765341A CN201911031942.5A CN201911031942A CN110765341A CN 110765341 A CN110765341 A CN 110765341A CN 201911031942 A CN201911031942 A CN 201911031942A CN 110765341 A CN110765341 A CN 110765341A
Authority
CN
China
Prior art keywords
search result
search
server
client
page
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.)
Granted
Application number
CN201911031942.5A
Other languages
Chinese (zh)
Other versions
CN110765341B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911031942.5A priority Critical patent/CN110765341B/en
Publication of CN110765341A publication Critical patent/CN110765341A/en
Application granted granted Critical
Publication of CN110765341B publication Critical patent/CN110765341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a searching method and a searching device, relates to the field of computers, and particularly relates to the field of networks. The specific implementation scheme is as follows: sending a search request to a first service terminal; receiving a first search result and a second search result acquisition instruction returned by the first service terminal in response to the search request; the first search result is a search result page with a hidden tag; the second search result acquisition instruction is generated according to the first server, a preset protocol between the client and the second server and the search request; acquiring a second search result from the second server according to the second search result acquisition instruction; and updating and presenting the search result page according to the second search result. The embodiment of the application can enrich the content of the search result.

Description

Searching method and device
Technical Field
The present application relates to the field of computers, and more particularly to the field of networks.
Background
In recent years, with the rapid popularization of smart phones, the mobile internet has become a main way for netizens to obtain information through networks. The search traffic of the Personal mobile terminal also exceeds the search traffic of a Personal Computer (PC). In the current era of obtaining information through mobile terminals, every enterprise occupies traffic entrance of the industry through own APP (Application), and search engines also face various huge challenges. Due to the influence of network ecology, content resource limitation, correlation requirements of searched content and other factors, the situation that the content of the non-network ecology cannot be searched or cannot be acquired after being searched easily occurs. Search engines may encounter situations where less and less content is available for search.
Disclosure of Invention
In order to solve at least one problem in the prior art, an embodiment of the present application provides a search method.
In a first aspect, an embodiment of the present application provides a search method, including:
sending a search request to a first service terminal;
receiving a first search result and a second search result acquisition instruction returned by the first server end in response to the search request; a second search result acquisition instruction is generated according to a preset protocol and a search request among the first service terminal, the client terminal and the second service terminal;
acquiring a second search result from a second server according to a second search result acquisition instruction;
and updating and presenting the search result page according to the second search result.
The searching method provided by the embodiment of the application can acquire the searching result from the second server, and when the second server is the own APP or other own data owners, the content of the searching result can be enriched.
In one embodiment, the first search result is a search result page with hidden tags that are used to provide reserved bits for updated content of the search result page.
The embodiment of the application provides the reserved bit for the updated content of the search result page in a tag hiding mode, and if the displayable content exists, the content is displayed. If the displayable content does not exist, the display is hidden, so that the display effect of the search result page is not influenced.
In one embodiment, a search results page is updated and presented, comprising:
updating the source codes of the search result page, and generating the search result page according to the updated source codes, so that the updated content is displayed in a reserved position corresponding to the hidden label of the search result page in a visible mode;
or updating the search result display item in the search result page, so that the updated content is displayed in a visible mode in the reserved position corresponding to the hidden label of the search result page.
In the embodiment of the application, two search result page updating and presenting modes can update and present the search result page according to the second search result under the conditions that the search result page of the first search result is not presented at the client and is presented at the client.
In one embodiment, the obtaining the second search result from the database of the second server according to the second search result obtaining instruction includes:
obtaining an instruction according to a second search result, and determining a second server;
sending second search result request information to a second server;
and receiving a second search result provided by the second server end in response to the second search result request information.
In the embodiment of the application, the client can obtain the second search result from the second server, so that the data processing amount of the first server is reduced, and the obtaining of the search result can be combined with the capability of the client.
In one implementation, the method provided in the embodiments of the present application further includes:
obtaining a third search result in the local data of the client according to the search request;
converting the third search result into a visible webpage format;
and updating and presenting the search result page according to the converted third search result.
In the embodiment of the application, the third search result in the local data of the client is obtained, so that the content of the search result can be further enriched.
In one implementation, the method provided in the embodiments of the present application further includes:
receiving a view indication of a search result in a search results page;
if the search result pointed by the viewing indication is the user-defined processing content, displaying the user-defined processing content pointed by the viewing indication according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content includes the second search result.
In the embodiment of the application, data search can be performed on a plurality of data sources, and the search results are displayed in the display container, so that the content of the search results can be enriched, and the content of the data which can be viewed by a user can be enriched.
In a second aspect, an embodiment of the present application provides a search method, applied to a first service end, including:
receiving a search request sent by a client;
acquiring a first search result and a second search result acquisition instruction according to the search request; the second search result acquisition instruction is used for indicating the client to acquire a second search result from the second server, and is generated according to the first server, a preset protocol between the client and the second server and a search request;
and sending the first search result and the second search result acquisition instruction to the client.
In a third aspect, an embodiment of the present application provides a search method, applied to a second server, including:
under the condition that the client requests to acquire a second search result according to a second search result acquisition instruction, the second search result is sent to the client; the second search result acquisition instruction is generated by the first server according to the search request sent by the client to the first server and the preset protocol among the first server, the client and the second server.
In a fourth aspect, an embodiment of the present application provides a search apparatus, including:
a search request sending module: the system comprises a first service end, a second service end and a server, wherein the first service end is used for sending a search request to the first service end;
the first search result receiving module: the first search result acquisition instruction and the second search result acquisition instruction are used for receiving a first search result and a second search result which are returned by the first service end in response to the search request; a second search result acquisition instruction is generated according to a preset protocol and a search request among the first service terminal, the client terminal and the second service terminal;
the second search result acquisition module: the second search result acquisition instruction is used for acquiring a second search result from the second server;
a search result page display module: and updating and presenting the search result page according to the second search result.
In one embodiment, the first search result is a search result page with hidden tags that are used to provide reserved bits for updated content of the search result page.
In one embodiment, the search results page display module comprises:
a source code update unit: the source codes are used for updating the search result page, and the search result page is generated according to the updated source codes, so that the updated content is displayed in a reserved position corresponding to the hidden label of the search result page in a visible mode;
a dynamic update unit: and the method is used for updating the search result display items in the search result page, so that the updated content is displayed in a visible mode in the reserved positions corresponding to the hidden labels of the search result page.
In one embodiment, the second search result acquisition module includes:
the second server determining unit: the server is used for acquiring an instruction according to the second search result and determining a second server;
the second search result request information transmitting unit: the second search result request information is sent to a second server;
the second search result receiving unit: and the second search result receiving unit is used for receiving a second search result provided by the second server end in response to the second search result request information.
In one embodiment, the apparatus further comprises:
a third search result acquisition module: the client side is used for obtaining a third search result in the local data of the client side according to the search request;
the third search result conversion module: converting the third search result into a visible web page format;
a third search result display module: and updating and presenting the search result page according to the converted third search result.
In one embodiment, the apparatus further comprises:
a viewing indication receiving module: receiving an indication of a view of a search result in a search results page;
the viewing indication execution module: the display device is used for displaying the user-defined processing content pointed by the search result viewing indication according to the display container and the display parameter determined by the second search result acquisition instruction if the search result pointed by the viewing indication is the user-defined processing content; the custom processing content includes the second search result.
In a fifth aspect, an embodiment of the present application provides a search apparatus, applied to a first service end, including:
a search request receiving module: the system comprises a server, a server and a client, wherein the server is used for receiving a search request sent by the client;
the first search result generation module: the search system is used for acquiring a first search result and a second search result acquisition instruction according to the search request; the second search result acquisition instruction is used for indicating the client to acquire a second search result from the second server, and is generated according to the first server, a preset protocol between the client and the second server and a search request;
the first search result sending module: and the client is used for sending the first search result and the second search result acquisition instruction to the client.
In a sixth aspect, an embodiment of the present application provides a search apparatus, applied to a second server, including:
the second search result sending module: the client side is used for sending the second search result to the client side under the condition that the client side requests to obtain the second search result according to the second search result obtaining instruction; the second search result acquisition instruction is generated by the first server according to the search request sent by the client to the first server and the preset protocol among the first server, the client and the second server.
In a seventh aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform a method provided by any one of the embodiments of the present application.
In an eighth aspect, the present application provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are configured to cause a computer to perform a method provided in any one of the embodiments of the present application.
One embodiment in the above application has the following advantages or benefits: the content of the search result can be enriched. Because the instructions are set in the search results returned by the first server side of the search engine, the client side can obtain the search results of other channels according to the instructions, so that the technical problem of reduction of search contents is solved, and the technical effect of enriching the search contents is achieved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a schematic diagram of a search method according to a first embodiment of the present application;
FIG. 2 is a schematic diagram of a search method according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of a search method according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a search method according to a fourth embodiment of the present application;
FIG. 5 is a schematic diagram of a search method according to a fifth embodiment of the present application;
FIG. 6 is a schematic diagram of a search results page according to a sixth embodiment of the present application;
FIG. 7 is a schematic diagram of a search apparatus according to a seventh embodiment of the present application;
FIG. 8 is a schematic view of a search apparatus according to an eighth embodiment of the present application;
FIG. 9 is a schematic diagram of a search apparatus according to a ninth embodiment of the present application;
fig. 10 is a schematic view of a search apparatus according to a tenth embodiment of the present application;
FIG. 11 is a schematic diagram of a search apparatus according to an eleventh embodiment of the present application;
FIG. 12 is a schematic view of a searching apparatus according to a twelfth embodiment of the present application;
fig. 13 is a block diagram of an electronic device for implementing the search method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
An embodiment of the present application provides a search method, applied to a client, as shown in fig. 1, including:
step S11: and sending a search request to the first service terminal.
Step S12: receiving a first search result and a second search result acquisition instruction returned by the first server end in response to the search request; and the second search result acquisition instruction is generated according to the preset protocol and the search request among the first service terminal, the client terminal and the second service terminal.
Step S13: and acquiring a second search result from the second server according to the second search result acquisition instruction.
Step S14: and updating and presenting the search result page according to the second search result.
In an embodiment of the present application, the first server may be a server of a search engine. A user inputs a search request in a search engine, and the search request may be sent to a server of the search engine, i.e., a first server, through the search engine. The search request is generated according to a search keyword input by a user, for example, the user inputs a search keyword "mobile phone", and the search request is generated according to the keyword "mobile phone".
In the embodiment of the application, the first service terminal receives the search request and generates the search result page according to the searched data. The search results page may include a plurality of web pages that are arranged in a sequence or randomly within the search results page. The location of the search result page occupied by the hidden tag may provide a display bit for subsequent search results generated from other data sources. When the first server returns the first search result, the position occupied by the hidden tag in the search result page may be invisible, that is, after the position occupied by the hidden tag is set to be visible, the corresponding content can be displayed.
In an embodiment of the present application, the second search result obtaining instruction may be used to instruct the client where and how to obtain the second search result. The second server may be a server that has a certain protocol with the client in advance and allows the client to acquire data according to the preset protocol. In an era of rapid development of such mobile APPs today, a large number of enterprises are occupying the traffic portal of the industry where the enterprise is located through its own APP. Under the Web (Web page) ecology, the data communication process of the search engine is based on the Robots protocol. The full name of the Robots Protocol (also known as crawler Protocol, robot Protocol, etc.) is the "Web crawler Exclusion Standard" (Robots Exclusion Protocol). The website tells the search engine which pages can be crawled and which pages cannot be crawled through the Robots protocol. If a page is not allowed to be crawled by the search engine, then the data is not allowed to enter the database used to generate the search engine search results page. Thus, search engines typically do not search for data of the enterprise's own APP. In one example, the second server may be a server of an enterprise owning its own APP. On the premise that a preset protocol exists among the enterprise server, the client and the first server, according to the preset protocol, the enterprise server allows the client to acquire data from own APP data in an agreed manner to serve as a second search result. In this case, the first service end may generate the second search result obtaining instruction according to the preset protocol and the search request initiated by the client. The client can obtain the search result from the second server according to the second search result obtaining instruction, and add the obtained search result into the search result page.
In this embodiment of the application, the second search result obtaining instruction may be substantially one instruction or multiple instructions, and since the second search result obtaining instruction for instructing the client to obtain the second search result is related to the search request, the second search result obtaining instruction may be generated by the client according to the search request and a preset protocol, and in a case that the search requests are different, the content of the second search result obtaining instruction is also correspondingly different. And the second search result obtained according to the second search result acquisition instruction has a corresponding relation with the search request.
The client establishes a private communication instruction with the first server, and when a client user searches or browses a webpage, a search result page returned by the first server or the webpage returned by the corresponding browsing instruction reserves some place-occupying information which is identified by specific characters. Meanwhile, the webpage of the server side comprises a second search result acquisition instruction communicated with the client side, the instruction comprises a plurality of parameters, when the client side analyzes the type of identification, the client side can acquire the search results of other sources by combining with the local display capability according to the related parameters, the acquired search results of other sources are packaged, part of information is extracted, and the content of the current webpage is updated, so that the purpose of finally adding the related search results to the search result page dynamically can be achieved, and meanwhile, the search results can be opened in the client side for browsing.
When the client receives a first search result returned by the first server in response to the search request, the search result page can be immediately displayed, and the updated result page can also be displayed after the second search result is obtained.
According to the embodiment of the application, the hidden label is arranged in the search result page returned by the first server, the reserved bit is provided for the second search result, meanwhile, the client is indicated to obtain the second search result from the server through the second search result obtaining instruction, so that the client can obtain the search result through other servers except the first server and display the search result obtained from other servers except the first server, and therefore the content of the search result is enriched.
In one embodiment, the obtaining the second search result from the database of the second server according to the second search result obtaining instruction includes:
obtaining an instruction according to a second search result, and determining a second server;
sending second search result request information to a second server;
and receiving a second search result provided by the second server end in response to the second search result request information.
In this embodiment, the second search result obtaining instruction may be used to instruct the client to obtain the search result corresponding to the search request from the second server. The second server may be at least one server, and specifically may be an own APP server or other own data server.
In one embodiment, the first search result is a search result page with hidden tags that are used to provide reserved bits for updated content of the search result page.
In one embodiment, a search results page is updated and presented, comprising:
updating the source codes of the search result page, and generating the search result page according to the updated source codes, so that the updated content is displayed in a reserved position corresponding to the hidden label of the search result page in a visible mode;
or updating the search result display item in the search result page, so that the updated content is displayed in a visible mode in the reserved position corresponding to the hidden label of the search result page.
In the embodiment of the application, the source code of the search result page is updated, that is, before the search result page is presented at the client, the source code of the display interface used for generating the search result page is changed, so that a corresponding second search result exists on the display interface of the search result page generated by the changed source code. The second search result may include one or more jump links. After the source code is updated, the client generates a display item in the search result page by the jump link corresponding to the second search result, and displays a reserved bit corresponding to the hidden label of the original search result page in a visible mode. For example, there are originally 5 display items on the search result page, corresponding to 5 specific web pages, and the 5 web pages are arranged on the search result page according to a certain order, and the display items may include titles, links, summaries, and the like, corresponding to 5 display items. And if the client side obtains the second search result, extracting information such as title, abstract and link according to a certain rule from the data corresponding to the second search result to generate a display item corresponding to the second search result, and inserting the display item into the original 5 webpages on the search result page. The position of the second search result display may be located in the reserved bit corresponding to the hidden tag. For example, 10 search results are in a search result page returned by the first server, the reserved bit corresponding to the hidden tag is between items 3 to 4 in the 10 search results, and then the search result display item generated by the second search result is displayed behind item 3.
In the embodiment of the application, the search result display item of the search result page is changed through the Web ecological standard capability, that is, after the search result page is presented at the client, the search result display item of the search result page is changed, and the search result display item generated corresponding to the second search result is displayed at the reserved position corresponding to the hidden tag. And adding displayable content on a display interface of the search result page.
In the embodiment of the present application, when a search result is obtained, data in file formats such as HTML (HyperText Markup Language), HTML5, JS (JavaScript ), CSS (Cascading Style Sheets), pictures, texts, audios/videos, and animations can be analyzed based on the W3C (World Wide web consortium) standard, so as to generate a search result page. Meanwhile, the search result page can be encrypted according to needs. And updating the search result page corresponding to the first search result according to the search results of other data sources except the first server side before and after the search result page corresponding to the first search result is presented by the client side.
In the embodiment of the application, a network request sent by a kernel is browsed for a webpage with an agreement, the content is locally modified, and the content assembly of a Native APP (Native APP) is realized.
In one embodiment, as shown in fig. 2, the method further comprises:
step S21: and obtaining a third search result in the data local to the client according to the search request.
Step S22: and converting the third search result into a visible webpage format.
Step S23: and updating and presenting the search result page according to the converted third search result.
The local data of the client belongs to non-Web ecological data, and a search engine cannot search the data under general conditions. In the embodiment of the application, local data can be searched at the client, the local data of the client is used as a third search result, the third search result is converted into a visible webpage format under the Web ecology, and the visible webpage format is presented on a display interface of a search result page, so that the data of the search result is further enriched.
In the embodiment of the present application, the client may be a specific client that issues a search request, or may be all clients that are consistent with the type of the client that issues the search request.
In one embodiment, as shown in fig. 3, the method further comprises:
step S31: a view indication of a search result in a search results page is received.
Step S32: if the search result pointed by the viewing indication is the user-defined processing content, displaying the user-defined processing content pointed by the viewing indication according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content includes the second search result.
In the embodiment of the present application, the specific content of the second search result may be obtained completely when the search result page is updated, and stored in the memory or the database of the client. Or acquiring the whole content of the second search result from the second server after receiving the search result viewing instruction.
In the embodiment of the present application, the display container of the second search result is a carrier for displaying the content of the second search result, and may be, for example, an own APP of an enterprise.
In an embodiment of the present application, the custom processing content may further include a third search result. The third search result can also be displayed in the reserved bit corresponding to the hidden label page through the corresponding display container.
As shown in fig. 6, in response to a search request sent by a client, a first server returns a search result page including a plurality of first search results and a default hidden NA (Native APP ) reserved display bit 61, and after obtaining a second search result, the hidden reserved bit visually displays the second search result. For example, the details of the second search content are presented by the applet 62 or the details of the second search content are presented by the album container 63.
An embodiment of the present application further provides a search method, as shown in fig. 4, which is applied to a first service end, and includes:
step S41: and receiving a search request sent by a client.
Step S42: acquiring a first search result and a second search result acquisition instruction according to the search request; the second search result acquisition instruction is used for instructing the client to acquire a second search result from the second server, and is generated according to the first server, the second search result acquisition instruction between the client and the second server and the search request.
Step S43: and sending the first search result and the second search result acquisition instruction to the client.
An embodiment of the present application further provides a search method, as shown in fig. 5, including:
step S51: under the condition that the client requests to acquire a second search result according to a second search result acquisition instruction, the second search result is sent to the client; the second search result acquisition instruction is generated by the first server according to the search request sent by the client to the first server and the preset protocol among the first server, the client and the second server.
In an example of the present application, a user initiates a search to a first service end through a client, and sends a search request to the first service end, where an address of a search result page returned by the first service end is: m.baidu.com/xxxxxxxxxxxxxx. The search result page includes one or more elements (tags) with the IDs of the search, the elements corresponding to the NA content exposure bits reserved by the first service end, and the tags are hidden by default, that is, the tags are hidden. The first server side calls a private protocol among the first server side, the client side and the second server side to generate a second search result acquisition instruction: baideutoxapp:// narearch? Value & maxnum. In the second search result acquisition instruction of the present example: the baidbox app is a private protocol identity; the NA search generates an instruction for the NA content; query represents the content of the search request, for example, query is XC60 represents the content of the search request is "XC 60"; the type is a type for limiting content, specifically, the type can be an applet, an atlas, a novel, news and the like, and the type can be expanded and can also be used for searching a plurality of types at the same time. maxnum represents the maximum number of results in the search results page.
In the above example, the value & maxnum part is self-defined data, and may be encrypted, and the encryption and decryption algorithm is not limited.
In another specific example, the second search result obtaining instruction may be: baideutoxapp:// narearch? XC60& type, minipro & maxnum 1. And the client acquires the related applet and the atlas information of the xc60 from the applet server and the atlas viewer server according to the second search result acquisition instruction. The specific operations may include: and uploading the version information and the system information of the client to the second server, and acquiring a query result at least comprising the description of the file or the picture according to the content returned by the second server. The second search result obtaining instruction may further include a protocol parameter for opening the content, and the data at least includes a container parameter and a presentation parameter. The container parameter indicates which container representation of the owned content is used, such as an applet, an applet in a car, or a second search result owned by the second server through an atlas. The presentation parameter indicates what the parameter presenting the second search result is when the second search result is opened, and may describe the relationship between the second search result clicked by the user and the container, for example, the presentation parameter may be used to indicate that XC60 is a new car post to be presented in an applet, or to indicate that XC60 is an atlas of high-definition wallpaper.
And for the own data of the client, packaging the third search result searched by the client according to the search request into a webpage format and displaying the webpage in the search result page. After the search results in the search result page are received and viewed, determining that the corresponding search results are the custom processing contents according to a preset protocol, determining a container for displaying the custom processing contents and parameters of the container according to a private protocol between the client and the server, and displaying the custom processing contents through the container according to the determined parameters.
An embodiment of the present application further provides a search apparatus, as shown in fig. 7, including:
the search request transmission module 71: the system comprises a first service end, a second service end and a server, wherein the first service end is used for sending a search request to the first service end;
the first search result receiving module 72: the first search result acquisition instruction and the second search result acquisition instruction are used for receiving a first search result and a second search result which are returned by the first service end in response to the search request; a second search result acquisition instruction is generated according to a preset protocol and a search request among the first service terminal, the client terminal and the second service terminal;
the second search result acquisition module 73: the second search result acquisition instruction is used for acquiring a second search result from the second server;
search results page display module 74: and updating and presenting the search result page according to the second search result.
In one embodiment, the second search result acquisition module includes:
the second server determining unit: the server is used for acquiring an instruction according to the second search result and determining a second server;
the second search result request information transmitting unit: the second search result request information is sent to a second server;
the second search result receiving unit: and the second search result receiving unit is used for receiving a second search result provided by the second server end in response to the second search result request information.
In one embodiment, the first search result is a search result page with hidden tags that are used to provide reserved bits for updated content of the search result page.
In one embodiment, the search results page display module comprises:
a source code update unit: the source codes are used for updating the search result page, and the search result page is generated according to the updated source codes, so that the updated content is displayed in a reserved position corresponding to the hidden label of the search result page in a visible mode;
a dynamic update unit: and the method is used for updating the search result display items in the search result page, so that the updated content is displayed in a visible mode in the reserved positions corresponding to the hidden labels of the search result page.
In one embodiment, as shown in fig. 8, the apparatus further comprises:
the third search result acquisition module 81: the client side is used for obtaining a third search result in the local data of the client side according to the search request;
the third search result conversion module 82: converting the third search result into a visible web page format;
the third search result display module 83: and updating and presenting the search result page according to the converted third search result.
In one embodiment, as shown in fig. 9, the apparatus further comprises:
the viewing instruction receiving module 91: receiving an indication of a view of a search result in a search results page;
the viewing instruction execution module 92: the display device is used for displaying the user-defined processing content pointed by the search result viewing indication according to the display container and the display parameter determined by the second search result acquisition instruction if the search result pointed by the viewing indication is the user-defined processing content; the custom processing content includes the second search result.
An embodiment of the present application further provides a search apparatus, as shown in fig. 10, which is applied to a first service end, and includes:
the search request reception module 101: the system comprises a server, a server and a client, wherein the server is used for receiving a search request sent by the client;
the first search result generation module 102: the search system is used for acquiring a first search result and a second search result acquisition instruction according to the search request; the second search result acquisition instruction is used for indicating the client to acquire a second search result from the second server, and is generated according to the first server, a preset protocol between the client and the second server and a search request;
the first search result transmission module 103: and the client is used for sending the first search result and the second search result acquisition instruction to the client.
An embodiment of the present application further provides a search apparatus, as shown in fig. 11, which is applied to a second server, and includes:
the second search result transmission module 111: the client side is used for sending the second search result to the client side under the condition that the client side requests to obtain the second search result according to the second search result obtaining instruction; the second search result acquisition instruction is generated by the first server according to the search request sent by the client to the first server and the preset protocol among the first server, the client and the second server.
In an example of the present application, as shown in fig. 12, the search device may be disposed to be divided into a portion disposed at the client 122 and a portion disposed at the cloud 121. The search device arranged at the cloud end can be used for receiving a request of a user, and can be used for analyzing whether the current request needs to display contents searched from other channels or not through the self-contained content detection module by combining the request of the current user through a webpage or a search engine, namely detecting NA generated contents (self-contained contents). If necessary, zero or more positions are reserved in a search result page or other web pages corresponding to the returned first search result, and the positions are provided with hidden labels and are in a hidden state under the condition that the search content is not shown. After the NA generated content is determined, the reserved bits corresponding to the hidden tags are used for showing the NA generated content, and each bit is provided with a unique identifier.
After the webpage corresponding to the first search result is generated, the self-owned protocol is called, and a self-owned content generation instruction, that is, a second search content acquisition instruction, is generated and sent to the client 122. The search apparatus of the notification client 122 needs the NA to generate parameter information of the content, including the unique identifier of the hidden tag in the corresponding web page.
The search device provided in the client 122 includes:
and the own instruction analysis module 123 is configured to analyze the second search result acquisition instruction and/or the search request generated according to the private protocol and the search request and called by the server, and acquire related acquisition parameters of the second search result and the third search result.
The self-owned content acquisition module 124 is used for acquiring resources from local servers, other servers and self-owned servers of enterprises according to the capacity of the client side for the analyzed parameters; this resource may be a structured description or a resource or a set of resources.
A self-contained content generation Web (Web page) format module 125, configured to extract some preset content from locally acquired resource information; or generating contents according to locally acquired resource information in a self-defined mode, and packaging the preset contents or the generated contents into a data format which can be analyzed by a Web browser. Meanwhile, the associated client 122 may open the instruction and the parameter of the details of the content, and may display the locally obtained resource information in the own APP.
The self-content webpage association module 126 is configured to generate a display item in a data format that can be parsed by the Web browser and encapsulated by the webpage format module 125 according to the self-content, and to include the newly generated display item.
There are two ways in which the self-content web page association module 126 may update a web page. The first is to change the source code of the web page, that is, refer to the source code segment of the web page corresponding to the first search content of the invoked protocol to replace the source code. The second way is dynamic web page layout, that is, referring to the called protocol source code segment, and changing the content and attribute of the display item corresponding to the segment.
An own content presentation module 127 is used for presenting other search results besides the first search result. And in the process of browsing the search result page, a user is interested in a certain piece of content, and when clicking the content, the client takes over the instruction, analyzes and verifies the instruction, acquires related detail data, and opens a container loading the content for showing.
Compared with the cloud crawler entry and storage indexing mode in the current industry, the implementation of the embodiment of the application in a lightweight manner enables content in non-Web ecology to be displayed in a search result page (webpage) and a search relation to the search result page to be established; through the cooperation of the cloud and the end, the problem that the cost of differential retrieval of own contents in the industry is too high is solved, namely, the method is evolved from 'cloud index taking Web ecology as a standard and client-side display' to 'cloud and end index under multi-ecology and client-side enhanced display'.
In summary, the multi-end (cloud end + client end) cooperation of the search result page related by the invention can solve the problem that the non-Web ecological content cannot be retrieved in a generating manner. For the own content, the search result page is accessed at low cost, the key value is played for the own content to access the search entry guide, the processing of the relation such as the flow, the display, the high effectiveness, the compatibility and the like of the own content is changed from a mesh structure to a linear structure, the cost is reduced, meanwhile, the ecological content of hundred-degree search is enriched, and finally, the commercial value of the search service on the mobile equipment is improved.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 13 is a block diagram of an electronic device according to a search method of an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 13, the electronic apparatus includes: one or more processors 1301, memory 1302, and interfaces for connecting the various components, including high speed interfaces and low speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display Graphical information for a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the Interface. In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 13 illustrates an example of a processor 1301.
Memory 1302 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the search method provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the search method provided by the present application.
The memory 1302, as a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the search method in the embodiment of the present application (for example, the search request sending module 71, the first search result receiving module 72, the second search result obtaining module 73, and the search result page display module 74 shown in fig. 7). The processor 1301 executes various functional applications of the server and data processing, i.e., implements the search method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 1302.
The memory 1302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the search electronic device, and the like. Further, the memory 1302 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 1302 may optionally include memory located remotely from processor 1301, which may be connected to the searching electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the search method may further include: an input device 1303 and an output device 1304. The processor 1301, the memory 1302, the input device 1303 and the output device 1304 may be connected by a bus or other means, and fig. 13 illustrates the bus connection.
The input device 1303 may receive input numeric or character information and generate key signal inputs related to searching for user settings and function controls of the electronic apparatus, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 1304 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) Display, and a plasma Display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, Integrated circuitry, Application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the cost of the whole search process can be reduced. The ecological standard of the Web is mature; the private protocol also needs continuous adaptation in the growth process to acquire the content of the maximum set, and also needs a plurality of many-to-many complete sets, namely, the version compatibility of data analysis of the self-content needs to be considered, and the version support degree of the client needs to be considered, so that the private protocol is a netlike data relationship and has the defects of high complexity, large data volume, slow retrieval, high storage cost and the like; if the client side directly conducts self content retrieval, the client side is in one-to-one relation, and what content is retrieved when the client side has the capacity.
For data processing, the service-side processing is considered as a normal state in the industry. The thinking mode of the embodiment of the application is a system which is more effective, more reliable and lower in cost based on the calculation of the using end. In addition, the embodiment of the application increases the sources of the search results, so that the search content is richer.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (18)

1. A search method is applied to a client and comprises the following steps:
sending a search request to a first service terminal;
receiving a first search result and a second search result acquisition instruction returned by the first service terminal in response to the search request; the second search result acquisition instruction is generated according to the first server, a preset protocol between the client and the second server and the search request;
acquiring a second search result from the second server according to the second search result acquisition instruction;
and updating and presenting the search result page according to the second search result.
2. The method of claim 1, wherein the first search result is a search result page with a hidden tag, and wherein the hidden tag is used to provide a reserved bit for updated content of the search result page.
3. The method of claim 2, wherein updating and presenting the search results page comprises:
updating the source code of the search result page, and generating the search result page according to the updated source code, so that the updated content is displayed in a reserved position corresponding to the hidden label of the search result page in a visible mode;
or updating the search result display item in the search result page, so that the updated content is displayed in a visible mode in the reserved position corresponding to the hidden label of the search result page.
4. The method of claim 1, wherein obtaining the second search result from the database of the second server according to the second search result obtaining instruction comprises:
obtaining an instruction according to the second search result, and determining the second server;
sending second search result request information to the second server;
and receiving a second search result provided by the second server end responding to the second search result request information.
5. The method of claim 1, further comprising:
obtaining a third search result in the local data of the client according to the search request;
converting the third search result into a visible web page format;
and updating and presenting the search result page according to the converted third search result.
6. The method of claim 1, further comprising:
receiving a view indication of a search result in a search results page;
if the search result pointed by the viewing indication is the user-defined processing content, displaying the user-defined processing content pointed by the search result viewing indication according to the display container and the display parameters determined by the second search result acquisition instruction; the custom processing content comprises the second search result.
7. A searching method is applied to a first service end and comprises the following steps:
receiving a search request sent by a client;
acquiring a first search result and a second search result acquisition instruction according to the search request; the second search result acquisition instruction is used for instructing a client to acquire a second search result from a second server and generating the second search result according to the first server, a preset protocol between the client and the second server and the search request;
and sending the first search result and the second search result acquisition instruction to the client.
8. A searching method is applied to a second server and comprises the following steps:
under the condition that the client requests to acquire a second search result according to a second search result acquisition instruction, the second search result is sent to the client; the second search result acquisition instruction is generated by the first server according to the search request sent by the client to the first server and the preset protocol among the first server, the client and the second server.
9. A search apparatus, comprising:
a search request sending module: the system comprises a first service end, a second service end and a server, wherein the first service end is used for sending a search request to the first service end;
the first search result receiving module: the first search result acquisition instruction and the second search result acquisition instruction are used for receiving a first search result and a second search result acquisition instruction which are returned by the first service terminal in response to the search request; the second search result acquisition instruction is generated according to the first server, a preset protocol between the client and the second server and the search request;
the second search result acquisition module: the second search result acquisition instruction is used for acquiring a second search result from the second server;
a search result page display module: and the search result page is updated and presented according to the second search result.
10. The apparatus of claim 9, wherein the first search result is a search result page with a hidden tag, and wherein the hidden tag is used to provide a reserved bit for updated content of the search result page.
11. The apparatus of claim 10, wherein the search results page display module comprises:
a source code update unit: the source codes are used for updating the search result page, and the search result page is generated according to the updated source codes, so that updated contents are displayed in a reserved position corresponding to the hidden label of the search result page in a visible mode;
a dynamic update unit: and the system is used for updating the search result display item in the search result page, so that the updated content is displayed in a visible mode in a reserved position corresponding to the hidden label of the search result page.
12. The apparatus of claim 9, wherein the second search result obtaining module comprises:
the second server determining unit: the second server is used for acquiring an instruction according to the second search result and determining the second server;
the second search result request information transmitting unit: the second search result request information is sent to the second server;
the second search result receiving unit: and the second search result receiving unit is used for receiving a second search result provided by the second server end in response to the second search result request information.
13. The apparatus of claim 9, further comprising:
a third search result acquisition module: the server is used for obtaining a third search result in the local data of the client according to the search request;
the third search result conversion module: for converting the third search result into a visible web page format;
a third search result display module: and the search result page is updated and presented according to the converted third search result.
14. The apparatus of claim 9, further comprising:
a viewing indication receiving module: receiving an indication of a view of a search result in a search results page;
the viewing indication execution module: the display device is used for displaying the custom processing content pointed by the search result viewing indication according to the display container and the display parameters determined by the second search result acquisition instruction if the search result pointed by the viewing indication is the custom processing content; the custom processing content comprises the second search result.
15. A searching apparatus, applied to a first service end, includes:
a search request receiving module: the system comprises a server, a server and a client, wherein the server is used for receiving a search request sent by the client;
the first search result generation module: the search system is used for acquiring a first search result and a second search result acquisition instruction according to the search request; the second search result acquisition instruction is used for instructing a client to acquire a second search result from a second server and generating the second search result according to the first server, a preset protocol between the client and the second server and the search request;
the first search result sending module: and the client is used for sending the first search result and the second search result acquisition instruction to the client.
16. A searching device, applied to a second server, includes:
the second search result sending module: the client side is used for sending the second search result to the client side under the condition that the client side requests to obtain the second search result according to the second search result obtaining instruction; the second search result acquisition instruction is generated by the first server according to the search request sent by the client to the first server and the preset protocol among the first server, the client and the second server.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
CN201911031942.5A 2019-10-28 2019-10-28 Searching method and device Active CN110765341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911031942.5A CN110765341B (en) 2019-10-28 2019-10-28 Searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911031942.5A CN110765341B (en) 2019-10-28 2019-10-28 Searching method and device

Publications (2)

Publication Number Publication Date
CN110765341A true CN110765341A (en) 2020-02-07
CN110765341B CN110765341B (en) 2022-11-15

Family

ID=69333962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911031942.5A Active CN110765341B (en) 2019-10-28 2019-10-28 Searching method and device

Country Status (1)

Country Link
CN (1) CN110765341B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667880A (en) * 2020-12-25 2021-04-16 北京百度网讯科技有限公司 Search result display method, device, equipment, storage medium and program product
CN114461944A (en) * 2022-01-19 2022-05-10 北京百度网讯科技有限公司 Search result display method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488786A (en) * 2013-09-30 2014-01-01 北京奇虎科技有限公司 Method and client terminal for providing information search
CN104484363A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Search result display method and device
US20150248698A1 (en) * 2010-06-23 2015-09-03 Google Inc. Distributing content items
CN105630908A (en) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 Method and device for displaying search results
CN107423296A (en) * 2016-05-23 2017-12-01 北京搜狗科技发展有限公司 Searching method, device and the device for search
WO2019090412A1 (en) * 2017-11-10 2019-05-16 Yijun Du Enhanced document searching system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150248698A1 (en) * 2010-06-23 2015-09-03 Google Inc. Distributing content items
CN103488786A (en) * 2013-09-30 2014-01-01 北京奇虎科技有限公司 Method and client terminal for providing information search
CN104484363A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Search result display method and device
CN105630908A (en) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 Method and device for displaying search results
CN107423296A (en) * 2016-05-23 2017-12-01 北京搜狗科技发展有限公司 Searching method, device and the device for search
WO2019090412A1 (en) * 2017-11-10 2019-05-16 Yijun Du Enhanced document searching system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667880A (en) * 2020-12-25 2021-04-16 北京百度网讯科技有限公司 Search result display method, device, equipment, storage medium and program product
CN112667880B (en) * 2020-12-25 2024-02-02 北京百度网讯科技有限公司 Search result display method, device, equipment and storage medium
CN114461944A (en) * 2022-01-19 2022-05-10 北京百度网讯科技有限公司 Search result display method and device and electronic equipment

Also Published As

Publication number Publication date
CN110765341B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US10769353B2 (en) Dynamic streaming content provided by server and client-side tracking application
US20170075973A1 (en) Automatic Synthesis and Presentation of OLAP Cubes from Semantically Enriched Data Sources
TWI590157B (en) Compressed serialization of data for communication from a client-side application
US20140351268A1 (en) Dynamic arrangement of content presented while a client device is in a locked state
US20130145241A1 (en) Automated augmentation of text, web and physical environments using multimedia content
US9680897B2 (en) Throttled scanning for optimized compression of network communicated data
JP2014029701A (en) Document processing for mobile devices
US10339572B2 (en) Tracking user interaction with a stream of content
US20210209526A1 (en) Landing page processing method, device and medium
US11488213B2 (en) Tracking user interaction with a stream of content
CN110765341B (en) Searching method and device
CN112733009B (en) Searching method and device
US9979774B2 (en) Debugging and formatting feeds for presentation based on elements and content items
US20130311449A1 (en) Identifying Referred Documents Based on a Search Result
US11361048B2 (en) Conditional interpretation of a single style definition identifier on a resource
CN112445968A (en) Information pushing method, device, equipment and computer readable storage medium
US20240028661A1 (en) Augmented ui generated through natural language query and semantic data connections
CN113535153A (en) Method, device, equipment and medium for encoding custom label
CN112099791A (en) Method, device, equipment and storage medium for setting style of page in browser
CN113569039A (en) Consultation result generation method and device, electronic equipment and storage medium

Legal Events

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