CN110795615B - Search method, device, equipment and storage medium - Google Patents

Search method, device, equipment and storage medium Download PDF

Info

Publication number
CN110795615B
CN110795615B CN201911032472.4A CN201911032472A CN110795615B CN 110795615 B CN110795615 B CN 110795615B CN 201911032472 A CN201911032472 A CN 201911032472A CN 110795615 B CN110795615 B CN 110795615B
Authority
CN
China
Prior art keywords
search
content
target
webpage
extended
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
CN201911032472.4A
Other languages
Chinese (zh)
Other versions
CN110795615A (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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201911032472.4A priority Critical patent/CN110795615B/en
Publication of CN110795615A publication Critical patent/CN110795615A/en
Application granted granted Critical
Publication of CN110795615B publication Critical patent/CN110795615B/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

Abstract

The embodiment of the application discloses a searching method, a searching device, searching equipment and a storage medium, and relates to the technical field of intelligent searching. The specific implementation scheme is as follows: initiating a web page search to a server according to the received search request; if the keyword in the search request is detected to hit the expanded search keyword set, calling search service related to the hit keyword to perform expanded content search; and integrating the target expanded content obtained by the expanded content search into the target webpage obtained by the webpage search for displaying. According to the embodiment of the application, on the basis of searching the extended content, the extended content is integrated into the standard search result webpage, the technical problems that the extended content cannot be searched and cannot be displayed through Web are solved, the improvement on a search engine is avoided, the cost is reduced, meanwhile, the ecological content of search is enriched, the search result is expanded, and the search service capability of the client is improved.

Description

Search method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of intelligent search, and specifically relates to a search method, a search device, search equipment and a storage medium.
Background
With the rapid development of mobile internet and smart phones, mobile search based on mobile App has gradually become the mainstream search mode.
In the searching process, at present, only the server-based search can be performed in the Web ecology, the non-Web ecological contents such as small programs or terminal local storage cannot be searched, the searching space cannot be optimized, and the searching experience of a user is reduced.
Disclosure of Invention
The embodiment of the application provides a searching method, a searching device and a searching medium, which can realize low-cost access of expanded contents into a searching result webpage and enrich searching ecological contents and searching results.
In a first aspect, an embodiment of the present application provides a search method, including:
initiating a web page search to a server according to the received search request;
if the keyword in the search request is detected to hit the expanded search keyword set, calling search service related to the hit keyword to perform expanded content search;
and integrating the target expanded content obtained by the expanded content search into the target webpage obtained by the webpage search for displaying.
One embodiment in the above application has the following advantages or benefits: on the basis of searching the expanded content, the expanded content is integrated into a standard search result webpage, so that the technical problem that the expanded content cannot be searched and displayed on the Web is solved, the improvement on a search engine is avoided, the cost is reduced, the ecological content is enriched, the search result is expanded, and the search service capability of a client is improved.
Optionally, the invoking a search service associated with the hit keyword to perform extended content search includes:
calling a search service related to the hit keywords, and initiating extended content search to a third-party server; and/or
And calling the search service related to the hit keywords, traversing the storage file in the local storage, and initiating the extended content search.
One embodiment in the above application has the following advantages or benefits: the method can be used for searching the expanded content for the content in a non-Web format or the content which cannot be acquired by a crawler based on a search engine, enriches the ecological content of the search and provides a basis for the expansion of the search result.
Optionally, the integrating the target expanded content obtained by the expanded content search into the target webpage obtained by the webpage search for displaying includes:
detecting the return time of the target webpage and/or the target expanded content, and determining a search result returned in advance;
integrating the target expanded content into the target webpage according to the search result returned in advance;
and displaying the target webpage comprising the target extension content.
One embodiment in the above application has the following advantages or benefits: by taking the return time of the target webpage and/or the target expansion content as the basis for the webpage re-layout, the specific conditions of the webpage such as webpage details, user browsing conditions and the like can be fully considered, so that the webpage search result is expanded, and more convenient and faster webpage layout is provided for the user.
Optionally, the integrating the target expanded content into the target webpage according to the search result returned previously includes:
if the target webpage is detected to return in advance, displaying the target webpage;
if the target extension content is received, detecting a current user visible area of the target webpage, and determining a code node of the user visible area;
and converting the target extension content into a webpage format, and inserting codes of the target extension content in the webpage format into the code nodes.
One embodiment in the above application has the following advantages or benefits: by directly displaying the previously returned target webpage, the response efficiency of providing the search result for the user is improved, and the waiting time of the user is reduced. Meanwhile, based on the browsing condition of the user, the expanded content returned later is directly loaded at the current browsed position of the user, and the efficiency of the user for obtaining the expanded content is improved.
Optionally, the integrating the target expanded content into the target webpage according to the search result returned previously includes:
if the target extension content is detected to be returned first, determining the place-occupying information associated with the hit keywords;
if the target webpage is received, adding the occupancy information in a label reserved in the target webpage;
and converting the target extension content into a webpage format, and adding codes of the target extension content in the webpage format into a position specified by the placeholder information.
One embodiment in the above application has the following advantages or benefits: by adding the exhibition stall information to the target webpage, the content can be conveniently and directly inserted, and the uniform layout and optimization of the cloud to the search result page are realized.
Optionally, after the adding the code of the target extension content in the web page format to the position specified by the placeholder information, the method further includes:
and switching the label reserved in the target webpage from a hidden state to a display state.
One embodiment in the above application has the following advantages or benefits: the hidden setting of the reserved label in the webpage is invisible to the user and does not influence the direct display of the webpage; and a basis is provided for the insertion of the expanded content, and the expanded search result webpage can be displayed after the state is switched.
Optionally, after the target expanded content obtained by searching the expanded content is integrated into a target webpage obtained by searching a webpage for display, the method further includes:
determining a bearing container and detail resources of the target extension content;
and responding to the triggering operation of the user on the target extended content in the target webpage, and loading the bearing container of the target extended content to display the detail resource of the target extended content.
One embodiment in the above application has the following advantages or benefits: the expanded content can provide the triggering operation of the user, so that the user can directly trigger and call the detailed information of the expanded content, and the operation flow of the user is reduced.
In a second aspect, an embodiment of the present application provides a search apparatus, including:
the webpage searching module is used for initiating webpage searching to the server according to the received searching request;
the extended content search module is used for calling a search service related to a hit keyword to search extended content if the keyword in the search request is detected to hit the extended search keyword set;
and the webpage integration module is used for integrating the target expanded content obtained by the expanded content search into the target webpage obtained by the webpage search for display.
In a third 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 enable the at least one processor to perform a search method as described in any of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a search method according to any of the embodiments of the present application.
One embodiment in the above application has the following advantages or benefits: when a user initiates a search request and initiates traditional Web page search based on Web standards to a server, if keywords in the search request hit an extended search keyword set, a search service related to the hit keywords is called to search for extended contents, and finally, target extended contents obtained by searching the extended contents are accessed to a target page obtained by searching the Web page to form a brand-new search result Web page and are displayed. According to the embodiment of the application, on the basis of searching the extended content, the extended content is integrated into the standard search result webpage, the technical problems that the extended content cannot be searched and cannot be displayed through Web are solved, the improvement on a search engine is avoided, the cost is reduced, meanwhile, the ecological content of search is enriched, the search result is expanded, and the search service capability of the client is improved.
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 flow chart of a search method according to a first embodiment of the present application;
FIG. 2 is a flow chart of a search method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a search apparatus according to a third embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing the search method according to the 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.
First embodiment
Fig. 1 is a flowchart of a search method according to a first embodiment of the present application, where the present embodiment is applicable to a case of performing search result expansion in a web page search, and the method may be executed by a search apparatus, where the search apparatus is implemented in software and/or hardware, and is preferably configured in an electronic device, such as a mobile phone or a computer, and at least a client with a web page search function is installed in the electronic device, and a user may initiate a web page search based on the client. As shown in fig. 1, the method specifically includes the following steps:
s110, initiating webpage search to a server according to the received search request.
In the specific embodiment of the application, a user interface such as an input box for a user to initiate a web search is integrated in the search client, and the user can input a search request with keywords based on the user interface such as the input box. Correspondingly, the search client receives a search request input by a user, initiates Web page search to a background server of the search client, and realizes the Web page search under the standard Web ecology through a search engine. The Web ecology depends on the W3C (World Wide Web Consortium) standard and the browsing kernel, and the loading process of the Web page is standardized.
In the process of web page search, the search engine may perform page crawling within a range allowed by a Protocol based on a Robots Protocol (Robots Exclusion Protocol). The contents of the internet or the contents stored locally in the terminal, which are outside the allowable range of the protocol, cannot be captured based on the crawler technology. Even if it is a grab, the search engine cannot resolve because of the proprietary protocol of the portion of content. Further, even if the parsing is successful, the compatibility of the client version cannot be overcome, so that the part of the content cannot be displayed.
And S120, if the condition that the keywords in the search request hit the expanded search keyword set is detected, calling search services related to the hit keywords to perform expanded content search.
In particular embodiments of the present application, the keywords in the search request may include one word or more words. The embodiment does not limit the extraction manner of the keywords, and any algorithm capable of extracting the keywords can be applied to the embodiment, such as stop word removal, preposition word removal, semantic analysis, and the like.
In this embodiment, the extended search keyword set refers to a set including keywords that are configured in advance and that can be used for extended content search based on the Web ecological search. The expanded search keyword set may include a plurality of subsets each of which is constructed by keywords having the same meaning, and accordingly, the keywords in the search request may be respectively matched with the keywords in the expanded search keyword set one by one to determine the keywords hit in the expanded search keyword set. Alternatively, the keywords for one meaning in the extended search keyword set include only at least one keyword, and accordingly, the keywords hit in the extended search keyword set may be determined based on semantic analysis.
In this embodiment, the search service refers to code logic configured in advance for expanding content search, and may indicate a search address, a search server, a search mode, and the like of the expanded content. Furthermore, the search of the expanded content can be automatically executed by calling the search service without the transfer of the search engine, so that the transformation of the search engine is avoided, and the implementation cost of the expansion of the search result is reduced.
For example, if the extended content search is performed locally from the terminal, the search service may explicitly use the local storage address of the terminal as the search address, or may explicitly perform the search in a manner of traversing storage files in a certain range locally at the terminal. If extended content search is performed from non-Web-ecological third-party services that cannot be captured by the crawler, for example, non-Web-ecological contents such as applets, book cities, comics, Feed stream information, and the like, the version of the third-party service and the server thereof supported by the current search client version can be made clear in the search service.
Since the search address, the search server, or the search mode of the extended content search to be performed by different keywords is different, the association relationship between the keywords and the search service may be established in advance for different one or more keywords. Therefore, after the keywords hit in the expanded search keyword set are determined, the search service related to the hit keywords is directly called, and the corresponding expanded content search is executed.
S130, integrating the target expanded content obtained by the expanded content search into the target webpage obtained by the webpage search for displaying.
In the specific embodiment of the application, the target webpage is a Web webpage obtained when webpage searching is carried out based on Web ecology; the target extended content is content obtained when extended content search is performed based on a non-Web ecology, and the extended content is in a non-Web page format. And further, by means of the common search of the Web ecology and the non-Web ecology, the content of the search ecology is expanded, and the expansion of search results is facilitated.
In this embodiment, after the target webpage and the target extended content are obtained by searching, since the target webpage is the webpage content that can be normally displayed by the Web, on the basis of the target webpage, the target extended content is converted into a webpage format by using the target webpage as a base webpage, and the target extended content in the webpage format is added to the target webpage. That is, the target expansion content takes the target webpage as a carrier, and a content expanded search result page is formed to be displayed to the user. The user can then view not only the Web page content of a conventional Web search, but also the content of a search augmentation from a third party or local store.
In this embodiment, the return time of the target webpage refers to the time when the client receives the target webpage, and the return time of the target extended content refers to the time when the client receives the target extended content. The return time of the target web page and the target expanded content may be the same or different because the search mode, search route, and the like of the target web page and the target expanded content are different. Furthermore, in order to expand the search result of the target webpage and take the search experience of the user into consideration, the target expanded content can be integrated into the target webpage for display according to the return time of the target webpage and/or the target expanded content.
Specifically, the return time of the target webpage and/or the target extension content can be detected, and the search result returned in advance can be determined. It can be understood that if the target web page is received preferentially and only, the target web page can be determined to be the search result returned previously; if the target expanded content is preferentially received, determining the target expanded content as a search result returned in advance; if the target webpage and the target extension content are received simultaneously, the target extension content can be determined to be a search result returned previously or is determined to have no search result returned previously. Therefore, the target expansion content is integrated into the target webpage according to the search result returned in advance, and the target webpage comprising the target expansion content is displayed.
Illustratively, if the target webpage is detected to return previously, the target webpage is displayed; if the target extension content is received, detecting the current user visible area of the target webpage, and determining a code node of the user visible area; converting the target extension content into a web page format, and inserting the code of the target extension content in the web page format into a code node. And furthermore, the target webpage returned in advance is directly displayed, so that the response efficiency of providing the search result for the user is improved, and the waiting time of the user is reduced. Meanwhile, based on the browsing condition of the user, the expanded content returned later is directly loaded at the current browsed position of the user, and the efficiency of the user for obtaining the expanded content is improved.
For another example, if it is detected that the target expanded content is returned first or no search result is returned first, that is, the target webpage and the target expanded content are returned synchronously, the place-occupying information associated with the hit keyword is determined; if the target webpage is received, adding the place-occupying information in the label reserved in the target webpage; and converting the target extension content into a webpage format, and adding the code of the target extension content in the webpage format into the position specified by the placeholder information. And switching the label reserved in the target webpage from a hidden state to a display state so as to display the extended content inserted into the webpage. And then, by adding exhibition position information in the target webpage, the content can be conveniently and directly inserted, and the uniform layout and optimization of the cloud to the search result page are realized.
In addition, after the target extension content is integrated into the target webpage to form a brand-new search result webpage and is displayed, a carrying container for displaying details of the target extension content or the appearance of the target extension content, such as an applet container or a novel reader and the like, can be determined, and details resources of the target extension content, such as all content of the applet and a specific chapter of the novel, can be determined. The user can click and other trigger operations on the target extended content in the target webpage, so that the target webpage in the search client can respond to the trigger operations of the user on the target extended content in the target webpage and load the bearing container of the target extended content to display detailed resources of the target extended content.
According to the technical scheme of the embodiment, when a user initiates a search request and initiates a traditional Web page search based on a Web standard to a server, if a keyword in the search request hits an extended search keyword set, a search service related to the hit keyword is called to search for extended content, and finally, target extended content obtained by searching for the extended content is accessed to a target page obtained by searching for the Web page to form a brand-new search result Web page and display the brand-new search result Web page. According to the embodiment of the application, on the basis of searching the extended content, the extended content is integrated into the standard search result webpage, the technical problems that the extended content cannot be searched and cannot be displayed through Web are solved, the improvement on a search engine is avoided, the cost is reduced, meanwhile, the ecological content of search is enriched, the search result is expanded, and the search service capability of the client is improved.
Second embodiment
Fig. 2 is a flowchart of a search method according to a second embodiment of the present application, and this embodiment further explains a manner of integrating target extended content into a target web page on the basis of the first embodiment, so that different search result web page integration manners can be determined according to a return time of the target web page and/or the target extended content. As shown in fig. 2, the method specifically includes the following steps:
s210, initiating webpage search to a server according to the received search request.
S220, if the fact that the keywords in the search request hit the extended search keyword set is detected, calling search services related to the hit keywords, and initiating extended content search to a third-party server; and/or calling a search service associated with the hit keyword, traversing the storage file in the local storage, and initiating an extended content search.
In the specific embodiment of the present application, the third-party service refers to any service that is not Web-ecological and is not in a Web page format that can be captured by a crawler technology, for example, a service that provides non-Web-ecological content, such as an applet, a city book, a comic, Feed stream information, and the like. In view of version compatibility, the third-party service capable of searching in the search service belongs to the version capable of being supported by the search client version. Accordingly, the search service may initiate a search request to a server of the third party service to obtain the augmented content. For example, search client version 1.0 supports applets versions 2.1, 2.2, and 2.3, and further, when a search service is invoked, only the applets 2.1, 2.2, and 2.3 can be searched for non-Web-ecological content from the applets. Correspondingly, when different search client versions are adopted to search for the third-party service extended content, the obtained target extended content may be different.
In this embodiment, the search service may also initiate a search to the local terminal carrying the client, while speaking the relevant content in the local terminal as a part of the search result, so as to avoid the user from searching in the local terminal. The terminal local search may comprise a search of locally installed applications, i.e. a search of which applications the terminal has locally installed. The terminal local search may also include client-internal searches, such as searching for relevant data from client-internal set-up centers, personal accounts, favorites, applets, etc. that the user searches for. The terminal local search may also include searches in local storage, such as searches for contact lists or pictures. The searching of the pictures can be performed by searching the pictures in a picture searching mode or in a text searching mode by means of artificial intelligence technology, such as algorithms of image recognition, image classification, image similarity calculation and the like. Specifically, since the storage addresses for storing information in different terminals may be different, the storage file may be traversed in the local storage to initiate the extended content search.
And S230, detecting the return time of the target webpage and/or the target extension content, and determining the search result returned in advance.
In this embodiment of the present application, the return time of the target webpage refers to the time when the client receives the target webpage, and the return time of the target extended content refers to the time when the client receives the target extended content. The return time of the target web page and the target expanded content may be the same or different because the search mode, search route, and the like of the target web page and the target expanded content are different. Correspondingly, the currently suitable page integration mode can be determined according to the return time of the target webpage and/or the target extension content.
In this embodiment, if the target webpage is preferentially received, it may be determined that the target webpage is a search result returned in advance; if the target expanded content is preferentially received, determining the target expanded content as a search result returned in advance; if the target webpage and the target extension content are received simultaneously, the target extension content can be determined to be a search result returned previously or is determined to have no search result returned previously.
And S240, integrating the target expanded content into the target webpage according to the search result returned in the prior art.
In the embodiment of the application, different search results returned in advance can be integrated in different search result webpages based on the consideration of user experience, so that the expanded search result webpages can be quickly, timely and conveniently provided for users.
Optionally, if it is detected that the target webpage returns in advance, displaying the target webpage; if the target extension content is received, detecting the current user visible area of the target webpage, and determining a code node of the user visible area; converting the target extension content into a web page format, and inserting the code of the target extension content in the web page format into a code node.
In this embodiment, if it is detected that the target webpage is returned first, the target webpage may be directly displayed to the user first, based on the integrity of the target webpage, in order to increase the response speed to the user. And detecting the current user visible area of the target webpage until the target extension content is received. Determining a bottom code node of a user visible area; or determining the bottom code nodes within a certain distance from the visible area of the user according to the browsing behavior of the user, such as the sliding direction of the page. And simultaneously converting the target extension content into a webpage format, such as h5, and inserting the code of the target extension content in the webpage format into a code node to dynamically update the search result webpage. The page integration mode not only enables the user to quickly obtain the response of the search result, but also enables the user to quickly browse the expanded content at the first time.
Optionally, if it is detected that the target extension content is returned first, determining place-occupying information associated with the hit keyword; if the target webpage is received, adding the place-occupying information in the label reserved in the target webpage; and converting the target extension content into a webpage format, and adding the code of the target extension content in the webpage format into the position specified by the placeholder information.
In this embodiment, at least one empty tag may be reserved in the page in advance based on the tag in the page, and when the extended content is not inserted, the state of the tag is a hidden state, so that normal display of the page is not affected. In addition, the keyword is associated with place-occupying information for indicating a page position into which the extended content obtained based on the keyword search should be inserted. Correspondingly, if it is detected that the target extended content is returned first, the feedback of the target webpage can only be waited for at this time in view of the display page that the extended content does not bear. Meanwhile, the place-occupying information associated with the hit keywords is determined, and when the target webpage is received, the place-occupying information is added into the labels reserved in the target webpage. And converting the target expansion content into a webpage format, such as h5, and adding codes of the target expansion content in the webpage format into a position specified by the placeholder information, such as the 5 th position in the search result. Optionally, the tag reserved in the target webpage is switched from a hidden state to a display state.
And S250, displaying the target webpage comprising the target extension content.
In the embodiment of the application, based on different page integration modes, the content in the search result webpage can be dynamically updated, and the search result webpage can be reloaded and refreshed for display.
And S260, determining a bearing container and detail resources of the target extension content.
In the specific embodiment of the present application, the target extension content itself does not belong to the Web display content, and the normal display manner of the target extension content depends on the corresponding bearer container, such as an applet container or a novel reader. And the target extension content is only used as one of the search results, and like other search results, the target extension content itself can also be triggered, so as to load a bearer container of the target extension content, so as to display detailed resources of the target extension content, such as all content of the applet itself or a specific chapter of the novel, and the like. The information such as the bearer container and the detailed resource of the target extension content may be added to the related information of the target extension content when the target extension content is issued, and the partial information may be directly acquired.
S270, responding to the trigger operation of the user on the target extended content in the target webpage, and loading a bearing container of the target extended content to display the detailed resource of the target extended content.
In the specific embodiment of the present application, the target expanded content is used as one of the search results, and may be triggered by a user, such as clicking. Correspondingly, after the target extension content is triggered, the display mode of the detail of webpage jump of the Web content is different, but a bearing container of the target extension content can be directly loaded, and the detail resource of the target extension content is displayed in the container. If the container is installed or integrated in the terminal, the container can be directly loaded, otherwise, the container can be created or downloaded in advance. Similarly, if the detailed resource is stored in the terminal, the detailed resource can be directly loaded, otherwise, the detailed resource can be downloaded in advance.
According to the technical scheme of the embodiment, when a user initiates a search request and initiates a traditional Web page search based on a Web standard to a server, if a keyword in the search request hits an extended search keyword set, a search service related to the hit keyword is called, extended content search is performed to a third party service and/or a terminal locally, a search result returned in advance is determined according to the return time of a target webpage and/or target extended content, and the target extended content and the target webpage are integrated according to the search result returned in advance. According to the embodiment of the application, on the basis of searching the extended content, the extended content is integrated into the standard search result webpage, the technical problems that the extended content cannot be searched and cannot be displayed through Web are solved, the improvement on a search engine is avoided, the cost is reduced, meanwhile, the ecological content of search is enriched, the search result is expanded, and the search service capability of the client is improved.
Third embodiment
Fig. 3 is a schematic structural diagram of a search apparatus according to a third embodiment of the present application, which is applicable to a case of performing search result expansion in a web page search, and the apparatus can implement the search method according to any embodiment of the present application. The apparatus 300 specifically comprises the following:
the web page searching module 310 is configured to initiate a web page search to the server according to the received search request;
an extended content search module 320, configured to, if it is detected that a keyword in the search request hits the extended search keyword set, invoke a search service associated with the hit keyword to perform extended content search;
the web page integration module 330 is configured to integrate the target extended content obtained by the extended content search into the target web page obtained by the web page search for display.
Optionally, the extended content search module 320 is specifically configured to:
calling a search service related to the hit keywords, and initiating extended content search to a third-party server; and/or
And calling the search service related to the hit keywords, traversing the storage file in the local storage, and initiating the extended content search.
Optionally, the web page integration module 330 is specifically configured to:
detecting the return time of the target webpage and/or the target expanded content, and determining a search result returned in advance;
integrating the target expanded content into the target webpage according to the search result returned in advance;
and displaying the target webpage comprising the target extension content.
Optionally, the web page integration module 330 is specifically configured to:
if the target webpage is detected to return in advance, displaying the target webpage;
if the target extension content is received, detecting a current user visible area of the target webpage, and determining a code node of the user visible area;
and converting the target extension content into a webpage format, and inserting codes of the target extension content in the webpage format into the code nodes.
Optionally, the web page integration module 330 is specifically configured to:
if the target extension content is detected to be returned first, determining the place-occupying information associated with the hit keywords;
if the target webpage is received, adding the occupancy information in a label reserved in the target webpage;
and converting the target extension content into a webpage format, and adding codes of the target extension content in the webpage format into a position specified by the placeholder information.
Optionally, the web page integration module 330 is specifically configured to:
after the code of the target extension content in the webpage format is added to the position specified by the placeholder information, the reserved tag in the target webpage is switched from the hidden state to the display state.
Further, the apparatus further includes an extended content triggering module 340, specifically configured to:
after the target expanded content obtained by searching the expanded content is integrated into a target webpage obtained by searching a webpage for display, determining a bearing container and detail resources of the target expanded content;
and responding to the triggering operation of the user on the target extended content in the target webpage, and loading the bearing container of the target extended content to display the detail resource of the target extended content.
According to the technical scheme of the embodiment, through the mutual cooperation of all the functional modules, the functions of standard Web search, non-Web extended content search, search result webpage expansion, extended content triggering and the like are realized. According to the embodiment of the application, on the basis of searching the extended content, the extended content is integrated into the standard search result webpage, so that the technical problems that the extended content cannot be searched and displayed on the Web are solved, the improvement on a search engine is avoided, the cost is reduced, meanwhile, the ecological content is enriched, the search result is expanded, and the search service capability of the client is improved.
Fourth embodiment
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 4, the embodiment of the present application is a block diagram of an electronic device according to the searching method. 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. 4, the electronic apparatus includes: one or more processors 401, memory 402, 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. In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the search methods 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 402, which is a non-transitory computer readable storage medium, may be 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, for example, the web page search module 310, the extended content search module 320, the web page integration module 330, and the extended content trigger module 340 shown in fig. 3. The processor 401 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 402.
The memory 402 may include a storage program area and a storage data area, wherein the storage program 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 electronic device of the search method, and the like. Further, the memory 402 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, the memory 402 may optionally include memory located remotely from the processor 401, and these remote memories may be connected to the electronic device of the search method 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 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus of the search method, such as an input device of 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 the like. The output device 404 may include a display device, an auxiliary lighting device such as a Light Emitting Diode (LED), a tactile feedback device, and the like; the tactile feedback device is, for example, a vibration motor or the like. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), an 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 for providing machine instructions and/or data to a Programmable processor, such as a magnetic disk, optical disk, memory, Programmable Logic Device (PLD), 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 for displaying information to a user, for example, a Cathode Ray Tube (CRT) or an LCD monitor; and a keyboard and a pointing device, such as 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, on the basis of searching the expanded content, the expanded content is integrated into the standard search result webpage, so that the technical problem that the expanded content cannot be searched and displayed on the Web is solved, the improvement on a search engine is avoided, the cost is reduced, the ecological content is enriched, the search result is expanded, and the search service capability of the client is improved.
In addition, one embodiment in the above application has the following advantages or benefits: the method can be used for searching the expanded content for the content in a non-Web format or the content which cannot be acquired by a crawler based on a search engine, enriches the ecological content of the search and provides a basis for the expansion of the search result.
In addition, one embodiment in the above application has the following advantages or benefits: by taking the return time of the target webpage and/or the target expansion content as the basis for the webpage re-layout, the specific conditions of the webpage such as webpage details, user browsing conditions and the like can be fully considered, so that the webpage search result is expanded, and more convenient and faster webpage layout is provided for the user.
In addition, one embodiment in the above application has the following advantages or benefits: by directly displaying the previously returned target webpage, the response efficiency of providing the search result for the user is improved, and the waiting time of the user is reduced. Meanwhile, based on the browsing condition of the user, the expanded content returned later is directly loaded at the current browsed position of the user, and the efficiency of the user for obtaining the expanded content is improved.
In addition, one embodiment in the above application has the following advantages or benefits: by adding the exhibition position information to the target webpage, the content can be conveniently and directly inserted, and the uniform layout and optimization of the cloud to the search result page are realized.
In addition, one embodiment in the above application has the following advantages or benefits: the hidden setting of the reserved label in the webpage is invisible to the user and does not influence the direct display of the webpage; and a basis is provided for the insertion of the expanded content, and the expanded search result webpage can be displayed after the state is switched.
In addition, one embodiment in the above application has the following advantages or benefits: the expanded content can provide the triggering operation of the user, so that the user can directly trigger and call the detailed information of the expanded content, and the operation flow of the user is reduced.
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, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
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 (8)

