WO2016150017A1 - Page display method, device, system and non-volatile computer storage medium - Google Patents

Page display method, device, system and non-volatile computer storage medium Download PDF

Info

Publication number
WO2016150017A1
WO2016150017A1 PCT/CN2015/081758 CN2015081758W WO2016150017A1 WO 2016150017 A1 WO2016150017 A1 WO 2016150017A1 CN 2015081758 W CN2015081758 W CN 2015081758W WO 2016150017 A1 WO2016150017 A1 WO 2016150017A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
query word
page resource
url address
resource file
Prior art date
Application number
PCT/CN2015/081758
Other languages
French (fr)
Chinese (zh)
Inventor
刘俊启
黎科峰
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Publication of WO2016150017A1 publication Critical patent/WO2016150017A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of Internet application technologies, and in particular, to a page display method, apparatus, system, device, and non-volatile computer storage medium.
  • terminals such as mobile phones have become an indispensable electronic communication device in our daily life.
  • applications related to terminals are becoming more abundant. Users often download applications of interest online and install them on the terminal for use, which greatly facilitates and enriches our daily work and life.
  • the client searching for the application needs to load the page resource obtained from the server, thereby realizing that the user needs to browse the page that needs to be browsed.
  • the page resources obtained by the client from the server often include some page resources that are not related to the query words searched by the user, so that the page resource loading efficiency of the client is relatively low, resulting in low page rendering efficiency.
  • an embodiment of the present invention provides a page display method, device, and system.
  • Devices and non-volatile computer storage media can improve the efficiency of page resource loading, thereby improving page rendering efficiency.
  • An aspect of the embodiments of the present invention provides a page display method, including:
  • the page resource file is used to perform page presentation.
  • An aspect of the embodiments of the present invention provides a page display method, including:
  • the obtaining, according to the query word, the page resource file corresponding to the URL address includes:
  • the page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
  • the aspect, and any possible implementation manner further provide an implementation manner, where the obtaining, according to the query word, the page resource related to the query word in the page resource corresponding to the URL, including:
  • the page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
  • An aspect of an embodiment of the present invention provides a page display apparatus, including:
  • a link obtaining unit configured to obtain a uniform resource locator URL address triggered by the user in the search result
  • An information output unit configured to send, according to the URL address, a query word matched by the search result to a server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page The resource file only contains page resources related to the query word;
  • An information input unit configured to receive the page resource file sent by the server
  • a page presentation unit configured to perform page presentation by using the page resource file.
  • the information output unit is specifically configured to:
  • An aspect of an embodiment of the present invention provides a page display apparatus, including:
  • the information input unit is configured to receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
  • a resource processing unit configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
  • an information output unit configured to send the page resource file to the client, so that the client uses the page resource file to perform page presentation.
  • resource processing unit is specifically configured to:
  • the page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
  • the resource processing unit is configured to obtain, according to the query word, a page related to the query word in a page resource corresponding to the URL.
  • the resource is specifically used to:
  • the page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
  • An aspect of an embodiment of the present invention provides a page presentation system, including: a client and a server;
  • the client is configured to obtain a uniform resource locator URL address triggered by the user in the search result, and send, according to the URL address, a query word matched by the search result to the server;
  • the server is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word, and send the message to the client Page resource file
  • the client is further configured to perform page presentation by using the page resource file.
  • an apparatus comprising:
  • One or more processors are One or more processors;
  • One or more programs the one or more programs being stored in the memory, when executed by the one or more processors:
  • the page resource file is used to perform page presentation.
  • an apparatus comprising:
  • One or more processors are One or more processors;
  • One or more programs the one or more programs being stored in the memory, when executed by the one or more processors:
  • a non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causes Description of equipment:
  • the page resource file is used to perform page presentation.
  • a non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causes Description of equipment:
  • the URL address is a URL triggered by the user in the search result
  • the page resource file corresponding to the URL address obtained from the server includes only the page resource related to the query word.
  • the obtained page resource file further includes a page resource that is not related to the query word searched by the user.
  • only the page resource useful to the user is loaded. Reduce the loading of page resources that are not related to user search requirements, thereby improving page resource loading efficiency and improving page rendering efficiency.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of a page display method according to an embodiment of the present invention
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of a page display method according to an embodiment of the present invention
  • FIG. 3 is a first diagram of a system to which a page display method according to an embodiment of the present invention is applied examples;
  • FIG. 4 is a second exemplary diagram of a system to which a page display method according to an embodiment of the present invention is applied;
  • FIG. 5 is a functional block diagram of Embodiment 1 of a page display apparatus according to an embodiment of the present invention.
  • FIG. 6 is a functional block diagram of Embodiment 2 of a page display apparatus according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a page display system according to an embodiment of the present invention.
  • the word “if” as used herein may be interpreted as “when” or “when” or “in response to determining” or “in response to detecting.”
  • the phrase “if determined” or “if detected (conditions or events stated)” may be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) “Time” or “in response to a test (condition or event stated)”.
  • FIG. 1 it is a schematic flowchart of Embodiment 1 of a page display method according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:
  • the client can receive the query word input by the user through the displayed input box; then, the client obtains the search result matching the query word from the server according to the query word, and presents the query to the user Words match the search results.
  • the client displays the search result matching the input query word to the user, for each search result, the title, the abstract, and the like of the search result are simultaneously displayed, so that if the user according to the title, the abstract, and the like, the user can trigger the search result in the search result matching the query word to request further browsing of the source page of the search result, thereby obtaining more detailed information, so that The client can get the URL address that the user triggered in the search results.
  • the client may send, according to the URL address, a query word input by the user that matches the search result to the server, so that the server is based on the query word.
  • a page resource file corresponding to the URL address can be obtained.
  • the page resource file includes only page resources related to the query word, and does not include page resources that are not related to the query word.
  • the method for the client to send the query word matched by the search result to the server according to the URL address may include but is not limited to the following two types:
  • the first type after obtaining the triggered URL address, the client needs to send a resource access request for the URL address to the server.
  • the resource access request indicates that a page resource file that needs to be utilized for presenting the page needs to be obtained from the server.
  • the query word is carried by the resource access request, and the query word may be sent to the server as a parameter in the resource access request.
  • the client sends a resource access request for the URL address to the server.
  • the resource access request indicates that a page resource file that needs to be utilized for presenting the page needs to be obtained from the server.
  • the client then sends a resource processing request to the server.
  • the query term can be carried by the resource processing request.
  • a request identifier may be generated, and the client adds the request identifier in the resource access request and the resource processing request, indicating the association relationship between the resource processing request and the resource access request, and indicating the query word carried in the resource processing request.
  • the URL address for which the resource access request is directed is obtained from search results that match the query term.
  • the server needs to return the page to the client.
  • the resource file so that the client can receive the page resource file sent by the server.
  • the client uses the page template to render the page resource file received from the server to implement page presentation.
  • the page resource file only includes the page resource related to the query word, and does not include the page resource irrelevant to the query word, so that the client only loads the page resource useful to the user, and reduces
  • the user searches for the loading of page resources that are not related to the requirements. This part of the page resources is often unrelated to the user's search requirements. Therefore, not loading the part of the page resources does not affect the user's experience, and can still satisfy the user's search requirements.
  • the technical solution of the embodiment of the invention can improve the efficiency of page display under the premise of satisfying the search requirement of the user, and can also greatly save network traffic and reduce network pressure.
  • terminals involved in the embodiments of the present invention may include, but are not limited to, a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a tablet computer.
  • PC personal computer
  • PDA personal digital assistant
  • Mobile phones MP3 players, MP4 players, etc.
  • execution body of S101-S104 may be a page display device, and the device may be located in an application of a local terminal, or may be a plug-in or a software development kit (SDK) located in an application of the local terminal.
  • SDK software development kit
  • the functional unit is not particularly limited in this embodiment of the present invention.
  • the application can be an application installed on the terminal. (nativeApp), or a webpage program (webApp) of the browser on the terminal, which is not limited by the embodiment of the present invention.
  • the embodiment of the present invention further provides a page display method.
  • FIG. 2 it is a schematic flowchart of Embodiment 2 of a page display method according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:
  • S201 Receive a query word matched by a search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result.
  • the server may receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result.
  • the server may receive a resource access request sent by the client for the URL address, and obtain the query word from the resource access request.
  • the server may also receive a resource access request sent by the client for the URL address, and a resource processing request sent by the client, and obtain the query word from the resource processing request.
  • the server obtains a page resource file corresponding to the URL address according to the query word matched by the search result sent by the client, where the page resource file only includes the page resource related to the query word, and does not include the query Word-independent page resources.
  • the method for the server to obtain the page resource file corresponding to the URL address according to the query word may include: first, obtaining a page resource corresponding to the URL address. Then, according to the query word, a page resource related to the query word in the page resource corresponding to the URL is obtained. Finally, using the page associated with the query term The surface resource obtains a page resource file corresponding to the URL address.
  • FIG. 3 is a first example diagram of a system to which a page display method according to an embodiment of the present invention is applied.
  • the server obtains a page resource corresponding to a URL address.
  • the server deletes the page resource irrelevant to the query word in the page resource corresponding to the URL according to the query word.
  • the server generates a page resource file corresponding to the URL address according to the page resource obtained after the deletion operation.
  • the server may be a third-party server that provides a page resource corresponding to the URL address.
  • the server can obtain the page resource corresponding to the URL address from the database according to the URL address, and the obtained page resource includes the page resource indicated by the URL address itself, and the URL address is used as a query word with the user. Matching search results, so the page resource indicated by the URL address itself is the page resource associated with the query term.
  • the obtained page resources include some other resources, such as advertisements, pictures and titles of recommended news, recommended websites, etc. These other resources are often page resources that are not related to the user's query words.
  • the server may find a page resource that is not related to the query word in the page resource corresponding to the obtained URL address according to the query word, and delete the page irrelevant to the query word in the page resource corresponding to the obtained URL address. Resources, so that you can only retain page resources related to the query term.
  • the method for obtaining the page resource related to the query word in the page resource corresponding to the URL according to the query word may include, but is not limited to:
  • the relevance of the title of the recommended news to the query term may be calculated, and if the relevance is greater than or equal to the preset relevant threshold, the recommended news is considered to be a page resource related to the query term. On the other hand, if the relevance is less than the preset related threshold, the recommended news is a page resource that is not related to the query word, and the title, picture, and the like of the recommended news are deleted in the page resource corresponding to the captured URL. .
  • the server may use the language of the page to be created, and generate a page resource file corresponding to the URL address according to the page resource obtained after the deletion operation.
  • the language for making a page may include, but is not limited to, a Program Design Language (PDL) or a Hyper Text Mark-up Language (HTML).
  • PDL Program Design Language
  • HTML Hyper Text Mark-up Language
  • FIG. 4 is a second example diagram of a system to which a page display method is provided according to an embodiment of the present invention.
  • the server accesses a resource for a URL obtained from a client.
  • the resource access request for the URL address is forwarded to the other server, so that the other server obtains the page resource corresponding to the URL address, and generates a page resource file according to the page resource, and sends the page resource to the server.
  • the file in this way, the server can receive the page resource file sent by other servers.
  • the server deletes the page resource irrelevant to the query word in the page resource file according to the query word, and only retains the page resource related to the query word to obtain the page resource file corresponding to the URL address.
  • the server is a server corresponding to the client, and the other server is a third-party server that provides a page resource corresponding to the URL address. Since the server corresponding to the client does not have a page resource corresponding to the URL address, the page resource corresponding to the URL address needs to be obtained from the third-party server.
  • the client directly initiates a resource access request to a third-party server that provides a page resource, and the third-party server performs a delete operation of the page resource that is unrelated to the query term.
  • the client initiates a resource access request to the server corresponding to the server, so that the server obtains the page resource corresponding to the URL address from the third-party server, and the server corresponding to the client performs the deletion operation of the page resource irrelevant to the query term.
  • the other server may obtain a corresponding page resource from the database according to the URL address, and then generate a page resource file according to the obtained page resource and use the language of the created page, and return the page resource file to the server.
  • the page resource file includes a page resource related to the query word and a page resource not related to the query word.
  • the server finds a page resource unrelated to the query word in the page resource file according to the query word received from the client, and deletes the page resource in the page resource file.
  • the page resource file that is not related to the query word is the page resource file corresponding to the URL address after the deletion operation
  • the page resource file obtained after the deletion operation is the page resource file that needs to be returned to the client, so that the client uses the deletion.
  • the page resource file obtained after the operation is displayed on the page.
  • the server needs to send the page resource file to the client, so that the client can use the page template.
  • the page resource file is rendered to enable the page to be presented to the user.
  • the page resource file is deleted from the page resource file, and only the page resource related to the query word is included, so that the client only loads the page when using the page resource file to display the page.
  • This part of the page resources is often independent of the user's search requirements, so not loading this part of the page resources will not affect the user's experience, still
  • the technical solution of the embodiment of the present invention can improve the efficiency of page display under the premise of satisfying the search requirement of the user, and can greatly save network traffic and reduce network pressure.
  • Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
  • FIG. 5 is a functional block diagram of Embodiment 1 of a page display apparatus according to an embodiment of the present invention.
  • the device is an execution body of the page presentation method provided in Embodiment 1, and the device includes:
  • a link obtaining unit 501 configured to obtain a uniform resource locator URL address triggered by the user in the search result
  • the information output unit 502 is configured to send, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word,
  • the page resource file only contains page resources related to the query word;
  • the information input unit 503 is configured to receive the page resource file sent by the server;
  • the page presentation unit 504 is configured to perform page presentation by using the page resource file.
  • the information output unit 502 is specifically configured to:
  • FIG. 6 is a functional block diagram of Embodiment 2 of a page display apparatus according to an embodiment of the present invention.
  • the device is an execution body of the page presentation method provided by the second embodiment, and the device includes:
  • the information input unit 601 is configured to receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
  • the resource processing unit 602 is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
  • the information output unit 603 is configured to send the page resource file to the client, so that the client uses the page resource file to perform page presentation.
  • the resource processing unit 602 is specifically configured to:
  • the page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
  • the resource processing unit 602 is configured to: when obtaining the page resource related to the query word in the page resource corresponding to the URL, according to the query word, specifically:
  • the page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
  • FIG. 7 is a schematic structural diagram of a page display system according to an embodiment of the present invention. As shown, the system includes: a client 701 and a server 702; wherein
  • the client 701 is configured to obtain a uniform resource locator URL address triggered by the user in the search result, and send, according to the URL address, a query word matched by the search result to the server;
  • the server 702 is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word, and sends the page resource to the client Page resource file;
  • the client 701 is further configured to perform page presentation by using the page resource file.
  • the page resource file corresponding to the URL address obtained from the server includes only the query word.
  • the obtained page resource file further includes a page resource that is not related to the query word searched by the user.
  • only the page resource useful to the user is loaded. Reduce the loading of page resources that are not related to user search requirements, thereby improving page resource loading efficiency and improving page rendering efficiency.
  • the page resource file obtained from the server will no longer contain page resources that are not related to the query word, so the amount of data transmitted between the server and the server can be reduced, thereby saving network traffic and reducing network pressure.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

