CN112733009B - Searching method and device - Google Patents

Searching method and device Download PDF

Info

Publication number
CN112733009B
CN112733009B CN201911031603.7A CN201911031603A CN112733009B CN 112733009 B CN112733009 B CN 112733009B CN 201911031603 A CN201911031603 A CN 201911031603A CN 112733009 B CN112733009 B CN 112733009B
Authority
CN
China
Prior art keywords
search result
server
search
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.)
Active
Application number
CN201911031603.7A
Other languages
Chinese (zh)
Other versions
CN112733009A (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 CN201911031603.7A priority Critical patent/CN112733009B/en
Publication of CN112733009A publication Critical patent/CN112733009A/en
Application granted granted Critical
Publication of CN112733009B publication Critical patent/CN112733009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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, 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 end; receiving a first search result returned by the first server in response to the search request; the first search result is a search result page with hidden tags; analyzing the hidden tag in the first search result according to preset configuration information to obtain the acquisition mode information of a second search result; acquiring a second search result from a second server according to the acquisition mode information of the second search result; 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 in particular, 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 acquire information through a network. The search traffic of the personal mobile terminal also exceeds the search traffic of the personal computer (PC, personal Computer) at a time. In the current era of information acquisition by mobile terminals, each enterprise is occupying the traffic portal of the industry by its own APP (Application), and search engines are also facing various significant challenges. Due to the influence of factors such as network ecology, content resource limitation, correlation requirements of searched content and the like, the situation that the self content of non-network ecology cannot be searched or cannot be obtained later is easily caused. Search engines may encounter fewer and fewer searchable content.
Disclosure of Invention
In order to solve at least one problem in the prior art, the embodiment of the application provides a searching method and device.
In a first aspect, the present application provides a search method, including:
sending a search request to a first service end;
receiving a first search result returned by the first server in response to the search request; the first search result is a search result page with hidden tags;
analyzing the hidden tag in the first search result according to preset configuration information to obtain the acquisition mode information of the second search result;
acquiring a second search result from a second server according to the acquisition mode information of the second search result;
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 enrich the content of the searching result when the second server is the own APP or other own data owners.
In one embodiment, according to the information of the obtaining manner of the second search result, obtaining the second search result from the second server includes:
determining a second server according to the acquisition mode information of the second search result;
Sending second search result request information to a second server;
and obtaining a second search result provided by the second server in response to the second search result request information.
In one embodiment, updating and presenting the search results page includes:
updating the source code of the search result page, and generating the search result page according to the updated source code, so that updated contents are displayed in a visible mode on reserved bits corresponding to hidden labels of the search result page;
or, changing the search result display item in the search result page so that the changed content is visually displayed in the reserved bit corresponding to the hidden tag of the search result page.
In one embodiment, the method further comprises:
according to the search request, obtaining a third search result from the local data of the client;
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 one embodiment, the method further comprises:
receiving a search result view indication in a search result page;
if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content includes second search results.
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 from a database of a first server according to the search request;
generating search result data according to the first search result according to the set format; the search result data comprises a hidden tag for indicating the client to pull the second search result from the second server;
and sending the search result 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 the second search result according to the 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 a search request sent by the client to the first server and a 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:
search request sending module: the method comprises the steps of sending a search request to a first service end;
a first search result receiving module: the method comprises the steps of receiving a first search result returned by a first service end in response to a search request; the first search result is a search result page with hidden tags;
And a configuration information analysis module: the method comprises the steps of analyzing hidden tags in a first search result according to preset configuration information to obtain acquisition mode information of a second search result;
and a second search result acquisition module: the method comprises the steps of obtaining a second search result from a second server according to obtaining mode information of the second search result;
search results page display module: for updating and presenting the search results page based on the second search results.
In one embodiment, the second search result acquisition module includes:
a second server determining unit: the second server is used for determining a second server according to the acquisition mode information of the second search result;
a second search result request information transmitting unit: the method comprises the steps of sending second search result request information to a second server;
a second search result receiving unit: and the second search result providing module is used for obtaining a second search result provided by the second server in response to the second search result request information.
In one embodiment, the search results page display module includes:
a source code updating unit: the method comprises the steps of updating source codes of a search result page, and generating the search result page according to the updated source codes, so that updated contents are displayed in a visible mode on reserved bits corresponding to hidden labels of the search result page;
Dynamic updating unit: and the search result display item is used for changing the search result display item in the search result page, so that the changed content is displayed in a reserved bit corresponding to the hidden label of the search result page in a visible mode.
In one embodiment, the apparatus further comprises:
a third search result acquisition module: the method comprises the steps of obtaining a third search result from data local to a client according to a search request;
a third search result conversion module: for converting the third search result to a viewable web page format;
and a third search result display module: for updating and presenting the search result page based on the converted third search result.
In one embodiment, the apparatus further comprises:
a viewing indication receiving module: for receiving a search result view indication in a search result page;
a view instruction execution module: if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content includes second search results.
In a fifth aspect, an embodiment of the present application provides a search device, applied to a first service end, including:
Search request receiving module: the method comprises the steps of receiving a search request sent by a client;
a first search result acquisition module: the method comprises the steps of obtaining a first search result from a database of a first server according to a search request;
search result data generation module: the method comprises the steps of generating search result data according to a first search result according to a set format; the search result data comprises a hidden tag for indicating the client to pull the second search result from the second server;
search result data transmitting module: for sending the search result data to the client.
In a sixth aspect, an embodiment of the present application provides a search device, which is applied to a second server, including:
and a second search result sending module: the method comprises the steps that under the condition that a 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 a search request sent by the client to the first server and a 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 memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods provided by any one of the embodiments of the present application.
In an eighth aspect, an embodiment of the present application provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method provided by any one of the embodiments of the present application.
In a ninth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements a method as described above.
One embodiment of the above application has the following advantages or benefits: the content of the search results can be enriched. Because the hidden label is arranged in the search result returned by the first server side of the search engine, the client side can acquire the search results of other channels according to the hidden label, so that the technical problem of search content reduction is solved, and the technical effect of enriching the search content is further achieved.
Other effects of the above alternative will be described below in connection with specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the 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 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 diagram 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 diagram 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 diagram of a search apparatus according to a twelfth embodiment of the present application;
fig. 13 is a block diagram of an electronic device for implementing a search method according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The embodiment of the application firstly provides a searching method, as shown in fig. 1, comprising the following steps:
step S11: sending a search request to a first service end;
step S12: receiving a first search result returned by the first server; the first search result is a search result page with hidden tags;
step S13: analyzing the hidden tag in the first search result according to the pre-received configuration information to obtain the acquisition mode information of the second search result;
step S14: acquiring a second search result from a second server according to the acquisition mode information of the second search result;
step S15: and updating and presenting the search result page according to the second search result.
In the embodiment of the present application, the first service end may be a service end of a search engine. The user inputs a search request in the search engine, and can send the search request to a server of the search engine, i.e., a first server through the search engine. The search request is generated based on a search keyword input by a user, for example, the user inputs a search keyword "mobile phone", and the search request is generated based on the keyword "mobile phone".
In the embodiment of the application, the first service receives the search request and generates a search result page according to the searched data. The search result page may include a plurality of web pages arranged in a certain order or randomly in the search result page. The location of the search result page occupied by the hidden tag may provide display bits 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 the embodiment of the application, the acquisition mode information of the second search result can be used for indicating where and how the client acquires the second search result. The second server may be a server which is preset with a certain protocol between the second server and the client and allows the client to acquire data according to the preset protocol. In the age of rapid development of such mobile APP (Application), a large number of enterprises are occupying the traffic entrance of the industry by the own APP. In the context of Web page ecology, the data communication process of search engines is based on the Robots protocol. The Robots protocol (also known as the crawler protocol, the robot protocol, etc.) is known as the "web crawler exclusion standard" (Robots Exclusion Protocol). The web site 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 a search engine, then the data is not allowed to enter the database used to generate the search engine search results page. Thus, for enterprise-owned APP data, search engines are generally not searched. In one example, the second server may be a server of an enterprise owning the APP. Under the condition that a certain cooperative relationship exists between the second service end and the client end, or a certain preset protocol exists among the second service end, the first service end and the client end, the first service end can record the acquisition mode information for acquiring the second search result in the hidden tag, if the client end can identify the acquisition mode information in the hidden tag, the client end can acquire the second search information from the second service end of the APP providing enterprise according to the analyzed acquisition mode information, and the acquired second search result is added into the position of the hidden tag in the search result page.
When the client receives the first search result returned by the first server in response to the search request, the search result page can be displayed immediately, or the updated result page can be displayed after the second search result is acquired.
In the embodiment of the application, the first server provides main content of the search page and a standard template of the search page, and the first server and the client agree in advance or can issue a plurality of analysis search result pages or other standards of web pages opened in response to a browsing request, such as: the effective range of the standard template, information parameters and related identifications which are required to be acquired by the client, the time for updating the webpage by the client and the like. The effective range of the standard template can be that if the requirements of the domain name and the site are met, a search result page or other web pages opened in response to the browsing request are generated according to the standard template. Alternatively, the validation scope of the standard template may be that, for pages that meet certain rules, a search results page or other web page that is opened in response to a browse request is generated according to the standard template.
When the client searches or browses the webpage, the first server returns a search result page containing some parameters, and when the client browses, the client analyzes the type of identification from the returned search result page, the client can acquire contents of other sources according to the related parameters and combining the local display capability, package the acquired contents of other sources, extract part of information, update the contents of the current search result page, so as to realize the aim of generating the search result page by the final cloud plus terminal in a coordinated manner, and open the contents of other sources in the client.
According to the embodiment of the application, the hidden tag is arranged in the search result page returned by the first service end, the reserved bit is provided for the second search result, and meanwhile, the client is instructed to acquire the second search result from the service end through the second search result acquisition instruction, so that the client can acquire the search result through other service ends except the first service end and display the search result acquired from other service ends except the first service end, and the content of the search result is enriched.
In one embodiment, according to the information of the obtaining manner of the second search result, obtaining the second search result from the second server includes:
determining a second server according to the acquisition mode information of the second search result;
sending second search result request information to a second server;
and obtaining a second search result provided by the second server in response to the second search result request information.
In the embodiment of the application, the information of the obtaining mode of the second search result 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, updating and presenting the search results page includes:
updating the source code of the search result page, and generating the search result page according to the updated source code, so that updated contents are displayed in a visible mode on reserved bits corresponding to hidden labels of the search result page;
or, changing the search result display item in the search result page so that the changed content is visually displayed in the reserved bit corresponding to the hidden tag 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 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 using the jump link corresponding to the second search result, and the display item is displayed in a visible mode on a reserved bit corresponding to the hidden label of the original search result page. For example, there may be originally 5 display items on the search result page, corresponding to 5 specific web pages, which 5 web pages are arranged in a certain order on the search result page, corresponding to 5 display items, which may include titles, links, summaries, etc. If the client acquires the second search result, extracting information such as title, abstract and link from data corresponding to the second search result according to a certain rule to generate display items corresponding to the second search result, and inserting the display items into the original 5 webpages on the search result page. The location at which the second search result is displayed may be located in a reserved bit corresponding to the hidden tag. For example, if 10 search results are in the search result page returned by the first server, and the reserved bits corresponding to the hidden tags are between the 3 rd item and the 4 th item in the 10 search results, the search result display item generated by the second search result is displayed behind the 3 rd item.
In the embodiment of the application, when the search result is obtained, based on the standard of W3C (World Wide Web Consortium ), data in file formats such as HTML (Hyper Text Markup Language, hypertext transfer protocol), HTML5, JS (JavaScript ), CSS (Cascading Style Sheets, cascading style sheets), pictures, texts, audios and videos, animation and the like can be parsed to generate a search result page. Meanwhile, the search result page can be encrypted as required. Before and after the presentation of the first search result page at the client, the search result page can be updated according to the search results of the rest data sources except the first server.
In one implementation manner, as shown in fig. 2, the method provided by the embodiment of the present application further includes:
step S21: according to the search request, obtaining a third search result from the local data of the client;
step S22: 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 data local to the client belongs to non-Web ecological data, and cannot be searched by a search engine in general. In the embodiment of the application, the local data can be searched at the client, the local data of the client is used as a third search result, converted into the visible webpage format under Web ecology and presented on the display interface of the search result page, thereby further enriching the data of the search result.
In the embodiment of the application, the client can be a specific client which sends out the search request, or can be all clients which are consistent with the type of the client which sends out the search request.
In one implementation, as shown in fig. 3, the method provided by the embodiment of the present application further includes:
step S31: receiving a search result view indication in a search result page;
step S32: if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content includes second search results.
In the embodiment of the present application, the specific content of the second search result may be obtained entirely when the search result page is updated, and stored in the memory or the database of the client. The whole content of the second search result can be acquired from the second server after the search result viewing instruction is received.
In the embodiment of the application, the display container of the second search result is a carrier for displaying the content of the second search result, for example, the display container can be an enterprise self APP or the like.
In the embodiment of the 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 tag page through the corresponding display container.
As shown in fig. 6, the first server responds to the search request sent by the client, and the returned search result page includes a plurality of first search results and NA (Native APP) reserved display bits 61 default to be hidden, and after obtaining the second search result, the hidden reserved bits display the second search result in a visible manner. 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.
The embodiment of the application also provides a searching method, as shown in fig. 4, applied to the first service end, including:
step S41: receiving a search request sent by a client;
step S42: acquiring a first search result from a database of a first server according to the search request;
step S43: generating search result data according to the first search result according to the set format; the search result data comprises a hidden tag for indicating the client to pull the second search result from the second server;
step S44: and sending the search result to the client.
The embodiment of the application also provides a searching method, as shown in fig. 5, applied to the second server, including:
step S51: under the condition that the client requests to acquire the second search result according to the 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 a search request sent by the client to the first server and a preset protocol among the first server, the client and the second server.
In one example of the present application, it is assumed that hidden tags in a search results page with m.***.com in the web site are identified. NA (Native APP) extended search is performed by including the ID of the nasearch (or the ID beginning with the nasearch) in the ID (Identity document) of the hidden tag. Specifically, the following is included.
The user initiates searching through the client and sends a searching request to the first service end.
The web address of the returned search results page is m.***.com/xxxxxxxxxx. Wherein one or more tags with an ID of (or an ID beginning with) nasearch are included, which default to hidden, in two ways.
The first setting mode of the hidden tag ID is: < p id= "nasearch" hidden > query: value "separator" type: value "separator": maxnum: value p. Wherein the query (request) represents the content of the query; such as: XC60.type (genre) indicates a genre of the defined content; such as: applet, atlas, novel, news, etc., type is extensible, and can be found in multiple types. maxnum (maximum) represents the maximum number of result bars. p represents a label and is set according to the W3C standard. The part of the query value type value separator is custom data, can be used for encryption, and is not limited by encryption and decryption algorithms.
The second setting mode of the hidden tag ID is: < p id= "nasearch" hidden > file identity p. Wherein, the file identification corresponds to the relevant parameters stored in the file: query value "delimiter" type value "delimiter: maxnum value. After the client identifies the hidden tag in the returned search result page, the client pulls the file from the server according to the information in the hidden tag ID and reads the parameters. query represents the content of the query; such as: XC60.type represents a type of the defined content; such as: applets, atlases, novels, news, etc., are extensible, and can be found in multiple types. maxnum represents the most number of result bars. p represents a label and is set according to the W3C standard. The part of the query value type value separator is custom data, can be used for encryption, and is not limited by encryption and decryption algorithms.
The client traverses element information in the search result page and obtains a tag of an element (or beginning with the nasearch) with id of nasearch. Details of these tags are recorded and stored. And then analyzing the label content to generate related parameters and pulling related information.
For example, the search result page returned by the first server side includes a hidden tag: < pid= "nasearch" hidden > query: xc60 "delimiter" type: minipro, bigpic "delimiter": maxnum:1</p >. The client obtains the relevant applet and the atlas information of xc60 from the applet server, the atlas viewer server, and the like according to the analysis result of the hidden tag. When the information is acquired, the client uploads second search result request information such as version information, system information and the like of the client to a server or a server of the requested data. Then receiving a returned query result, wherein the returned query result at least comprises descriptions of files or pictures; there are also protocol parameters for opening the content, the data including at least a presentation parameter and an opening parameter, the presentation using that own content container, such as an applet, presenting the second server's own second search results at the applet or presenting the second server's own second search results via an atlas. The presentation parameter indicates what the parameters of the second search result are to be presented 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 the XC60 new car-on post is presented in the applet, or indicate that the XC60 high definition wallpaper is an atlas.
And for the own data of the client, packaging the third search result searched in the client according to the search request into a webpage format, and presenting the third search result in a search result page. After receiving search results in the search results page and checking, determining that the corresponding search results are 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.
The embodiment of the application also provides a searching device, as shown in fig. 7, including:
search request transmission module 71: the method comprises the steps of sending a search request to a first service end;
the first search result receiving module 72: the method comprises the steps of receiving a first search result returned by a first service end in response to a search request; the first search result is a search result page with hidden tags;
configuration information parsing module 73: the method comprises the steps of analyzing hidden tags in a first search result according to preset configuration information to obtain acquisition mode information of a second search result;
the second search result acquisition module 74: the method comprises the steps of obtaining a second search result from a second server according to obtaining mode information of the second search result;
Search results page display module 75: for updating and presenting the search results page based on the second search results.
In one embodiment, the second search result acquisition module includes:
a second server determining unit: the second server is used for determining a second server according to the acquisition mode information of the second search result;
a second search result request information transmitting unit: the method comprises the steps of sending second search result request information to a second server;
a second search result receiving unit: and the second search result providing module is used for obtaining a second search result provided by the second server in response to the second search result request information.
In one embodiment, the search results page display module includes:
a source code updating unit: the method comprises the steps of updating source codes of a search result page, and generating the search result page according to the updated source codes, so that updated contents are displayed in a visible mode on reserved bits corresponding to hidden labels of the search result page;
dynamic updating unit: and the search result display item is used for changing the search result display item in the search result page, so that the changed content is displayed in a reserved bit corresponding to the hidden label of the search result page in a visible mode.
In one implementation manner, as shown in fig. 8, the apparatus provided by the embodiment of the present application further includes:
The third search result acquisition module 81: the method comprises the steps of obtaining a third search result from data local to a client according to a search request;
the third search result conversion module 82: for converting the third search result to a viewable web page format;
the third search result display module 83: for updating and presenting the search result page based on the converted third search result.
In one implementation manner, as shown in fig. 9, the apparatus provided by the embodiment of the present application further includes:
the view instruction receiving module 91: for receiving a search result view indication in a search result page;
view indication execution module 92: if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content includes second search results.
The embodiment of the application also provides a search device, as shown in fig. 10, applied to the first service end, including:
search request receiving module 101: the method comprises the steps of receiving a search request sent by a client;
the first search result acquisition module 102: the method comprises the steps of obtaining a first search result from a database of a first server according to a search request;
Search result data generation module 103: the method comprises the steps of generating search result data according to a first search result according to a set format; the search result data comprises a hidden tag for indicating the client to pull the second search result from the second server;
search result data transmission module 104: for sending the search result data to the client.
The embodiment of the application also provides a search device, as shown in fig. 11, applied to the second server, including:
the second search result transmitting module 111: the method comprises the steps that under the condition that a 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 a search request sent by the client to the first server and a preset protocol among the first server, the client and the second server.
In one example of the present application, as shown in fig. 12, the search apparatus may be applied to the cloud 121 and the client 122. The cloud end 121 is a server, and corresponds to the first server in the above embodiment of the present application. The configuration update module 123 disposed at the client 122 is configured to configure parameters to indicate information and actions of querying the server for the web page that the client needs to process. The cloud 121 has a cloud control device for controlling the cloud to acquire a search result page or other web pages. The parameters configured by the configuration updating module are Web addresses to be analyzed, and can be based on the Web html standard or refer to the W3C (World Wide Web Consortium ) standard. For example ttps:// www.w3school.com.cn/tags/html_ref_standard attributes. The fields that may specifically be included may be: ***.com, m.***.com/s, parsed tag names (e.g. class, ID identification information) and special tag values. The special tag value is used to mark the hidden tag, indicating that the search results are obtained from the rest of the data sources when the tag is of this type, e.g., the special tag may be "nasearch".
Still referring to fig. 12, the client 122 is further provided with a working state judging module 124, configured to determine, according to a currently browsed web page, whether generation and presentation of self-contained content are required under the web page.
Still referring to fig. 12, the client 122 is further provided with a Web (Web page) content parsing module 125, configured to parse currently browsed Web page content and obtain relevant parameters.
Still referring to fig. 12, the client 122 is further provided with an owned content obtaining module 126, configured to obtain, for the parsed parameters, resources from local, other servers, owned servers, and other data sources in combination with the capabilities of the client; this resource may be a description containing structuring or may be a resource or a group of resources.
Still referring to fig. 12, the client 122 is further provided with an owned content generating Web format module 127, which is configured to implement the locally acquired resource information, extract some preset content, or custom generate content, and package the content into a Web browser resolvable data format. Meanwhile, the associated client can open the detailed instruction and parameter of the content, and the content presentation can be intended to be customized in the own APP.
Still referring to fig. 12, the client 122 is further provided with an own content Web page association module 128 for enabling packaging into a Web browser resolvable data format for updating into a current Web page.
There are two ways in which the self content web page association module 128 updates the web page. Firstly, changing the source code of the webpage, namely referring to the webpage source code fragment corresponding to the first search content of the called protocol, and replacing the source code. The second way is that the dynamic web page layout, that is, the content and attribute of the display item corresponding to the called-up protocol source code segment are changed by referring to the segment.
Still referring to fig. 12, the client 122 is further provided with an owned content presentation module 129: in the process of browsing the search result page, the user is interested in a certain search result, and when clicking the search result, the client 122 takes over the instruction, analyzes and verifies the instruction, obtains related detail data, and opens a container for loading the content for displaying.
The functions of each module in each device of the embodiments of the present application may be referred to the corresponding descriptions in the above methods, and are not described herein again.
According to embodiments of the present application, the present application also provides an electronic device, a readable storage medium and a computer program product.
As shown in fig. 13, there is a block diagram of an electronic device of a search method according to 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 13, the electronic device includes: one or more processors 1301, memory 1302, and interfaces for connecting the components, including a high-speed interface and a low-speed interface. 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 executing within the electronic device, including instructions stored in or on memory to display graphical information of a graphical user interface (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, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 1301 is illustrated in fig. 13.
Memory 1302 is a non-transitory computer-readable storage medium provided by the present application. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the search method provided by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the search method provided by the present application.
The memory 1302 is used as a non-transitory computer readable storage medium and is used to store 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 (e.g., the search request sending module 71, the first search result receiving module 72, the configuration information parsing module 73, the second search result obtaining module 74, and the search result page displaying module 75 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 embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 1302.
Memory 1302 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the search electronic device, and the like. In addition, 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 search electronics over 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, memory 1302, input device 1303, and output device 1304 may be connected by a bus or other means, for example in fig. 13.
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 device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output device 1304 may include a display device, auxiliary lighting (e.g., LEDs), and haptic feedback (e.g., a vibrating motor), among others. The display device may include, but is not limited to, a liquid crystal display (Liquid Crystal Display, LCD), a light emitting diode (Light Emitting Diode, LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be implemented in digital electronic circuitry, integrated circuitry, application specific integrated circuits (Application Specific Integrated Circuits, ASIC), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. 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 (programmable logic device, 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., CRT (Cathode Ray Tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and the internet.
The computer system may include a client and a server. The client and server are typically 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.
Compared with the cloud crawler entry and storage index mode in the current industry, the embodiment of the application realizes that the content under the non-Web ecology can be displayed in a search result page (webpage) and a search relation is established for the content; through cooperation of the cloud and the terminal, the problem that the differentiated retrieval cost of own content in the industry is too high is solved, namely, from a cloud index taking Web ecology as a standard, a client-side display mode is changed into a cloud+terminal index under multiple ecologies, and the client-side display mode is enhanced.
According to the technical scheme provided by the embodiment of the application, the cost of the whole searching process can be reduced. Because the standard of Web ecology is mature; the private protocol is still in the growth process, the content of the maximum set can be obtained by continuous adaptation, and the full set of many-to-many is needed, namely, version compatibility of data analysis of own content is considered, and the version support degree of a client is considered, so that the method has the defects of a net-shaped data relationship, high complexity, large data volume, slow retrieval, high storage cost and the like; if the client directly performs own content retrieval, namely a one-to-one relationship, the client has the capability to retrieve what content.
In summary, the multi-terminal (cloud and client) of the search result page can solve the problem that non-Web ecological content cannot be retrieved in a generation mode. For the self-contained content, the low-cost access to the search result page is realized, the key value is realized for the flow guiding of the self-contained content access to the search inlet, the processing of the relations of the self-contained content such as flow, display, high interactive effectiveness, compatibility and the like is changed from a network structure into a linear structure, the cost is reduced, the ecological content of hundred-degree search is enriched, and the commercial value of the search service on the mobile equipment is finally improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of searching, applied to a client, comprising:
sending a search request to a first service end;
receiving a first search result returned by the first server in response to the search request; the first search result is a search result page with hidden tags;
analyzing the hidden tag in the first search result according to preset configuration information to obtain the acquisition mode information of a second search result;
acquiring a second search result from a second server according to the acquisition mode information of the second search result;
updating and presenting the search result page according to the second search result;
when the first server returns a first search result, the position occupied by the hidden tag in a search result page is invisible, and the hidden tag provides a reserved bit for a second search result;
the first server is used for recording the acquisition mode information for acquiring the second search result in the hidden tag;
the method further comprises the steps of:
according to the search request, obtaining a third search result from the local data of the client;
converting the third search result into a visible webpage format;
Updating and presenting the search result page according to the converted third search result;
the method further comprises the steps of:
receiving a search result view indication in a search result page;
if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content comprises a second search result;
the second server is configured to:
under the condition that the client requests to acquire the second search result according to the 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 a search request sent to the first server by the client and a preset protocol among the first server, the client and the second server.
2. The method of claim 1, wherein obtaining the second search result from the second server according to the information of the obtaining manner of the second search result comprises:
determining the second server according to the acquisition mode information of the second search result;
Sending second search result request information to the second server;
and obtaining a second search result provided by the second server in response to the second search result request information.
3. The method of claim 1 or 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 updated contents are displayed in a visible mode on reserved bits corresponding to hidden tags of the search result page;
or, changing the search result display item in the search result page, so that the changed content is visually displayed on the reserved bit corresponding to the hidden label of the search result page.
4. The searching method is characterized by being applied to a first service end and comprising the following steps:
receiving a search request sent by a client;
according to the search request, a first search result is obtained from a database of a first server;
generating search result data according to the first search result according to a set format; the search result data comprises a hidden tag for indicating the client to pull the second search result from the second server;
Sending the search result to a client, wherein the search result is a search result page with a hidden tag;
when the first server returns a search result, the position occupied by the hidden tag in the search result page is invisible, and the hidden tag provides a reserved bit for a second search result;
the first server is used for recording the acquisition mode information for acquiring the second search result in the hidden tag;
the client is further configured to:
according to the search request, obtaining a third search result from the local data of the client;
converting the third search result into a visible webpage format;
updating and presenting the search result page according to the converted third search result;
receiving a search result view indication in a search result page;
if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content comprises a second search result;
the second server is configured to:
under the condition that the client requests to acquire the second search result according to the 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 a search request sent to the first server by the client and a preset protocol among the first server, the client and the second server.
5. A search apparatus, comprising:
search request sending module: the method comprises the steps of sending a search request to a first service end;
a first search result receiving module: the first search result is used for receiving a first search result returned by the first server in response to the search request; the first search result is a search result page with hidden tags;
and a configuration information analysis module: the method comprises the steps of analyzing hidden tags in a first search result according to preset configuration information to obtain acquisition mode information of a second search result;
and a second search result acquisition module: the method is used for acquiring the second search result from the second server according to the acquisition mode information of the second search result;
search results page display module: updating and presenting the search result page according to the second search result;
when the first server returns a first search result, the position occupied by the hidden tag in a search result page is invisible, and the hidden tag provides a reserved bit for a second search result;
the first server is used for recording the acquisition mode information for acquiring the second search result in the hidden tag;
The apparatus further comprises:
a third search result acquisition module: the method comprises the steps of obtaining a third search result from data local to a client according to the search request;
a third search result conversion module: for converting the third search result to a viewable web page format;
and a third search result display module: updating and presenting the search result page according to the converted third search result;
a viewing indication receiving module: for receiving a search result view indication in a search result page;
a view instruction execution module: if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content comprises a second search result;
the second server is used for sending the second search result to the client under the condition that the client requests to acquire the second search result according to the second search result acquisition instruction; the second search result acquisition instruction is generated by the first server according to a search request sent to the first server by the client and a preset protocol among the first server, the client and the second server.
6. The apparatus of claim 5, wherein the second search result acquisition module comprises:
a second server determining unit: the second server is used for determining the second server according to the acquisition mode information of the second search result;
a second search result request information transmitting unit: the second search result request information is used for sending second search result request information to the second server;
a second search result receiving unit: and the second search result request module is used for acquiring a second search result provided by the second server in response to the second search result request information.
7. The apparatus of claim 5 or 6, wherein the search results page display module comprises:
a source code updating unit: the source code is used for updating the search result page, and the search result page is generated according to the updated source code, so that updated contents are displayed in a visible mode on reserved bits corresponding to hidden tags of the search result page;
dynamic updating unit: and the search result display item is used for changing the search result display item in the search result page, so that the changed content is visually displayed on reserved bits corresponding to the hidden labels of the search result page.
8. A search device, applied to a first service end, comprising:
Search request receiving module: the method comprises the steps of receiving a search request sent by a client;
a first search result acquisition module: the method comprises the steps of obtaining a first search result from a database of a first server according to the search request;
search result data generation module: the method comprises the steps of generating search result data according to a set format and the first search result; the search result data comprises a hidden tag for indicating the client to pull the second search result from the second server;
search result data transmitting module: the search result data is used for sending the search result data to a client, and the search result is a search result page with hidden labels;
when the first server returns a search result, the position occupied by the hidden tag in the search result page is invisible, and the hidden tag provides a reserved bit for a second search result;
the first server is used for recording the acquisition mode information for acquiring the second search result in the hidden tag;
the client is further configured to:
according to the search request, obtaining a third search result from the local data of the client;
converting the third search result into a visible webpage format;
Updating and presenting the search result page according to the converted third search result;
receiving a search result view indication in a search result page;
if the search result pointed by the checking instruction is the custom processing content, displaying the custom processing content pointed by the checking instruction according to the display container and the display parameter determined by the second search result acquisition instruction; the custom processing content comprises a second search result;
the second server is configured to:
under the condition that the client requests to acquire the second search result according to the 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 a search request sent to the first server by the client and a preset protocol among the first server, the client and the second server.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
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-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN201911031603.7A 2019-10-28 2019-10-28 Searching method and device Active CN112733009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911031603.7A CN112733009B (en) 2019-10-28 2019-10-28 Searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911031603.7A CN112733009B (en) 2019-10-28 2019-10-28 Searching method and device

Publications (2)

Publication Number Publication Date
CN112733009A CN112733009A (en) 2021-04-30
CN112733009B true CN112733009B (en) 2023-09-26

Family

ID=75589193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911031603.7A Active CN112733009B (en) 2019-10-28 2019-10-28 Searching method and device

Country Status (1)

Country Link
CN (1) CN112733009B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468388B (en) * 2021-06-30 2024-05-03 深圳集智数字科技有限公司 Control method, device, server and storage medium
CN114329278B (en) * 2021-12-30 2023-09-29 百度在线网络技术(北京)有限公司 Processing method and device of search result page, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668004A (en) * 2008-09-04 2010-03-10 阿里巴巴集团控股有限公司 Method, device and system for acquiring webpage
CN103488786A (en) * 2013-09-30 2014-01-01 北京奇虎科技有限公司 Method and client terminal for providing information search
CN103617253A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Searching method, client terminal and server
CN104484363A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Search result display method and device
US9015143B1 (en) * 2011-08-10 2015-04-21 Google Inc. Refining search results
US9424357B1 (en) * 2011-03-01 2016-08-23 Amazon Technologies, Inc. Predictive page loading based on text entry and search term suggestions
CN107423296A (en) * 2016-05-23 2017-12-01 北京搜狗科技发展有限公司 Searching method, device and the device for search
CN108228582A (en) * 2016-12-09 2018-06-29 阿里巴巴集团控股有限公司 A kind of searching method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668004A (en) * 2008-09-04 2010-03-10 阿里巴巴集团控股有限公司 Method, device and system for acquiring webpage
US9424357B1 (en) * 2011-03-01 2016-08-23 Amazon Technologies, Inc. Predictive page loading based on text entry and search term suggestions
US9015143B1 (en) * 2011-08-10 2015-04-21 Google Inc. Refining search results
CN103488786A (en) * 2013-09-30 2014-01-01 北京奇虎科技有限公司 Method and client terminal for providing information search
CN103617253A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Searching method, client terminal and server
CN104484363A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Search result display method and device
CN107423296A (en) * 2016-05-23 2017-12-01 北京搜狗科技发展有限公司 Searching method, device and the device for search
CN108228582A (en) * 2016-12-09 2018-06-29 阿里巴巴集团控股有限公司 A kind of searching method and device

Also Published As

Publication number Publication date
CN112733009A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US11675969B2 (en) Dynamic native content insertion
US11256848B2 (en) Automated augmentation of text, web and physical environments using multimedia content
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US7865511B2 (en) News feed browser
US8521732B2 (en) Presentation of an extracted artifact based on an indexing technique
US9495429B2 (en) Automatic synthesis and presentation of OLAP cubes from semantically enriched data sources
US7818659B2 (en) News feed viewer
JP2013517556A (en) Preview functionality for increased browsing speed
JP2014029701A (en) Document processing for mobile devices
CN113159807B (en) Floor page processing method, floor page processing device, floor page processing equipment and floor page processing medium
WO2013002083A1 (en) Method and system for creating and using web feed display templates
KR102284761B1 (en) Embeddable media content search widget
CN110990057B (en) Method, device, equipment and medium for extracting small program subchain information
CN112733009B (en) Searching method and device
CN110765341B (en) Searching method and device
WO2014200583A2 (en) Displaying socially sourced content
US10567845B2 (en) Embeddable media content search widget
Veeraiah et al. A novel approach for extraction and representation of main data from web pages to android application
KR101550418B1 (en) Apparatus and method for generating mobile web
Paternò et al. of Document: Document about Architecture for migratory user
JP2013257707A (en) Server device, control method, and control program

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