CN114461944A - Search result display method and device and electronic equipment - Google Patents

Search result display method and device and electronic equipment Download PDF

Info

Publication number
CN114461944A
CN114461944A CN202210062370.2A CN202210062370A CN114461944A CN 114461944 A CN114461944 A CN 114461944A CN 202210062370 A CN202210062370 A CN 202210062370A CN 114461944 A CN114461944 A CN 114461944A
Authority
CN
China
Prior art keywords
search result
display
display module
module
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210062370.2A
Other languages
Chinese (zh)
Other versions
CN114461944B (en
Inventor
谢继昆
曾鹏
王博通
梁兴国
刘瑞龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210062370.2A priority Critical patent/CN114461944B/en
Publication of CN114461944A publication Critical patent/CN114461944A/en
Application granted granted Critical
Publication of CN114461944B publication Critical patent/CN114461944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a display method of search results, which relates to the technical field of data processing, in particular to the fields of cloud service, big data, search technology and the like. The specific implementation scheme is as follows: after sending a search request to a server, a client can receive a first search result and a second search result corresponding to the search request returned by the server, render the first search result by using a first renderer to generate a first display module, render the second search result by using a second renderer to generate a second display module, and then display the search results based on the first display module and the second display module. Therefore, different renderers are used for rendering and displaying different search results, so that the display form of the search results is enriched on the basis of ensuring the page loading speed, and the immersive search result browsing function is realized.

Description

Search result display method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of data processing, in particular to the fields of cloud service, big data, search technology and the like, and particularly relates to a display method and device of search results and electronic equipment.
Background
With the development of internet technology, people have more and more demands on searching. With diversification of data formats of search results, how to provide a better search result display mode is a problem that needs to be solved urgently by search services at present.
Disclosure of Invention
The disclosure provides a display method and device of search results.
According to an aspect of the present disclosure, a method for displaying search results is provided, including:
sending a search request to a server;
receiving a first search result and a second search result which are returned by the server and correspond to the search request;
rendering the first search result by using a first renderer to generate a first display module;
rendering the second search result by using a second renderer to generate a second display module;
and displaying the search result based on the first display module and the second display module.
According to another aspect of the present disclosure, there is provided a search result presentation apparatus including:
the sending module is used for sending a search request to the server;
the receiving module is used for receiving a first search result and a second search result which are returned by the server and correspond to the search request;
the first rendering module is used for rendering the first search result by using a first renderer to generate a first display module;
the second rendering module is used for rendering the second search result by using a second renderer to generate a second display module;
and the display module is used for displaying the search result based on the first display module and the second display module.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the above embodiments.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to the above-described embodiments.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method of the above embodiment.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a method for displaying search results according to an embodiment of the present disclosure;
fig. 2 is a process diagram of a method for displaying search results according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a page display area according to an embodiment of the disclosure;
fig. 4 is a schematic flowchart of another method for displaying search results according to the embodiment of the present disclosure;
fig. 5 is a schematic diagram of a page layout structure provided in the embodiment of the present disclosure;
fig. 6 is a schematic flowchart of another method for displaying search results according to the present disclosure;
fig. 7 is a schematic structural diagram of another apparatus for displaying search results according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of another apparatus for displaying search results according to an embodiment of the present disclosure;
fig. 9 is a block diagram of an electronic device for implementing a method for presenting search results according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Big data, or mass data, refers to the data that is too large to be captured, managed, processed and organized into information that can help enterprise business decision more actively within a reasonable time through the current mainstream software tools.
Cloud services are an augmentation, usage, and interaction model for internet-based related services, typically involving the provision of dynamically scalable and often virtualized resources over the internet. Cloud is a metaphor of network and internet. In the past, telecommunications networks were often represented by clouds and later also by the abstraction of the internet and the underlying infrastructure. The cloud service means that a required service is obtained through a network in an on-demand and easily-extensible manner. Such services may be IT and software, internet related, or other services. It means that computing power can also be circulated as a commodity over the internet.
The search technology means that with the rapid development of the internet and the increase of WEB information, a user needs to search information needed by the user in an information sea, just like a large sea fishing needle, and the search technology just solves the problem. The search engine is a website specially providing search service on the Internet, and the servers of the websites collect page information of a large number of websites on the Internet locally through network search software or network login and the like, and establish an information database and an index database through processing, so that various searches proposed by users are responded, and information or related pointers required by the users are provided. The user's search approach mainly includes free word full text search, keyword search, classified search and other special information search.
The following describes a method, an apparatus, an electronic device, and a storage medium for displaying search results according to embodiments of the present disclosure in detail with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a method for displaying search results according to an embodiment of the present disclosure. The method is performed by a client.
As shown in fig. 1, the method includes:
step 101, sending a search request to a server.
According to the method and the system, after the user inputs the search text in the search window in the client interface, the client can send the search request to the server according to the search text. Therefore, after receiving the search request of the client, the server can determine the corresponding search result and return the search result to the client.
And 102, receiving a first search result and a second search result which are returned by the server and correspond to the search request.
In the present disclosure, the client may determine the first search result and the second search result according to the display mode corresponding to each search result returned by the server.
The first search result may be a search result rendered by a NA (Native Application) component. The second search result may be a search result rendered with an H5(Hyper Text Markup Language 5, 5 th generation hypertext Markup Language) page renderer. The presentation mode may be a form in which the search result is presented on a page, and may include a dynamic presentation mode, a static presentation mode, and the like, which is not limited by the present disclosure.
In addition, the display mode corresponding to each search result can be preset in the database, and the server side can send the corresponding display mode to the client side while sending the search result to the client side.
In this disclosure, the search result corresponding to the dynamic display mode may be determined as the first search result, and the search result corresponding to the static display mode may be determined as the second search result. Therefore, the client can quickly classify the search results, and different processing is conveniently carried out on different search results.
Optionally, the client may further analyze each search result returned by the server to determine the first search result and the second search result.
For example, the client may determine the first search result and the second search result according to a data format or a data type of each search result. In the present disclosure, data in formats such as audio and video formats may be determined as a first search result, and data in formats such as text and picture may be determined as a second search result.
And 103, rendering the first search result by using a first renderer to generate a first display module.
The first renderer may be an NA component, and the first display module may be a display module configured to display a page rendered by the NA component.
It should be noted that the NA component can provide more functions, faster response speed and less communication overhead compared with the H5 page renderer. Therefore, the NA component can be used for rendering the data in the dynamic display mode so as to improve the fluency of page display.
In the disclosure, the client may render the first search result according to a preset page style by using the first renderer, so as to generate the first display module.
And 104, rendering the second search result by using a second renderer to generate a second display module.
Wherein the second renderer may be an H5 page renderer, and the second presentation module may be a presentation module for presenting a page rendered by the H5 page renderer.
It should be noted that, compared with the H5 page renderer, the NA component has a phenomenon that CSS (Cascading Style Sheets) styles cannot be applied to the NA component, and therefore, part of the search results can be rendered by the H5 page renderer to enrich the page styles.
In the present disclosure, the client may render the second search result according to the preset page style by using the second renderer, so as to generate the second display module. Therefore, the data in the static display mode can be rendered by the second renderer to realize the diversity of the page display styles.
And 105, displaying the search result based on the first display module and the second display module.
In the disclosure, display positions for displaying the first display module and the second display module may be preset in a page display area of the client, and then, each search result may be displayed in a corresponding position according to the style and layout of each search result in the first display module and the second display module.
According to the display method and the display device, after the client sends the search request to the server, the client can receive a first search result and a second search result which are returned by the server and correspond to the search request, then the first search result can be rendered by the first renderer to generate a first display module, the second search result is rendered by the second renderer to generate a second display module, and then the search result is displayed based on the first display module and the second display module. Therefore, different renderers are used for rendering and displaying different search results, so that the display form of the search results is enriched on the basis of ensuring the page loading speed, and the immersive search result browsing function is realized.
Fig. 2 is a schematic flowchart of a method for displaying search results according to an embodiment of the present disclosure. The method is performed by a client.
As shown in fig. 2, the method includes:
step 201, a search request is sent to a server.
Step 202, receiving a first search result and a second search result corresponding to the search request returned by the server.
Step 203, rendering the first search result by using a first renderer to generate a first display module.
And step 204, rendering the second search result by using a second renderer to generate a second display module.
In the present disclosure, the specific implementation process of steps 201 to 204 may refer to the detailed description of any embodiment in the present disclosure, and is not described herein again.
Step 205, when the page area occupied by the first display module is greater than or equal to the page display area, displaying the first display module in the display area, and displaying the page control associated with the second display module in a preset area of the page.
The page control associated with the second presentation module may be a control for controlling the display of the second presentation module.
In the disclosure, the first search result is a search result in a dynamic presentation mode, and therefore, the first presentation module can be preferentially presented in the page presentation area, so that the immersive experience of the user can be enhanced.
In the disclosure, when the content of the first search result is more, the page display area occupied by the generated first display module may be larger, so that the page display area can be used for displaying the first display module, and the page control associated with the second display module is displayed in the preset area of the page, so that the user can quickly call the second display module when needing to check the search result of the static display type. In addition, the content displayed in the page display area by the first display module can be updated through the up-and-down sliding operation in the page display area, so that the user can conveniently view all the first search results.
For example, as shown in fig. 3, fig. 3 is a schematic diagram of a page display area. In fig. 3a, assuming that the page area occupied by the first presentation module is larger than the page presentation area, the page presentation area may be used for presenting the first presentation module in its entirety, and the page control 301 associated with the second presentation module is presented at the bottom of the page.
And step 206, splicing and displaying the first display module and the second display module in the display area under the condition that the page area occupied by the first display module is smaller than the display area.
In the disclosure, when the content of the first search result is less, the generated first presentation module may occupy a smaller page area. When the page area occupied by the first display module is smaller than the display area, the first display module can be preferentially displayed in the page display area, and the second display module can be displayed in the rest area.
For example, as shown in fig. 3b, it is assumed that the first display module only contains one first search result, and the first display module may only occupy half of the page display area, so that the first display module may be displayed in the upper half of the page display area, and the first display module is spliced in the lower half of the page display area for display.
And step 207, displaying the second display module in the display area under the condition that the first display module has no content to be displayed.
In this disclosure, when there is no first search result, there is no content to be displayed in the first display module, and at this time, the page display area may be used to display the second display module entirely.
For example, as shown in fig. 3c, if there is no corresponding first search result when searching for braised pork, at this time, the entire page display area may be used for displaying the second display module.
In the disclosure, after the client generates the first display module and the second display module respectively by using the first renderer and the second renderer, the first display module can be displayed in the display area and the page control associated with the second display module can be displayed in the preset area of the page under the condition that the page area occupied by the first display module is greater than or equal to the page display area. And under the condition that the page area occupied by the first display module is smaller than the display area, the first display module and the second display module can be spliced and displayed in the display area. In the case where there is no content to be displayed in the first display module, the second display module may be displayed in the display area. Therefore, the first presentation module is preferentially presented in the page presentation area, so that the immersive experience of the user for browsing the search results can be enhanced.
Fig. 4 is a schematic flowchart of a method for displaying search results according to an embodiment of the present disclosure. The method is performed by a client.
As shown in fig. 4, the method includes:
step 401, sending a search request to a server.
Step 402, receiving a first search result and a second search result corresponding to the search request returned by the server.
And 403, rendering the first search result by using a first renderer to generate a first display module.
Step 404, rendering the second search result by using a second renderer to generate a second display module.
In the present disclosure, the specific implementation process of steps 401 to 404 may refer to the detailed description of any embodiment in the present disclosure, and is not described herein again.
Step 405, in response to the page focus being currently located in the first presentation module, playing the first search result pointed to by the focus in the first presentation module.
In the present disclosure, the client may preset the page focus position in the system. When the page focus position is in the page display area occupied by the first display module, the first search result displayed by the page focus position can be automatically played. Therefore, the automatically played search result is determined through the focal position of the page, the process of playing the search result is simplified, and the immersive experience of browsing the search result by the user is enhanced.
Step 406, in response to receiving a drag instruction for a page control associated with the second presentation module in the presentation page, stopping playing the first search result.
The page control associated with the second presentation module may be a control for controlling the display of the second presentation module.
In the disclosure, when the user needs to view the second search result, a dragging instruction may be triggered by dragging the page control associated with the second display module, so as to call out the second display module. When the user needs to call the second display module, the user is not concerned with the first display result any more. Therefore, when the client receives a dragging instruction for a page control associated with the second presentation module in the presentation page, the client can stop playing the first search result in the first presentation module. Therefore, the function of stopping the first search result playing in time can be realized.
Step 407, displaying the second display module in the page display area.
In the disclosure, the second display module can be placed in the gesture processing module, so that the display position of the second display module can be controlled by dragging a gesture. Therefore, personalized display of the search results can be realized.
For example, as shown in fig. 5, fig. 5 is a schematic diagram of a page layout structure, and the page of fig. 5 includes a search box area and a page display area. The page display area comprises a bottom area and a content display area. The content display area comprises an upper layer and a lower layer, the lower layer is used for displaying the first display module, and the upper layer can be embedded into the gesture processing module and used for displaying the second display module. In addition, the default second display module is in a hidden state, and after a trigger instruction for displaying the second display module is received, the second display module can be displayed at a corresponding position.
In the disclosure, the client may determine the display position of the second display module in the display area according to the end position of the drag instruction, and then may display the second display module at the display position.
In the disclosure, when the user stops dragging the page control associated with the second display module, the gesture processing module may determine the position where dragging is stopped, and then determine an area from the bottom position to the position where dragging is stopped as the display area of the second display module, and display the second display module in the area.
For example, as shown in fig. 3, in fig. 3a, the page control associated with the second display module is located in the bottom area of the page, and when the page control is dragged to the position of the control in fig. 3b and the dragging is stopped, the second display module may be displayed in the area between the dragging stop position and the bottom position. In addition, when the page control is stopped at the position of fig. 3b, the page control may be continuously dragged to enlarge and reduce the display area of the second display module.
Optionally, the gesture processing module may monitor the dragged position in real time, determine the current dragged position and the bottom position as the display area of the second display module, and then adjust the content displayed by the second display module in the page display area in real time according to a change of the display area of the second display module.
Optionally, when the page display area displays all the second display modules, the second display module may be hidden by triggering a vertically downward sliding operation from the top of the page display area, so that the first display module is displayed. Further, the sliding operation in which the end position of the sliding is located below the start position of the sliding may be determined as the vertically downward sliding operation.
Optionally, in response to receiving the sliding operation in the first direction at the bottom of the first display module, stopping playing the first search result in the first display module, and displaying the second display module in the display area
Wherein, the first direction may be a vertical direction. The sliding operation in which the end position of the sliding is located above the start position of the sliding may be determined as the vertically upward sliding operation.
In the disclosure, when in the page display area, the bottom of the first display module is displayed in the page display area through a vertical upward sliding operation. And then, when the sliding operation is continued in the vertical upward direction, the first display module has no displayable content, and at the moment, the page display area can display the second display module. Meanwhile, the client device may stop playing the first search result in the first presentation module. Therefore, the function of stopping the first search result playing in time can be realized.
In the disclosure, after the client generates the first display module and the second display module respectively by using the first renderer and the second renderer, the client may play a first search result pointed by a focus in the first display module in response to that the focus of the page is currently located in the first display module, and then may stop playing the first search result and display the second display module in the page display area in response to receiving a drag instruction for a page control associated with the second display module in the display page. Therefore, the automatically played search result is determined through the focal position of the page, the process of playing the search result is simplified, and the immersive experience of the user is enhanced.
Fig. 6 is a schematic flowchart of a method for displaying search results according to an embodiment of the present disclosure. The method is executed by the server.
As shown in fig. 6, the method includes:
step 601, receiving a search request sent by a client.
According to the method and the system, after the user inputs the search text in the search window in the client interface, the client can send the search request to the server according to the search text.
Step 602, obtaining a first search result and a second search result corresponding to the search request from a database, wherein the first search result and the second search result have different display modes.
The first search result may be a search result rendered by a NA (Native Application) component. The second search result may be a search result rendered with an H5 page renderer. The presentation mode may be a form in which the search result is presented on a page, and may include a dynamic presentation mode, a static presentation mode, and the like, which is not limited by the present disclosure.
In addition, the display mode corresponding to each search result can be preset in the database, and the server side can send the corresponding display mode to the client side while sending the search result to the client side.
In the disclosure, after receiving a search request sent by a client, a server may determine a corresponding first search result and a corresponding second search result by using a search technology.
Step 603, returning the first search result and the second search result to the client.
In the disclosure, after determining the first search result and the second search result, the server may send the search result to the client. Therefore, after receiving the search results returned by the server, the client can analyze each search result to determine the first search result and the second search result.
Optionally, the display modes corresponding to the first search result and the second search result are returned to the client. Therefore, the client can quickly classify the search results, and different processing is conveniently carried out on different search results.
In the present disclosure, after receiving a search request sent by a client, a server may obtain a first search result and a second search result corresponding to the search request from a database, and then may return the first search result and the second search result to the client. Therefore, the client can render and display different search results by using different renderers, so that the display forms of the search results are enriched on the basis of ensuring the page loading speed, and the immersive search result browsing function is realized.
In order to implement the above embodiments, the embodiment of the present disclosure further provides a device for displaying search results. Fig. 7 is a schematic structural diagram of a device for displaying search results according to an embodiment of the present disclosure.
As shown in fig. 7, the apparatus 700 for presenting search results includes: a sending module 710, a receiving module 720, a first rendering module 730, a second rendering module 740, and a presentation module 750.
A sending module 710, configured to send a search request to a server;
a receiving module 720, configured to receive a first search result and a second search result corresponding to the search request, which are returned by the server;
a first rendering module 730, configured to render the first search result by using a first renderer to generate a first display module;
a second rendering module 740, configured to render the second search result by using a second renderer to generate a second display module;
a display module 750, configured to display the search result based on the first display module and the second display module.
In a possible implementation manner of the embodiment of the present disclosure, the receiving module 720 is configured to:
determining the first search result and the second search result according to the display mode corresponding to each search result returned by the server;
or analyzing each search result returned by the server to determine the first search result and the second search result.
In a possible implementation manner of the embodiment of the present disclosure, the display module 750 is configured to:
when the page area occupied by the first display module is larger than or equal to the page display area, displaying the first display module in the display area, and displaying the page control associated with the second display module in a preset area of the page;
or, when the page area occupied by the first display module is smaller than the display area, the first display module and the second display module are displayed in a splicing manner in the display area;
or, the second display module is displayed in the display area under the condition that the first display module has no content to be displayed.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus further includes:
and the playing module is used for responding to the current position of the page focus in the first display module and playing the first search result pointed by the focus in the first display module.
In a possible implementation manner of the embodiment of the present disclosure, the playing module is further configured to:
stopping playing the first search result in response to receiving a dragging instruction for a page control associated with a second display module in a display page;
the display module 750 is configured to display the second display module in a page display area.
In a possible implementation manner of the embodiment of the present disclosure, the display module 750 is configured to:
determining the display position of the second display module in the display area according to the end position of the dragging instruction;
displaying the second display module at the display position.
In a possible implementation manner of the embodiment of the present disclosure, the playing module is further configured to:
stopping playing the first search result in the first display module in response to receiving a sliding operation in a first direction at the bottom of the first display module;
the display module 750 is configured to display the second display module in the display area.
It should be noted that the explanation of the embodiment of the method for displaying the search result on the client side is also applicable to the apparatus of the embodiment, and therefore, the explanation is not repeated here.
According to the display method and the display device, after the client sends the search request to the server, the client can receive a first search result and a second search result which are returned by the server and correspond to the search request, then the first search result can be rendered by the first renderer to generate a first display module, the second search result is rendered by the second renderer to generate a second display module, and then the search result is displayed based on the first display module and the second display module. Therefore, different renderers are used for rendering and displaying different search results, so that the display form of the search results is enriched on the basis of ensuring the page loading speed, and the immersive search result browsing function is realized.
In order to implement the above embodiments, the present disclosure provides another search result display device. Fig. 8 is a schematic structural diagram of a device for displaying search results according to an embodiment of the present disclosure.
As shown in fig. 8, the apparatus 800 for presenting search results includes: a receiving module 810, an obtaining module 820, and a sending module 830.
A receiving module 810, configured to receive a search request sent by a client;
an obtaining module 820, configured to obtain a first search result and a second search result corresponding to the search request from a database, where display modes of the first search result and the second search result are different;
the sending module 830 is configured to return the first search result and the second search result to the client.
In a possible implementation manner of the embodiment of the present disclosure, the sending module 830 is further configured to:
and returning the display modes respectively corresponding to the first search result and the second search result to the client.
It should be noted that the explanation of the embodiment of the method for displaying the search result at the server side is also applicable to the apparatus of the embodiment, and therefore, the explanation is not repeated here.
In the disclosure, after receiving a search request sent by a client, a server may obtain a first search result and a second search result corresponding to the search request from a database, and then may return the first search result and the second search result to the client. Therefore, the client can render and display different search results by using different renderers, so that the display forms of the search results are enriched on the basis of ensuring the page loading speed, and the immersive search result browsing function is realized.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 9 illustrates a schematic block diagram of an example electronic device 900 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901 that can perform various appropriate actions and processes in accordance with a computer program stored in a ROM (Read-Only Memory) 902 or a computer program loaded from a storage unit 908 into a RAM (Random Access Memory) 903. In the RAM903, various programs and data required for the operation of the device 900 can also be stored. The calculation unit 901, ROM 902, and RAM903 are connected to each other via a bus 904. An I/O (Input/Output) interface 905 is also connected to the bus 904.
A number of components in the device 900 are connected to the I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, and the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, optical disk, or the like; and a communication unit 909 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing Unit 901 include, but are not limited to, a CPU (Central Processing Unit), a GPU (graphics Processing Unit), various dedicated AI (Artificial Intelligence) computing chips, various computing Units running machine learning model algorithms, a DSP (Digital Signal Processor), and any suitable Processor, controller, microcontroller, and the like. The computing unit 901 performs the respective methods and processes described above, such as the presentation method of search results. For example, in some embodiments, the presentation of search results may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 900 via ROM 902 and/or communications unit 909. When loaded into RAM903 and executed by computing unit 901, may perform one or more of the steps of the above described method of presentation of search results. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the presentation method of the search results in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, Integrated circuitry, FPGAs (Field Programmable Gate arrays), ASICs (Application-Specific Integrated circuits), ASSPs (Application Specific Standard products), SOCs (System On Chip, System On a Chip), CPLDs (Complex Programmable Logic devices), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only-Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a Display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), internet, and blockchain Network.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in a conventional physical host and a VPS (Virtual Private Server). The server may also be a server of a distributed system, or a server incorporating a blockchain.
According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, which, when executed by an instruction processor in the computer program product, executes the method for displaying search results provided by the above-mentioned embodiment of the present disclosure.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (21)

