The present application claims the priority of the Chinese patent application No. 202111142607.X, entitled “INFORMATION DISPLAY METHOD AND APPARATUS, COMPUTER DEVICE AND STORAGE MEDIUM”, filed with China National Intellectual Property Administration on Sep. 28, 2021, which is herein incorporated by reference in its entirety.
The present disclosure relates to the technical field of the computer, in particular to an information display method and apparatus, a computer device and a storage medium.
When conducting the information search, the user typically wants to view different types of search results for different types of search information.
In related technologies, search results are usually displayed one by one in the form of a list, and the user can flip through multiple types of results by scrolling the screen or select the type of search results through a tab. Therefore, the display method is cumbersome and inefficient when viewing multiple types of search results.
Embodiments of the present disclosure provide at least an information display method and apparatus, a computer device and a storage medium.
In a first aspect, embodiments of the present disclosure provide an information display method, which includes:
In a possible embodiment, loading the first search result page and the second search result page includes:
In a possible embodiment, acquiring at least one target video corresponding to the search information and structured information corresponding to the search information includes:
In a possible embodiment, the first search result page is displayed through the following steps:
In a possible embodiment, the method further includes:
In a possible embodiment, after displaying the at least one key information on the second search result page, the method further includes:
In a possible embodiment, the first search result page displays the target video through the following steps:
In a possible embodiment, a plurality of tabs are displayed on the first search result page, and different tabs are used for displaying different types of search results; and the method further includes:
In a possible embodiment, the method further includes:
In a possible embodiment, the structured information includes information corresponding to at least one data dimension extracted from a target search result, the at least one data dimension is determined based on a second search type of the search information, and the target search result includes the target video.
In a second aspect, embodiments of the present disclosure further provide an information display apparatus, which includes:
In a possible embodiment, the loading module, when loading the first search result page and the second search result page, is configured to:
In a possible embodiment, the acquisition module, when acquiring at least one target video corresponding to the search information and structured information corresponding to the search information, is configured to:
In a possible embodiment, the loading module, when displaying the first search result page, is configured to:
In a possible embodiment, the loading module is further configured to:
In a possible embodiment, the loading module, after displaying the at least one key information on the second search result page, is further configured to:
In a possible embodiment, the loading module, when displaying the first search result page, is further configured to:
In a possible embodiment, a plurality of tabs are displayed on the first search result page, and different tabs are used for displaying different types of search results; and
In a possible embodiment, the loading module is further configured to:
In a possible embodiment, the structured information includes information corresponding to at least one data dimension extracted from a target search result, the at least one data dimension is determined based on a second search type of the search information, and the target search result includes the target video.
In a third aspect, embodiments of the present disclosure further provide a computer device, which includes a processor, a memory and a bus. when the computer device runs, the processor communicates with the memory through the bus; and when the machine-readable instructions are executed by the processor, the steps in the first aspect described above, or in any of the possible embodiments of the first aspect are executed.
In a fourth aspect, embodiments of the present disclosure further provide a computer-readable storage medium, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the first aspect described above, or in any of the possible embodiments of the first aspect are executed.
The present disclosure provides an information display method and apparatus, a computer device and a storage medium. After receiving search information, the target video corresponding to the search information and structured information can be obtained, and the structured information is displayed along with the target video. By simultaneously displaying various types of search results to the user, the users can view the corresponding search results as needed, avoiding the manual search process and improving search efficiency.
In order to make the above objects, features and advantages of the present disclosure more evident and comprehensible, the following detailed description is provided, illustrating exemplary embodiments and accompanied by the drawings.
To more clearly illustrate the embodiments of the present disclosure, the drawings required to be used for the embodiments are briefly described in the following. The drawings herein are incorporated into and form a part of the specification, illustrate embodiments consistent with the present disclosure, and are used in conjunction with the specification to explain the principles of the present disclosure. It should be understood that are only some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, other drawings can be obtained based on these drawings without any inventive work.
To make the objects, technical solutions and advantages of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described clearly and fully understandable in conjunction with the drawings related to the embodiments of the present disclosure. Apparently, the described embodiments are just a part but not all of the embodiments of the present disclosure. The components in the embodiments of the present disclosure generally described and illustrated in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the described embodiments herein, those skilled in the art can obtain other embodiment(s), without any inventive work, which should be within the scope of the present disclosure.
When conducting information searches, users typically want to view different types of search results for different types of search information.
Based on the above research, the present disclosure provides an information display method and apparatus, a computer device and a storage medium. After receiving search information, the target video corresponding to the search information and structured information can be obtained, and the structured information is displayed along with the target video. By simultaneously displaying various types of search results to the user, the user can view the corresponding search results as needed, avoiding the manual search process and improving search efficiency.
The defects identified in the above solutions are the results of the inventors' practice and careful study. Therefore, the discovery process of the above problems and the solutions proposed in the present disclosure should all be considered as the contributions made by the inventors in the process of the present disclosure.
It should be noted that similar reference numerals and letters indicate similar items in the following accompanying drawings, so once an item is defined in one accompanying drawing, it will not be further defined and explained in subsequent accompanying drawings.
To facilitate the understanding of the embodiments, firstly, an information display method disclosed in an embodiment of the present disclosure is introduced in detail. The executive subject of the information display method provided in the embodiment of the present disclosure is generally a computer device with certain computing power, which includes, for example, a terminal device or a server or other processing devices, and the terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible embodiments, the information display method can be realized by a processor invoking computer-readable instructions stored in a memory.
As shown in
Detailed description of the above steps is provided below.
In a possible embodiment, the user can input search information in a search information input area of a display page of a terminal device. As an example, an input box can be set in the search information input area, and the user can input search information in the input box.
Within the input box, a triggerable cancel button is provided to respond to a delete operation for the search information, which can delete the current search information when the user wants to search for other information.
As an example, the input box can be displayed at the top of the current page, as shown in
The structured information provides the key content for answering the search information, which may include an image and text information. As an example, if the search information is Kung Pao Chicken, the structured information may include cooking steps, ingredients, and related information about Kung Pao Chicken.
In a possible embodiment, the structured information includes information corresponding to at least one data dimension extracted from a target search result, the at least one data dimension is determined based on a second search type of the search information, and the target search result includes the target video.
Specifically, the second search type may be, for example, a music type, a sport type, an animal type, a plant type, a recipe type, etc., and the target search result may be an image, text information and a target video.
As an example, when determining the data dimension, if the search information input by the user is “Kung Pao Chicken”, the second search type may be a recipe type, and the corresponding data dimension may include, for example, a cooking step dimension and an ingredient dimension. If the search information input by the user is “Jaguar”, the second search type may be an animal type, and the corresponding key information may include, for example, a hunting dimension, a habitat dimension and a physiological structure dimension.
In a possible embodiment, if the target search result is a target video, when extracting the structured information from the target video, an optical character recognition (OCR) method may be adopted to identify the text information in each frame of the video, and then the structured information is extracted from the identified text information.
In a possible embodiment, in determining the target search result, it may be to determine the search result that meets a preset condition, and the preset condition, for example, may be the highest number of clicks, the highest number of comments, the highest popularity value, etc.
In a possible embodiment, when acquiring at least one target video corresponding to the search information and structured information corresponding to the search information, for any search information, the structured information and the target videos may be acquired based on the organic search result.
As an example, if the search information is singer Liu, the obtained structured information may be Liu's encyclopedia content (biography and basic personal information) and Liu's works, and the obtained target video may be Liu's MV, Liu's concert video, Liu's life video, etc.
In another possible embodiment, when acquiring at least one target video corresponding to the search information and structured information corresponding to the search information, a first search type of the search information can be determined first, and in a case where the first search type is detected as a target search type, at least one target video corresponding to the search information and structured information corresponding to the search information are acquired.
Specifically, the first search type may be classified as an instructional type and a non-instructional type, and the target search type may be an instructional type.
As an example, if the search information is “Kung Pao Chicken” and the search result corresponding to the search information include the cooking steps of Kung Pao Chicken, then the first search type of the search information is an instructional type.
For the non-instructional type of search information, the normal search process can be followed to obtain the organic search result.
In a possible embodiment, under the instructional and non-instructional types, there can be further specific secondary search types. For example, under the instructional type, there can be secondary search types such as a recipe instruction type, an art instruction type, etc. When determining the first search type of the search information, the secondary search type of the search information can be determined first, and then based on the secondary search type, the search type of the search information can be determined.
As an example, if the search information is “Kung Pao Chicken”, then the secondary search type of the search information is a recipe instruction type, which belongs to the instructional type, so the first search type of the search information is the instructional type.
Alternatively, in another possible embodiment, after receiving the search information and before acquiring at least one target video corresponding to the search information and structured information corresponding to the search information, the search information can be matched with a plurality of search information to be matched pre-stored in a database. If the match is successful, then at least one target video corresponding to the search information and structured information corresponding to the search information are acquired.
The plurality of search information to be matched pre-stored in the database are the search information in which the probability of the search result clicked by the user being a video search result exceeds a preset probability after a search request is initiated based on the search information to be matched.
The search request initiated here is a search request initiated before the solution provided by the present disclosure is implemented, and its corresponding search result is the organic search result.
As an example, if 90% of users click on the video search result after initiating a search request based on certain search information, it indicates that the majority of the search results consumed by the user for that search information are video search results. Therefore, for this type of search information, the search results may be directly displayed based on the steps after Step 101 disclosed herein.
The matching between the search information and the search information to be matched here can be understood as a complete matching of text or a semantic matching. As an example, the character vectors of the search information and the search information to be matched are determined respectively, and then the Euclidean distance between the two character vectors is calculated.
If the first search type of the search information is not the target search type, or the search information has no matching search information to be matched, a search request can be directly initiated based on the search information, and the organic search result corresponding to the search information can be acquired.
In a possible application scenario, as shown in
In a possible embodiment, when loading the first search result page and the second search result page, the first search result page may be loaded first, then the first search result page is overlaid with a popover, and the second search result page is loaded on the popover.
As an example, if the search information is “Kung Pao Chicken”, the target video about Kung Pao Chicken is displayed on the first search result page, and the structured graphics and text information about Kung Pao Chicken is displayed on the popover.
In a possible embodiment, when displaying the target videos on the first search result page, the categories of the target videos can be determined first, and then based on the categories of the target videos, preview information of the target videos is displayed in at least one column on the first search result page; here, target videos in each column have the same category.
The target videos can be categorized based on video duration (long or short), video source (video publishing platform), or video content. For example, cooking videos of Kung Pao Chicken can be divided into home cooking videos and professional cooking videos.
For example, as shown in
In a possible embodiment, when the target videos are displayed, the display order of the target videos can be determined based on factors such as the video popularity, publishing time, etc. The target videos are then displayed according to the determined order. The popularity can be determined based on the number of historical viewers, the number of viewers within a predetermined time, the number of bullet comments, the number of comments, etc.
With this method, high-quality videos that are recognized by the public can be displayed to the user on a priority basis.
In a possible embodiment, a plurality of tabs are displayed on the first search result page, and different tabs are used for displaying different types of search results.
Specifically, the tabs represent the types of search results, which may be All, Videos, News, Encyclopedia, Images, Short Videos, and more. The user can click on the tab to navigate to the corresponding display page for each search result type.
In a possible embodiment, in response to a second trigger operation for a first target button of the first search result page, the first search result page is controlled to switch from a current tab to a video tab, and search result videos under the video tab are displayed; the first target button is used for viewing complete search result videos.
For example, as shown in
Specifically, the tab can be displayed below the input box, and the default search result display page is the page under the tab “All”. Based on this, after the user triggers the first target button, the search result display page switches from the current tab to the video tab.
As an example, the user enters “Kung Pao Chicken” in the search box and clicks the search button, the current tab shows “All”, the search result display page shows videos demonstrating the cooking process for Kung Pao Chicken, and the popover shows the steps for cooking Kung Pao Chicken. After the user clicks the “View All” button, as shown in
In a possible embodiment, during display of the first search result page, at least one key information corresponding to the structured information needs to be determined first, the key information including a data dimension of the structured information, and the data dimension being determined based on a second search type of the search information; and then, the bottom of the first search result page is overlaid with the second search result page, and the at least one key information is displayed on the second search result page.
As an example, when determining the key information, if the data dimension corresponding to the structured information is the cooking step dimension and ingredient list dimension, the key information corresponding to the structured information can be “ingredient list” and “cooking steps”.
It should be noted that the data dimension of the structured information may be determined when the structured information is extracted. After the structured information is acquired, the data dimension of the structured information can be directly determined.
In a possible embodiment, after loading the second search result page on the popover, the method may further include: in response to a first trigger operation for target key information displayed on the second search result page, determining target structured content corresponding to the target key information in the structured information; determining a target display position of the target structured content in the second search result page; and adjusting the size of the popover, and scrolling the second search result page to the target display position to display the target structured content. The first trigger operation may include clicking, double clicking, scrolling and long pressing.
Alternatively, in another possible embodiment, in response to a first trigger operation for the target key information displayed on the popover, only the structured information corresponding to the target key information is displayed on the popover.
For example, as shown in
In a possible embodiment, after the at least one key information is displayed on the second search result page, the size of the second search result page can be adjusted in response to a scroll operation for a first position area of the second search result page after adjustment.
Specifically, the height or width of the popover can be adjusted by different trigger operations. For example, the height of the popover can be adjusted by scrolling the screen vertically, and the width of the popover can be adjusted by scrolling the screen horizontally.
In a possible embodiment, after adjusting the size of the popover, the display pattern of the structured information in the popover can be adjusted according to the size of the popover. As an example, if the width of the popover is reduced to half of its original size, the sizes of images and characters displayed on the popover are reduced to one-fourth of their original sizes.
In a possible embodiment, after the at least one piece of key information is displayed on the popover, the size of the popover can be adjusted in response to a trigger gesture within the popover. As an example, the trigger gesture can be vertically scrolling with two fingers to adjust the height of the popover, horizontally scrolling with two fingers to adjust the width of the popover, or tapping with a knuckle to zoom the popover.
In a possible embodiment, when the size of the second search result page is adjusted to be the same as that of the first search result page, the display of the first search result page may be cancelled.
As an example, when the size of the second search result page is the same as that of the first search result page, the first search result page may be closed and only the second search result page is displayed.
In addition, in another possible embodiment, when the size of the second search result page is adjusted to be the same as that of the first search result page, a plurality of search results corresponding to the target search information can also be displayed. The search results may include the structured information, related videos and related recommendations, and the plurality of the search results can be displayed according to a preset display area.
Specifically, when the size of the popover displaying the second search result page is adjusted to cover the search result display page, the top of the popover will be connected with the area where the input box is located, and the target position area for controlling the size of the popover will disappear.
For example, as shown in
In a possible embodiment, the popover is collapsed in response to a trigger operation for a second target button on the popover, a popover identifier is displayed on the search result display page, and the popover identifier is used for displaying the popover after being triggered.
For example, as shown in
In a possible embodiment, in response to a scroll operation for the second search result page, the organic search result corresponding to the search information is displayed after the structured information is displayed.
Specifically, the organic search result corresponding to the search information can be displayed below the structured information, or after the structured information is displayed, the organic search result can be displayed in response to a third trigger operation of the user, such as continuing to scroll down.
According to the information display method provided by the embodiment of the present disclosure, after receiving search information, the target video corresponding to the search information and structured information can be obtained, and the structured information is displayed along with the target video. By simultaneously displaying various types of search results to the user, the user can view the corresponding search results as needed, avoiding the manual search process and improving search efficiency.
It can be understood by those skilled in the art that in the above-mentioned method according to specific embodiments, the order of writing the steps does not necessarily imply a strict execution sequence or impose any limitations on the embodiment process. The specific execution sequence of each step should be determined based on its functionality and possible inherent logic.
Based on the same inventive concept, an embodiment of the present disclosure also provides an information display apparatus corresponding to the information display method. Because the principle of solving problems by the apparatus in the embodiment of the present disclosure is similar to the above-mentioned information display method, the embodiment of the method can be used as a reference for the embodiment of the apparatus, which will not be repeated here.
Referring to
In a possible embodiment, the loading module 1204, when loading the first search result page and the second search result page, is configured to:
In a possible embodiment, the acquisition module 1202, when acquiring at least one target video corresponding to the search information and structured information corresponding to the search information, is specifically configured to:
In a possible embodiment, the loading module 1204, when displaying the first search result page, is configured to:
In a possible embodiment, the loading module 1204 is further configured to:
In a possible embodiment, the loading module 1204, after displaying the at least one key information on the second search result page, is further configured to:
In a possible embodiment, the loading module 1204, when displaying the first search result page, is specifically configured to:
In a possible embodiment, a plurality of tabs are displayed on the first search result page, and different tabs are used for displaying different types of search results.
The loading module 1204 is further configured to:
In a possible embodiment, the loading module 1204 is further configured to:
In a possible embodiment, the structured information includes information corresponding to at least one data dimension extracted from a target search result, the at least one data dimension is determined based on a second search type of the search information, and the target search result includes the target video.
For the process flow of each module in the apparatus and the interactive process between modules, please refer to the relevant description in the above method embodiment, which will not be repeated here.
Based on the same technical concept, an embodiment of the present disclosure also provides a computer device. Referring to
In a possible embodiment, in the instructions executed by the processor 1301, loading the first search result page and the second search result page includes:
In a possible embodiment, among the instructions executed by the processor 1301, acquiring at least one target video corresponding to the search information and structured information corresponding to the search information includes:
In a possible embodiment, in the instructions executed by the processor 1301, the first search result page is displayed through the following steps:
In a possible embodiment, the instructions executed by the processor 1301 further include:
In a possible embodiment, the instructions executed by the processor 1301, after displaying the at least one key information on the second search result page, further include:
In a possible embodiment, in the instructions executed by the processor 1301, the first search result page displays the target video through the following steps:
In a possible embodiment, in the instructions executed by the processor 1301, a plurality of tabs are displayed on the first search result page, and different tabs are used for displaying different types of search results.
The instructions further include:
In a possible embodiment, the instructions executed by the processor 1301 further include:
In a possible embodiment, in the instructions executed by the processor 1301, the structured information includes information corresponding to at least one data dimension extracted from a target search result, the at least one data dimension is determined based on a second search type of the search information, and the target search result includes the target video.
An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the information display method described in the above method embodiment are executed. The storage medium can be a volatile or nonvolatile computer-readable storage medium.
An embodiment of the present disclosure also provides a computer program product, which carries a program code, and the program code includes instructions that can be used to execute the steps of the information display method described in the above method embodiment. For details, please refer to the above-mentioned method embodiment, which is not repeated here.
The above computer program product can be implemented through a hardware, a software, or their combination. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a Software Development Kit (SDK).
It can be clearly understood by those skilled in the art that for the convenience and conciseness of description, to understand the specific working process of the system and apparatus described above, one can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here. In several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method can be realized in other ways. The apparatus embodiment described above is only schematic. For example, the division of the units is only a logical function division, and there may be other division methods in actual embodiment. For another example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented. Furthermore, the displayed or discussed coupling or direct coupling or communication can be indirect coupling or communication through some communication interfaces, apparatuses, or units, which can be electrical, mechanical, or in other forms.
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, i.e., may be located in one place or may be distributed over plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of this embodiment.
In addition, all functional units in each embodiment of the present disclosure may be integrated into one processing unit, or exist physically separated, or two or more units may be integrated into one unit.
If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a processor-executable nonvolatile computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present disclosure, or the part that contributes to the prior art, or part of this technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to make a computer device (which can be a personal computer, a server, a network device, etc.) execute all or part of the steps of the method described in various embodiments of the present disclosure. The aforementioned storage media include: a USB flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or optical disk and other media that can store program codes.
Finally, it should be noted that the above-mentioned embodiments are only specific embodiments of present disclosure, which are used to illustrate the technical solution of the present disclosure, but not to limit it. The protection scope of the present disclosure is not limited to these embodiments. Although the present disclosure has been described in detail with reference to the above-mentioned embodiments, it should be understood by those of ordinary skill in the art that any technician familiar with the technical field can still modify or easily think of changes to the technical solution recorded in the above-mentioned embodiments within the technical scope of the present disclosure, or equivalently replace certain technical features described in the aforementioned embodiments. These modifications, changes or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202111142607.X | Sep 2021 | CN | national |
| Filing Document | Filing Date | Country | Kind |
|---|---|---|---|
| PCT/CN2022/112666 | 8/16/2022 | WO |