Book Search Method and Computing Device Based on the Connection between Plug-ins and Host Applications
By establishing a connection interface between the plug-in and the host application, the search gap problem when there is no matching result in the plug-in database is solved, and the unconscious search result display is achieved, which improves user retention rate.
Patent Information
- Application Number
- CN202110839510.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2041-07-23
AI Technical Summary
In the prior art, when a user enters book keyword search in an e-book reading platform, if the background database does not search for matching results, effective feedback cannot be given, resulting in a decrease in user churn and retention rate.
By establishing a connection interface between the plug-in and the host application, if there is no matching result in the plug-in database, the host application is activated for searching, and the search results are encapsulated and displayed in the plug-in format. The user can view the results on the plug-in page without perception.
It reduces the situation where the search results are empty, reduces the probability of user churn, and improves user retention. Users believe that the plug-in can meet search needs.
Smart Images

Figure CN113486049B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a book search method and a computing device based on the connection between a plugin and a host application. Background Art
[0002] With the popularization of the Internet, more and more people read through mobile devices. Different from traditional book reading, e-book reading provides various e-book contents to users through diverse reading forms on mobile devices. At the same time, a book search function is also provided in the e-book reading platform so that users can search for data.
[0003] However, the inventor found in the process of implementing the present invention that when a user inputs a book keyword for searching, if no matching book information is found in the background database, effective book information cannot be fed back to the user, the search ability is weak, and this will cause the loss of this user, resulting in a decrease in the user retention rate. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide a book search method and a computing device based on the connection between a plugin and a host application that overcome the above problems or at least partially solve the above problems.
[0005] According to one aspect of the present invention, there is provided a book search method based on the connection between a plugin and a host application, the method comprising:
[0006] Receiving a book search operation triggered by a user at a search entry of the plugin, and searching for a first book data entry matching the search keyword in the plugin database;
[0007] If the first book data entry is empty, using the connection interface between the plugin and the host application to invoke the host application to search for the search result of book information matching the search keyword;
[0008] Encapsulating the book information search result in a preset format to obtain a second book data entry;
[0009] Rendering and displaying the second book data entry on the search result page of the plugin.
[0010] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete communication with each other through the communication bus;
[0011] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the above operations:
[0012] Receive the book search operation triggered by the user at the search entry of the plugin, and search for the first book data entry in the plugin database that matches the search keyword;
[0013] If the first book data entry is empty, use the connection interface between the plugin and the host application to invoke the host application to search for the book information search results that match the search keyword;
[0014] Encapsulate the book information search results in a preset format to obtain a second book data entry;
[0015] Render and display the second book data entry on the search result page of the plugin.
[0016] According to another aspect of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes the processor to perform the following operations:
[0017] Receive the book search operation triggered by the user at the search entry of the plugin, and search for the first book data entry in the plugin database that matches the search keyword;
[0018] If the first book data entry is empty, use the connection interface between the plugin and the host application to invoke the host application to search for the book information search results that match the search keyword;
[0019] Encapsulate the book information search results in a preset format to obtain a second book data entry;
[0020] Render and display the second book data entry on the search result page of the plugin.
[0021] According to the book search method and computing device based on the connection between the plugin and the host application of the present invention, the method includes: receiving the book search operation triggered by the user at the search entry of the plugin, and searching for the first book data entry in the plugin database that matches the search keyword; if the first book data entry is empty, using the connection interface between the plugin and the host application to invoke the host application to search for the book information search results that match the search keyword; encapsulating the book information search results in a preset format to obtain a second book data entry; rendering and displaying the second book data entry on the search result page of the plugin. In the manner of the embodiments of the present invention, by connecting the search of the plugin with the search of its host application and invoking the host application to search when the search result of the plugin is empty, the situation of empty search results can be reduced, the probability of user loss can be decreased, and thus the user retention rate can be improved; secondly, assembling the search results obtained by the host application into the format specified by the plugin and displaying them on the search result page of the plugin, the user cannot tell that the search results come from the host application and thinks that the plugin can meet its search needs, which also helps to reduce the probability of user loss of the plugin.
[0022] The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the content of the specification. And in order to make the above and other objects, features and advantages of the present invention more obvious and understandable, the following specifically illustrates the specific embodiments of the present invention. Description of the Drawings
[0023] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0024] Figure 1 shows a flowchart of a book search method provided by an embodiment of the present invention based on the connection between a plugin and a host application;
[0025] Figure 2 shows a flowchart of a book search method provided by another embodiment of the present invention based on the connection between a plugin and a host application;
[0026] Figure 3 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention. Detailed Embodiments
[0027] The exemplary embodiments of the present invention will be described in more detail below with reference to the drawings. Although the exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present invention can be more thoroughly understood and the scope of the present invention can be fully conveyed to those skilled in the art.
[0028] Figure 1 shows a flowchart of a book search method provided by an embodiment of the present invention based on the connection between a plugin and a host application, as Figure 1 shown, the method includes the following steps:
[0029] Step S110, receiving a book search operation triggered by a user at the search entry of the plugin, and searching for a first book data entry that matches the search keyword in the plugin database.
[0030] Among them, the functions of the plugin include book reading, book search, book purchase, etc. Specifically, in implementation, the various functions of the e-book application program can be integrated and pluginized to obtain the plugin described in this embodiment. This plugin can be embedded into other applications, and users can quickly call out the plugin to use the plugin functions during the process of using the host application.
[0031] A search entry is displayed on the search page of the plugin. For example, the search entry includes a search term input box and a search button. The user enters a search keyword in the search term input box and then clicks the search button, thus performing a book search operation. After receiving the book search operation, the first book data entry that matches the search keyword is searched for in the database corresponding to the plugin. The first book data entry contains multiple information items of the book.
[0032] Step S120, if the first book data entry is empty, use the access interface between the plugin and the host application to invoke the host application to search for the book information search results that match the search keyword.
[0033] Among them, the plugin is embedded in the host application. In actual applications, the operator will embed its own plugin product into the application it develops, or two operators in a cooperative relationship will embed one party's plugin into the application of the other party.
[0034] If the first book data entry is empty, that is, the search function of the plugin fails to search for a book data entry that matches the search keyword. For example, if the copyright of the book is not obtained and there is no corresponding book resource in the plugin database, then the host application of the plugin is used to search again. Specifically, through the access interface between the plugin and its host application, the host application is called to search using this search keyword to obtain the book information search results.
[0035] Step S130, encapsulate the book information search results in a preset format to obtain a second book data entry.
[0036] Generally, the information items and display styles included in the search results of the plugin are inconsistent with those included in the search results of the host application. Directly presenting the search results of the host application in the plugin or directly jumping to the search result page of the host application is inconsistent with the information items and formats displayed by the user during normal plugin searches. Inevitably, the user will think that the plugin cannot meet their search needs and will jump to other applications to search, thus giving up using the plugin.
[0037] Based on this, in the method of this embodiment, the book information search results obtained by searching the host application are acquired, and then, they are encapsulated according to the data format (i.e., the preset format) of the book data entry in the plugin to obtain a second book data entry, which is equivalent to assembling the book information search results of the host application into the data format required by the plugin search result page.
[0038] Step S140, render and display the second book data entry on the search result page of the plugin.
[0039] Finally, the second book data entry is rendered and displayed on the search result page of the plugin. The data of the second book data entry essentially comes from the host application of the plugin, but is displayed on the search result page of the plugin, and the display form is the display form of the search results of the plugin. It can be seen that during the search process, the host application is only used to provide data and not to display data. For users, the process of jumping to the host application for searching is imperceptible, and the page presented to the user is always the plugin page. The plugin can meet their search needs and avoid the loss of plugin users.
[0040] According to the book search method based on the connection between the plugin and the host application provided in this embodiment, the plugin is embedded in the host application, and there is a connection interface between the plugin and the host application. When the user searches in the plugin, if no book data entry matching the search keyword is found in the plugin database, the host application is invoked through the connection interface to search for the book information search results matching the search keyword. It can be seen that by connecting the search of the plugin with the search of its host application and invoking the host application for search when the search result of the plugin is empty, the situation of empty search results can be reduced, and the probability of plugin user loss can be decreased, thereby helping to improve the user retention rate. Secondly, the search results obtained by the host application are assembled into the format specified by the plugin and displayed on the search result page of the plugin. Users cannot tell that the search results come from the host application and think that the plugin can meet their search needs, which also helps to reduce the probability of plugin user loss.
[0041] Figure 2 The flowchart of the book search method based on the connection between the plugin and the host application provided in another embodiment of the present invention is shown, as Figure 2 shown, and the method includes the following steps:
[0042] Step S210, receive the book search operation triggered by the user at the search entry of the plugin, and search in the plugin database for the first book data entry matching the search keyword.
[0043] Receive the user's book search operation, determine the search keyword according to the book search operation, and search in the plugin database for the first book data entry matching the search keyword. Among them, the various functions of the e-book application are integrated and pluginized to obtain the above-mentioned plugin. The plugin database stores book resources, and the book resources are stored in the form of book data entries. The book data entries include information items such as book covers, book names, book authors, book introductions, and book ratings.
[0044] Step S220, if the first book data entry is empty, use the connection interface between the plugin and the host application to invoke the host application to search for the book information search results matching the search keyword.
[0045] If no first book data entry matching the search keyword is found in the plugin database, the host application is invoked through the interface between the plugin and its host application for a second search to search for book information search results matching the search keyword in the database of the host application.
[0046] For example, a user enters the title of a book in the search page of the plugin for searching. If there is no relevant resource of this book in the plugin database, the title is passed to the host browser through the interface between the plugin and the host browser. The host browser uses this title to conduct another search, and the search results include relevant information about the book, such as the introduction of the book author, the cover picture of the book, the relevant website of the book, and so on.
[0047] Step S230: According to the preset book data entry template, extract book information items from the book information search results, and encapsulate the book information items to obtain a second book data entry.
[0048] In this embodiment, after obtaining the book information search results retrieved by the host application, according to the preset book data entry template, each book information item is extracted from the book information search results, and each book information item is encapsulated to obtain a second book data entry.
[0049] Among them, the preset book data entry template stipulates the book information items included in the data entry and the display styles of each book information item. The book information items may include: book website, book details information, book introduction information, book pictures, and so on. Specifically, the preset book data template contains information on the display position and size of the information item indicating the picture type, such as the display position and size of the book cover, and information on the number of display characters, font, and font size of the information item indicating the character type, such as only the first 200 characters of the book introduction are displayed, the font is regular script, and the font size is No. 4, and information on the display style of the information item indicating the number type, and so on. In short, the preset book data entry template is set based on the format of the book data entry of the plugin. Using the preset book data entry template to encapsulate each book information item aims to assemble the information retrieved from the host application into the format of the book data entry in the plugin search result page. In this way, the effect of search processing jump but the display page does not jump is achieved, avoiding giving users the feeling that the search jumps from the plugin to the outside, which helps to reduce the user churn rate of the plugin.
[0050] Among them, for the book website extracted from the book information search results of the host application, a book data entry is set to link to the web page of this book website, so that it can be jumped to the web page corresponding to this website in the subsequent process. For example, the book data entry corresponding to the book cover picture is set to link to the web page corresponding to this book website.
[0051] Optionally, store the second book data entry into the plugin database to enrich the resource data of the plugin database, so as to reduce the situation where the plugin search result is empty.
[0052] Step S240, render and display the second book data entry on the search result page of the plugin.
[0053] Render and display the second book data entry corresponding to each book information item on the search result page of the plugin.
[0054] Step S250, in response to the user's triggering operation on the second book data entry linked to the page of the book website, utilize the communication interface between the plugin and the host application to invoke the host application to search for the book website and jump to and display the web page corresponding to the book website.
[0055] On the search result page of the plugin, there is a second book data entry with a link to the web page of the book website. When the user clicks on this second book data entry, they can be redirected to the web page corresponding to the book website. That is, when viewing the search results, they are directly redirected to the web page of the host application that displays the book website.
[0056] In the prior art, if the user cannot find a matching search result in the application, they will switch to another application for searching, which requires a large number of user operations. In the method of this embodiment, on the one hand, it is possible to extract valid book information items from the search results of the host application and render and display them on the search result page of the plugin. Moreover, it also extracts the book website searched by the host application and adds an entry on the search result page to directly jump to the web page of this website. The user can quickly view the relevant web pages of the searched book, saving user operations, and thus helping to reduce the user churn rate of the plugin.
[0057] Step S260, add a book cover element to the bookshelf page of the plugin, where the book cover element is linked to the web page corresponding to the book website.
[0058] Step S270, in response to the user's triggering operation on the book cover element, utilize the communication interface between the plugin and the host application to invoke the host application to search for the book website and jump to and display the web page corresponding to the book website.
[0059] Optionally, after extracting the book website of the book information search result, display a prompt message to add to the bookshelf. In response to the user's triggering operation to add to the bookshelf, add a book cover element to the bookshelf page of the plugin.
[0060] On the bookshelf page of the plugin, add a book cover element that links to the web page corresponding to the book URL. Clicking on this book cover element can jump to the web page of the book URL, which is equivalent to providing a quick jump entry to the web page of the book URL for the user. Subsequently, when the user wants to view the information of this book, there is no need for the user to search in the host application again. The user can operate on the bookshelf page of the plugin to jump to the web page of the book URL, reducing the user's operation to view the web page of the book URL.
[0061] According to the book search method based on the connection between the plugin and the host application provided in this embodiment, the plugin is embedded in the host application, and there is a connection interface between the plugin and the host application. When the user searches in the plugin, if no book data entry matching the search keyword is found in the plugin database, the host application is invoked through the connection interface to search for the search result of book information matching the search keyword; then, information items including the book URL are extracted from the search result of the host application, assembled into the format required for the plugin search result page, and displayed on the search result page of the plugin, achieving the effect of search processing jump but the display page does not jump, avoiding giving the user the feeling of searching from the plugin to the outside, which helps to reduce the user churn rate of the plugin. At the same time, in the stage of viewing the search results, the user can jump to the web page corresponding to the book web page in the host application by clicking on the book data entry, saving the user's operations of searching and filtering information, which helps to reduce the user churn rate of the plugin. In addition, an entry for jumping to the web page of the book URL in the host application is rendered and displayed on the search result page of the bookshelf page of the plugin, providing a quick jump entry to the web page of the book URL for the user. Subsequently, when the user wants to view the relevant information of this book, there is no need for the user to search in the host application again. The user can operate on the bookshelf page of the plugin to jump to the web page of the book URL, reducing the user's operation to view the web page of the book URL.
[0062] An embodiment of the present invention provides a non-volatile computer storage medium, and the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the book search method based on the connection between the plugin and the host application in any of the above method embodiments.
[0063] The executable instruction can specifically be used to cause the processor to perform the following operations:
[0064] Receive the book search operation triggered by the user at the search entry of the plugin, and search for the first book data entry matching the search keyword in the plugin database;
[0065] If the first book data entry is empty, use the connection interface between the plugin and the host application to invoke the host application to search for the search result of book information matching the search keyword;
[0066] Encapsulate the search results of book information in a preset format to obtain the second book data entry;
[0067] Render and display the second book data entry on the search result page of the plugin.
[0068] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0069] Extract at least one book information item from the book information search results according to a preset book data entry template, and encapsulate the at least one book information item.
[0070] In an alternative manner, at least one book information item includes: a book website URL, and the second book data entry includes: a second book data entry that links to the web page corresponding to the book website URL; the executable instructions cause the processor to perform the following operations:
[0071] In response to a trigger operation by the user on the second book data entry, utilize the communication interface between the plugin and the host application to invoke the host application to search for the book website URL and jump to display the web page corresponding to the book website URL.
[0072] In an alternative manner, at least one book information item further includes one or more of the following:
[0073] Book details information, book author information, book introduction information, book pictures.
[0074] In an alternative manner, the executable instructions cause the processor to perform the following operations:
[0075] Add a book cover element to the bookshelf page of the plugin, where the book cover element links to the web page corresponding to the book website URL;
[0076] In response to a trigger operation by the user on the book cover element, utilize the communication interface between the plugin and the host application to invoke the host application to search for the book website URL and jump to display the web page corresponding to the book website URL.
[0077] In an alternative manner, the executable instructions cause the processor to perform the following operation: Store the second book data entry in the plugin database.
[0078] In the above - mentioned method, by integrating the search of the plug - in with the search of its host application and invoking the host application for search when the search results of the plug - in are empty, the situation of empty search results can be reduced, the probability of user loss can be decreased, which is helpful for improving the user retention rate. Secondly, assembling the search results obtained from the host application into the format specified by the plug - in and displaying them on the search result page of the plug - in, users can't tell that the search results come from the host application and think that the plug - in can meet their search needs, which also helps to reduce the probability of user loss of the plug - in.
[0079] Figure 3 FIG. shows the structural schematic diagram of an embodiment of the computing device of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the computing device.
[0080] As Figure 3 shown, the computing device may include: a processor 302, a communications interface 304, a memory 306, and a communication bus 308.
[0081] Among them: The processor 302, the communications interface 304, and the memory 306 communicate with each other through the communication bus 308. The communications interface 304 is used to communicate with network elements of other devices such as clients or other servers. The processor 302 is used to execute the program 310, and specifically can execute the relevant steps in the above - mentioned embodiment of the book search method based on integrating the plug - in with the host application for the computing device.
[0082] Specifically, the program 310 may include program code, and the program code includes computer operation instructions.
[0083] The processor 302 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application - Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the computing device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0084] The memory 306 is used to store the program 310. The memory 306 may include high - speed RAM memory, and may also include non - volatile memory, such as at least one disk memory.
[0085] The program 310 is specifically used to cause the processor 302 to perform the following operations:
[0086] Receiving a book search operation triggered by a user at a search entry of the plug-in, and searching a plug-in database for a first book data entry that matches the search keyword;
[0087] If the first book data entry is empty, using the interface between the plug-in and the host application, the host application is called to search for book information search results that match the search keyword;
[0088] Encapsulating the book information search result in a preset format to obtain a second book data entry;
[0089] Render and display the second book data entry in the search results page of the plug-in.
[0090] In an optional manner, the program 310 enables the processor 302 to perform the following operations:
[0091] According to a preset book data entry template, at least one book information item is extracted from the book information search results, and the at least one book information item is packaged.
[0092] In an optional manner, the at least one book information item includes: a book website address, and the second book data entry includes: a second book data entry linking to a web page corresponding to the book website address; the program 310 enables the processor 302 to perform the following operations:
[0093] In response to the user's triggering operation on the second book data entry, the host application is called up to search for the book URL by utilizing the interface between the plug-in and the host application, and the web page corresponding to the book URL is jumped and displayed.
[0094] In an optional manner, at least one book information item further includes one or more of the following:
[0095] Book details, book author information, book introduction information, and book pictures.
[0096] In an optional manner, the program 310 enables the processor 302 to perform the following operations:
[0097] Add a book cover element to the bookshelf page of the plug-in, where the book cover element is linked to the web page corresponding to the book URL;
[0098] In response to the user's triggering operation on the book cover element, the host application is called up to search for the book URL by utilizing the interface between the plug-in and the host application, and the web page corresponding to the book URL is jumped and displayed.
[0099] In an optional manner, the program 310 enables the processor 302 to perform the following operations:
[0100] The second book data entry is stored in the plug-in database.
[0101] In the above method, by integrating the search of the plugin with that of its host application and invoking the host application for search when the search results of the plugin are empty, the situation of empty search results can be reduced, the probability of user churn can be decreased, and thus it is helpful to improve user retention rate. Secondly, assembling the search results obtained from the host application into the format specified by the plugin and displaying them on the search result page of the plugin, users cannot tell that the search results come from the host application and think that the plugin can meet their search needs, which also helps to reduce the probability of user churn of the plugin.
[0102] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings provided herein. The structure required to construct such systems will be apparent from the above description. In addition, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the present invention described herein can be implemented using various programming languages, and the description of a particular language above is for disclosing the best mode of the present invention.
[0103] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.
[0104] Similarly, it should be understood that, in order to streamline the present invention and assist in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, the inventive aspects lie in less than all of the features of the single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate embodiment of the present invention.
[0105] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature that provides the same, equivalent, or similar purpose.
[0106] In addition, those skilled in the art can understand that although some of the embodiments herein include certain features included in other embodiments rather than other features, the combination of the features of different embodiments means that it is within the scope of the present invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
[0107] Each component embodiment of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for performing part or all of the methods described herein. Such a program for implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or in any other form. It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims listing several devices, several of these devices can be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A book search method based on the connection between a plugin and a host application, the method comprising: Receiving a book search operation triggered by a user at a search entry of the plugin, and searching for a first book data entry matching the search keyword in the plugin database; If the first book data entry is empty, using the connection interface between the plugin and the host application to invoke the host application to search for a book information search result matching the search keyword; Encapsulating the book information search result in a preset format to obtain a second book data entry; wherein the preset format is the data format of the book data entry in the plugin; Rendering and displaying the second book data entry on the search result page of the plugin.
2. The method according to claim 1, wherein The further encapsulating the book information search result in a preset format further includes: Extracting at least one book information item from the book information search result according to a preset book data entry template, and encapsulating the at least one book information item.
3. The method according to claim 2, wherein The at least one book information item includes: a book website address, and the second book data entry includes: a second book data entry linking to the web page corresponding to the book website address; Then the method further includes: In response to a trigger operation by the user on the second book data entry, using the connection interface between the plugin and the host application to invoke the host application to search for the book website address and jump to display the web page corresponding to the book website address.
4. The method according to claim 3, wherein, The at least one book information item further includes one or more of the following: Book details information, book author information, book introduction information, book pictures.
5. The method according to claim 3, wherein, The method further includes: Adding a book cover element to the bookshelf page of the plugin, wherein the book cover element links to the web page corresponding to the book website address; In response to a trigger operation by the user on the book cover element, using the connection interface between the plugin and the host application to invoke the host application to search for the book website address and jump to display the web page corresponding to the book website address.
6. The method according to any one of claims 1-5, wherein, The method further includes: Storing the second book data entry in the plugin database.
7. A computing device, comprising: A processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface complete mutual communication through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the following operations: Receiving a book search operation triggered by a user at a search entry of the plugin, and searching for a first book data entry matching the search keyword in the plugin database; If the first book data entry is empty, using the connection interface between the plugin and the host application to invoke the host application to search for a book information search result matching the search keyword; Encapsulating the book information search result in a preset format to obtain a second book data entry; wherein the preset format is the data format of the book data entry in the plugin; Rendering and displaying the second book data entry on the search result page of the plugin.
8. According to the computing device of claim 7, the executable instruction further causes the processor to perform the following operations: Extract at least one book information item from the book information search results according to a preset book data entry template, and encapsulate the at least one book information item.
9. The computing device according to claim 8, wherein, The at least one book information item includes: a book website address, and the second book data entry includes: a second book data entry linking to the web page corresponding to the book website address; the executable instruction further causes the processor to perform the following operations: In response to a triggering operation of the user on the second book data entry, use the connection interface between the plugin and the host application to invoke the host application to search for the book website address and jump to display the web page corresponding to the book website address.
10. The computing device according to claim 9, wherein, The at least one book information item further includes one or more of the following: Book details information, book author information, book introduction information, book pictures.
11. The computing device according to claim 9, wherein the executable instruction further causes the processor to perform the following operations: Add a book cover element to the bookshelf page of the said plug-in, where The book cover element links to the web page corresponding to the book website address; In response to a triggering operation of the user on the book cover element, use the connection interface between the plugin and the host application to invoke the host application to search for the book website address and jump to display the web page corresponding to the book website address.
12. The computing device according to any one of claims 7-11, wherein the executable instruction further causes the processor to perform the following operations: Store the second book data entry in the plugin database.
13. A computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes the processor to perform the operations corresponding to the book search method based on the connection between the plugin and the host application according to any one of claims 1-6.
Citation Information
Patent Citations
Plug-in-based content recommendation method, electronic device and computer storage medium
CN109299395A
Book searching method, computing device and computer storage medium
CN110968765A