1. A display method of search results comprises the following steps:
sending a search request to a server;
receiving a first search result and a second search result which are returned by the server and correspond to the search request;
rendering the first search result by using a first renderer to generate a first display module;
rendering the second search result by using a second renderer to generate a second display module;
and displaying the search result based on the first display module and the second display module.
2. The method of claim 1, wherein receiving the first search result and the second search result corresponding to the search request returned by the server comprises:
determining the first search result and the second search result according to the display mode corresponding to each search result returned by the server;
or analyzing each search result returned by the server to determine the first search result and the second search result.
3. The method of claim 1, wherein said presenting the search results based on the first presentation module and the second presentation module comprises:
when the page area occupied by the first display module is larger than or equal to the page display area, displaying the first display module in the display area, and displaying the page control associated with the second display module in a preset area of the page;
or, when the page area occupied by the first display module is smaller than the display area, the first display module and the second display module are displayed in a splicing manner in the display area;
or, the second display module is displayed in the display area under the condition that the first display module has no content to be displayed.
4. The method of claim 1, wherein said presenting the search results comprises:
and responding to the current position of the page focus in the first display module, and playing the first search result pointed by the focus in the first display module.
5. The method of claim 4, wherein after said playing the first search result pointed to by the focus in the first presentation module, further comprising:
stopping playing the first search result in response to receiving a dragging instruction for a page control associated with a second display module in a display page;
and displaying the second display module in a page display area.
6. The method of claim 5, wherein said presenting said second presentation module in said page presentation area comprises:
determining the display position of the second display module in the display area according to the end position of the dragging instruction;
displaying the second display module at the display position.
7. The method of claim 4, wherein after said playing the first search result pointed to by the focus in the first presentation module, further comprising:
stopping playing the first search result in the first display module in response to receiving a sliding operation in a first direction at the bottom of the first display module;
displaying the second display module in the display area.
8. A display method of search results comprises the following steps:
receiving a search request sent by a client;
acquiring a first search result and a second search result corresponding to the search request from a database, wherein the first search result and the second search result have different display modes;
and returning the first search result and the second search result to the client.
9. The method of claim 8, wherein after the obtaining the first search result and the second search result corresponding to the search request from the database, further comprising:
and returning the display modes respectively corresponding to the first search result and the second search result to the client.
10. An apparatus for presentation of search results, comprising:
the sending module is used for sending a search request to the server;
the receiving module is used for receiving a first search result and a second search result which are returned by the server and correspond to the search request;
the first rendering module is used for rendering the first search result by using a first renderer to generate a first display module;
the second rendering module is used for rendering the second search result by using a second renderer to generate a second display module;
and the display module is used for displaying the search result based on the first display module and the second display module.
11. The apparatus of claim 10, wherein the receiving means is configured to:
determining the first search result and the second search result according to the display mode corresponding to each search result returned by the server;
or analyzing each search result returned by the server to determine the first search result and the second search result.
12. The apparatus of claim 10, wherein the presentation module is to:
when the page area occupied by the first display module is larger than or equal to the page display area, displaying the first display module in the display area, and displaying the page control associated with the second display module in a preset area of the page;
or, when the page area occupied by the first display module is smaller than the display area, the first display module and the second display module are displayed in a splicing manner in the display area;
or, the second display module is displayed in the display area under the condition that the first display module has no content to be displayed.
13. The apparatus of claim 10, wherein the apparatus further comprises:
and the playing module is used for responding to the current position of the page focus in the first display module and playing the first search result pointed by the focus in the first display module.
14. The apparatus of claim 13, wherein the playback module is further configured to:
stopping playing the first search result in response to receiving a dragging instruction for a page control associated with a second display module in a display page;
the display module is used for displaying the second display module in a page display area.
15. The apparatus of claim 14, wherein the presentation module is to:
determining the display position of the second display module in the display area according to the end position of the dragging instruction;
displaying the second display module at the display position.
16. The apparatus of claim 13, wherein the playback module is further configured to:
stopping playing the first search result in the first display module in response to receiving a sliding operation in a first direction at the bottom of the first display module;
the display module is used for displaying the second display module in the display area.
17. An apparatus for presentation of search results, comprising:
the receiving module is used for receiving a search request sent by a client;
the acquisition module is used for acquiring a first search result and a second search result corresponding to the search request from a database, wherein the first search result and the second search result have different display modes;
and the sending module is used for returning the first search result and the second search result to the client.
18. The apparatus of claim 17, wherein the means for transmitting is further configured to:
and returning the display modes respectively corresponding to the first search result and the second search result to the client.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7 or to perform the method of any one of claims 8-9.
20. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7 or the method of any one of claims 8-9.
21. A computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of any one of claims 1 to 7 or carries out the steps of the method of any one of claims 8 to 9.
CN202210062370.2A 2022-01-19 2022-01-19 Search result display method and device and electronic equipment Active CN114461944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210062370.2A CN114461944B (en) 2022-01-19 2022-01-19 Search result display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210062370.2A CN114461944B (en) 2022-01-19 2022-01-19 Search result display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114461944A true CN114461944A (en) 2022-05-10
CN114461944B CN114461944B (en) 2023-03-10