A page display method, device, system and a non-volatile computer storage medium are provided. From one aspect, The embodiment of the present invention obtains a unified resource locator URL address triggered within search results by a user; then sends a query word matched with the search result to a server on the basis of the URL address, so that the server obtains a page resource file corresponding to the URL address on the basis of the query word, the page resource file containing only the page resource related to the query word; furthermore, receives the page resource file sent by the server and displays the page by using the page resource file. Therefore, The technical solution provided by the embodiment of the present invention can improve the page resource load efficiency and page display efficiency.

Description

页面展现方法、装置、系统、设备及非易失性计算机存储介质Page display method, device, system, device and non-volatile computer storage medium
本申请要求了申请日为2015年03月26日,申请号为201510137057.0发明名称为“一种页面展现方法、装置及系统”的中国专利申请的优先权。The present application claims priority to Chinese Patent Application No. 201510137057.0, entitled "A Page Display Method, Apparatus, and System", filed on March 26, 2015.
技术领域Technical field
本发明涉及互联网应用技术领域,特别涉及一种页面展现方法、装置、系统、设备及非易失性计算机存储介质。The present invention relates to the field of Internet application technologies, and in particular, to a page display method, apparatus, system, device, and non-volatile computer storage medium.
背景技术Background technique
目前,在如今快节奏的工作和生活当中,手机等终端已经成为我们日常生活中必不可少的电子通讯设备。随着终端的大量普及,与终端相关的应用也愈加丰富。用户经常会上网下载感兴趣的应用,安装到终端上进行使用,从而极大地方便和丰富了我们的日常工作和生活。At present, in today's fast-paced work and life, terminals such as mobile phones have become an indispensable electronic communication device in our daily life. With the proliferation of terminals, applications related to terminals are becoming more abundant. Users often download applications of interest online and install them on the terminal for use, which greatly facilitates and enriches our daily work and life.
目前,在移动网络下,用户在使用搜索应用时,搜索应用的客户端需要加载从服务器获得的页面资源,从而实现向用户展现所需要浏览的页面。然而,客户端从服务器获得的页面资源中,往往还包含一些与用户搜索的查询词无关的页面资源,使得客户端的页面资源加载效率比较低,导致页面展现效率比较低。Currently, under the mobile network, when the user uses the search application, the client searching for the application needs to load the page resource obtained from the server, thereby realizing that the user needs to browse the page that needs to be browsed. However, the page resources obtained by the client from the server often include some page resources that are not related to the query words searched by the user, so that the page resource loading efficiency of the client is relatively low, resulting in low page rendering efficiency.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种页面展现方法、装置、系统、 设备及非易失性计算机存储介质,可以实现提高页面资源加载效率,从而提高页面展现效率。In view of this, an embodiment of the present invention provides a page display method, device, and system. Devices and non-volatile computer storage media can improve the efficiency of page resource loading, thereby improving page rendering efficiency.
本发明实施例的一方面,提供一种页面展现方法,包括:An aspect of the embodiments of the present invention provides a page display method, including:
获得用户在搜索结果中触发的统一资源定位符URL地址;Obtaining a uniform resource locator URL address triggered by the user in the search result;
根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Sending, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page resource file only includes The page resource related to the query word;
接收所述服务器发送的所述页面资源文件;Receiving the page resource file sent by the server;
利用所述页面资源文件进行页面展现。The page resource file is used to perform page presentation.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,包括:The foregoing aspect, and any possible implementation manner, further provide an implementation manner, where the sending, according to the URL address, the query word matched by the search result to a server includes:
向所述服务器发送针对所述URL地址的资源访问请求,所述资源访问请求携带所述查询词;或者,Sending, by the server, a resource access request for the URL address, where the resource access request carries the query word; or
向所述服务器发送针对所述URL地址的资源访问请求,以及发送资源处理请求,所述资源处理请求携带所述查询词。Sending a resource access request for the URL address to the server, and transmitting a resource processing request, the resource processing request carrying the query word.
本发明实施例的一方面,提供一种页面展现方法,包括:An aspect of the embodiments of the present invention provides a page display method, including:
接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;Receiving a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。 Sending the page resource file to the client, so that the client uses the page resource file to perform page presentation.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述查询词,获得所述URL地址对应的页面资源文件,包括:The aspect as described above, and any possible implementation manner, further provide an implementation manner, where the obtaining, according to the query word, the page resource file corresponding to the URL address, includes:
获得与所述URL地址对应的页面资源;Obtaining a page resource corresponding to the URL address;
根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource related to the query word in a page resource corresponding to the URL;
利用与所述查询词相关的页面资源,获得所述URL地址对应的页面资源文件。The page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源,包括:The aspect, and any possible implementation manner, further provide an implementation manner, where the obtaining, according to the query word, the page resource related to the query word in the page resource corresponding to the URL, including:
获取所述查询词与所述URL对应的页面资源的相关度;Obtaining a correlation between the query word and a page resource corresponding to the URL;
利用预设的相关度阈值,获取与所述查询词的相关度大于或者等于所述相关度阈值的页面资源,以作为与所述查询词相关的页面资源。The page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
本发明实施例的一方面,提供一种页面展现装置,包括:An aspect of an embodiment of the present invention provides a page display apparatus, including:
链接获取单元,用于获得用户在搜索结果中触发的统一资源定位符URL地址;a link obtaining unit, configured to obtain a uniform resource locator URL address triggered by the user in the search result;
信息输出单元,用于根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;An information output unit, configured to send, according to the URL address, a query word matched by the search result to a server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page The resource file only contains page resources related to the query word;
信息输入单元,用于接收所述服务器发送的所述页面资源文件;An information input unit, configured to receive the page resource file sent by the server;
页面展现单元,用于利用所述页面资源文件进行页面展现。a page presentation unit, configured to perform page presentation by using the page resource file.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式, 所述信息输出单元,具体用于:An aspect of the above, and any possible implementation, further providing an implementation manner, The information output unit is specifically configured to:
向所述服务器发送针对所述URL地址的资源访问请求,所述资源访问请求携带所述查询词;或者,Sending, by the server, a resource access request for the URL address, where the resource access request carries the query word; or
向所述服务器发送针对所述URL地址的资源访问请求,以及发送资源处理请求,所述资源处理请求携带所述查询词。Sending a resource access request for the URL address to the server, and transmitting a resource processing request, the resource processing request carrying the query word.
本发明实施例的一方面,提供一种页面展现装置,包括:An aspect of an embodiment of the present invention provides a page display apparatus, including:
信息输入单元,用于接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;The information input unit is configured to receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
资源处理单元,用于根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;a resource processing unit, configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
信息输出单元,用于向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。And an information output unit, configured to send the page resource file to the client, so that the client uses the page resource file to perform page presentation.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述资源处理单元,具体用于:The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the resource processing unit is specifically configured to:
获得与所述URL地址对应的页面资源;Obtaining a page resource corresponding to the URL address;
根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource related to the query word in a page resource corresponding to the URL;
利用与所述查询词相关的页面资源,获得所述URL地址对应的页面资源文件。The page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述资源处理单元用于根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源时,具体用于:The foregoing aspect and any possible implementation manner further provide an implementation manner, where the resource processing unit is configured to obtain, according to the query word, a page related to the query word in a page resource corresponding to the URL. When the resource is used, it is specifically used to:
获取所述查询词与所述URL对应的页面资源的相关度; Obtaining a correlation between the query word and a page resource corresponding to the URL;
利用预设的相关度阈值,获取与所述查询词的相关度大于或者等于所述相关度阈值的页面资源,以作为与所述查询词相关的页面资源。The page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
本发明实施例的一方面,提供一种页面展现系统,包括:客户端和服务器;其中,An aspect of an embodiment of the present invention provides a page presentation system, including: a client and a server;
所述客户端,用于获得用户在搜索结果中触发的统一资源定位符URL地址,以及根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词;The client is configured to obtain a uniform resource locator URL address triggered by the user in the search result, and send, according to the URL address, a query word matched by the search result to the server;
所述服务器,用于根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源,以及向所述客户端发送所述页面资源文件;The server is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word, and send the message to the client Page resource file
所述客户端,还用于利用所述页面资源文件进行页面展现。The client is further configured to perform page presentation by using the page resource file.
本发明的一方面,提供一种设备,包括:In an aspect of the invention, an apparatus is provided, comprising:
一个或者多个处理器;One or more processors;
存储器;Memory
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
获得用户在搜索结果中触发的统一资源定位符URL地址;Obtaining a uniform resource locator URL address triggered by the user in the search result;
根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Sending, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page resource file only includes The page resource related to the query word;
接收所述服务器发送的所述页面资源文件;Receiving the page resource file sent by the server;
利用所述页面资源文件进行页面展现。The page resource file is used to perform page presentation.
本发明的一方面,提供一种设备,包括: In an aspect of the invention, an apparatus is provided, comprising:
一个或者多个处理器;One or more processors;
存储器;Memory
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;Receiving a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。Sending the page resource file to the client, so that the client uses the page resource file to perform page presentation.
本发明的一方面,提供一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:In one aspect of the invention, a non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causes Description of equipment:
获得用户在搜索结果中触发的统一资源定位符URL地址;Obtaining a uniform resource locator URL address triggered by the user in the search result;
根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Sending, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page resource file only includes The page resource related to the query word;
接收所述服务器发送的所述页面资源文件;Receiving the page resource file sent by the server;
利用所述页面资源文件进行页面展现。The page resource file is used to perform page presentation.
本发明的一方面,提供一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:In one aspect of the invention, a non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causes Description of equipment:
接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述 URL地址为用户在所述搜索结果中触发的URL;Receiving a query word matched by a search result sent by the client according to the URL address, The URL address is a URL triggered by the user in the search result;
根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。Sending the page resource file to the client, so that the client uses the page resource file to perform page presentation.
由以上技术方案可以看出,本发明实施例具有以下有益效果:It can be seen from the above technical solutions that the embodiments of the present invention have the following beneficial effects:
本发明实施例中,当用户在搜索结果中触发的URL地址后,从服务器获得的所述URL地址对应的页面资源文件中,只包含与所述查询词相关的页面资源。与现有技术中,获得的页面资源文件中还包含与用户搜索的查询词无关的页面资源的技术方案相比,本发明实施例提供的技术方案中,只加载了对用户有用的页面资源,减少与用户搜索需求无关的页面资源的加载,从而能够提高页面资源加载效率,提高页面展现效率。In the embodiment of the present invention, after the URL address triggered by the user in the search result, the page resource file corresponding to the URL address obtained from the server includes only the page resource related to the query word. Compared with the prior art, the obtained page resource file further includes a page resource that is not related to the query word searched by the user. In the technical solution provided by the embodiment of the present invention, only the page resource useful to the user is loaded. Reduce the loading of page resources that are not related to user search requirements, thereby improving page resource loading efficiency and improving page rendering efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. One of ordinary skill in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1是本发明实施例所提供的页面展现方法的实施例一的流程示意图;1 is a schematic flowchart of Embodiment 1 of a page display method according to an embodiment of the present invention;
图2是本发明实施例所提供的页面展现方法的实施例二的流程示意图;2 is a schematic flowchart of Embodiment 2 of a page display method according to an embodiment of the present invention;
图3是本发明实施例所提供的页面展现方法所应用的系统的第一示 例图;FIG. 3 is a first diagram of a system to which a page display method according to an embodiment of the present invention is applied examples;
图4是本发明实施例所提供的页面展现方法所应用的系统的第二示例图;4 is a second exemplary diagram of a system to which a page display method according to an embodiment of the present invention is applied;
图5是本发明实施例所提供的页面展现装置的实施例一的功能方块图;FIG. 5 is a functional block diagram of Embodiment 1 of a page display apparatus according to an embodiment of the present invention;
图6是本发明实施例所提供的页面展现装置的实施例二的功能方块图;FIG. 6 is a functional block diagram of Embodiment 2 of a page display apparatus according to an embodiment of the present disclosure;
图7是本发明实施例所提供的页面展现系统的结构示意图。FIG. 7 is a schematic structural diagram of a page display system according to an embodiment of the present invention.
具体实施方式detailed description
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。For a better understanding of the technical solutions of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are for the purpose of describing particular embodiments only and are not intended to limit the invention. The singular forms "a", "the" and "the"
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。 It should be understood that the term "and/or" as used herein is merely an association describing the associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, while A and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting." Similarly, depending on the context, the phrase "if determined" or "if detected (conditions or events stated)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event) "Time" or "in response to a test (condition or event stated)".
实施例一Embodiment 1
本发明实施例给出一种页面展现方法,请参考图1,其为本发明实施例所提供的页面展现方法的实施例一的流程示意图,如图所示,该方法包括以下步骤:The embodiment of the present invention provides a page display method. Referring to FIG. 1 , it is a schematic flowchart of Embodiment 1 of a page display method according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:
S101,获得用户在搜索结果中触发的URL地址。S101. Obtain a URL address triggered by the user in the search result.
具体的,客户端可以通过所显示的输入框,接收用户输入的查询词;然后,客户端根据所述查询词,从服务器获得与该查询词相匹配的搜索结果,以及向用户展现与该查询词相匹配的搜索结果。Specifically, the client can receive the query word input by the user through the displayed input box; then, the client obtains the search result matching the query word from the server according to the query word, and presents the query to the user Words match the search results.
其中,客户端在向用户展现与输入的查询词相匹配的搜索结果时,对于每条搜索结果,都会同时显示该搜索结果的标题、摘要等内容,这样,若用户根据标题、摘要等内容,确定某搜索结果能够满足自身的搜索需求,则用户可以在与查询词相匹配的搜索结果中,触发该搜索结果,以请求进一步浏览该搜索结果的源页面,从而获得更详细的信息,这样,客户端就可以获得用户在搜索结果中触发的URL地址。Wherein, when the client displays the search result matching the input query word to the user, for each search result, the title, the abstract, and the like of the search result are simultaneously displayed, so that if the user according to the title, the abstract, and the like, To determine that a search result can meet its own search requirements, the user can trigger the search result in the search result matching the query word to request further browsing of the source page of the search result, thereby obtaining more detailed information, so that The client can get the URL address that the user triggered in the search results.
S102,根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源。 S102. Send, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where only the page resource file is included. Contains page resources related to the query term.
具体的,客户端在获得用户在搜索结果中触发的URL地址后,可以根据该URL地址,向服务器发送该搜索结果所匹配的用户输入的查询词,以使得所述服务器根据所述查询词,可以获得所述URL地址对应的页面资源文件。本发明实施例中,所述页面资源文件中只包含与所述查询词相关的页面资源,不包含与所述查询词无关的页面资源。Specifically, after obtaining the URL address triggered by the user in the search result, the client may send, according to the URL address, a query word input by the user that matches the search result to the server, so that the server is based on the query word. A page resource file corresponding to the URL address can be obtained. In the embodiment of the present invention, the page resource file includes only page resources related to the query word, and does not include page resources that are not related to the query word.
优选的,本发明实施例中,客户端根据该URL地址,向服务器发送所述搜索结果所匹配的查询词的方法可以包括但不限于以下两种:Preferably, in the embodiment of the present invention, the method for the client to send the query word matched by the search result to the server according to the URL address may include but is not limited to the following two types:
第一种:客户端在获得触发的URL地址后,需要向所述服务器发送针对所述URL地址的资源访问请求。该资源访问请求表示需要从服务器获得展现页面所需要利用的页面资源文件。The first type: after obtaining the triggered URL address, the client needs to send a resource access request for the URL address to the server. The resource access request indicates that a page resource file that needs to be utilized for presenting the page needs to be obtained from the server.
本方法中,所述查询词通过该资源访问请求携带,该查询词可以作为资源访问请求中的一个参数被发送到服务器。In the method, the query word is carried by the resource access request, and the query word may be sent to the server as a parameter in the resource access request.
第二种:客户端在获得触发的URL地址后,向所述服务器发送针对所述URL地址的资源访问请求。该资源访问请求表示需要从服务器获得展现页面所需要利用的页面资源文件。Second: after obtaining the triggered URL address, the client sends a resource access request for the URL address to the server. The resource access request indicates that a page resource file that needs to be utilized for presenting the page needs to be obtained from the server.
然后,客户端再向服务器发送一个资源处理请求。所述查询词可以通过该资源处理请求携带。The client then sends a resource processing request to the server. The query term can be carried by the resource processing request.
优选的,可以生成一个请求标识,客户端在资源访问请求和资源处理请求中都添加该请求标识,表示资源处理请求与资源访问请求的关联关系,说明资源处理请求中所携带的查询词,是资源访问请求所针对的URL地址是从与该查询词相匹配的搜索结果中获得的。Preferably, a request identifier may be generated, and the client adds the request identifier in the resource access request and the resource processing request, indicating the association relationship between the resource processing request and the resource access request, and indicating the query word carried in the resource processing request. The URL address for which the resource access request is directed is obtained from search results that match the query term.
S103,接收所述服务器发送的所述页面资源文件。S103. Receive the page resource file sent by the server.
具体的,服务器在获得页面资源文件后,需要向客户端返回该页面 资源文件,这样,客户端就可以接收服务器发送的该页面资源文件。Specifically, after obtaining the page resource file, the server needs to return the page to the client. The resource file, so that the client can receive the page resource file sent by the server.
S104,利用所述页面资源文件进行页面展现。S104. Perform page presentation by using the page resource file.
具体的,客户端利用页面模板,对从服务器接收到的页面资源文件进行渲染,以实现页面展现。Specifically, the client uses the page template to render the page resource file received from the server to implement page presentation.
可以理解的是,用户在搜索结果中选择了URL地址,因此用户只关心该URL地址中与查询词相关的资源,而那些与查询词无关的资源用户实质上并不关心。因此,本发明实施例中,所述页面资源文件中只包含与查询词相关的页面资源,而不包含与查询词无关的页面资源,使得客户端只加载了对用户有用的页面资源,减少与用户搜索需求无关的页面资源的加载,这部分页面资源往往是与用户的搜索需求无关的,因此不加载这部分页面资源并不会影响用户的体验,仍然可以满足用户的搜索需求,因此,本发明实施例的技术方案,在满足用户的搜索需求的前提下,可以提高页面展现的效率,还可以大大节省网络流量,降低网络压力。It can be understood that the user selects the URL address in the search result, so the user only cares about the resource related to the query word in the URL address, and the resource users who are not related to the query word are not concerned at all. Therefore, in the embodiment of the present invention, the page resource file only includes the page resource related to the query word, and does not include the page resource irrelevant to the query word, so that the client only loads the page resource useful to the user, and reduces The user searches for the loading of page resources that are not related to the requirements. This part of the page resources is often unrelated to the user's search requirements. Therefore, not loading the part of the page resources does not affect the user's experience, and can still satisfy the user's search requirements. The technical solution of the embodiment of the invention can improve the efficiency of page display under the premise of satisfying the search requirement of the user, and can also greatly save network traffic and reduce network pressure.
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于个人计算机(Personal Computer,PC)、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、手机、MP3播放器、MP4播放器等。It should be noted that the terminals involved in the embodiments of the present invention may include, but are not limited to, a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a tablet computer. Mobile phones, MP3 players, MP4 players, etc.
需要说明的是,S101~S104的执行主体可以为页面展现装置,该装置可以位于本地终端的应用,或者还可以为位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,本发明实施例对此不进行特别限定。It should be noted that the execution body of S101-S104 may be a page display device, and the device may be located in an application of a local terminal, or may be a plug-in or a software development kit (SDK) located in an application of the local terminal. The functional unit is not particularly limited in this embodiment of the present invention.
可以理解的是,所述应用可以是安装在终端上的应用程序 (nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本发明实施例对此不进行限定。It can be understood that the application can be an application installed on the terminal. (nativeApp), or a webpage program (webApp) of the browser on the terminal, which is not limited by the embodiment of the present invention.
实施例二Embodiment 2
本发明实施例还给出一种页面展现方法,请参考图2,其为本发明实施例所提供的页面展现方法的实施例二的流程示意图,如图所示,该方法包括以下步骤:The embodiment of the present invention further provides a page display method. Referring to FIG. 2, it is a schematic flowchart of Embodiment 2 of a page display method according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:
S201,接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL。S201. Receive a query word matched by a search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result.
具体的,服务器可以接收到客户端根据URL地址发送的搜索结果所匹配的查询词,该URL地址为用户在搜索结果中触发的URL。Specifically, the server may receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result.
其中,服务器可以接收到客户端发送的针对URL地址的资源访问请求,从该资源访问请求中获得所述查询词。或者,服务器也可以接收到客户端发送的针对URL地址的资源访问请求,以及客户端发送的资源处理请求,从该资源处理请求中获得所述查询词。The server may receive a resource access request sent by the client for the URL address, and obtain the query word from the resource access request. Alternatively, the server may also receive a resource access request sent by the client for the URL address, and a resource processing request sent by the client, and obtain the query word from the resource processing request.
S202,根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源。S202. Obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word.
具体的,服务器根据客户端发送的搜索结果所匹配的查询词,获得该URL地址对应的页面资源文件,其中,该页面资源文件中只包含与该查询词相关的页面资源,不包括与该查询词无关的页面资源。Specifically, the server obtains a page resource file corresponding to the URL address according to the query word matched by the search result sent by the client, where the page resource file only includes the page resource related to the query word, and does not include the query Word-independent page resources.
举例说明,本发明实施例中,服务器根据所述查询词,获得所述URL地址对应的页面资源文件的方法可以包括:首先,获得与所述URL地址对应的页面资源。然后,根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源。最后,利用与所述查询词相关的页 面资源,获得所述URL地址对应的页面资源文件。For example, in the embodiment of the present invention, the method for the server to obtain the page resource file corresponding to the URL address according to the query word may include: first, obtaining a page resource corresponding to the URL address. Then, according to the query word, a page resource related to the query word in the page resource corresponding to the URL is obtained. Finally, using the page associated with the query term The surface resource obtains a page resource file corresponding to the URL address.
例如,请参考图3,其为本发明实施例所提供的页面展现方法所应用的系统的第一示例图,如图所示,首先,所述服务器获得与URL地址对应的页面资源。然后,所述服务器根据所述查询词,在所述URL对应的页面资源中删除与所述查询词无关的页面资源。最后,所述服务器根据经过删除操作后得到的页面资源,生成所述URL地址对应的页面资源文件。For example, please refer to FIG. 3 , which is a first example diagram of a system to which a page display method according to an embodiment of the present invention is applied. As shown in the figure, first, the server obtains a page resource corresponding to a URL address. Then, the server deletes the page resource irrelevant to the query word in the page resource corresponding to the URL according to the query word. Finally, the server generates a page resource file corresponding to the URL address according to the page resource obtained after the deletion operation.
优选的,所述服务器可以为提供该URL地址对应的页面资源的第三方服务器。Preferably, the server may be a third-party server that provides a page resource corresponding to the URL address.
可以理解的是,所述服务器可以根据URL地址,从数据库中获得该URL地址对应的页面资源,获得的页面资源中包括该URL地址本身所指示的页面资源,该URL地址作为与用户的查询词相匹配的搜索结果,所以该URL地址本身所指示的页面资源是与查询词相关的页面资源。此外,获得的页面资源中还包括一些其他资源,如广告、推荐的新闻的图片和标题、推荐的网站等,这些其他资源往往是与用户的查询词无关的页面资源。It can be understood that the server can obtain the page resource corresponding to the URL address from the database according to the URL address, and the obtained page resource includes the page resource indicated by the URL address itself, and the URL address is used as a query word with the user. Matching search results, so the page resource indicated by the URL address itself is the page resource associated with the query term. In addition, the obtained page resources include some other resources, such as advertisements, pictures and titles of recommended news, recommended websites, etc. These other resources are often page resources that are not related to the user's query words.
优选的,所述服务器可以根据查询词,在获得的URL地址对应的页面资源中,找到与查询词无关的页面资源,进而在获得的URL地址对应的页面资源中,删除与查询词无关的页面资源,从而可以实现只保留与查询词相关的页面资源。Preferably, the server may find a page resource that is not related to the query word in the page resource corresponding to the obtained URL address according to the query word, and delete the page irrelevant to the query word in the page resource corresponding to the obtained URL address. Resources, so that you can only retain page resources related to the query term.
优选的,本发明实施例中,根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源的方法可以包括但不限于:Preferably, in the embodiment of the present invention, the method for obtaining the page resource related to the query word in the page resource corresponding to the URL according to the query word may include, but is not limited to:
获取所述查询词与所述URL对应的页面资源的相关度,然后利用预 设的相关度阈值,获取与所述查询词的相关度大于或者等于所述相关度阈值的页面资源,以作为与所述查询词相关的页面资源,相当于,与所述查询词的相关度小于所述相关度阈值的页面资源,作为与所述查询词无关的页面资源。Obtaining a correlation between the query word and a page resource corresponding to the URL, and then using the pre- Setting a relevance threshold, obtaining a page resource whose correlation degree with the query word is greater than or equal to the relevance threshold, as a page resource related to the query word, and corresponding to the relevance of the query word A page resource that is smaller than the relevance threshold as a page resource that is unrelated to the query term.
例如,可以计算推荐的新闻的标题与查询词的相关度,如果相关度大于或者等于预设的相关阈值,则认为该推荐的新闻是与查询词相关的页面资源。反之,如果相关度小于预设的相关阈值,则认为该推荐的新闻是与查询词无关的页面资源,在抓取到的URL对应的页面资源中,删除该推荐的新闻的标题、图片等信息。For example, the relevance of the title of the recommended news to the query term may be calculated, and if the relevance is greater than or equal to the preset relevant threshold, the recommended news is considered to be a page resource related to the query term. On the other hand, if the relevance is less than the preset related threshold, the recommended news is a page resource that is not related to the query word, and the title, picture, and the like of the recommended news are deleted in the page resource corresponding to the captured URL. .
例如,服务器可以利用制作页面的语言,并根据对经过删除操作后得到的页面资源,生成URL地址对应的页面资源文件。For example, the server may use the language of the page to be created, and generate a page resource file corresponding to the URL address according to the page resource obtained after the deletion operation.
例如,制作页面的语言可以包括但不限于:页面描述语言(Program Design Language,PDL)或者超文本标记语言(Hyper Text Mark-up Language,HTML)等。For example, the language for making a page may include, but is not limited to, a Program Design Language (PDL) or a Hyper Text Mark-up Language (HTML).
或者,再例如,请参考图4,其为本发明实施例所提供的页面展现方法所应用的系统的第二示例图,如图所示,该服务器在从客户端获得的针对URL的资源访问请求后,向其他服务器转发针对该URL地址的资源访问请求,以使得所述其他服务器获得所述URL地址对应的页面资源,以及根据所述页面资源生成页面资源文件,并向该服务器发送页面资源文件,这样,该服务器就可以接收到其他服务器发送的所述页面资源文件。然后,该服务器根据所述查询词,在所述页面资源文件中删除与所述查询词无关的页面资源,只保留与查询词相关的页面资源,以获得所述URL地址对应的页面资源文件。 Or, for example, please refer to FIG. 4 , which is a second example diagram of a system to which a page display method is provided according to an embodiment of the present invention. As shown, the server accesses a resource for a URL obtained from a client. After the request, the resource access request for the URL address is forwarded to the other server, so that the other server obtains the page resource corresponding to the URL address, and generates a page resource file according to the page resource, and sends the page resource to the server. The file, in this way, the server can receive the page resource file sent by other servers. Then, the server deletes the page resource irrelevant to the query word in the page resource file according to the query word, and only retains the page resource related to the query word to obtain the page resource file corresponding to the URL address.
优选的,本方法中,所述服务器为与客户端对应的服务器,其他服务器是提供该URL地址对应的页面资源的第三方服务器。由于与客户端对应的服务器没有URL地址对应的页面资源,因此,需要从第三方服务器获得该URL地址对应的页面资源。Preferably, in the method, the server is a server corresponding to the client, and the other server is a third-party server that provides a page resource corresponding to the URL address. Since the server corresponding to the client does not have a page resource corresponding to the URL address, the page resource corresponding to the URL address needs to be obtained from the third-party server.
可以理解的是,客户端直接向提供页面资源的第三方服务器发起资源访问请求,由第三方服务器执行与查询词无关的页面资源的删除操作。或者,客户端向自身对应的服务器发起资源访问请求,以使得该服务器从第三方服务器获得URL地址对应的页面资源,并由客户端对应的服务器来执行与查询词无关的页面资源的删除操作。It can be understood that the client directly initiates a resource access request to a third-party server that provides a page resource, and the third-party server performs a delete operation of the page resource that is unrelated to the query term. Alternatively, the client initiates a resource access request to the server corresponding to the server, so that the server obtains the page resource corresponding to the URL address from the third-party server, and the server corresponding to the client performs the deletion operation of the page resource irrelevant to the query term.
例如,所述其他服务器可以根据URL地址,从数据库获得对应的页面资源,进而根据获得的页面资源,并利用制作页面的语言,生成页面资源文件,将该页面资源文件返回给所述服务器。其中,该页面资源文件中包含与查询词相关的页面资源和与查询词无关的页面资源。For example, the other server may obtain a corresponding page resource from the database according to the URL address, and then generate a page resource file according to the obtained page resource and use the language of the created page, and return the page resource file to the server. The page resource file includes a page resource related to the query word and a page resource not related to the query word.
优选的,所述服务器在从其他服务器获得页面资源文件后,根据从客户端收到的查询词,在该页面资源文件中找到与查询词无关的页面资源,并在页面资源文件中删除该与查询词无关的页面资源,删除操作后获得的页面资源文件就是URL地址对应的页面资源文件,删除操作后获得的页面资源文件才是需要返回给客户端的页面资源文件,以使得该客户端利用删除操作后获得的页面资源文件进行页面展现。Preferably, after obtaining the page resource file from the other server, the server finds a page resource unrelated to the query word in the page resource file according to the query word received from the client, and deletes the page resource in the page resource file. The page resource file that is not related to the query word is the page resource file corresponding to the URL address after the deletion operation, and the page resource file obtained after the deletion operation is the page resource file that needs to be returned to the client, so that the client uses the deletion. The page resource file obtained after the operation is displayed on the page.
S203,向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。S203. Send the page resource file to the client, so that the client uses the page resource file to perform page presentation.
具体的,所述服务器在获得所述URL地址对应的页面资源文件后,需要向客户端发送该页面资源文件,以使得客户端可以利用页面模板, 对该页面资源文件进行渲染,以实现向用户展现页面。Specifically, after obtaining the page resource file corresponding to the URL address, the server needs to send the page resource file to the client, so that the client can use the page template. The page resource file is rendered to enable the page to be presented to the user.
可以理解的是,用户在搜索结果中选择了URL地址,因此用户只关心该URL地址中与查询词相关的资源,而那些与查询词无关的资源用户实质上并不关心。因此,本发明实施例中,所述页面资源文件中删除了与查询词无关的页面资源,只包含与查询词相关的页面资源,使得客户端在利用该页面资源文件展现页面时,只加载了对用户有用的页面资源,减少与用户搜索需求无关的页面资源的加载,这部分页面资源往往是与用户的搜索需求无关的,因此不加载这部分页面资源并不会影响用户的体验,仍然是可以满足用户的搜索需求的,因此,本发明实施例的技术方案,在满足用户的搜索需求的前提下,可以提高页面展现的效率,还可以大大节省网络流量,降低网络压力。It can be understood that the user selects the URL address in the search result, so the user only cares about the resource related to the query word in the URL address, and the resource users who are not related to the query word are not concerned at all. Therefore, in the embodiment of the present invention, the page resource file is deleted from the page resource file, and only the page resource related to the query word is included, so that the client only loads the page when using the page resource file to display the page. Useful page resources for users, reducing the loading of page resources that are not related to user search requirements. This part of the page resources is often independent of the user's search requirements, so not loading this part of the page resources will not affect the user's experience, still The technical solution of the embodiment of the present invention can improve the efficiency of page display under the premise of satisfying the search requirement of the user, and can greatly save network traffic and reduce network pressure.
本发明实施例进一步给出实现上述方法实施例中各步骤及方法的装置实施例。Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
实施例三Embodiment 3
请参考图5,其为本发明实施例所提供的页面展现装置的实施例一的功能方块图。如图所示,该装置是实施例一所提供的页面展现方法的执行主体,该装置包括:Please refer to FIG. 5 , which is a functional block diagram of Embodiment 1 of a page display apparatus according to an embodiment of the present invention. As shown in the figure, the device is an execution body of the page presentation method provided in Embodiment 1, and the device includes:
链接获取单元501,用于获得用户在搜索结果中触发的统一资源定位符URL地址;a link obtaining unit 501, configured to obtain a uniform resource locator URL address triggered by the user in the search result;
信息输出单元502,用于根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源; The information output unit 502 is configured to send, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, The page resource file only contains page resources related to the query word;
信息输入单元503,用于接收所述服务器发送的所述页面资源文件;The information input unit 503 is configured to receive the page resource file sent by the server;
页面展现单元504,用于利用所述页面资源文件进行页面展现。The page presentation unit 504 is configured to perform page presentation by using the page resource file.
优选的,所述信息输出单元502,具体用于:Preferably, the information output unit 502 is specifically configured to:
向所述服务器发送针对所述URL地址的资源访问请求,所述资源访问请求携带所述查询词;或者,Sending, by the server, a resource access request for the URL address, where the resource access request carries the query word; or
向所述服务器发送针对所述URL地址的资源访问请求,以及发送资源处理请求,所述资源处理请求携带所述查询词。Sending a resource access request for the URL address to the server, and transmitting a resource processing request, the resource processing request carrying the query word.
由于本实施例中的各单元能够执行图1所示的方法,本实施例未详细描述的部分,可参考对图1的相关说明。Since the units in this embodiment can perform the method shown in FIG. 1, and the parts not described in detail in this embodiment, reference may be made to the related description of FIG.
实施例四Embodiment 4
请参考图6,其为本发明实施例所提供的页面展现装置的实施例二的功能方块图。如图所示,该装置是实施例二所提供的页面展现方法的执行主体,该装置包括:Please refer to FIG. 6 , which is a functional block diagram of Embodiment 2 of a page display apparatus according to an embodiment of the present invention. As shown in the figure, the device is an execution body of the page presentation method provided by the second embodiment, and the device includes:
信息输入单元601,用于接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;The information input unit 601 is configured to receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
资源处理单元602,用于根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;The resource processing unit 602 is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
信息输出单元603,用于向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。The information output unit 603 is configured to send the page resource file to the client, so that the client uses the page resource file to perform page presentation.
优选的,所述资源处理单元602,具体用于:Preferably, the resource processing unit 602 is specifically configured to:
获得与所述URL地址对应的页面资源;Obtaining a page resource corresponding to the URL address;
根据所述查询词,获得所述URL对应的页面资源中与所述查询词相 关的页面资源;Obtaining, according to the query word, a page resource corresponding to the URL, and the query word Closed page resources;
利用与所述查询词相关的页面资源,获得所述URL地址对应的页面资源文件。The page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
优选的,所述资源处理单元602用于根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源时,具体用于:Preferably, the resource processing unit 602 is configured to: when obtaining the page resource related to the query word in the page resource corresponding to the URL, according to the query word, specifically:
获取所述查询词与所述URL对应的页面资源的相关度;Obtaining a correlation between the query word and a page resource corresponding to the URL;
利用预设的相关度阈值,获取与所述查询词的相关度大于或者等于所述相关度阈值的页面资源,以作为与所述查询词相关的页面资源。The page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
由于本实施例中的各单元能够执行图2所示的方法,本实施例未详细描述的部分,可参考对图2的相关说明。Since the units in this embodiment can perform the method shown in FIG. 2, and the parts not described in detail in this embodiment, reference may be made to the related description of FIG. 2.
实施例四Embodiment 4
请参考图7,其为本发明实施例所提供的页面展现系统的结构示意图。如图所示,该系统包括:客户端701和服务器702;其中,Please refer to FIG. 7 , which is a schematic structural diagram of a page display system according to an embodiment of the present invention. As shown, the system includes: a client 701 and a server 702; wherein
所述客户端701,用于获得用户在搜索结果中触发的统一资源定位符URL地址,以及根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词;The client 701 is configured to obtain a uniform resource locator URL address triggered by the user in the search result, and send, according to the URL address, a query word matched by the search result to the server;
所述服务器702,用于根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源,以及向所述客户端发送所述页面资源文件;The server 702 is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word, and sends the page resource to the client Page resource file;
所述客户端701,还用于利用所述页面资源文件进行页面展现。The client 701 is further configured to perform page presentation by using the page resource file.
本发明实施例的技术方案具有以下有益效果:The technical solution of the embodiment of the invention has the following beneficial effects:
本发明实施例中,当用户在搜索结果中触发的URL地址后,从服务器获得的所述URL地址对应的页面资源文件中,只包含与所述查询词相 关的页面资源。与现有技术中,获得的页面资源文件中还包含与用户搜索的查询词无关的页面资源的技术方案相比,本发明实施例提供的技术方案中,只加载了对用户有用的页面资源,减少与用户搜索需求无关的页面资源的加载,从而能够提高页面资源加载效率,提高页面展现效率。In the embodiment of the present invention, after the URL address triggered by the user in the search result, the page resource file corresponding to the URL address obtained from the server includes only the query word. Off page resources. Compared with the prior art, the obtained page resource file further includes a page resource that is not related to the query word searched by the user. In the technical solution provided by the embodiment of the present invention, only the page resource useful to the user is loaded. Reduce the loading of page resources that are not related to user search requirements, thereby improving page resource loading efficiency and improving page rendering efficiency.
另外,从服务器获得的页面资源文件中,将不再包含与查询词无关的页面资源,因此可以减少与服务器之间的传输数据量,从而节省网络流量,降低网络压力。In addition, the page resource file obtained from the server will no longer contain page resources that are not related to the query word, so the amount of data transmitted between the server and the server can be reduced, thereby saving network traffic and reducing network pressure.
此外,现有技术中,为了实现对页面资源的优化,需要对页面资源进行数据压缩处理或者转码处理,而转码处理使得页面展现效率比较低,数据压缩处理导致被压缩的图片质量较低。本发明实施例所提供的技术方案,既不影响页面展现效率,也不会影响页面展现质量,能够满足用户的浏览需求。In addition, in the prior art, in order to optimize the page resources, data compression processing or transcoding processing is required on the page resources, and the transcoding processing makes the page display efficiency low, and the data compression processing results in the compressed image quality is low. . The technical solution provided by the embodiment of the present invention does not affect the page display efficiency, and does not affect the page presentation quality, and can satisfy the browsing requirement of the user.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims (15)

  1. 一种页面展现方法,其特征在于,所述方法包括:A page presentation method, characterized in that the method comprises:
    获得用户在搜索结果中触发的统一资源定位符URL地址;Obtaining a uniform resource locator URL address triggered by the user in the search result;
    根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Sending, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page resource file only includes The page resource related to the query word;
    接收所述服务器发送的所述页面资源文件;Receiving the page resource file sent by the server;
    利用所述页面资源文件进行页面展现。The page resource file is used to perform page presentation.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,包括:The method according to claim 1, wherein the sending, according to the URL address, a query word matched by the search result to a server, includes:
    向所述服务器发送针对所述URL地址的资源访问请求,所述资源访问请求携带所述查询词;或者,Sending, by the server, a resource access request for the URL address, where the resource access request carries the query word; or
    向所述服务器发送针对所述URL地址的资源访问请求,以及发送资源处理请求,所述资源处理请求携带所述查询词。Sending a resource access request for the URL address to the server, and transmitting a resource processing request, the resource processing request carrying the query word.
  3. 一种页面展现方法,其特征在于,所述方法包括:A page presentation method, characterized in that the method comprises:
    接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;Receiving a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
    根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
    向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。Sending the page resource file to the client, so that the client uses the page resource file to perform page presentation.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述查询词,获得所述URL地址对应的页面资源文件,包括: The method according to claim 3, wherein the obtaining a page resource file corresponding to the URL address according to the query word comprises:
    获得与所述URL地址对应的页面资源;Obtaining a page resource corresponding to the URL address;
    根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource related to the query word in a page resource corresponding to the URL;
    利用与所述查询词相关的页面资源,获得所述URL地址对应的页面资源文件。The page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源,包括:The method according to claim 4, wherein the obtaining, according to the query word, the page resource related to the query word in the page resource corresponding to the URL, comprising:
    获取所述查询词与所述URL对应的页面资源的相关度;Obtaining a correlation between the query word and a page resource corresponding to the URL;
    利用预设的相关度阈值,获取与所述查询词的相关度大于或者等于所述相关度阈值的页面资源,以作为与所述查询词相关的页面资源。The page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
  6. 一种页面展现装置,其特征在于,所述装置包括:A page presentation device, characterized in that the device comprises:
    链接获取单元,用于获得用户在搜索结果中触发的统一资源定位符URL地址;a link obtaining unit, configured to obtain a uniform resource locator URL address triggered by the user in the search result;
    信息输出单元,用于根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;An information output unit, configured to send, according to the URL address, a query word matched by the search result to a server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page The resource file only contains page resources related to the query word;
    信息输入单元,用于接收所述服务器发送的所述页面资源文件;An information input unit, configured to receive the page resource file sent by the server;
    页面展现单元,用于利用所述页面资源文件进行页面展现。a page presentation unit, configured to perform page presentation by using the page resource file.
  7. 根据权利要求6所述的装置,其特征在于,所述信息输出单元,具体用于:The device according to claim 6, wherein the information output unit is specifically configured to:
    向所述服务器发送针对所述URL地址的资源访问请求,所述资源访问请求携带所述查询词;或者, Sending, by the server, a resource access request for the URL address, where the resource access request carries the query word; or
    向所述服务器发送针对所述URL地址的资源访问请求,以及发送资源处理请求,所述资源处理请求携带所述查询词。Sending a resource access request for the URL address to the server, and transmitting a resource processing request, the resource processing request carrying the query word.
  8. 一种页面展现装置,其特征在于,所述装置包括:A page presentation device, characterized in that the device comprises:
    信息输入单元,用于接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;The information input unit is configured to receive a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
    资源处理单元,用于根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;a resource processing unit, configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
    信息输出单元,用于向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。And an information output unit, configured to send the page resource file to the client, so that the client uses the page resource file to perform page presentation.
  9. 根据权利要求8所述的装置,其特征在于,所述资源处理单元,具体用于:The device according to claim 8, wherein the resource processing unit is specifically configured to:
    获得与所述URL地址对应的页面资源;Obtaining a page resource corresponding to the URL address;
    根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource related to the query word in a page resource corresponding to the URL;
    利用与所述查询词相关的页面资源,获得所述URL地址对应的页面资源文件。The page resource file corresponding to the URL address is obtained by using a page resource related to the query word.
  10. 根据权利要求9所述的装置,其特征在于,所述资源处理单元用于根据所述查询词,获得所述URL对应的页面资源中与所述查询词相关的页面资源时,具体用于:The device according to claim 9, wherein the resource processing unit is configured to: when obtaining, according to the query word, a page resource related to the query word in a page resource corresponding to the URL, specifically used for:
    获取所述查询词与所述URL对应的页面资源的相关度;Obtaining a correlation between the query word and a page resource corresponding to the URL;
    利用预设的相关度阈值,获取与所述查询词的相关度大于或者等于所述相关度阈值的页面资源,以作为与所述查询词相关的页面资源。The page resource with the relevance of the query word greater than or equal to the relevance threshold is obtained as a page resource related to the query word by using a preset relevance threshold.
  11. 一种页面展现系统,其特征在于,所述系统包括:客户端和服 务器;其中,A page presentation system, characterized in that the system comprises: a client kimono Server; among them,
    所述客户端,用于获得用户在搜索结果中触发的统一资源定位符URL地址,以及根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词;The client is configured to obtain a uniform resource locator URL address triggered by the user in the search result, and send, according to the URL address, a query word matched by the search result to the server;
    所述服务器,用于根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源,以及向所述客户端发送所述页面资源文件;The server is configured to obtain, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word, and send the message to the client Page resource file
    所述客户端,还用于利用所述页面资源文件进行页面展现。The client is further configured to perform page presentation by using the page resource file.
  12. 一种设备,包括:A device that includes:
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
    获得用户在搜索结果中触发的统一资源定位符URL地址;Obtaining a uniform resource locator URL address triggered by the user in the search result;
    根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Sending, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page resource file only includes The page resource related to the query word;
    接收所述服务器发送的所述页面资源文件;Receiving the page resource file sent by the server;
    利用所述页面资源文件进行页面展现。The page resource file is used to perform page presentation.
  13. 一种设备,包括:A device that includes:
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中, 当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, When executed by the one or more processors:
    接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;Receiving a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
    根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Obtaining, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
    向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。Sending the page resource file to the client, so that the client uses the page resource file to perform page presentation.
  14. 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:A non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causing the device to:
    获得用户在搜索结果中触发的统一资源定位符URL地址;Obtaining a uniform resource locator URL address triggered by the user in the search result;
    根据所述URL地址,向服务器发送所述搜索结果所匹配的查询词,以使得所述服务器根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源;Sending, according to the URL address, a query word matched by the search result to the server, so that the server obtains a page resource file corresponding to the URL address according to the query word, where the page resource file only includes The page resource related to the query word;
    接收所述服务器发送的所述页面资源文件;Receiving the page resource file sent by the server;
    利用所述页面资源文件进行页面展现。The page resource file is used to perform page presentation.
  15. 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:A non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causing the device to:
    接收客户端根据URL地址发送的搜索结果所匹配的查询词,所述URL地址为用户在所述搜索结果中触发的URL;Receiving a query word matched by the search result sent by the client according to the URL address, where the URL address is a URL triggered by the user in the search result;
    根据所述查询词,获得所述URL地址对应的页面资源文件,所述页面资源文件中只包含与所述查询词相关的页面资源; Obtaining, according to the query word, a page resource file corresponding to the URL address, where the page resource file includes only page resources related to the query word;
    向所述客户端发送所述页面资源文件,以使得所述客户端利用所述页面资源文件进行页面展现。 Sending the page resource file to the client, so that the client uses the page resource file to perform page presentation.
PCT/CN2015/081758 2015-03-26 2015-06-18 Page display method, device, system and non-volatile computer storage medium WO2016150017A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510137057.0A CN104794165B (en) 2015-03-26 2015-03-26 A kind of webpage representation method, apparatus and system
CN201510137057.0 2015-03-26

Publications (1)

Publication Number Publication Date
WO2016150017A1 true WO2016150017A1 (en) 2016-09-29

Family

ID=53558957

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081758 WO2016150017A1 (en) 2015-03-26 2015-06-18 Page display method, device, system and non-volatile computer storage medium

Country Status (2)

Country Link
CN (1) CN104794165B (en)
WO (1) WO2016150017A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883225A (en) * 2021-02-02 2021-06-01 聚好看科技股份有限公司 Media resource searching and displaying method and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948087B (en) * 2017-12-05 2021-11-16 Oppo广东移动通信有限公司 Webpage resource obtaining method and device and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8126930B2 (en) * 2008-05-06 2012-02-28 Yahoo! Inc. Micro-bucket testing for page optimization
CN103577595A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Keyword pushing method and device based on current browse webpage
US20140236941A1 (en) * 2012-04-06 2014-08-21 Enlyton, Inc. Discovery engine
CN104063471A (en) * 2011-12-29 2014-09-24 北京奇虎科技有限公司 Method and system for carrying out web page browsing on mobile terminal
CN104111944A (en) * 2013-04-19 2014-10-22 阿里巴巴集团控股有限公司 Page processing method and device and page generating method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6834297B1 (en) * 2000-10-06 2004-12-21 Redline Networks, Inc. Web resource transfer acceleration system and method
KR20010000681A (en) * 2000-10-12 2001-01-05 이한승 Two step search method that uses internet address form of route
US8150824B2 (en) * 2003-12-31 2012-04-03 Google Inc. Systems and methods for direct navigation to specific portion of target document
CN100476830C (en) * 2007-06-07 2009-04-08 北京金山软件有限公司 Network resource searching method and system
CN103092945B (en) * 2013-01-11 2019-11-26 北京百度网讯科技有限公司 A kind of searching method and device returned based on interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8126930B2 (en) * 2008-05-06 2012-02-28 Yahoo! Inc. Micro-bucket testing for page optimization
CN104063471A (en) * 2011-12-29 2014-09-24 北京奇虎科技有限公司 Method and system for carrying out web page browsing on mobile terminal
US20140236941A1 (en) * 2012-04-06 2014-08-21 Enlyton, Inc. Discovery engine
CN104111944A (en) * 2013-04-19 2014-10-22 阿里巴巴集团控股有限公司 Page processing method and device and page generating method and device
CN103577595A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Keyword pushing method and device based on current browse webpage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883225A (en) * 2021-02-02 2021-06-01 聚好看科技股份有限公司 Media resource searching and displaying method and equipment
CN112883225B (en) * 2021-02-02 2022-10-11 聚好看科技股份有限公司 Media resource searching and displaying method and equipment

Also Published As

Publication number Publication date
CN104794165B (en) 2018-08-10
CN104794165A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
US10146750B2 (en) Method, apparatus, terminal, and storage medium for image processing
WO2015161658A1 (en) Webpage resource loading method and device
US10817653B2 (en) Optimizing loading of web page based on aggregated user preferences for web page elements of web page
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
US10200386B2 (en) Intelligent web page content blocking
WO2017012234A1 (en) Information acquiring method and apparatus, device, and computer storage medium
TW201723897A (en) Method, device, and system for displaying information associated with a web page
WO2015043428A1 (en) Method, system, browser and proxy server for loading webpage
US20150193832A1 (en) Method, apparatus, and system for communicating and presenting product information
US20110314077A1 (en) Identification of compatible products for use with mobile devices
CN111756847B (en) Method and device for supporting https protocol by website
WO2016173185A1 (en) Information pushing method and apparatus
CN108334516B (en) Information pushing method and device
CN111078986A (en) Data retrieval method, device and computer readable storage medium
JP2010146332A (en) Information processing apparatus, system, method and program for providing information and recording medium
CN109871354B (en) File processing method and device
WO2016150017A1 (en) Page display method, device, system and non-volatile computer storage medium
WO2018111307A1 (en) Content search engine
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
TW201344607A (en) Business object determination method and determination device
CN112528178A (en) Advertisement putting method, device and system and client
US11138287B1 (en) System for reducing size of transmitted content
WO2022135410A1 (en) Method and apparatus for loading source file
WO2016115817A1 (en) Search method, apparatus and device, and nonvolatile computer storage medium
KR20180088260A (en) Method and apparatus for generating web pages

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15885955

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15885955

Country of ref document: EP

Kind code of ref document: A1