CN113239296B - Method, device, equipment and medium for displaying small program - Google Patents

Method, device, equipment and medium for displaying small program Download PDF

Info

Publication number
CN113239296B
CN113239296B CN202110553900.9A CN202110553900A CN113239296B CN 113239296 B CN113239296 B CN 113239296B CN 202110553900 A CN202110553900 A CN 202110553900A CN 113239296 B CN113239296 B CN 113239296B
Authority
CN
China
Prior art keywords
applet
webpage
resource
rule
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110553900.9A
Other languages
Chinese (zh)
Other versions
CN113239296A (en
Inventor
王斐
赵光宇
郭雨薇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110553900.9A priority Critical patent/CN113239296B/en
Publication of CN113239296A publication Critical patent/CN113239296A/en
Application granted granted Critical
Publication of CN113239296B publication Critical patent/CN113239296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method, a device, equipment and a medium for displaying an applet, relates to the field of Internet, and particularly relates to an intelligent searching technology. The specific implementation scheme is as follows: obtaining search results of a search engine on search words, wherein the search results comprise web pages stored in a search index library; matching the search result with a target mapping rule of the checked webpage and the applet, wherein the target mapping rule is used for describing the mapping relation between the webpage and the applet in the search index library; and replacing the webpage matched with the target mapping rule in the search result with the applet mapped in the target mapping rule for display. The method and the device can reduce the implementation cost of replacing the webpage into the applet.

Description

Method, device, equipment and medium for displaying small program
Technical Field
The application relates to the field of internet, in particular to an intelligent search technology, and specifically relates to a method, a device, equipment and a medium for displaying an applet.
Background
Compared with the traditional website, the intelligent applet has the advantages of low development cost, smoother experience and more powerful functions. The user can obtain the intelligent applet in the search result, so that the user can obtain better browsing experience, and the user conversion effect is better.
For website developers, smart applet pages generally correspond to the content of the PC/H5 pages, so there is a strong need to replace the pages in the search results into applets.
Disclosure of Invention
The application provides a method, a device, equipment and a medium for displaying an applet, so as to reduce the implementation cost of replacing a webpage into the applet.
In a first aspect, the present application provides a method for displaying an applet, including:
obtaining search results of a search engine on search words, wherein the search results comprise web pages stored in a search index library;
matching the search result with a target mapping rule of the checked webpage and the applet, wherein the target mapping rule is used for describing the mapping relation between the webpage and the applet in the search index library;
and replacing the webpage matched with the target mapping rule in the search result with the applet mapped in the target mapping rule for display.
In a second aspect, the present application also provides an applet display device, comprising:
the search result acquisition module is used for acquiring search results of the search engine on the search terms, wherein the search results comprise web pages stored in the search index library;
the mapping rule matching module is used for matching the search result with the verified target mapping rule of the webpage and the applet, wherein the target mapping rule is used for describing the mapping relation between the webpage and the applet in the search index library;
and the applet replacing and displaying module is used for replacing the webpage matched with the target mapping rule in the search result with the applet mapped in the target mapping rule for displaying.
In a third aspect, the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the applet exhibiting methods described in any of the embodiments of the present application.
In a fourth aspect, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of exposing an applet according to any embodiment of the present application.
It should be understood that the description of this section is not intended to identify key or critical features of the application or to delineate the scope of the application. Other features of the present application will become apparent from the following description, and additional effects of the alternative described above will be apparent from the following description of the specific embodiments.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a flow diagram of a method of applet demonstration according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of verifying a target mapping rule in an applet demonstration method according to an embodiment of the application;
FIG. 3 is a schematic diagram of a PC web page and H5 web page adaptation in search results of a search engine;
FIG. 4 is a schematic diagram of the structure of an applet display device according to an embodiment of the application;
fig. 5 is a block diagram of an electronic device for implementing the method of applet presentation of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flow chart of a method for displaying an applet according to an embodiment of the present application, which is applicable to a case where a web page in a search result is replaced with a mapped applet to be displayed to a user according to a search term of the user, and relates to the internet field, in particular to an intelligent search technology. The method may be performed by an applet presentation device implemented in software and/or hardware, preferably arranged in an electronic device, such as a computer device or a server. As shown in fig. 1, the method specifically includes the following steps:
s101, obtaining search results of a search engine on the search terms, wherein the search results comprise web pages stored in a search index library.
When a user inputs a search term, the search engine searches resources stored in the search index base according to the search term to obtain a search result. Typically, these resources are presented in the form of web pages, which may be PC web pages or H5 web pages, for example.
S102, matching the search result with the verified target mapping rule of the webpage and the applet, wherein the target mapping rule is used for describing the mapping relation between the webpage and the applet in the search index library.
The target mapping rule is used for describing the mapping relation between the web pages in the search index library and the applet after the rule initially provided by the developer of the web site and the applet is checked to pass, wherein the purpose of the check is at least: on the one hand, whether the matched web page in the rule is the web page displayed in the search index base is determined, and on the other hand, whether the matched web page in the rule is similar to the page of the applet mapped with the matched web page in the rule is determined.
The number of the target mapping rules may be one or more. Each mapping rule describes what conditions a web page may replace under what conditions, e.g., the target mapping rule may be implemented by way of a regular expression. It should be noted that if the organization of the applet is consistent with the web pages on the website, a rule may also represent the replacement of millions of web pages on a website with the applet, thereby reducing the cost of implementation of the method.
S103, replacing the web pages matched with the target mapping rules in the search results with the small programs mapped in the target mapping rules for display.
If the web page which can be matched with the web page described in the target mapping rule exists in the search result, replacing the web page with the applet mapped with the web page in the target mapping rule for displaying, thereby meeting the requirement of replacing the web page in the search result with the applet.
According to the technical scheme, mapping between the webpage and the applet is achieved through the target mapping rule, the mapping rule describes the mapping relation between the webpage in the search index library and the applet, and if the webpage directly searched by the search engine from the index library is matched with the rule, the applet can be replaced. That is, the method and the device can directly match the resources in the index library, and the original resources are originally in the index library, so that a great amount of repeated grabbing cost can be saved, and meanwhile, the target mapping rule can also be matched to more effective resources in the index library, so that the realization cost of replacing the web page into the applet is reduced.
Fig. 2 is a schematic flow chart of verifying a target mapping rule in an applet demonstration method according to an embodiment of the present application, where the verification process of the target mapping rule is further optimized based on the above embodiment. As shown in fig. 2, the method specifically includes the following steps:
s201, according to historical search data, determining the displayed webpage data matched with the acquired initial mapping rule.
The historical search data is historical search data obtained by searching according to historical search words of a user by a search engine, and records the search words of the user, search results displayed to the user through searching, click records of the user and other data.
Here, in order to save resources for searching the index base, in general, only one different page having a mapping relationship exists in the index base, which is called an actual base building (index) resource. That is, if the web pages with the same or similar content and the mapping relationship are the PC page and the H5 page, the library building resource may be a PC web page or an H5 web page, where the PC web page is suitable for the PC side and the H5 web page is suitable for the mobile side. Therefore, when the search result is displayed for the user on the mobile device, the replaceable PC webpage is converted into the H5 webpage in real time according to the mapping relation between the PC webpage and the H5 webpage so as to be displayed for the user, and the PC webpage which cannot be replaced is still displayed in a PC mode. Fig. 3 is a schematic diagram of adaptation of a PC web page and an H5 web page in a search result of a search engine, as shown in fig. 3, if the search result is the H5 web page in the index library, the PC web page is directly displayed, if the search result is the PC web page, whether the mapping rule between the PC resource and the H5 resource is met is further judged, if the mapping rule is met, the PC web page is replaced with the H5 web page for displaying, otherwise, the PC resource is directly displayed.
If a developer wants to replace a web page on his own website with an applet, the applet corresponding to the web page needs to be created first or the existing applet is modified so that the applet can be matched with the content on the web page. Then, since the developer is unaware of the underlying logic of the search engine described above, only the web page resources presented to the user in the historical search data can be seen, and therefore, the developer needs to submit the initial mapping rule between the web page with the search result presented in the historical search data and the applet for describing the mapping rule between the web page with the presentation and the applet. However, these rules may not fit the original resources in the index library and therefore these initial mapping rules cannot be directly used online and require further verification.
Furthermore, before checking the target mapping rule, the method further comprises: and verifying whether the initial mapping rule can be matched with the displayed webpage data or not so as to further improve the accuracy and effectiveness of subsequent verification.
S202, acquiring a plurality of first resource pairs according to the initial mapping rule and the displayed webpage data, wherein the first resource pairs are resource pairs of webpages and applets in a search index library matched with the initial mapping rule.
As described above, the original mapping rule of the displayed web page and the applet may not be adapted to the original resource in the index library, but if a mapping rule can directly describe the mapping relationship between the original resource web page and the applet in the index library, the problem can be solved. Therefore, in the embodiment of the present application, when checking the rule, the resource pair of the web page and the applet in the search index library, that is, the first resource pair, is acquired first. When the method is implemented, because a plurality of resource pairs of the displayed web page and the applet can be obtained according to the initial mapping rule, the displayed web page comprises an H5 web page and a PC web page in an index library, and the H5 web page is converted according to the mapping rule. Therefore, according to the mapping rule of the search engine to the PC resource and the H5 resource, the H5 webpage with the mapping relation can be replaced by the PC webpage in the index library, so that a plurality of first resource pairs are obtained.
Specifically, acquiring a plurality of first resource pairs according to an initial mapping rule and the webpage data presentation includes: acquiring a plurality of second resource pairs according to the initial mapping rule and the displayed web page data, wherein the second resource pairs are resource pairs of displayed H5 web pages matched with the initial mapping rule, PC web pages in a search index library and H5 web pages in the search index library and applets; according to the replacement rule of the search engine to the PC webpage and the H5 webpage, replacing the resource pair showing the H5 webpage and the applet with the replacement relation in the second resource pair with the resource pair of the PC webpage and the applet in the search index library, and taking the replaced second resource pair as the first resource pair. The second resource pair comprises three resource pairs matched with the initial mapping rule, and the first resource pair can be obtained by replacing the replaced and displayed H5 webpage with the original PC webpage in the index library according to the mapping rule by the resource pairs of the H5 webpage and the applet in the replaced and displayed H5 webpage, PC webpage in the search index library and H5 webpage in the search index library.
S203, aggregating the mapping relation between the web pages and the applets in the plurality of first resource pairs, and determining an internal rule, wherein the internal rule is used for describing the mapping relation between the web pages and the applets in the first resource pairs.
Because the first resource pair is obtained according to the initial mapping rule, the mapping rule of the displayed web page and the applet is described in the initial mapping rule, and the first resource pair is a resource pair of the web page and the applet in the index library after being replaced, the initial mapping rule cannot be fully applied. Therefore, in the embodiment of the present application, after the first resource pair is obtained, the internal rule corresponding to the first resource pair is reversely deduced through the aggregation manner according to the first resource pair, and then the internal rule is checked, and if the check is passed, the internal rule can be used as a final mapping rule to be online. The mapping relationship can be realized by a regular expression mode, so that based on the prior knowledge of a person skilled in the art on the regular expression, the corresponding internal rules can be arranged by aggregating the corresponding relationship between the web pages and the applets in the resource pairs. The internal rule is a mapping rule between the original resource web page and the applet in the index library.
S204, calculating conversion success rates of the web pages and the applets in a plurality of first resource pairs matched with the internal rules, and taking the internal rules as target mapping rules if the conversion success rates meet preset conditions.
Before formally coming online, it is also necessary to further check whether the internal rules are applicable. Specifically, the content of each or a certain number of first resource pairs matched with the internal rule and the content of the applet can be firstly captured, the page similarity of the web pages and the applet in each first resource pair can be calculated according to the content, and then the conversion success rate of a plurality of first resource pairs matched with the internal rule can be determined according to the page similarity and the preset similarity requirement. And if the conversion success rate meets the preset condition, taking the internal rule as a target mapping rule.
After the target mapping rule through verification is online, an original search result webpage of a search engine in an index library according to a search word is acquired, then the target mapping rule is matched, and if the matched webpage exists, the original resource webpage can be directly replaced with a mapped applet in the rule for display. In the process, on one hand, the effective logic of the rule is simpler, on the other hand, the initial mapping rule submitted by the developer for the first time can be matched with effective original resources in more index libraries, on the other hand, the original resources in the index libraries can be directly matched, and the original resources are originally in the index libraries, so that a large amount of repeated grabbing cost can be saved.
In addition, the method of the embodiment of the application can further comprise the following steps: and feeding back a verification result of the target mapping rule. Since the initial mapping rule is submitted by the developer for the first time, and the final on-line target mapping rule may be different from the initial mapping rule, the verified target mapping rule needs to be fed back to the developer, or the target mapping is further corresponding to the rule submitted by the developer for the first time, so that verification and validation feedback is provided for the developer.
According to the technical scheme, mapping between the webpage and the applet is achieved through the target mapping rule, the mapping rule describes the mapping relation between the webpage in the search index library and the applet, if the webpage directly searched by the search engine from the index library is matched with the rule, applet replacement can be achieved, the original resources are originally in the index library, so that a large amount of repeated grabbing cost can be saved, meanwhile, the effective logic of the rule is simpler, the target mapping rule can be matched with more effective resources in the index library, and the implementation cost of replacing the webpage into the applet is reduced.
Fig. 4 is a schematic structural diagram of a device for displaying an applet according to an embodiment of the present application, which is applicable to a case where a web page in a search result is replaced with a mapped applet for displaying to a user according to a search term of the user, and relates to the internet field, in particular to an intelligent search technology. The device can realize the method for displaying the small program according to any embodiment of the application. As shown in fig. 4, the apparatus 400 specifically includes:
a search result obtaining module 410, configured to obtain a search result of a search engine on a term, where the search result includes a web page stored in a search index base;
a mapping rule matching module 420, configured to match the search result with a verified target mapping rule of a web page and an applet, where the target mapping rule is used to describe a mapping relationship between the web page and the applet in the search index library;
and the applet replacing and displaying module 430 is configured to replace the web page matched with the target mapping rule in the search result with the applet mapped in the target mapping rule for displaying.
Optionally, the device further includes a target mapping rule checking module, where the target mapping rule checking module specifically includes:
the display webpage data determining unit is used for determining display webpage data matched with the acquired initial mapping rule according to the historical search data;
the first resource pair acquisition unit is used for acquiring a plurality of first resource pairs according to the initial mapping rule and the displayed webpage data, wherein the first resource pairs are resource pairs of webpages and applets in the search index library matched with the initial mapping rule;
the internal rule determining unit is used for aggregating the mapping relation between the web pages and the applets in the plurality of first resource pairs and determining an internal rule, wherein the internal rule is used for describing the mapping relation between the web pages and the applets in the first resource pairs;
and the internal rule checking unit is used for calculating conversion success rates of the web pages and the applets in a plurality of first resource pairs matched with the internal rules, and taking the internal rules as the target mapping rules if the conversion success rates meet preset conditions.
Optionally, the web pages in the search index library include PC web pages or H5 web pages;
the first resource pair acquisition unit specifically includes:
the second resource pair obtaining subunit is configured to obtain a plurality of second resource pairs according to the initial mapping rule and the display web page data, where the second resource pairs are resource pairs that match the initial mapping rule and display H5 web pages, PC web pages in a search index library, and H5 web pages in a search index library with applets;
and the resource pair replacing subunit is used for replacing the resource pair showing the H5 webpage and the applet with the replacement relation in the second resource pair according to the replacement rule of the search engine to the PC webpage and the H5 webpage, and taking the replaced second resource pair as the first resource pair.
Optionally, the internal rule checking unit specifically includes:
the page similarity calculation subunit is used for capturing the content of the webpage and the applet in each first resource pair and calculating the page similarity of the webpage and the applet in each first resource pair according to the content;
and the conversion success rate determining subunit is used for determining the conversion success rates of the plurality of first resource pairs matched by the internal rule according to the page similarity and the preset similarity requirement.
Optionally, the apparatus further includes:
and the display webpage data verification module is used for verifying whether the initial mapping rule can be matched with the display webpage data before the target mapping rule verification module verifies the target mapping rule.
Optionally, the apparatus further includes:
and the feedback module is used for feeding back the verification result of the target mapping rule.
The applet display device 400 provided in the embodiment of the present application may execute the applet display method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment herein for details not described in this embodiment.
According to embodiments of the present application, there is also provided an electronic device, a readable storage medium and a computer program product.
Fig. 5 illustrates a schematic block diagram of an example electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 includes a computing unit 501 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Various components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the applet presentation method. For example, in some embodiments, the method of presentation of the applet may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the applet presentation method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the applet presentation method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (8)

1. A method of applet presentation, comprising:
obtaining search results of a search engine on search words, wherein the search results comprise web pages stored in a search index library;
matching the search result with a target mapping rule of the checked webpage and the applet, wherein the target mapping rule is used for describing the mapping relation between the webpage and the applet in the search index library;
replacing the web pages matched with the target mapping rules in the search results with the small programs mapped in the target mapping rules for display;
the process for verifying the target mapping rule comprises the following steps:
according to the historical search data, determining the displayed webpage data matched with the acquired initial mapping rule;
acquiring a plurality of first resource pairs according to the initial mapping rule and the displayed webpage data, wherein the first resource pairs are resource pairs of webpages and applets in the search index library matched with the initial mapping rule;
aggregating the mapping relation between the web pages and the applets in the plurality of first resource pairs, and determining an internal rule, wherein the internal rule is used for describing the mapping relation between the web pages and the applets in the first resource pairs;
calculating conversion success rates of the web pages and the applets in a plurality of first resource pairs matched with the internal rules, and taking the internal rules as the target mapping rules if the conversion success rates meet preset conditions;
wherein, the web pages in the search index library comprise PC web pages or H5 web pages;
the obtaining a plurality of first resource pairs according to the initial mapping rule and the presentation web page data includes:
acquiring a plurality of second resource pairs according to the initial mapping rule and the displayed web page data, wherein the second resource pairs are resource pairs of displayed H5 web pages matched with the initial mapping rule, PC web pages in a search index library and H5 web pages in the search index library and applets;
according to the replacement rule of the search engine on the PC webpage and the H5 webpage, replacing the resource pair showing the H5 webpage and the applet with the replacement relation in the second resource pair with the resource pair of the PC webpage and the applet in the search index library, and taking the replaced second resource pair as the first resource pair;
the calculating the conversion success rate of the web page and the applet in the plurality of first resource pairs matched with the internal rule comprises the following steps:
capturing the content of the webpage and the applet in each first resource pair, and calculating the page similarity of the webpage and the applet in each first resource pair according to the content;
and determining conversion success rates of the plurality of first resource pairs matched by the internal rule according to the page similarity and a preset similarity requirement.
2. The method of claim 1, wherein prior to the verifying the target mapping rule, the method further comprises:
and verifying whether the initial mapping rule can be matched with the displayed webpage data.
3. The method of claim 1, further comprising: and feeding back a verification result of the target mapping rule.
4. An applet display device comprising:
the search result acquisition module is used for acquiring search results of the search engine on the search terms, wherein the search results comprise web pages stored in the search index library;
the mapping rule matching module is used for matching the search result with the verified target mapping rule of the webpage and the applet, wherein the target mapping rule is used for describing the mapping relation between the webpage and the applet in the search index library;
the applet replacing and displaying module is used for replacing the webpage matched with the target mapping rule in the search result with the applet mapped in the target mapping rule for displaying;
the target mapping rule checking module specifically comprises:
the display webpage data determining unit is used for determining display webpage data matched with the acquired initial mapping rule according to the historical search data;
the first resource pair acquisition unit is used for acquiring a plurality of first resource pairs according to the initial mapping rule and the displayed webpage data, wherein the first resource pairs are resource pairs of webpages and applets in the search index library matched with the initial mapping rule;
the internal rule determining unit is used for aggregating the mapping relation between the web pages and the applets in the plurality of first resource pairs and determining an internal rule, wherein the internal rule is used for describing the mapping relation between the web pages and the applets in the first resource pairs;
the internal rule checking unit is used for calculating conversion success rates of the web pages and the applets in a plurality of first resource pairs matched with the internal rules, and taking the internal rules as the target mapping rules if the conversion success rates meet preset conditions;
wherein, the web pages in the search index library comprise PC web pages or H5 web pages;
the first resource pair acquisition unit specifically includes:
the second resource pair obtaining subunit is configured to obtain a plurality of second resource pairs according to the initial mapping rule and the display web page data, where the second resource pairs are resource pairs that match the initial mapping rule and display H5 web pages, PC web pages in a search index library, and H5 web pages in a search index library with applets;
a resource pair replacing subunit, configured to replace a resource pair showing an H5 webpage and an applet, which have a replacement relationship in the second resource pair, with a resource pair showing a PC webpage and an applet in a search index library according to a replacement rule of the search engine to the PC webpage and the H5 webpage, and take the replaced second resource pair as the first resource pair;
the internal rule checking unit specifically includes:
the page similarity calculation subunit is used for capturing the content of the webpage and the applet in each first resource pair and calculating the page similarity of the webpage and the applet in each first resource pair according to the content;
and the conversion success rate determining subunit is used for determining the conversion success rates of the plurality of first resource pairs matched by the internal rule according to the page similarity and the preset similarity requirement.
5. The apparatus of claim 4, further comprising:
and the display webpage data verification module is used for verifying whether the initial mapping rule can be matched with the display webpage data before the target mapping rule verification module verifies the target mapping rule.
6. The apparatus of claim 4, further comprising:
and the feedback module is used for feeding back the verification result of the target mapping rule.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of exposing the applet according to any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of exposing the applet of any one of claims 1-3.
CN202110553900.9A 2021-05-20 2021-05-20 Method, device, equipment and medium for displaying small program Active CN113239296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110553900.9A CN113239296B (en) 2021-05-20 2021-05-20 Method, device, equipment and medium for displaying small program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110553900.9A CN113239296B (en) 2021-05-20 2021-05-20 Method, device, equipment and medium for displaying small program

Publications (2)

Publication Number Publication Date
CN113239296A CN113239296A (en) 2021-08-10
CN113239296B true CN113239296B (en) 2023-08-01

Family

ID=77138014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110553900.9A Active CN113239296B (en) 2021-05-20 2021-05-20 Method, device, equipment and medium for displaying small program

Country Status (1)

Country Link
CN (1) CN113239296B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007242055A (en) * 2007-06-06 2007-09-20 Toshiba Corp Communication device and web page processing method
CN108681547A (en) * 2018-03-27 2018-10-19 厦门欣旅通科技有限公司 A kind of web content converting method and device based on small routine
CN111400623A (en) * 2020-03-10 2020-07-10 百度在线网络技术(北京)有限公司 Method and apparatus for searching information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7703037B2 (en) * 2005-04-20 2010-04-20 Microsoft Corporation Searchable task-based interface to control panel functionality

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007242055A (en) * 2007-06-06 2007-09-20 Toshiba Corp Communication device and web page processing method
CN108681547A (en) * 2018-03-27 2018-10-19 厦门欣旅通科技有限公司 A kind of web content converting method and device based on small routine
CN111400623A (en) * 2020-03-10 2020-07-10 百度在线网络技术(北京)有限公司 Method and apparatus for searching information

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Integrated Web tools for science learning;Fu-Kwan Hwang;IEEE;全文 *
一种网上数据交换的新技术-XML的分析和实现;谢用辉, 张宝行, 柳勇, 王海霞;计算机工程与应用(第05期);全文 *
加权映射匹配方法的站内搜索引擎设计;江文龙;赵逢禹;陈章;;计算机应用与软件(第04期);全文 *

Also Published As

Publication number Publication date
CN113239296A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
US20210342549A1 (en) Method for training semantic analysis model, electronic device and storage medium
CN113342345A (en) Operator fusion method and device of deep learning framework
CN112527281B (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN113127365A (en) Method and device for determining webpage quality, electronic equipment and computer-readable storage medium
CN114428902A (en) Information searching method and device, electronic equipment and storage medium
CN114327802B (en) Method, apparatus, device and medium for block chain access to data outside chain
CN114492370B (en) Webpage identification method, webpage identification device, electronic equipment and medium
EP3992814A2 (en) Method and apparatus for generating user interest profile, electronic device and storage medium
CN113360672B (en) Method, apparatus, device, medium and product for generating knowledge graph
CN113239296B (en) Method, device, equipment and medium for displaying small program
CN114743586B (en) Mirror image storage implementation method and device of storage model and storage medium
CN114048315A (en) Method and device for determining document tag, electronic equipment and storage medium
CN113961797A (en) Resource recommendation method and device, electronic equipment and readable storage medium
CN113553407B (en) Event tracing method and device, electronic equipment and storage medium
CN113836314B (en) Knowledge graph construction method, device, equipment and storage medium
CN112989797B (en) Model training and text expansion methods, devices, equipment and storage medium
CN112560462B (en) Event extraction service generation method, device, server and medium
CN114996557B (en) Service stability determination method, device, equipment and storage medium
CN113434378B (en) Webpage stability detection method and device, electronic equipment and readable storage medium
CN113238765B (en) Method, device, equipment and storage medium for distributing small program
CN116010744A (en) Page data processing method and device, electronic equipment and readable storage medium
CN114329205A (en) Method and device for pushing information
CN113515568A (en) Graph relation network construction method, graph neural network model training method and device
CN115203502A (en) Business data processing method and device, electronic equipment and storage medium
CN114237816A (en) Method, device, equipment and storage medium for acquiring dummy data

Legal Events

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