1. A method of searching, comprising:
initiating a web page search to a server according to the received search request;
if the keyword in the search request is detected to hit the expanded search keyword set, calling search service related to the hit keyword to perform expanded content search;
detecting the return time of the target webpage and/or the target extension content, and determining a search result returned in advance; integrating the target expanded content into the target webpage according to the search result returned in advance; displaying a target webpage comprising the target extension content;
determining a bearing container and detail resources of the target extension content; responding to the triggering operation of a user on the target extended content in the target webpage, and loading a bearing container of the target extended content to display the detail resource of the target extended content;
the target webpage is a Web webpage obtained when webpage searching is carried out based on Web ecology; the target extended content is content obtained when extended content search is carried out based on non-Web ecology, and the extended content is in a non-webpage format;
the search service refers to code logic configured in advance for expanding content search, and is used for indicating a search address, a search server and a search mode of the expanded content.
2. The method of claim 1, wherein invoking the hit keyword associated search service for an extended content search comprises:
calling a search service related to the hit keywords, and initiating extended content search to a third-party server; and/or
And calling the search service related to the hit keywords, traversing the storage file in the local storage, and initiating the extended content search.
3. The method of claim 1, wherein the integrating the target expanded content into the target webpage according to the previously returned search results comprises:
if the target webpage is detected to return in advance, displaying the target webpage;
if the target extension content is received, detecting a current user visible area of the target webpage, and determining a code node of the user visible area;
and converting the target extension content into a webpage format, and inserting codes of the target extension content in the webpage format into the code nodes.
4. The method of claim 1, wherein the integrating the target expanded content into the target webpage according to the previously returned search results comprises:
if the target extension content is detected to be returned first, determining the place-occupying information associated with the hit keywords;
if the target webpage is received, adding the occupancy information in a label reserved in the target webpage;
and converting the target extension content into a webpage format, and adding codes of the target extension content in the webpage format into a position specified by the placeholder information.
5. The method of claim 4, after the adding the code of the target extension content in the web page format into the position specified by the placeholder information, further comprising:
and switching the label reserved in the target webpage from a hidden state to a display state.
6. A search apparatus, comprising:
the webpage searching module is used for initiating webpage searching to the server according to the received searching request;
the extended content search module is used for calling a search service related to a hit keyword to search extended content if the keyword in the search request is detected to hit the extended search keyword set;
the webpage integration module is used for detecting the return time of the target webpage and/or the target extension content and determining the search result returned in advance; integrating the target expanded content into the target webpage according to the search result returned in advance; displaying a target webpage comprising the target extension content;
the extended content triggering module is used for determining a bearing container and detail resources of the target extended content; responding to the triggering operation of a user on the target extended content in the target webpage, and loading a bearing container of the target extended content to display the detail resource of the target extended content;
the target webpage is a Web webpage obtained when webpage searching is carried out based on Web ecology; the target extended content is content obtained when extended content search is carried out based on non-Web ecology, and the extended content is in a non-webpage format;
the search service refers to code logic configured in advance for expanding content search, and is used for indicating a search address, a search server and a search mode of the expanded content.
7. 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 search method of any one of claims 1-5.
8. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the search method of any one of claims 1-5.
CN201911032472.4A 2019-10-28 2019-10-28 Search method, device, equipment and storage medium Active CN110795615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911032472.4A CN110795615B (en) 2019-10-28 2019-10-28 Search method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911032472.4A CN110795615B (en) 2019-10-28 2019-10-28 Search method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110795615A CN110795615A (en) 2020-02-14
CN110795615B true CN110795615B (en) 2022-08-09