Family

ID=81410129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210062370.2A Active CN114461944B (en) 2022-01-19 2022-01-19 Search result display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114461944B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103226573A (en) * 2013-03-28 2013-07-31 百度在线网络技术(北京)有限公司 Association displaying method of search results and client
US20140372218A1 (en) * 2013-06-14 2014-12-18 Microsoft Corporation Selective placement of promotional elements within search result layout
CN104484363A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Search result display method and device
CN105138568A (en) * 2015-07-24 2015-12-09 百度在线网络技术(北京)有限公司 Method and apparatus for presenting search results and search engine
CN109597929A (en) * 2018-09-21 2019-04-09 北京字节跳动网络技术有限公司 Methods of exhibiting, device, terminal and the readable medium of search result
CN110750705A (en) * 2018-07-06 2020-02-04 北京高德云图科技有限公司 Search result display method and device and electronic equipment
CN110765341A (en) * 2019-10-28 2020-02-07 百度在线网络技术(北京)有限公司 Searching method and device
CN111368224A (en) * 2020-02-20 2020-07-03 北京字节跳动网络技术有限公司 Search display method and device, computer equipment and storage medium
CN111680230A (en) * 2020-05-25 2020-09-18 北京百度网讯科技有限公司 Display method and device of search result page, electronic equipment and storage medium
CN113486253A (en) * 2021-07-30 2021-10-08 北京字节跳动网络技术有限公司 Search result display method, device, equipment and medium
CN113641921A (en) * 2021-09-26 2021-11-12 北京搜狗科技发展有限公司 Page display method and device and page display device
WO2021254046A1 (en) * 2020-06-17 2021-12-23 北京字节跳动网络技术有限公司 Information query method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103226573A (en) * 2013-03-28 2013-07-31 百度在线网络技术(北京)有限公司 Association displaying method of search results and client
US20140372218A1 (en) * 2013-06-14 2014-12-18 Microsoft Corporation Selective placement of promotional elements within search result layout
CN104484363A (en) * 2014-12-02 2015-04-01 百度在线网络技术(北京)有限公司 Search result display method and device
CN105138568A (en) * 2015-07-24 2015-12-09 百度在线网络技术(北京)有限公司 Method and apparatus for presenting search results and search engine
WO2017016101A1 (en) * 2015-07-24 2017-02-02 百度在线网络技术(北京)有限公司 Search result display method, device and search engine
CN110750705A (en) * 2018-07-06 2020-02-04 北京高德云图科技有限公司 Search result display method and device and electronic equipment
CN109597929A (en) * 2018-09-21 2019-04-09 北京字节跳动网络技术有限公司 Methods of exhibiting, device, terminal and the readable medium of search result
CN110765341A (en) * 2019-10-28 2020-02-07 百度在线网络技术(北京)有限公司 Searching method and device
CN111368224A (en) * 2020-02-20 2020-07-03 北京字节跳动网络技术有限公司 Search display method and device, computer equipment and storage medium
CN111680230A (en) * 2020-05-25 2020-09-18 北京百度网讯科技有限公司 Display method and device of search result page, electronic equipment and storage medium
WO2021254046A1 (en) * 2020-06-17 2021-12-23 北京字节跳动网络技术有限公司 Information query method and device
CN113486253A (en) * 2021-07-30 2021-10-08 北京字节跳动网络技术有限公司 Search result display method, device, equipment and medium
CN113641921A (en) * 2021-09-26 2021-11-12 北京搜狗科技发展有限公司 Page display method and device and page display device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MONIKA KALRA: "Data mining of heterogeneous data with research challenges" *
梁丹池;: "基于ReactNative跨平台开发框架的网络存储应用的设计与实现" *

