A search special effect display method, device, equipment and medium
By matching and updating special effects configuration files online, the issues of universality and real-time performance in search effects display were resolved, enabling flexible and diverse animation effects displays and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2026-03-17
AI Technical Summary
Existing technologies lack versatility, real-time capability, and flexibility in displaying search effects in search scenarios, failing to meet the diverse needs of users.
By obtaining the current search term and matching the special effects configuration file, the target special effects link is determined, and the corresponding animation special effects file is obtained and displayed. The special effects configuration and file are updated online, avoiding frequent client version updates.
It improves the real-time nature and versatility of search effects display, increases the flexibility and richness of effects display, and enhances the user experience.
Smart Images

Figure CN114912039B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Internet technology, and in particular to a method, apparatus, device and medium for displaying search special effects. Background Technology
[0002] With the continuous development of internet and terminal technologies, the interaction between terminals and users is becoming increasingly diversified.
[0003] In search scenarios, related technologies can expand the display style by moving search terms, but the display effect of this method is still lacking in terms of universality, real-time performance, flexibility and fun, and cannot meet users' search effect needs. Summary of the Invention
[0004] To address the aforementioned technical problems, this disclosure provides a method, apparatus, device, and medium for displaying search effects.
[0005] This disclosure provides a method for displaying search effects, the method including:
[0006] Get the current search term and the special effects configuration file;
[0007] The current search term is matched in the special effects configuration file to determine the corresponding target special effects link;
[0008] Obtain the target effect file corresponding to the current search term based on the target effect link;
[0009] Display the animation effects corresponding to the target effects file.
[0010] This disclosure also provides a search effect display device, the device comprising:
[0011] The acquisition module is used to obtain the current search term and the special effects configuration file;
[0012] The matching module is used to match the current search term in the special effects configuration file to determine the corresponding target special effects link;
[0013] The file module is used to obtain the target effect file corresponding to the current search term based on the target effect link;
[0014] The display module is used to display the animation effects corresponding to the target effects file.
[0015] This disclosure also provides an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the search effects display method provided in this disclosure.
[0016] This disclosure also provides a computer-readable storage medium storing a computer program for executing the search effects display method provided in this disclosure.
[0017] Compared with the prior art, the technical solution provided in this disclosure has the following advantages: The search effect display scheme provided in this disclosure obtains the current search term and the effect configuration file; matches the current search term in the effect configuration file to determine the corresponding target effect link; obtains the target effect file corresponding to the current search term based on the target effect link; and displays the animation effect corresponding to the target effect file. By using the above technical solution, the link to the effect file is determined by matching the current search term in the obtained effect configuration file, and the effect file is obtained online to display the animation effect of the current search term. Since both the effect configuration file and the effect file are obtained online, the need for continuous client updates due to effect file updates is avoided, improving the real-time performance and universality of the search effect display. Furthermore, the effect file can be set and updated according to requirements, rather than being limited to a single effect, thus improving the flexibility and richness of the search effect display. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 A flowchart illustrating a search effect display method provided in this embodiment of the disclosure;
[0020] Figure 2 A flowchart illustrating another method for displaying search effects provided in this embodiment of the disclosure;
[0021] Figure 3 A schematic diagram illustrating a search effect display provided in an embodiment of this disclosure;
[0022] Figure 4 A schematic diagram illustrating another search effect provided in an embodiment of this disclosure;
[0023] Figure 5 This is a schematic diagram of the structure of a search effect display device provided in an embodiment of the present disclosure;
[0024] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0025] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0026] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0027] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0028] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0029] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0030] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0031] To address the problems existing in the display of search effects in related technologies, this disclosure provides a method for displaying search effects, which will be described below with reference to specific embodiments.
[0032] Figure 1This is a flowchart illustrating a search effects display method provided in an embodiment of this disclosure. The method can be executed by a search effects display device, which can be implemented using software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method includes:
[0033] Step 101: Obtain the current search term and the special effects configuration file.
[0034] The current search term can be a search term currently selected by the user, used to search for related content based on this current search term. The special effects configuration file can be a file used to configure animation effects or Easter egg effects corresponding to the search scenario. In this embodiment, the special effects configuration file includes a mapping relationship between keywords and special effects links. Keywords can be key terms in the special effects index, and the number of keywords can be multiple, depending on the actual situation. The special effects link can be the storage address (Uniform Resource Locator, URL) corresponding to the special effects file. In this embodiment, the special effects file can be deployed online and a corresponding link can be generated for retrieval. Each keyword corresponds to at least one special effects link; that is, each keyword can be configured with one or more special effects files to achieve various special effects. For example, the keyword "black hole" can correspond to both static and dynamic special effects files.
[0035] In some embodiments, obtaining the current search term may include: obtaining the current search term in response to user input or word selection. The client may obtain the current search term entered by the user; or it may use the selected word as the current search term based on the user's word selection on the webpage. The above two methods are merely examples; other methods can also be used to obtain the current search term.
[0036] In some embodiments, obtaining the special effects configuration file may include: retrieving the special effects configuration file from a special effects platform at preset time intervals, wherein the special effects configuration file is modifiable. The preset time interval can be set according to actual conditions, for example, it can be set to 30 minutes. The special effects platform can be a platform used to develop or create special effects files and generate corresponding special effects links. The mapping relationship between keywords and special effects links in the special effects configuration file can be modified, added, or deleted according to business needs, etc., to achieve flexible adjustment. Optionally, the special effects configuration file can be stored in JSON format, which is only an example.
[0037] The client can obtain the effect configuration files sequentially upon startup, and then retrieve the effect configuration files from the effect platform at preset time intervals to prepare for the subsequent search effect display.
[0038] Step 102: Match the current search term in the special effects configuration file to determine the corresponding target special effects link.
[0039] Among them, the target effect link can be understood as the effect link corresponding to the current search term.
[0040] In some embodiments, matching the current search term in the effect configuration file to determine the corresponding target effect link may include: matching the current search term with each keyword in the effect configuration file based on similarity; determining at least one initial effect link corresponding to the target keyword with a similarity greater than a similarity threshold; and determining the target effect link among the at least one initial effect link. Optionally, determining the target effect link among the at least one initial effect link may include: determining the initial effect link with the highest display frequency among the at least one initial effect link as the target effect link.
[0041] The similarity threshold can be set according to actual conditions; for example, it can be set to 80%. The client can determine the similarity between the current search term and each keyword in the effect configuration file, and determine whether each similarity is greater than the similarity threshold. If so, the keyword with that similarity is the target keyword, and the target keyword can correspond to at least one initial effect link. Then, the client can determine the link with the most displays among at least one initial effect link and designate it as the final target effect link, or it can designate any initial effect link as the target effect link, or it can obtain the user's age after user authorization and determine the target effect link among at least one initial effect link based on the user's age.
[0042] For example, by obtaining the authorized user's age, if the user is relatively young, the initial effect link with cool and colorful effects can be determined as the target effect link. If the user is relatively middle-aged or elderly, the initial effect link with a more stable effect can be determined as the target effect link. Determining the effect link that matches the user's characteristics based on their actual situation can enhance the personalized effect of the special effects and give the user a different special effects experience.
[0043] Step 103: Obtain the target effect file corresponding to the current search term based on the target effect link.
[0044] Special effects files can be specific files that represent animation effects or Easter egg effects. For example, special effects files can include multiple images or videos of the effects, and there are no restrictions on the specifics.
[0045] After determining the target effect link, the client can access the corresponding file storage space based on the target effect link and obtain the target effect file stored therein, which is the current file.
[0046] Step 104: Display the animation effects corresponding to the target effects file.
[0047] Among them, animation effects can be the effects corresponding to the search terms in the search scenario, and can include various static or dynamic effects, etc., with no specific limitations.
[0048] In some embodiments, displaying the animation effects corresponding to the target effects file may include displaying the animation effects corresponding to the target effects file using a floating layer. This floating layer method can involve adding a transparent floating layer to the page and displaying the animation effects on this transparent floating layer. This method does not interfere with the original page content displayed below the floating layer, that is, it does not affect the display of the original page content, ensuring the display effect of the original content while displaying the animation effects.
[0049] In some embodiments, displaying the animation effect corresponding to the target effect file includes at least one of the following: displaying the animation effect corresponding to the target effect file before displaying the search results page for the current search term; displaying the animation effect corresponding to the target effect file above the search results page for the current search term; and displaying the animation effect corresponding to the target effect file above the target search details page for the current search term.
[0050] After obtaining the target effect file corresponding to the current search term, if the client has not yet received a user's search operation, it can only display the animation effect corresponding to the target effect file, and then display the search results page for the current search term in response to the user's search operation; and / or, after obtaining the target effect file corresponding to the current search term, the client can display the animation effect corresponding to the target effect file above the search results page for the current search term in response to the user's search operation, and the display of this animation effect will not affect the content display in the search results page; and / or, after obtaining the target effect file corresponding to the current search term, the client can first display the search results page in response to the user's search operation, and then display the target search details page for the target search result in response to the trigger operation of the target search result, and display the animation effect corresponding to the target effect file above the target search details page, and the display of this animation effect will not affect the content display.
[0051] The above solution, for displaying animation effects in search scenarios, can display the animation effects of search terms on any one or more pages in the search scenario, and the display timing can also be varied, further improving the flexibility and diversity of search effect display.
[0052] For example, if the current search term is "black hole", a very vivid animation of a black hole can be displayed. After the animation disappears, the user can be redirected to a search results page related to "black hole". If the current search term is "ephemeral beauty", the matching target keyword is "ephemeral beauty", and a rapid process of an epiphyllum blooming and withering can be displayed. The animation disappears after it finishes. The above current search terms are just examples. Other possible search terms include "shake" and "sun".
[0053] This solution can add animation effects or Easter egg effects based on search terms, enhancing the fun of searching, making the search more vivid and interesting, and thus improving the user's search experience.
[0054] The search effect display scheme provided in this disclosure involves obtaining the current search term and an effect configuration file; matching the current search term with the effect configuration file to determine the corresponding target effect link; obtaining the target effect file corresponding to the current search term based on the target effect link; and displaying the animation effect corresponding to the target effect file. By using this technical solution, the link to the effect file is determined by matching the current search term with the obtained effect configuration file, and the effect file is obtained online to display the animation effect of the current search term. Since both the effect configuration file and the effect file are obtained online, the need for continuous client updates due to effect file updates is avoided, improving the real-time performance and versatility of the search effect display. Furthermore, the effect file can be set and updated according to needs, rather than being limited to a single effect, thus enhancing the flexibility and richness of the search effect display.
[0055] For example, Figure 2 A flowchart illustrating another search effect display method provided in this disclosure embodiment is shown below. Figure 2 As shown, in one feasible implementation, after obtaining the current search term and the special effects configuration file, the search effects display method may further include:
[0056] Step 201: Segment the current search term to determine at least one current keyword included.
[0057] The current keyword can be the word segmentation result obtained by segmenting the current search term. The current keyword can include words of various parts of speech such as nouns, verbs, and adjectives, and there are no specific restrictions. For example, if the current search term is "What day is the New Year", the current keyword obtained after word segmentation can include "New Year", "is", and "what day".
[0058] Specifically, after obtaining the current search term and the special effects configuration file, the client can use a preset word segmentation algorithm to segment the current search term to obtain at least one current keyword. The preset word segmentation algorithm can be any word segmentation algorithm in related technologies, and this embodiment of the disclosure does not limit it.
[0059] Step 202: Determine the total weight of the current search term based on the preset weight of the part of speech of each current keyword.
[0060] This embodiment of the disclosure can pre-set corresponding weights for the different parts of speech of each current keyword obtained by segmenting the current search term, that is, the aforementioned preset weights. These preset weights can be determined by machine learning or other methods, and are not limited thereto. For example, the weight of nouns in the current keyword is set to 1, and the weight of other words is set to 0.8, which is only an example.
[0061] In this embodiment, the client can calculate the final total weight of the current search term by weighting the preset weights of the parts of speech of each current keyword. In some embodiments, the total weight can be equal to the average of the preset weights of the parts of speech of each current keyword, i.e., s = (a1 + a2 + ... + an) / n, where s represents the total weight, an represents the preset weight of the nth part of speech of the current keyword, and n represents the total number of current keywords. In other embodiments, the total weight can also be equal to the weighted average of the preset weights of nouns in each current keyword and the sum of the preset weights of other parts of speech besides nouns, i.e., s = (b1 + b2 + ... + bm) / m + (c1 + c2 + ... + ck), where s represents the total weight, bm represents the preset weight of the mth noun in each current keyword, m represents the number of nouns, and ck represents the preset weight of the kth other part of speech in each current keyword. In this case, the preset weights of other parts of speech besides nouns can be set to the same value and be negative; for example, c1 to ck can all be set to -0.2. The above two methods for determining the total weight of the current search term are merely examples and not limitations.
[0062] Step 203: Is the total weight of the current search term greater than or equal to the weight threshold? If yes, proceed to step 204; otherwise, proceed to step 205.
[0063] The weight threshold can be the minimum of the total weights of the display effects set for the search term. The specific weight threshold can be set according to the actual situation. For example, the weight threshold can be set to 0.8.
[0064] Compare the total weight of the current search term with the weight threshold. If the total weight is greater than or equal to the weight threshold, it means that the current search term meets the conditions for displaying special effects, and step 204 can be executed; otherwise, it means that the current search term does not meet the conditions for displaying special effects, and step 205 can be executed.
[0065] Step 204: Match the current search term in the special effects configuration file to determine the corresponding target special effects link.
[0066] This step is step 102 mentioned above.
[0067] For example, assuming the current search term is "Spring Festival" or "New Year", and the current keyword is the same as the current search term and is a noun, then the total weight is greater than the weight threshold, and steps 102-104 above can be executed to display the corresponding animation effects; assuming the current search term is "New Spring Festival Day", and the current keyword includes "New Spring", "Spring Festival", and "festival", all of which are nouns, and the total weight is greater than the weight threshold, then steps 102-104 above can be executed to display the corresponding animation effects.
[0068] Step 205: In response to the search trigger operation, display the search results page for the current search term.
[0069] If the total weight of the current search term is less than the weight threshold, the conditions for displaying special effects are not met. User actions can be detected. When a user's search trigger action for the current search term is received, the search results page for the current search term can be displayed directly. Search trigger actions can include gesture control actions (such as clicking, long pressing, double-tapping, etc.), voice control actions, or facial expression control actions, etc., and there are no restrictions on the specific actions.
[0070] For example, suppose the current search term is "what day is New Year", and the current keywords include "New Year", "is", and "what day". The total weight is 0.6, which is less than the weight threshold. In this case, step 102 is not executed, and step 205 is executed instead.
[0071] In the above solution, the search terms are judged according to a certain strategy to determine whether they meet the conditions for triggering special effects. Only when the search terms meet the conditions for triggering special effects will subsequent special effects matching and animation effects be displayed. This avoids the appearance of special effects when users do not want them to be displayed in certain search scenarios, making the search special effects display more in line with personalized search needs, further improving the flexibility and accuracy of search special effects display, and thus improving the user's search experience.
[0072] In some embodiments, after displaying the animation effects corresponding to the target effect file, the search effect display method of this disclosure may further include: displaying guidance information and, in response to a triggering operation on the guidance information, redirecting to the effect landing page corresponding to the target effect file. The effect landing page can be a guidance landing page set for the effect file, and can be specifically set according to actual conditions. For example, for a search term related to a game, the game download page can be set as the corresponding effect landing page for the corresponding effect file; this is just an example. The guidance information can be set according to specific actual conditions. For example, when the effect landing page is a game download page, the guidance information can be "Click to enter the game download page," which is just an example.
[0073] By setting up guidance information and special effects landing pages, the client can not only display search animation effects but also guide users to relevant pages based on the specific effects content. This allows users to quickly jump to further pages without having to search for related content again, saving users time and effort. It better meets users' actual needs, thereby increasing the coverage of special effects display and further enhancing user stickiness and the search effect experience.
[0074] The special effects display method of this disclosure embodiment will be further illustrated by specific examples below. For example, Figure 3 This is a schematic diagram illustrating a search effect display provided in an embodiment of the present disclosure, such as... Figure 3 As shown in the diagram, the entire process from special effects creation to display can be summarized as follows: In the special effects platform, developers can create a large number of special effects files, set corresponding animations and navigation methods, etc., to increase the platform's coverage; then, the special effects files can be deployed online to generate independent special effects links, and the keywords for the special effects files can be determined. The mapping relationship between keywords and special effects links is written into the special effects configuration file; when a user determines a search term, they can request the special effects platform to obtain the returned special effects configuration file that matches the special effects link corresponding to the search term. Based on the special effects link, the corresponding special effects file is obtained and displayed as a floating layer with the corresponding animation effects. After the animation ends, the user can be redirected to the corresponding search results page.
[0075] For example, Figure 4 An illustration of another search effect provided in this embodiment of the disclosure, such as... Figure 4 As shown in the diagram, the process of displaying search effects on the client side can be as follows: After the user enters a search term, they can click "search." The search term is matched against the effect configuration file to determine if an effect or effect link is matched. If so, one of the at least one matched effect link is selected according to a preset strategy and an animation effect is displayed. One display method is to display the animation effect while entering the search results page, providing a more vivid and user-friendly presentation of the content the user needs. The preset strategy may include the number of displays or the user's age obtained with user authorization, etc., with no specific limitations. If no effect is matched, the user proceeds to the search results page normally. After the animation ends, it is determined whether to redirect to a landing page. If so, the user is redirected to the effect landing page, which can be a landing page pre-set for the current effect file. If the user is not redirected to a landing page, the search results page is displayed. After the developers create the effect file, they can write the mapping relationship between the effect link and the keyword into the effect configuration file. The effect configuration file supports adding and deleting operations, and the client can retrieve the effect configuration file when needed.
[0076] The search effects display scheme provided in this disclosure displays more interesting and diverse animation effects or Easter egg effects for specific search terms while searching, thereby increasing the fun of searching, user stickiness and experience; and supports adding effects to the search, which take effect in real time, improving the real-time nature and versatility of the effects display.
[0077] Figure 5 This is a schematic diagram of a search effects display device provided in an embodiment of this disclosure. The device can be implemented by software and / or hardware, and is generally integrated into an electronic device. Figure 5 As shown, the device includes:
[0078] Module 501 is used to obtain the current search term and the special effects configuration file;
[0079] Matching module 502 is used to match the current search term in the special effects configuration file to determine the corresponding target special effects link;
[0080] File module 503 is used to obtain the target effect file corresponding to the current search term based on the target effect link;
[0081] The display module 504 is used to display the animation effects corresponding to the target effect file.
[0082] Optionally, the acquisition module 501 is used for:
[0083] The special effects configuration file is retrieved from the special effects platform at preset time intervals, and the special effects configuration file can be modified.
[0084] Optionally, the special effects configuration file includes a mapping relationship between keywords and special effects links, with each keyword corresponding to at least one special effects link, and the number of keywords being multiple.
[0085] Optionally, the matching module 502 includes:
[0086] The first unit is used to match the current search term with each keyword in the special effects configuration file based on similarity.
[0087] The second unit is used to determine at least one initial special effect link corresponding to the target keyword with a similarity greater than the similarity threshold;
[0088] The third unit is used to determine the target effect link in the at least one initial effect link.
[0089] Optionally, the third unit is used for:
[0090] The initial effect link that is displayed most frequently among the at least one initial effect link is determined as the target effect link.
[0091] Optionally, the display module 504 is used for at least one of the following:
[0092] Display the animation effects corresponding to the target effects file before displaying the search results page for the current search term;
[0093] The animation effects corresponding to the target effects file are displayed above the search results page for the current search term;
[0094] The animation effects corresponding to the target effect file are displayed above the target search details page for the current search term.
[0095] Optionally, the display module 504 is used for:
[0096] The animation effects corresponding to the target effects file are displayed using a floating layer.
[0097] Optionally, the device further includes a weighting module, used for: after obtaining the current search term and obtaining the special effects configuration file,
[0098] The current search term is segmented to identify at least one current keyword.
[0099] The total weight of the current search term is determined based on the preset weight of the part of speech to which each current keyword belongs.
[0100] Optionally, the matching module 502 is used for:
[0101] If the total weight of the current search term is greater than or equal to the weight threshold, then the step of matching the current search term in the special effects configuration file to determine the corresponding target special effects link is executed.
[0102] The search effects display device provided in this disclosure can execute the search effects display method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0103] This disclosure also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the search effects display method provided in any embodiment of this disclosure.
[0104] Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. See below for details. Figure 6The diagram illustrates a structural schematic suitable for implementing the electronic device 600 in the embodiments of this disclosure. The electronic device 600 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0105] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0106] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0107] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the search effects display method of embodiments of this disclosure.
[0108] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0109] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0110] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0111] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: obtain a current search term and obtain an effects configuration file; match the current search term in the effects configuration file to determine a corresponding target effects link; obtain a target effects file corresponding to the current search term based on the target effects link; and display the animation effects corresponding to the target effects file.
[0112] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0114] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0115] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0116] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0117] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0118] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0119] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method of searching for a special effect presentation, characterized by, The method comprises: obtaining a current search word and obtaining a special effect configuration file; wherein the special effect configuration file comprises a mapping relationship between keywords and special effect links, and the special effect links comprise storage addresses generated for special effect files when the special effect files are deployed online; performing word segmentation on the current search word to determine at least one current keyword; determining a total weight of the current search word according to a preset weight of a part of speech to which each current keyword belongs; if the total weight of the current search word is greater than or equal to a weight threshold, matching the current search word in the special effect configuration file to determine a corresponding target special effect link; wherein the target special effect link is determined from at least one special effect link matched according to a preset strategy; obtaining a target special effect file corresponding to the current search word according to the target special effect link; displaying an animation special effect corresponding to the target special effect file; displaying guide information, and in response to a triggering operation on the guide information, jumping to a special effect landing page corresponding to the target special effect file; wherein the special effect landing page comprises a guide landing page set for the target special effect file. The method further comprises: obtaining the special effect configuration file from a special effect platform at a preset time interval, and the special effect configuration file supports modification.
2. The method of claim 1, wherein, The special effect configuration file comprises a mapping relationship between keywords and special effect links, and each keyword corresponds to at least one special effect link, and the number of keywords is multiple.
3. The method of claim 2, wherein, The method further comprises: performing similarity matching between the current search word and each keyword in the special effect configuration file; determining at least one initial special effect link corresponding to a target keyword with a similarity greater than a similarity threshold; determining a target special effect link in the at least one initial special effect link.
4. The method of claim 3, wherein, The method further comprises: determining an initial special effect link with the most display times in the at least one initial special effect link as the target special effect link.
5. The method of claim 1, wherein, The method further comprises: displaying the animation special effect corresponding to the target special effect file in at least one of the following manners: displaying the animation special effect corresponding to the target special effect file before displaying a search result page of the current search word; displaying the animation special effect corresponding to the target special effect file above the search result page of the current search word; 6. The method of claim 1, wherein, displaying the animation special effect corresponding to the target special effect file above a target search detail page of the current search word. The method further comprises:
7. A search special effect presentation device characterized by, displaying the animation special effect corresponding to the target special effect file in the form of a floating layer. The method comprises: an obtaining module, configured to obtain a current search word and obtain a special effect configuration file; wherein the special effect configuration file comprises a mapping relationship between keywords and special effect links, and the special effect links comprise storage addresses generated for special effect files when the special effect files are deployed online; The weight module is configured to perform word segmentation on the current search term, determine at least one current keyword included in the current search term, and determine a total weight of the current search term according to a preset weight of a part of speech to which each current keyword belongs. The matching module is configured to match the current search term in the special effect configuration file to determine a corresponding target special effect link if the total weight of the current search term is greater than or equal to a weight threshold, wherein the target special effect link is determined from at least one special effect link matched according to a preset strategy. The file module is configured to obtain a target special effect file corresponding to the current search term according to the target special effect link. The display module is configured to display an animation special effect corresponding to the target special effect file, display guide information, and jump to a special effect landing page corresponding to the target special effect file in response to a triggering operation on the guide information, wherein the special effect landing page includes a guide landing page set for the target special effect file. The obtaining module is further configured to obtain the special effect configuration file from a special effect platform at a preset time interval, and the special effect configuration file supports modification.
8. An electronic device, comprising: The electronic device includes: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the search special effect display method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is used to execute the search special effect display method of any one of claims 1-6.
Citation Information
Patent Citations
Text matching method and device
CN105893533A
Method and device for displaying extra scene and storage medium
CN107577513A
Animation display method and device, terminal, server and storage medium
CN108549567A
Rendering special effect updating method and device, electronic equipment and storage medium
CN113805919A
Method and device for presenting text message, medium and program product
CN114296560A