Family

ID=69441618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911032472.4A Active CN110795615B (en) 2019-10-28 2019-10-28 Search method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110795615B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7322194B2 (en) 2020-04-29 2023-08-07 バイドゥ オンライン ネットワーク テクノロジー(ペキン) カンパニー リミテッド DATA UPDATE METHOD, DEVICE, SEARCH SERVER, TERMINAL AND STORAGE MEDIUM
CN111767442B (en) * 2020-04-29 2023-12-26 百度在线网络技术(北京)有限公司 Data updating method, device, search server, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1145274A (en) * 1997-07-28 1999-02-16 Just Syst Corp Extension method for key word using co-occurrence between words and computer readable recording medium recording program for making computer execute respective processes of the method
CN102402619A (en) * 2011-12-23 2012-04-04 广东威创视讯科技股份有限公司 Search method and device
CN103207881A (en) * 2012-01-17 2013-07-17 阿里巴巴集团控股有限公司 Query method and unit
CN103853722A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Query based keyword extension method, device and system
CN104090963A (en) * 2014-07-14 2014-10-08 百度在线网络技术(北京)有限公司 Search information recommendation method and device
CN109582900A (en) * 2018-11-14 2019-04-05 百度在线网络技术(北京)有限公司 The page loads filter method and its device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1145274A (en) * 1997-07-28 1999-02-16 Just Syst Corp Extension method for key word using co-occurrence between words and computer readable recording medium recording program for making computer execute respective processes of the method
CN102402619A (en) * 2011-12-23 2012-04-04 广东威创视讯科技股份有限公司 Search method and device
CN103207881A (en) * 2012-01-17 2013-07-17 阿里巴巴集团控股有限公司 Query method and unit
CN103853722A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Query based keyword extension method, device and system
CN104090963A (en) * 2014-07-14 2014-10-08 百度在线网络技术(北京)有限公司 Search information recommendation method and device
CN109582900A (en) * 2018-11-14 2019-04-05 百度在线网络技术(北京)有限公司 The page loads filter method and its device

