Method, device, apparatus and storage medium for searching for recommendations
By presenting search recommendation words on the page, the problem of users needing to pause viewing when searching for multimedia content is solved, achieving a smooth search experience during viewing and improving user experience.
Patent Information
- Application Number
- CN202210358726.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-06
AI Technical Summary
Traditional search solutions require the user to pause the currently playing content viewing process when searching for multimedia content of interest, which affects the user experience.
By determining whether the search box is presentable in the page, determining the search recommendation words based on the presented multimedia content, and presenting at least part of them in the search box, the user is allowed to search for multimedia content of interest without affecting the current viewing process.
It improves the user experience, meets the personalized needs of users, enables users to search for content of interest while watching multimedia content, and provides a smoother user experience.
Smart Images

Figure CN114691964B_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for searching for recommendations. Background Art
[0002] Currently, more and more applications are designed to provide various services to users. For example, users can browse, comment on, and forward various types of content in content sharing applications, including multimedia content such as videos, images, image collections, and sounds. In addition, while allowing users to select multimedia content of interest according to their preferences through search operations, the sharing application can also provide users with search recommendations associated with multimedia content based on user preferences collected by the application itself, thereby further optimizing the interactive experience between users and applications. Summary of the invention
[0003] According to an exemplary embodiment of the present disclosure, a solution for search recommendation is provided to further enhance the search recommendation function.
[0004] In a first aspect of the present disclosure, a method for search recommendation is provided. The method includes determining whether a search box can be presented in a page; if it is determined that the search box can be presented, presenting the search box in the page; determining a search recommendation term based on multimedia content presented in the page; and presenting at least a portion of the search recommendation term in the search box.
[0005] In a second aspect of the present disclosure, a device for search recommendation is provided. The device includes a first determination module configured to determine whether a search box can be presented in a page; a first presentation module configured to present the search box in the page if it is determined that the search box can be presented; a second determination module configured to determine a search recommendation word based on multimedia content presented in the page; and a second presentation module, presenting at least a portion of the search recommendation word in the search box.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the program is executed by a processor, the method of the first aspect is implemented.
[0008] It should be understood that the contents described in the summary of the present invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart showing a process for searching for recommendations according to some embodiments of the present disclosure is shown;
[0012] Figure 3 , 4A to Figure 4B , Figure 5A and Figure 5B A schematic diagram showing an example of a page of an application according to some embodiments of the present disclosure;
[0013] FIG. 6A to FIG. 6B as well as FIG. 7A to FIG. 7B A schematic diagram showing an example of page interaction of an application according to some embodiments of the present disclosure;
[0014] Figure 8 A block diagram showing an apparatus for searching for recommendations according to some embodiments of the present disclosure; and
[0015] Fig. 9 A block diagram of a device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0017] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0019] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. In the example environment 100, an application 120 is installed in a terminal device 110. A user 140 can interact with the application 120 via the terminal device 140 and / or an attached device of the terminal device 140. The application 120 can be a content sharing application, which can provide services related to multimedia content consumption to the user 140, including browsing, commenting, forwarding, creation (e.g., shooting and / or editing), publishing, etc. of multimedia content. In this article, "multimedia content" can be content in various forms, including video, audio, image, image collection, text, etc.
[0020] exist Figure 1 In the environment 100, if the application 120 is active, the terminal device 110 can present a page 150 of the application 120 to the user 140. The page 150 can be various pages that the application 120 can provide, such as a multimedia content presentation page, a content creation page, a content editing page, a message page, a personal page, a mall page, and the like.
[0021] In some embodiments, the terminal device 110 communicates with the server 130 to realize the supply of services for the application 120. The terminal device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the terminal device 110 can also support any type of interface for the user (such as "wearable" circuits, etc.). The server 130 is a computing system / server of various types that can provide computing power, including but not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.
[0022] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and does not imply any limitation on the scope of the present disclosure.
[0023] Traditionally, a user interface element, such as a search icon, used to guide a user to search for multimedia content of interest in an application may be placed at a specific location on a page. When the user intends to search for multimedia content of interest, the user may actively find and activate the user interface element, so that the page currently used to present the multimedia content may be switched to a search page where the user performs a search operation.
[0024] Generally speaking, a search box is usually presented in the search page, which is used to enable the user to enter search keywords associated with the multimedia content of interest. In addition, a search recommendation word list is usually presented in the search page. The search recommendation word list may include one or more search recommendation word entries. These search recommendation word entries may be determined by the application according to specific conditions. For example, the search recommendation word entry may be determined according to the current hot event or topic. For another example, the search recommendation word entry may also be determined according to user preferences.
[0025] However, in the traditional solution, when the user wants to search for multimedia content of interest, the user must pause the viewing of the currently playing multimedia content and switch to the search page, which makes the viewing process of the multimedia content unsmooth and affects the user's experience of the application.
[0026] The embodiments of the present disclosure propose a solution for search recommendation. In the solution, it is determined whether a search box can be presented in a page. If it is determined that the search box can be presented, the search box is presented in the page. Based on the multimedia content presented in the page, search recommendation words are determined and at least a part of the search recommendation words are presented in the search box. In this way, search recommendation words can be presented to users based on the multimedia content that the users are interested in, so as to meet the personalized needs of users, and enable users to search for multimedia content of interest without affecting the current viewing process, thereby bringing a better user experience.
[0027] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0028] Figure 2 FIG. 2 is a flowchart of a process 200 for searching for recommendations according to some embodiments of the present disclosure. The process 200 may be implemented at the terminal device 110. For ease of discussion, reference will be made to FIG. Figure 1 The process 200 is described with reference to the environment 100 of FIG.
[0029] In block 210 , the terminal device 110 determines whether a search box can be presented in the page 150 of the application 120 .
[0030] In some embodiments, the terminal device 110 may determine a first length of one or more navigation tags presented on the page 150 in a predetermined direction and determine a second length of the search box in the predetermined direction. The one or more navigation tags and the search box may be arranged side by side in the predetermined direction. If the terminal device 110 determines that the sum of the first length and the second length does not exceed the total length of the page 150 in the predetermined direction, the terminal device 110 may determine that the search box may be presented in the page 150.
[0031] In some embodiments, if the terminal device 110 determines that the sum of the first length and the second length exceeds the width of the page 150 , a search icon is presented in the page 150 .
[0032] In some embodiments, the predetermined direction may be the width direction of the display interface of the terminal device 110 .
[0033] In some embodiments, the terminal device 110 may determine the first length based on a display mode associated with displaying one or more navigation tags. The display mode may be, for example, a display mode related to display font size, such as a large font mode or a senior mode.
[0034] In some embodiments, the terminal device 110 may also determine based on the number of one or more navigation tags. The number of navigation tags in the application 120 may change during the use of the user 140 according to the needs of the service provider.
[0035] In some embodiments, the terminal device 110 may also determine based on an alienated navigation tag other than the one or more navigation tags currently presented on the page 150. In the process of the user 140 using the application 120, an alienated tag may be added according to the needs of the service provider. The alienated navigation tag may be different from the one or more navigation tags presented on the page 150 in display form. For example, it may have a different font type and size or include different numbers and types of characters or symbols, etc.
[0036] In some embodiments, terminal device 110 may determine the second length based on a threshold number of characters allowed to be presented in the search box.
[0037] In some embodiments, the terminal device 110 determines the total length based on a display parameter of a display interface of the terminal device 110. For example, the display parameter may include a width of the display interface.
[0038] In block 220 , if the terminal device 110 determines that the search box can be presented, the terminal device 110 presents the search box in the page 150 .
[0039] In some embodiments, the terminal device 110 may present the search box at the top of the page 150. It should be understood that the terminal device 110 may present the search box at the bottom of the page 150 according to the needs of the service provider.
[0040] In block 230 , the terminal device 110 determines a search recommendation term based on the multimedia content presented in the page 150 .
[0041] In some embodiments, if the terminal device 110 can obtain content tags associated with the multimedia content presented in the page 150, the terminal device 110 can determine the search recommendation term based on the content tags.
[0042] In some embodiments, if the terminal device 110 cannot obtain the content tag associated with the multimedia content presented in the page 150, the terminal device 110 determines a default character as the search recommendation word.
[0043] In box 240 , the terminal device 110 presents at least a portion of the search recommendation words in a search box.
[0044] In some embodiments, the terminal device 110 may determine whether the number of characters contained in the search recommendation term is less than a threshold number. If the terminal device 110 determines that the number of characters is less than the threshold number, the terminal device 110 presents the search recommendation term in the search box.
[0045] In some embodiments, if the number of characters of the terminal device 110 is not less than a threshold number, the terminal device 110 presents a portion of the characters included in the search recommendation term and a symbol used to represent another portion of the characters omitted in the search recommendation term in the search box.
[0046] In some embodiments, the total length of a portion of the characters included in the search recommendation term and the symbol used to represent another portion of the characters omitted in the search recommendation term corresponds to the length of the threshold number of characters.
[0047] In some embodiments, the terminal device 110 presents the search recommendation term in the center of the search box.
[0048] In some embodiments, if a switch from another multimedia content to another multimedia content occurs in page 150, the terminal device 110 may present a switching process from another search recommendation term associated with another multimedia content to a search recommendation term in the search box.
[0049] In some embodiments, if switching from another multimedia content to another multimedia content is associated with the same navigation tag, the terminal device 110 may cause the switching process from another search recommendation term to another search recommendation term to be presented in an upward scrolling mode or a downward scrolling mode.
[0050] In some embodiments, if the switching from another multimedia content to the multimedia content is associated with different navigation tags, the terminal device 110 can cause the switching process from another search recommendation term to the search recommendation term to be presented in a fade-in and fade-out mode.
[0051] In some embodiments, the search recommendation term may correspond to a preferred search recommendation term to be presented in a search page of the application 120 .
[0052] To better understand an example embodiment of the presentation of search recommendation terms, a description will be given below with reference to an example user interface.
[0053] The terminal device may determine whether the search box can be presented in the page of the application. If the search box can be presented, the terminal device presents the search box in the page. For example, the terminal device may determine based on a comparison between a first length of a navigation tag on the page in a predetermined direction of the page and a second length of the search box in the predetermined direction and a total length of the page in the predetermined direction.
[0054] Figure 3An example page presenting a search box in the application 120 is shown. In the page 300, the navigation labels 301 to 304 are arranged at the top of the page 300 in the width direction H of the page 300. The terminal device 110 can determine a first length 320 of the navigation labels 301 to 304 in the width direction H. The second length 330 of the search box 305 in the width direction H can be determined based on a threshold number of characters allowed to be presented in the search box.
[0055] If the terminal device 110 determines that the sum of the first length 320 and the second length 330 does not exceed the width 340 of the page 300, then Figure 3 As shown, the terminal device 110 presents a search box 305 on the page 300. The search box 305 can be arranged side by side with the navigation tags 301 to 304 at the top of the page 300 in the width direction H.
[0056] It should be understood that Figure 3 The arrangement of the navigation labels 301 to 304 and the search box 305 shown in the figure is only for the purpose of example and is not relative to the present disclosure. According to the requirements, the navigation labels 301 to 304 and the search box 305 can also be arranged at other positions of the page 300.
[0057] In some scenarios, the terminal device may not be able to present the search box on the page. For example, when the sum of the first length of the navigation tag on the page in the predetermined direction of the page and the second length of the search box in the predetermined direction exceeds the total length of the page in the predetermined direction, the search box will not be presented.
[0058] Figure 4A and Figure 4B Such pages 400A and 400B are shown. Figure 4A In the example, since the display mode of the terminal device 110 is adjusted, for example, when the display mode is adjusted to the large character mode or the senior mode, the fonts of the navigation labels 401 to 404 will become larger, so that the first length 410 of the navigation labels 401 to 404 in the width direction H of the page 400A is significantly increased. As a result, the total length 430 of the first length 410 of the navigation labels 401 to 404 in the width direction H of the page 400A and the second length 420 of the search box 405 in the width direction H of the page 400A will exceed the total length 440 in the width direction H of the page 400A. In this case, the search box 405 will not be presented on the page 400A. A graphical interface element for guiding the search, such as the search icon 406, will be presented on the page 400A.
[0059] exist Figure 4BIn the embodiment, a foreignized navigation tag 407 is presented on page 400B. The foreignized navigation tag is different from the navigation tags 402 to 404 presented on page 400B in display form, which significantly increases the first length 410 of the foreignized navigation tag 407 and the navigation tags 402 to 404 in the width direction H of page 400B. In this case, the total length 460 of the first length 450 of the foreignized navigation tag 407 and the navigation tags 402 to 404 in the width direction H of page 400B and the first length 420 of the search box 405 in the width direction H of page 400B will exceed the total length 440 in the width direction H of page 400B. In this case, the search box 405 will not be presented on page 400B. A graphical interface element for guiding the search, such as a search icon 406, will be presented on page 400B.
[0060] The terminal device also determines a search recommendation term based on the multimedia content presented on the page, and presents at least a portion of the search recommendation term in the search box.
[0061] Continue to refer to Figure 3 The currently played multimedia content 310 is presented in the page 300. The terminal device 110 may determine a search recommendation word associated with the multimedia content 310. For example, the terminal device 110 may obtain one or more content tags associated with the multimedia content 310, and determine the search recommendation word based on the content tags.
[0062] When determining the presentation of the search recommendation term in the search box 305, the terminal device 110 may determine whether the number of characters included in the search recommendation term is less than the threshold number of characters that can be presented in the search box 305. If the number of characters included in the search recommendation term is less than the threshold number, the characters included in the search recommendation term, that is, the complete search recommendation term, is presented in the search box 305. Figure 3 In the example, assuming that the threshold number of characters that can be presented in the search box 305 is 5, and the number of characters contained in the determined search recommendation term “remote social networking” is 4, the search recommendation term “remote social networking” is presented in the search box 305 .
[0063] In some scenarios, the terminal device 110 displays only a portion of the determined search recommendation term in the search box of the page, for example, when the number of characters contained in the search recommendation term is equal to or greater than the threshold number of characters that can be presented in the search box.
[0064] Figure 5A Such a page 500A is shown. Figure 5AIn the example, the currently playing multimedia content 510 is presented in the page 500A. The terminal device 110 may determine a search recommendation term associated with the multimedia content 510, such as "multimedia entertainment". The number of characters included in the search recommendation term is 5. Assuming that the threshold number of characters that can be presented in the search box 505 is 5, the number of characters included in the search recommendation term is equal to the threshold number of characters that can be presented in the search box 505.
[0065] In this case, the terminal device 110 may display a portion of the characters of the search recommendation word in the search box 505, and indicate another portion of the characters of the omitted search recommendation word with an ellipsis. Figure 5A In the example, the search recommendation word presented in the search box 505 of page 500A is "multimedia entertainment...".
[0066] In some scenarios, the terminal device may display default characters in the search box on the page. Figure 5B Such a page is shown. Figure 5B In the example, the currently playing multimedia content 520 is presented in the page 500B. If the terminal device 110 cannot obtain the valid content tag associated with the multimedia content 520, the terminal device 110 can present the default character as the search recommendation word in the search box 505 of the page 500B. Figure 5B In the search, the recommended search term is "search".
[0067] In the exemplary page described above, the search recommendation word can be presented in the search box in a centered manner. It should be understood that the search recommendation word can also be presented in the search box in other ways, such as right-aligned. The presentation method shown in the accompanying drawings should not be regarded as a limitation to the present disclosure.
[0068] In some scenarios, after the user has browsed or viewed the multimedia content presented on the page of the application, the user will perform a multimedia content switching operation. For example, the multimedia content presented on the page can be switched by sliding up and down or sliding left and right on the page. In the process of the user sliding the page, as the multimedia content presented on the page is switched, the search recommendation words presented in the search box will also change accordingly, that is, the search recommendation words determined based on the currently presented multimedia content are switched to the search recommendation words determined based on the multimedia content presented after the switching.
[0069] The switching process of the search recommendation word can be presented with a predetermined visual effect. The presentation effect can be associated with the navigation tags corresponding to the currently played multimedia content and the multimedia content after switching.
[0070] Fig. 6A , 6B7A and 7B show such a switching process.
[0071] Now refer to Fig. 6A and 6B . Fig. 6A The multimedia content 610 is presented on the page 600A of FIG. The multimedia content 610 corresponds to the navigation tag 604 selected by the user. The search recommendation word 602 determined based on the multimedia content 610 presented on the page 600A is presented in the search box 605.
[0072] In an application, when the user swipes up or down without changing the selected navigation tag and the multimedia content in the page switches, the multimedia content before the switch and the multimedia content after the switch correspond to the same navigation tag.
[0073] like Fig. 6A and Figure 6B As shown, when the user switches the multimedia content 610 presented on the page 600A to the Figure 6B When multimedia content 620 is presented on page 600B, multimedia content 610 and multimedia content 620 correspond to the same navigation tag 604. In this case, from Fig. 6A The search recommendation words 602 to 605 presented in the search box 605 of the page 600A Figure 6B The switching of the search recommendation 603 presented in the search box 605 of the page 600B can be presented in the form of scroll switching. The scrolling direction of the search recommendation words presented by the scrolling switching of the search recommendation words can correspond to the sliding direction of the user performing the sliding operation on the page.
[0074] Now refer to Fig. 7A and 7B . Fig. 7A The multimedia content 710 is presented on the page 700A of FIG. The multimedia content 710 corresponds to the navigation tag 704 selected by the user. The search recommendation word 702 determined based on the multimedia content 710 presented on the page 700A is presented in the search box 705.
[0075] In an application, when a user swipes left or right, the selected navigation tab will also switch, that is, the selected navigation tab will switch from the current navigation tab to the adjacent navigation tab corresponding to the user's swiping direction. In this scenario, the multimedia content before the switch and the multimedia content after the switch correspond to different navigation tabs.
[0076] like Fig. 7A and Figure 7BAs shown, when the user switches the multimedia content 710 presented on the page 700A to the left by performing a left sliding operation 701, Figure 7B In the illustrated multimedia content 720 presented on page 700B, multimedia content 710 and multimedia content 720 correspond to different navigation tags, that is, multimedia content 710 corresponds to navigation tag 704 , while multimedia content 720 corresponds to navigation tag 703 .
[0077] In this case, from Fig. 7A The search recommendation words 702 to 705 presented in the search box 705 of the page 700A Figure 7B The switching of the search recommendation 703 presented in the search box 705 of the page 700B can be presented in the form of fading switching. The fading direction of the search recommendation word presented by the fading switching of the search recommendation word can correspond to the sliding direction of the user performing the sliding operation on the page.
[0078] In some embodiments, in combination Figure 3 , Figure 4A , Figure 4B , Figure 5A , Figure 5B , Fig. 6A , Figure 6B , Fig. 7A 7B include pages in a multimedia sharing application. Figure 3 , Figure 4A , Figure 4B , Figure 5A , Figure 5B , Fig. 6A , Figure 6B , Fig. 7A 7B and the pages 300, 400A, 400B, 500A, 500B, 600A, 600B, 700A and 700B described include pages in the video sharing application.
[0079] The solution proposed in the present disclosure can present search recommendation words to users based on the multimedia content that the users are interested in, so as to meet the personalized needs of users, and enable users to search for multimedia content that they are interested in without affecting the current viewing process, thereby bringing a better user experience.
[0080] Figure 8 A schematic structural block diagram of an apparatus 800 for searching for recommendations according to some embodiments of the present disclosure is shown. The apparatus 800 may be implemented as or included in a terminal device 110. Each module / component in the apparatus 800 may be implemented by hardware, software, firmware, or any combination thereof.
[0081] As shown in the figure, the device 800 includes a first determination module 810, which is configured to determine whether a search box can be presented in a page. The device 800 also includes a first presentation module 820, which is configured to present the search box in the page if it is determined that the search box can be presented. The device 800 also includes a second determination module 830, which is configured to determine a search recommendation word based on the multimedia content presented in the page. The device 800 also includes a second presentation module 840, which presents at least a part of the search recommendation word in the search box.
[0082] In some embodiments, the first determination module 810 is also configured to determine a first length of one or more navigation tags presented on the page in a predetermined direction, wherein the one or more navigation tags are arranged side by side with the search box in the predetermined direction; determine a second length of the search box in the predetermined direction; and if it is determined that the sum of the first length and the second length does not exceed the total length of the page in the predetermined direction, determine that the search box can be presented in the page.
[0083] In some embodiments, the first determination module 810 is also configured to determine the first length based on at least one of the following parameters: a display mode associated with the display of the one or more navigation tags; the number of the one or more navigation tags; and alienated tags presented on the page other than the one or more navigation tags.
[0084] In some embodiments, the first determination module 810 is further configured to determine the total length based on a display parameter of a device used to display the page.
[0085] In some embodiments, the first determination module 810 is further configured to determine the second length based on a threshold number of characters allowed to be presented in the search box.
[0086] In some embodiments, the first determination module 810 is further configured to present a search icon in the page if it is determined that the sum of the first length and the second length exceeds the width of the page.
[0087] In some embodiments, the first presentation module 820 is further configured to present the search box at the top of the page.
[0088] In some embodiments, the second determination module 830 is further configured to determine the search recommendation term based on a content tag associated with the multimedia content presented in the page if the content tag is acquired.
[0089] In some embodiments, the second determination module 830 is further configured to determine a default character as the search recommendation word if a content tag associated with the multimedia content presented in the page is not acquired.
[0090] In some embodiments, the search recommendation term corresponds to a preferred search recommendation term to be presented in a search page.
[0091] In some embodiments, the second presentation module 840 is further configured to determine whether the number of characters contained in the search recommendation term is less than a threshold number; and if the number of characters is less than the threshold number, present the search recommendation term in the search box.
[0092] In some embodiments, the second presentation module 840 is also configured to present a portion of the characters included in the search recommendation term and a symbol for representing another portion of the characters omitted in the search recommendation term in the search box if the number of the characters is not less than a threshold number.
[0093] In some embodiments, the total length of the portion of characters and the symbol corresponds to the length of the threshold number of characters.
[0094] In some embodiments, the second presentation module 840 is further configured to present in the search box a switching process from another search recommendation term associated with the other multimedia content to the search recommendation term if a switch occurs from another multimedia content to the multimedia content in the page.
[0095] In some embodiments, the second presentation module 840 is also configured to present the switching process from the other search recommendation term to the search recommendation term in an upward scrolling mode or a downward scrolling mode if the switching from the other multimedia content to the multimedia content is associated with the same navigation tag.
[0096] In some embodiments, the second presentation module 840 is further configured to present the switching process from the other search recommendation term to the search recommendation term in a fade-in and fade-out mode if the switching from the other multimedia content to the multimedia content is associated with different navigation tags.
[0097] In some embodiments, the second presentation module 840 is further configured to present the search recommendation term in the center of the search box.
[0098] Fig. 9 A block diagram illustrating a computing device 900 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that Fig. 9The computing device 900 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Fig. 9 The computing device 900 shown may be used to implement Figure 1 terminal device 110.
[0099] like Fig. 9 As shown, computing device 900 is in the form of a general-purpose computing device. Components of computing device 900 may include, but are not limited to, one or more processors or processing units 910, memory 920, storage device 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. Processing unit 910 may be an actual or virtual processor and is capable of performing various processes according to a program stored in memory 920. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capabilities of computing device 900.
[0100] The computing device 900 typically includes a plurality of computer storage media. Such media may be any available media accessible to the computing device 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 930 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device 900.
[0101] The computing device 900 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig. 9 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 920 may include a computer program product 925 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0102] The communication unit 940 enables communication with other computing devices via a communication medium. Additionally, the functions of the components of the computing device 900 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 900 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0103] Input device 950 may be one or more input devices, such as a mouse, keyboard, tracking ball, etc. Output device 960 may be one or more output devices, such as a display, a speaker, a printer, etc. Computing device 900 may also communicate with one or more external devices (not shown) through communication unit 940 as needed, such as storage devices, display devices, etc., communicate with one or more devices that allow a user to interact with computing device 900, or communicate with any device that allows computing device 900 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0104] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0105] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0106] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0107] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0108] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0109] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for searching for recommendations, comprising: determining a first length in a predetermined direction based on one or more navigation tags presented on the page and an alienated navigation tag other than the one or more navigation tags, the alienated navigation tag being different in appearance from the one or more navigation tags; determining whether the search box can be presented in the page based on the first length and a second length of the search box in the predetermined direction; If it is determined that the sum of the first length and the second length does not exceed the total length of the page in the predetermined direction, presenting the search box in the page; Determining a search recommendation term based on the multimedia content presented in the page; as well as Presenting at least a portion of the search recommendation words in the search box; or If it is determined that the sum of the first length and the second length exceeds the total length, a search icon is presented in the page. 2 . The method according to claim 1 , wherein the one or more navigation labels and the search box are arranged side by side in the predetermined direction.
3. The method according to claim 1 or 2, further comprising: The first length is determined based on at least one of the following parameters: a display mode associated with display of the one or more navigation tabs; The number of the one or more navigation tabs.
4. The method according to claim 1 or 2, further comprising: The total length is determined based on display parameters of a device used to display the page.
5. The method according to claim 1 or 2, further comprising: The second length is determined based on a threshold number of characters allowed to be presented in the search box.
6. The method according to claim 1, wherein presenting at least a portion of the search recommendation terms in the search box comprises: Determining whether the number of characters included in the search recommendation term is less than a threshold number; as well as If the number of the characters is less than a threshold number, the search recommendation term is presented in the search box.
7. The method according to claim 6, further comprising: If the number of characters is not less than a threshold number, present in the search box: A portion of the characters included in the search recommendation word; and A symbol used to represent another part of the characters in the search recommendation word that are omitted.
8. The method of claim 7, wherein the total length of the portion of characters and the symbol corresponds to the length of the threshold number of characters.
9. The method according to claim 1, further comprising: If a switch from another multimedia content to the multimedia content occurs in the page, a switching process from another search recommendation term associated with the other multimedia content to the search recommendation term is presented in the search box.
10. The method according to claim 9, wherein presenting the switching process in the search box comprises: If the switching from the another multimedia content to the multimedia content is associated with the same navigation tag, the switching process from the another search recommendation word to the search recommendation word is presented in an upward scrolling mode or a downward scrolling mode.
11. The method according to claim 9, wherein presenting the switching process in the search box comprises: If the switching from the another multimedia content to the multimedia content is associated with different navigation tags, the switching process from the another search recommendation term to the search recommendation term is presented in a fade-in and fade-out mode. 12 . The method of claim 1 , wherein the search recommendation term corresponds to a preferred search recommendation term to be presented in a search page.
13. The method according to claim 1, wherein determining the search recommendation term comprises: If a content tag associated with the multimedia content presented in the page is obtained, the search recommendation term is determined based on the content tag.
14. The method according to claim 1, wherein determining the search recommendation term comprises: If the content tag associated with the multimedia content presented in the page is not obtained, a default character is determined as the search recommendation word.
15. The method according to claim 1, wherein presenting the at least a portion of the search recommendation term in the search box comprises: The search recommendation term is presented centrally in the search box.
16. The method of claim 1, wherein presenting the search box in the page comprises: The search box is presented at the top of the page.
17. A device for searching for recommendations, comprising: A first determining module is configured to determine a first length in a predetermined direction based on one or more navigation tags presented on the page and an alienated navigation tag other than the one or more navigation tags, the alienated navigation tag being different in appearance from the one or more navigation tags; A second determination module is configured to determine whether the search box can be presented in the page based on the first length and a second length of the search box in the predetermined direction; A first presentation module is configured to present the search box in the page if it is determined that the sum of the first length and the second length does not exceed the total length of the page in the predetermined direction; A third determination module is configured to determine a search recommendation word based on the multimedia content presented in the page; as well as A second presentation module is configured to present at least a portion of the search recommendation words in the search box; or The third presentation module is configured to present a search icon in the page if it is determined that the sum of the first length and the second length exceeds the total length.
18. An electronic device, comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform the method according to any one of claims 1 to 16.
19. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Method and device for adjusting navigation bar in self-adaptive manner on browser and browser
CN102855124A
Browser display method and device
CN106339437A
Method and device for displaying web pages
CN106649497A
Taskbar searching method and device
CN111367440A
Taskbar searching method and device
CN111368222A
Cited By
Search recommendation method and apparatus, device, and storage medium
EP4488852A1
Search recommendation method and apparatus, device, and storage medium
WO2023193728A1