Also Published As

Publication number Publication date
CN114461944B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
US10152362B2 (en) Techniques to modify a document using a latent transfer surface
US10831983B2 (en) Techniques for managing display of headers in an electronic document
US9195750B2 (en) Remote browsing and searching
US9529784B2 (en) Remote browsing and searching
US8843858B2 (en) Optimization schemes for controlling user interfaces through gesture or touch
US9087024B1 (en) Narration of network content
US10275122B2 (en) Semantic card view
US9336321B1 (en) Remote browsing and searching
US10565290B2 (en) Online displaying a document
EP3090356A1 (en) Section based reorganization of document components
US9092405B1 (en) Remote browsing and searching
US9785619B1 (en) Interaction based display of visual effects
JP7360505B2 (en) Authentication code synchronization methods, devices, electronic devices and storage media
EP4080383A1 (en) Method and apparatus for presenting information, electronic device, storage medium, and program product
US20170116291A1 (en) Network caching of search result history and interactions
CN113342450A (en) Page processing method and device, electronic equipment and computer readable medium
CN114461944B (en) Search result display method and device and electronic equipment
EP4220446A1 (en) Resource pre-fetch using age threshold
US20240095141A1 (en) Displaying information flow
CN113873323A (en) Video playing method and device, electronic equipment and medium
CN109460525B (en) Method, device, medium and computing equipment for displaying news-letter articles
US20230084438A1 (en) Method of generating text, method of training model, electronic device, and medium
CN115203599B (en) Information recommendation method, device, equipment and storage medium
CN115202538B (en) Menu configuration method and device, electronic equipment and storage medium
WO2023066063A1 (en) Replaying a webpage based on virtual document object model

Legal Events

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