Also Published As

Publication number Publication date
CN110795615A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN111222062B (en) Applet running method and device, electronic equipment and storage medium
US11144711B2 (en) Webpage rendering method, device, electronic apparatus and storage medium
US20190251143A1 (en) Web page rendering method and related device
US20210216701A1 (en) Method, apparatus, device and storage medium for determining page theme
CN111782977B (en) Point-of-interest processing method, device, equipment and computer readable storage medium
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
JP7087121B2 (en) Landing page processing methods, equipment, equipment and media
CN110795615B (en) Search method, device, equipment and storage medium
CN113918263B (en) Virtual routing method, device and equipment of view component and computer storage medium
US20170206052A1 (en) Method and system for automatically managing content in an electronic device
CN111767442B (en) Data updating method, device, search server, terminal and storage medium
CN112163143A (en) Page switching method, device, equipment and storage medium
JP7130803B2 (en) SEARCH METHOD, SEARCH DEVICE, ELECTRONIC DEVICE AND STORAGE MEDIUM
CN113158098B (en) Page generation method, device, equipment and medium
CN110516030B (en) Method, device and equipment for determining intention word and computer readable storage medium
CN113568608A (en) Component information display method, device, equipment and storage medium
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN112698879A (en) Method and device for loading source file
CN111931111A (en) Webpage development method, webpage display method, device and equipment
CN111352685A (en) Input method keyboard display method, device, equipment and storage medium
CN111026438A (en) Extraction method, device, equipment and medium for key information of small program package and page
CN113407662B (en) Sensitive word recognition method, system and computer readable storage medium
CN114020309B (en) Method, device and storage medium for constructing multi-page application through webpack
CN112948718B (en) Information delivery method, device, equipment and medium
CN111552877B (en) Data processing method and device

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