Method and device for providing search results, electronic device and medium
By recording and utilizing the number of views of the user's last browsing of the web page and filtering the associated web page information, the problem of users browsing multiple web pages in fuzzy searches is solved, and search efficiency and result accuracy are improved.
Patent Information
- Application Number
- CN202111552401.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2041-12-17
AI Technical Summary
When users conduct fuzzy searches, they need to browse multiple web pages to obtain search results. The prior art is difficult to meet the needs of specific groups and there are problems of information timeliness and incomplete description.
By recording the number of views of the last web pages browsed during the user's search process, and filtering the associated web page information based on this number of times, we provide search results that match the search request.
It improves user search efficiency, reduces the number of searches, and improves the accuracy and user experience of search results.
Smart Images

Figure CN114254216B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computers, in particular to the fields of intelligent search and natural language processing technology, and specifically to a method, device, electronic device, computer-readable storage medium, and computer program product for providing search results. Background Art
[0002] With the development of Internet technology, users have a growing demand for Internet information and browse more and more web pages. Given the diversity of search users and the uncertainty of search content, users need to spend more time browsing multiple web pages to finally obtain search results. Summary of the Invention
[0003] The present disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for providing search results.
[0004] According to one aspect of the present disclosure, a method for providing search results is provided, comprising: obtaining input search information and determining a search keyword based on the search information; determining one or more web pages browsed based on the currently input search information, so as to associate information of the one or more web pages with the search keyword for storage; determining the web page that was last browsed in a search process based on the search information among the one or more web pages; obtaining a first browsing count of the last browsed web page and updating the first browsing count, wherein the first browsing count is the number of times the web page was the last browsed web page in each historical search process; and in response to receiving a search request that matches the search keyword, obtaining information of the web page associated with the search keyword based on the first browsing count as a search result corresponding to the search request.
[0005] According to another aspect of the present disclosure, a device for providing search results is provided, comprising: a first acquisition unit, configured to acquire input search information and determine a search keyword based on the search information; a first determination unit, configured to determine one or more web pages browsed based on the currently input search information, so as to associate information of the one or more web pages with the search keyword for storage; a second determination unit, configured to determine the last browsed web page among the one or more web pages in a search process based on the search information; a second acquisition unit, configured to acquire a first browsing count of the last browsed web page and update the first browsing count, wherein the first browsing count is the number of times the web page is the last browsed web page in each historical search process; and a third acquisition unit, configured to, in response to receiving a search request matching the search keyword, acquire information of the web page associated with the search keyword based on the first browsing count as a search result corresponding to the search request.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the method described in the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to cause a computer to execute the method described in the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the method described in the present disclosure when executed by a processor.
[0009] According to one or more embodiments of the present disclosure, full use is made of the fact that the last web page browsed during a search process is most likely to be the closest to the current search requirements. When a user searches, not only can web pages that match his or her search request be recalled, but the web pages can also be further filtered based on the number of times each web page was the last browsed web page in the historical search process, thereby improving the user's search efficiency.
[0010] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.
[0012] Figure 1 A schematic diagram illustrating an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;
[0013] Figure 2 A flowchart of a method for providing search results according to an embodiment of the present disclosure is shown;
[0014] Figure 3 A flowchart of obtaining information of an associated web page based on a first number of views according to an embodiment of the present disclosure is shown;
[0015] Figure 4 A flowchart of obtaining information of an associated web page based on a first browsing count and a second browsing count according to an embodiment of the present disclosure is shown;
[0016] Figure 5 A flow chart of using the determined web page as an associated web page according to an embodiment of the present disclosure is shown;
[0017] Figure 6 A flowchart of determining search keywords matching a search request according to an embodiment of the present disclosure is shown;
[0018] Figure 7 A schematic diagram showing a search box and its drop-down area according to an embodiment of the present disclosure is shown;
[0019] Figure 8 A structural block diagram of an apparatus for providing search results according to an embodiment of the present disclosure is shown; and
[0020] Figure 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0021] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0022] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.
[0023] The terms used in the descriptions of the various examples described in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.
[0024] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0025] Figure 1 FIG2 is a schematic diagram of an exemplary system 100 in which the various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 can be configured to execute one or more applications.
[0026] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable the method of providing search results to be performed.
[0027] In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.
[0028] exist Figure 1In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may, in turn, utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
[0029] The user may use client devices 101, 102, 103, 104, 105 and / or 106 to obtain search results. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure can support any number of client devices.
[0030] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. Client devices are capable of executing a variety of different applications, such as various internet-related applications, communication applications (such as email applications), and short message service (SMS) applications, and may use various communication protocols.
[0031] The network 110 may be any type of network known to those skilled in the art that can support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0032] Server 120 may include one or more general-purpose computers, specialized server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0033] The computing units in the server 120 may run one or more operating systems including any of the operating systems described above as well as any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.
[0034] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display the data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
[0035] In some embodiments, server 120 may be a distributed system server or a server integrated with blockchain. Server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host equipped with artificial intelligence technology. A cloud server is a host product within the cloud computing service system that addresses the management difficulties and poor scalability of traditional physical hosts and virtual private servers (VPS) services.
[0036] The system 100 may also include one or more databases 130. In some embodiments, these databases can be used to store data and other information. For example, one or more of the databases 130 can be used to store information such as historical browsing data. The databases 130 can reside in various locations. For example, the database used by the server 120 can be local to the server 120, or can be remote from the server 120 and can communicate with the server 120 via a network-based or dedicated connection. The databases 130 can be of different types. In some embodiments, the databases used by the server 120 can be, for example, relational databases. One or more of these databases can store, update, and retrieve data to and from the databases in response to commands.
[0037] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.
[0038] Figure 1 The system 100 may be configured and operated in various ways to enable application of the various methods and apparatuses described in accordance with the present disclosure.
[0039] Currently, when searching for search results on internet pages, different content providers (sites) provide instant information for users within their own ecosystems, including trending content, news content, and standard content. This results in a significant amount of duplication of content related to the same event or opinion. Furthermore, the current methods for generating this type of content within existing search interaction processes struggle to meet the needs of specific user groups, due to their limited user base, content, and service offerings.
[0040] Given the diversity of search users and the significant differences in individual search needs, search phrases vary widely. For example, the search phrase "Beijing weather" is relatively easy to understand and easily yields highly matched search results. However, the search phrase "Where can I buy XX in Beijing" is more vague and generally refers to a general question. Its search results are derived from historical content and are also influenced by search strategies and expression formats. This can lead to timeliness issues and incomplete information descriptions, making it difficult to address user needs. For such general questions, users may need to perform multiple searches and browse multiple web pages to ultimately obtain the corresponding search results.
[0041] Therefore, the method according to the present disclosure provides a method for providing search results. Figure 2 FIG. 2 is a flow chart illustrating a method 200 for providing search results according to an exemplary embodiment. Figure 2As shown, the method 200 includes: obtaining the input search information and determining the search keyword based on the search information (step 210); determining one or more web pages browsed based on the currently input search information to associate the information of the one or more web pages with the search keyword for storage (step 220); determining the web page that was last browsed in the search process based on the search information among the one or more web pages (step 230); obtaining the first browsing count of the last browsed web page and updating the first browsing count, the first browsing count being the number of times the web page was the last browsed web page in each historical search process (step 240); and in response to receiving a search request that matches the search keyword, obtaining the information of the web page associated with the search keyword based on the first browsing count as the search result corresponding to the search request (step 250).
[0042] According to the embodiments of the present disclosure, full use is made of the fact that the last web page browsed during a search process is most likely to be the closest to the current search requirements. When a user searches, not only can web pages that match his or her search request be recalled, but the web pages can also be further filtered based on the number of times each web page was the last browsed web page in the historical search process, thereby improving the user's search efficiency.
[0043] In some embodiments, the one or more web pages are web pages in a search results page obtained based on a search keyword. A search engine results page (SERP) refers to a result page that a search engine returns in response to a search request. Usually, a typical search results page contains a list of search results. Most websites have their own search function, and using this search function will display a search results page that meets the search requirements. In other words, when a user clicks to enter a certain page on a search results page obtained based on a search keyword, the other pages that are clicked on in the page are not considered as web pages browsed during a search process, nor are they considered to be associated with the search keyword.
[0044] In the present disclosure, the one or more web pages browsed based on the current search information are: the web pages browsed by the user who inputs the search information during a search process. "A search process" refers to the web page browsing process implemented by the user based on the currently input search information (search query or search statement). Specifically, after the user inputs search information A, he or she continuously browses one or more web pages on the obtained search result page, forming a search process. After the user re-enters search information B, the search process based on search information A ends; or, after the user browses one or more web pages on the search result page obtained based on search information A, if he or she does not continue browsing or re-enter other search information within a predetermined time period, the search process based on search information A ends.
[0045] According to some embodiments, Figure 3 As shown, obtaining information of the web page associated with the search keyword based on the first number of views (i.e., step 250) may include: determining multiple web pages associated with the search keyword, and the first number of views corresponding to each of the multiple web pages (step 310); sorting the multiple web pages according to the first number of views (step 320); and obtaining information of the web page associated with the search keyword based on the sorting result (step 330).
[0046] In some examples, each webpage may have a first view count parameter, which is a global parameter. For example, if user A last views webpage Z during a search, the first view count for webpage Z increases by 1. Later, if user B also last views webpage Z during a search, the first view count for webpage Z continues to increase by 1. Each webpage has a unique first view count in the current search system.
[0047] In some examples, an association relationship between the web pages browsed by each user and the corresponding search keyword can be maintained. For example, for user A, one or more web pages associated with search keyword X browsed by user A are recorded; for user B, one or more other web pages associated with search keyword X browsed by user B are recorded. When a search request matching the search keyword X is subsequently received, the web pages associated with search keyword X for both user A and user B can be recalled. The recalled web pages can be filtered based on their corresponding first browsing times. The web pages filtered based on the first browsing times can be used as the obtained web pages associated with search keyword X. Then, the information of the obtained web pages associated with search keyword X can be obtained as the search result corresponding to the search request. By way of example, the information of the web page can include but is not limited to the web page address, web page title, etc.
[0048] According to some embodiments, the method of the present disclosure may further include obtaining a second view count for each of one or more web pages and updating the second view count. The second view count is the cumulative number of times the web page has been viewed. In other words, each web page may further have a second view count parameter, which is also a global parameter. Here, the second view count is the cumulative number of times the web page has been viewed. Whenever a user opens and views the web page, the second view count is incremented by one.
[0049] Therefore, in some examples, obtaining information of a web page associated with the search keyword based on the first number of views (ie, step 250 ) may include obtaining information of a web page associated with the search keyword based on the first number of views and the second number of views.
[0050] According to some embodiments, Figure 4 As shown, obtaining information of web pages associated with the search keyword based on the first number of views and the second number of views may include: determining multiple web pages associated with the search keyword, and the first number of views and the second number of views corresponding to each of the multiple web pages (step 410); sorting the multiple web pages according to the first number of views and the second number of views, respectively (step 420); and determining a first number of web pages with the highest number of views after sorting based on the first number of views and a second number of web pages with the highest number of views after sorting based on the second number of views (step 430); and using the determined web pages as web pages associated with the search keyword and obtaining information of the web pages (step 440).
[0051] For example, since the web pages browsed by the user during the search process are stored in association with their corresponding search keywords, multiple web pages associated with them can be obtained based on the search keywords. Then, the multiple web pages are sorted based on their first browsing count parameter and second browsing count parameter to obtain two sets of sorting results. A predetermined number of web pages with the highest browsing count can be selected from the two sets of sorting results to display their web page information as search results. For example, the five web pages with the highest first browsing count and the five web pages with the highest second browsing count are selected, and then their web page addresses, titles and other information are displayed on the search page. In the present disclosure, it is possible to display based on the first browsing count first and then based on the second browsing count, or vice versa. Alternatively, it is also possible to start based on either the first browsing count or the second browsing count and alternately display based on the first browsing count and the second browsing count, and so on.
[0052] Of course, it should be understood that any other suitable display methods are possible and are not limited here.
[0053] According to some embodiments, Figure 5As shown, taking the determined web page as the web page associated with the search keyword and obtaining the information of the web page (i.e., step 440) may include: in response to the existence of duplicate web pages in the first number of web pages and the second number of web pages, determining the duplicate web pages and the number of duplicates (step 510); further determining the web pages of the duplicate number with the highest number of views other than the corresponding number in the first number and the second number based on the sorting result of at least one of the first number of views and the second number of views (step 520); and taking the non-duplicate web pages in the first number of web pages and the second number of web pages and the further determined web pages as the web pages associated with the search keyword, and obtaining the information of the web pages (step 530).
[0054] In the above example, if Web Page A is duplicated in the first and second top 5 web pages with the highest number of views, that is, if Web Page A is included in both the first and second top 5 web pages with the highest number of views, then the number of duplicates is 1, resulting in 9 web pages. At this point, you can select another Web Page B from the sorted results based on the first number of views to make up the total of 10 web pages, or you can select another Web Page C from the sorted results based on the second number of views to make up the total of 10 web pages, without any limitation here. If the number of duplicate web pages is greater than 1, you can alternately select the corresponding web pages from the sorted results based on the first and second number of views, or you can select the corresponding web page from only one sorted result, without any limitation here.
[0055] According to some embodiments, before obtaining information of a web page associated with a search keyword based on the first number of views, a step 600 of determining a search keyword that matches the search request may also be included. Figure 6 As shown, step 600 may include: receiving search information corresponding to the search request, which is user input information (step 610); calculating the similarity between the search information and the search keyword (step 620); and in response to the similarity being greater than a preset threshold, determining that the search request matches the search keyword (step 630).
[0056] In some examples, after obtaining search information corresponding to the search request, the search information may be processed based on a natural language processing algorithm, including, but not limited to, word segmentation and obtaining semantic vectors. The processed search information is then matched with the search keywords recorded by the first user, for example, by calculating similarity to determine search keywords with a similarity greater than a preset threshold as search keywords that match the search information.
[0057] In some examples, in search engine-based web searches, the preset threshold is generally greater than the matching threshold in the search engine's search logic. Alternatively, in some examples, a search keyword that fully matches the retrieved search information can be directly determined (e.g., a one-to-one correspondence between text). In this way, due to the inclusion of human selection and consideration, the note content retrieved by the second user may be more likely to meet the user's search needs, reducing the number of searches and improving search efficiency and user experience.
[0058] In some embodiments, the search information may include but is not limited to text search information, image search information, voice search information, and the like.
[0059] According to some embodiments, the search results corresponding to the search request are displayed in a drop-down area of a search box or in the search results page. The search box is used to receive search information corresponding to the search request.
[0060] In some examples, search results corresponding to the search request may be displayed in a drop-down area of a search box. The search box is configured to receive search information corresponding to the search request. Figure 7 Schematic diagram including a search box and its drop-down area is shown. Figure 7 As shown, box 701 represents a search box, in which you can enter search information, such as "search information X". Box 702 represents the drop-down area of the search box, which can be used to display web page information associated with the search keyword. The web page information may include web page address, web page title, etc.
[0061] According to the embodiments of the present disclosure, Figure 8 As shown, a device 800 for providing search results is also provided. The device 800 includes: a first acquisition unit 810, configured to acquire input search information and determine a search keyword based on the search information; a first determination unit 820, configured to determine one or more web pages browsed based on the currently input search information, and store information of the one or more web pages in association with the search keyword; a second determination unit 830, configured to determine the web page that was last browsed in a search process based on the search information among the one or more web pages; a second acquisition unit 840, configured to acquire a first browsing count of the last browsed web page and update the first browsing count, wherein the first browsing count is the number of times the web page was the last browsed web page in each historical search process; and a third acquisition unit 850, configured to, in response to receiving a search request matching the search keyword, acquire information of the web page associated with the search keyword based on the first browsing count as a search result corresponding to the search request.
[0062] Here, the operations of the above-mentioned units 810 to 850 of the apparatus 800 for providing search results are similar to the operations of steps 210 to 250 described above, and are not described in detail here.
[0063] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0064] According to an embodiment of the present disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.
[0065] refer to Figure 9 , a block diagram of an electronic device 900 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0066] like Figure 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0067] Multiple components within electronic device 900 are connected to I / O interface 905, including an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. Input unit 906 can be any type of device capable of inputting information into electronic device 900. Input unit 906 can receive input numeric or character information and generate key signal input related to user settings and / or function control of the electronic device. It may include, but is not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 907 can be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. Storage unit 908 may include, but is not limited to, a magnetic disk or an optical disk. Communication unit 909 allows electronic device 900 to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks. It may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver and / or chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0068] The computing unit 901 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as method 200. For example, in some embodiments, method 200 can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the method 200 described above can be performed. Alternatively, in other embodiments, the computing unit 901 can be configured to perform the method 200 in any other appropriate manner (e.g., by means of firmware).
[0069] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0070] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0071] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0072] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0073] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, 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 a local area network (LAN), a wide area network (WAN), and the Internet.
[0074] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0075] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0076] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. In addition, the steps may be performed in an order different from that described in this disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after this disclosure.
Claims
1. A method for providing search results, comprising: Obtaining input search information and determining a search keyword based on the search information; determining one or more web pages browsed in a search process based on currently input search information, and storing information of the one or more web pages in association with the search keyword, wherein the one search process refers to a browsing process of web pages in a search result page obtained based on the currently input search information, which is implemented based on the currently input search information; determining a web page among the one or more web pages that was last viewed during the search based on the search information; Obtaining a first browsing count of the last browsed webpage and updating the first browsing count, wherein the first browsing count is the number of times the webpage is the last browsed webpage in multiple historical search processes; and In response to receiving a search request matching the search keyword, information of a web page associated with the search keyword is acquired based on the first number of views as a search result corresponding to the search request.
2. The method according to claim 1, wherein Acquiring information of a webpage associated with the search keyword based on the first number of views includes: Determining a plurality of web pages associated with the search keyword and a first pageview count corresponding to each of the plurality of web pages; sorting the plurality of web pages according to the first number of page views; and Information of web pages associated with the search keyword is obtained based on the ranking result.
3. The method of claim 1 , further comprising: Obtaining a second browsing count of each of the one or more web pages and updating the second browsing count, wherein the second browsing count is a cumulative number of times the web page has been browsed, And wherein, acquiring information of the web page associated with the search keyword based on the first browsing number includes: acquiring information of the web page associated with the search keyword based on the first browsing number and the second browsing number.
4. The method according to claim 3, wherein: Acquiring information of a webpage associated with the search keyword based on the first number of views and the second number of views includes: Determining a plurality of web pages associated with the search keyword, and a first pageview count and a second pageview count corresponding to each of the plurality of web pages; sorting the plurality of web pages according to the first number of page views and the second number of page views; Determining a first number of web pages with the highest number of views after sorting based on the first number of views and a second number of web pages with the highest number of views after sorting based on the second number of views; and The determined web page is used as a web page associated with the search keyword and information of the web page is obtained.
5. The method according to claim 4, wherein: Taking the determined web page as the web page associated with the search keyword and acquiring information about the web page includes: In response to the presence of duplicate web pages in the first number of web pages and the second number of web pages, determining the duplicate web pages and the number of duplicate web pages; further determining the web pages having the highest number of views, excluding the corresponding number of the first number and the second number, according to the ranking result of at least one of the first number of views and the second number of views, of the number of repetitions; and The non-duplicate web pages among the first number of web pages and the second number of web pages and the further determined web page are used as web pages associated with the search keyword, and information of the web pages is obtained.
6. The method of claim 1, wherein: Before acquiring information of a webpage associated with the search keyword based on the first number of views, the method further includes: receiving search information corresponding to the search request, wherein the search information is user input information; Calculating the similarity between the search information and the search keyword; and In response to the similarity being greater than a preset threshold, it is determined that the search request matches the search keyword.
7. The method according to claim 6, wherein: The search information includes at least one of the following items: text search information, image search information, and voice search information.
8. The method according to any one of claims 1 to 7, wherein The search results corresponding to the search request are displayed in a drop-down area of the search box or in the search results page, and wherein, The search box is used to receive search information corresponding to the search request.
9. The method according to any one of claims 1 to 7, wherein The search results corresponding to the search request are displayed in a drop-down area of the search box, and wherein, The search box is used to receive search information corresponding to the search request, and the web page information includes a web page address.
10. A device for providing search results, comprising: a first acquiring unit configured to acquire input search information and determine a search keyword based on the search information; a first determining unit configured to determine one or more web pages browsed in a search process based on currently input search information, and to associate information of the one or more web pages with the search keyword and store the information; wherein the search process represents a browsing process of web pages in a search result page obtained based on the currently input search information and implemented based on the currently input search information; a second determining unit configured to determine a webpage, among the one or more webpages, that was last browsed during the search process based on the search information; a second acquiring unit configured to acquire a first browsing count of the last browsed webpage and update the first browsing count, wherein the first browsing count is the number of times the webpage is the last browsed webpage in multiple historical searches; and The third acquiring unit is configured to, in response to receiving a search request matching the search keyword, acquire information of a web page associated with the search keyword based on the first browsing count as a search result corresponding to the search request.
11. The device according to claim 10, wherein The second acquiring unit includes: a unit for determining a plurality of web pages associated with the search keyword and a first number of page views corresponding to each of the plurality of web pages; a unit for sorting the plurality of web pages according to the first number of page views; and A unit is configured to obtain information of web pages associated with the search keyword based on the ranking result.
12. The apparatus of claim 10, further comprising: a unit for obtaining a second browsing count of each of the one or more web pages and updating the second browsing count, wherein the second browsing count is a cumulative number of times the web page has been browsed, And wherein the second acquisition unit includes: a unit for acquiring information of a web page associated with the search keyword based on the first browsing number and the second browsing number.
13. The device of claim 12, wherein: The unit for acquiring information of a web page associated with the search keyword based on the first browsing count and the second browsing count includes: a unit for determining a plurality of web pages associated with the search keyword, and a first number of page views and a second number of page views corresponding to each of the plurality of web pages; a unit for sorting the plurality of web pages according to the first number of page views and the second number of page views; a unit for determining a first number of web pages having the highest number of views after sorting based on the first number of views and a second number of web pages having the highest number of views after sorting based on the second number of views; and A unit for taking the determined web page as a web page associated with the search keyword and acquiring information about the web page.
14. The device according to claim 10, wherein Before acquiring information of a webpage associated with the search keyword based on the first number of views, the method further includes: a unit for receiving search information corresponding to the search request, wherein the search information is user input information; a unit for calculating the similarity between the search information and the search keyword; and A unit configured to determine, in response to the similarity being greater than a preset threshold, that the search request matches the search keyword.
15. The apparatus of claim 14, wherein: The search information includes at least one of the following items: text search information, image search information, and voice search information.
16. The device according to any one of claims 10 to 15, wherein The search results corresponding to the search request are displayed in a drop-down area of the search box or in the search results page, and wherein, The search box is used to receive search information corresponding to the search request.
17. The device according to any one of claims 10 to 15, wherein: The search results corresponding to the search request are displayed in a drop-down area of the search box, and wherein, The search box is used to receive search information corresponding to the search request, and the web page information includes a web page address.
18. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.
19. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 9.
20. A computer program product comprising a computer program, wherein When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Network address provision method, device and system
CN101997933A
Method and device for information search
CN102779136A
Store search information processing method, device and equipment
CN109948072A