CN117520686A - Search preloading method, device, electronic equipment and storage medium - Google Patents

Search preloading method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117520686A
CN117520686A CN202311551164.9A CN202311551164A CN117520686A CN 117520686 A CN117520686 A CN 117520686A CN 202311551164 A CN202311551164 A CN 202311551164A CN 117520686 A CN117520686 A CN 117520686A
Authority
CN
China
Prior art keywords
search
preloading
keywords
target
preset
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.)
Pending
Application number
CN202311551164.9A
Other languages
Chinese (zh)
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.)
Guangzhou Fangzhou Information Technology Co ltd
Original Assignee
Guangzhou Fangzhou Information 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 Guangzhou Fangzhou Information Technology Co ltd filed Critical Guangzhou Fangzhou Information Technology Co ltd
Priority to CN202311551164.9A priority Critical patent/CN117520686A/en
Publication of CN117520686A publication Critical patent/CN117520686A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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/9532Query formulation
    • 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

Abstract

The invention discloses a search preloading method, a search preloading device, electronic equipment and a storage medium, wherein the search preloading method comprises the following steps: monitoring the search request quantity and the historical search keywords received in a preset first sliding time window, and judging whether the search request quantity is larger than a preset threshold value or not; judging whether a preset commodity activity event is monitored or not when the search request quantity is larger than a preset threshold value; if yes, determining a target keyword based on the commodity activity event; if not, determining a target keyword from the historical search keywords; preloading search results matched with target keywords; and when receiving the search request comprising the target keyword, returning the search result to the client, reducing the pressure of the server through preloading, timely returning the search result to the client for display, triggering the preloading of the search result matched with the commodity activity event through the commodity activity event, improving the response speed of the surge search request caused by the commodity activity event, and improving the user experience and the service conversion capability.

Description

Search preloading method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a search preloading method, a search preloading device, an electronic device, and a storage medium.
Background
On the medicine selling client, the user can input keywords in the search column of the page, and the background server calculates and matches corresponding medicine information according to the keywords and returns the corresponding medicine information to the client.
In the prior art, a server responds to search operation of each user in real time and returns medicine information to a client, when search flow is increased due to the increase of searched users, the server needs to calculate and match search results for each search keyword, even repeatedly calculates and matches the same search keyword, the calculated amount of the server is large, the time length of calculating and matching the search results is increased, and the delay occurs in displaying the search results by the client, so that user experience and service conversion are affected.
Disclosure of Invention
The invention provides a search preloading method, a search preloading device, electronic equipment and a storage medium, which are used for solving the problems that the existing search method cannot cope with the rapid increase of search flow, so that search results are delayed and user experience and service conversion are affected.
In a first aspect, the present invention provides a search preloading method for preloading search results of goods, including:
monitoring the received search request quantity and historical search keywords in a preset first sliding time window;
judging whether the search request quantity is larger than a preset threshold value or not;
judging whether a preset commodity activity event is monitored or not when the search request quantity is larger than a preset threshold value;
if yes, determining a target keyword based on the commodity activity event;
if not, determining a target keyword from the historical search keywords;
preloading search results matched with the target keywords;
and returning the search result to the client when receiving the search request comprising the target keyword.
Optionally, the determining whether to monitor the preset commodity activity event includes:
judging whether the current time reaches the preset commodity activity time or not;
the determining the target keyword based on the commodity activity event comprises the following steps:
and determining the keywords preset for the commodity activity event as target keywords.
Optionally, the determining the target keyword from the historical search keywords includes:
counting the times of each historical search keyword received in the first sliding time window;
and determining N historical search keywords with times larger than a preset times threshold as target keywords.
Optionally, the preloading the search results matched with the target keywords includes:
judging whether a geographical area remark list is arranged, wherein the geographical area remark list is provided with commodities limited by a target geographical area;
if yes, generating a second search result for the target geographic area in the geographic area remark table, and preloading the second search result;
if not, matching the first search result for the target keyword, and preloading the first search result.
Optionally, the step of returning the search result to the client when receiving the search request including the target keyword includes:
acquiring a geographic area of a terminal logged in by the client from the search request;
judging whether the geographic area is the target geographic area or not;
if yes, sending the second search result to the client;
and if not, sending the first search result to the client.
Optionally, after returning the search result to the client, the method further includes:
determining hot search keywords in a preset second sliding time window, wherein the time length of the second sliding time window is smaller than that of the first sliding time window;
preloading a third search result matched with the hot search keyword;
and returning the third search result to the client when a search request comprising the hot search keyword is received.
Optionally, after returning the third search result to the client, the method further includes:
detecting behavior operation of a user on a client, and predicting search keywords of the user based on the behavior operation;
loading a fourth search result matched with the predicted search keyword of the user;
and returning the fourth search result to the client when a search request comprising the predicted search keyword is received.
In a second aspect, the present invention provides a search preloading device, comprising:
the monitoring module is used for monitoring the search request quantity and the historical search keywords received in a preset first sliding time window;
the search request quantity judging module is used for judging whether the search request quantity is larger than a preset threshold value or not;
the preset event monitoring module is used for judging whether a preset commodity activity event is monitored when the search request quantity is larger than a preset threshold value, if so, executing the first target keyword determining module, and if not, executing the second target keyword determining module;
the first target keyword determining module is used for determining target keywords based on the commodity activity event;
the second target keyword determining module is used for determining target keywords from the historical search keywords;
the search result preloading module is used for preloading search results matched with the target keywords;
and the search result sending module is used for returning the search result to the client when receiving the search request comprising the target keyword.
In a third aspect, the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the search preloading method of any of the first aspects of the present invention.
In a fourth aspect, the present invention provides a computer readable storage medium storing computer instructions for causing a processor to perform the search preloading method of any of the first aspects of the present invention.
According to the method and the system, when the search request quantity is detected to be larger than the preset threshold value, if the preset commodity activity event is monitored, the target keyword is determined based on the commodity activity event, if the commodity activity event is not monitored, the target keyword is determined from the historical search keywords, the search result matched with the target keyword is preloaded, and when the search request comprising the target keyword is received, the search result is returned to the client, on one hand, the response time of at least part of the search request can be saved by preloading the search result when the search request quantity is larger than the threshold value, the server pressure is reduced, the search result is returned to the client in time to be displayed, the user experience and the service conversion capability are improved, on the other hand, the search result related to the commodity activity event is triggered by monitoring the preset commodity activity event, and when a large number of search requests are received during activities such as commodity discount and price reduction, the preloaded search result is directly returned to the client, the problem that a large number of search requests related to commodity activity occupy server resources during commodity activity is avoided, the response speed of the commodity activity search request is improved, and the user experience and the service conversion capability of commodity activity is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a search preloading method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a search preloading method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a search preloading device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Example 1
Fig. 1 is a flowchart of a search preloading method according to an embodiment of the present invention, where the method may be applied to a case of preloading search results of goods, and the method may be performed by a search preloading device, where the search preloading device may be implemented in a form of hardware and/or software and configured in an electronic device. As shown in fig. 1, the search preloading method includes:
s101, monitoring the received search request quantity and historical search keywords in a preset first sliding time window.
The embodiment is applicable to a server or a search engine connected with a client in the background, taking the server as an example, when a user inputs a search keyword of a commodity on a page of the client, the server receives a search request including the keyword, and the server can count the amount of the received search request within a period of time and acquire the search keyword in the search request.
Specifically, a first sliding time window may be set, where the time length of the first sliding time window may be a first time length, for example, the time length of the first sliding time window is 1 minute, so that the server counts the search request amount received in 1 minute, and the step length of the first sliding time window may be 5 seconds or 10 seconds, that is, the first sliding time window is updated every 5 seconds or 10 seconds, so as to update the time interval to which the first sliding time window slides, for example, 00:00:00-00:01:00 is the start time of the first sliding time window, when the time reaches 00:00:05, the first sliding time window slides according to a preset step length of 5 seconds, the time interval of the first sliding time window is 00:00:05-00:01:05, and so on, counts the search request amount received in each first sliding time window and the search keyword in the search request.
S102, judging whether the search request quantity is larger than a preset threshold value.
The preset threshold may be a value triggering the server to start the preloading search result, the threshold may be determined according to the performance of the server and the network bandwidth, after comparing the search request amount with the preset threshold, if the search request amount is greater than the preset threshold, it indicates that the current search request amount is too large, the server is required to start the preloading, S103 may be executed, if the search request amount is less than the threshold, it indicates that the search request amount is smaller, the server pressure is small, and the preloading is not required to be started, and S101 is returned to continuously monitor the search request amount.
S103, judging whether a preset commodity activity event is monitored.
In this embodiment, the preset merchandise event may be an event that may cause a surge in the search request amount within a preset time period, and by way of example, the preset merchandise event may be a preset merchandise promotion event, a merchandise marketing event, a new merchandise event, etc., when the preset merchandise event is monitored, in order to avoid the surge in the relevant search request amount caused by implementation of the merchandise event, S104 may be executed to determine the target keyword based on the preset merchandise event, and if the preset merchandise event is not monitored, S105 may be executed to determine the target keyword from the historical search keyword.
S104, determining target keywords based on commodity activity events.
In one embodiment, the target keyword may be determined based on the commodity activity event, and may be a search keyword related to the commodity activity event, for example, the search keyword may be set in advance for each commodity activity event, the search keyword of the commodity activity event may be determined as the target keyword, for example, the preset commodity activity event may be a price reduction promotion of the medicine a for a preset period of time, and when it is monitored that the price of the medicine a decreases from the price B1 to the price B2 within the preset period of time, the keyword of the medicine a may be determined as the target keyword.
Of course, the preset merchandise event is different, the set search keyword is also different, and the method of determining the target keyword based on the merchandise event is not limited in this embodiment.
S105, determining target keywords from the historical search keywords.
When the preset commodity activity event is not monitored, N historical search keywords with the largest searching times can be determined from the historical search keywords to serve as target keywords.
S106, preloading search results matched with the target keywords.
In this embodiment, the server may search for a search result with the target keyword by using a commodity as an example, the target keyword may be a name of a drug, information of a drug or a similar drug manufactured by each manufacturer may be used as a search result, the target keyword may also be a disease symptom description, the search result may be information of a drug corresponding to the disease symptom, and after obtaining the search result, the search result may be preloaded in the memory.
And S107, returning the search result to the client when receiving the search request comprising the target keyword.
The server receives the search request of the client in real time, analyzes the search keywords from the search request, and can directly return the preloaded search results matched with the target keywords to the client when the search keywords are target keywords, so that the server does not need to calculate and match the search results for each search request comprising the same target keywords.
According to the method and the system, when the search request quantity is detected to be larger than the preset threshold value, if the preset commodity activity event is monitored, the target keyword is determined based on the commodity activity event, if the commodity activity event is not monitored, the target keyword is determined from the historical search keywords, the search result matched with the target keyword is preloaded, and when the search request comprising the target keyword is received, the search result is returned to the client, on one hand, the response time of at least part of the search request can be saved by preloading the search result when the search request quantity is larger than the threshold value, the server pressure is reduced, the search result is returned to the client in time to be displayed, the user experience and the service conversion capability are improved, on the other hand, the search result related to the commodity activity event is triggered by monitoring the preset commodity activity event, and when a large number of search requests are received during activities such as commodity discount and price reduction, the preloaded search result is directly returned to the client, the problem that a large number of search requests related to commodity activity occupy server resources during commodity activity is avoided, the response speed of the commodity activity search request is improved, and the user experience and the service conversion capability of commodity activity is improved.
Example two
Fig. 2 is a flowchart of a search preloading method provided in a second embodiment of the present invention, where the search preloading method includes:
s201, monitoring the received search request quantity and historical search keywords in a preset first sliding time window.
A first sliding time window may be set, where the time length of the first sliding time window may be a first time length, for example, the time length of the first sliding time window is 1 minute, so that the server counts the search request amount received in 1 minute, and the step length of the first sliding time window may be 5 seconds or 10 seconds, i.e., the first sliding time window slides every 5 seconds or 10 seconds to update the time interval to which the first sliding time window slides, and the server may count the search request amount received in each first sliding time window and the search keyword in the search request.
S202, judging whether the search request quantity is larger than a preset threshold value.
The embodiment may compare the search request amount with a preset threshold, if the search request amount is greater than the preset threshold, it indicates that the current search request amount is too large, and the server is required to start the preloading, and may execute S203, if the search request amount is less than the threshold, it indicates that the search request amount is smaller, the server pressure is small, and the preloading is not required to be started, and returns to S201 to continuously monitor the search request amount.
S203, judging whether the current time reaches the preset commodity activity time.
The commodity activity may be an activity of commodity price reduction, commodity presentation, new commodity sales, etc., the commodity activity time may be a start time of the commodity activity, for example, the price of the medicine a decreases from the price B1 to the price B2 in a certain period of time, or the price of the medicine a is unchanged in a certain period of time, but the shipping quantity of each order of the medicine a increases from C1 to C2, the commodity activity time may be preset in a server, and the server may determine whether the current time reaches the preset commodity activity time when the search request quantity is detected to be greater than the preset threshold value, if so, it indicates that the current time has the commodity activity, and may execute S204 if not, and execute S205 in order to avoid the search request quantity from increasing abruptly due to the commodity activity.
S204, determining keywords preset for commodity activity events as target keywords.
In this embodiment, keywords of a commodity activity event may be preset in the server, the keywords may be information such as names and details of commodities, and taking medicines as examples, the keywords of the commodity activity may be medicine names, main functions, and the like, and the keywords preset for the commodity activity may be determined as target keywords.
S205, counting the times of each historical search keyword received in the first sliding time window, and determining N historical search keywords with times greater than a preset time threshold as target keywords.
When the current time does not reach the preset commodity activity time, indicating that no commodity activity exists at the current time, determining the historical search keywords received in the first sliding time window, counting the times of receiving each historical search keyword, and determining N historical search keywords with times greater than a time threshold as target keywords.
S206, judging whether a geographical area remark list is arranged, wherein commodities limited by the target geographical area are arranged in the geographical area remark list.
The target keyword is used for searching for goods, the geographical area remark list comprises at least one goods limited by the target geographical area, the target geographical area is indicated to limit the purchase or prohibit the sale of the goods, for example, a certain keyword searching result comprises medicine A, medicine C, medicine D and medicine E, wherein the medicine D limits the sale in the geographical area F.
After the target keyword is acquired, it may be determined whether a geographical area remark table is set, if yes, S207 is executed, and if no, S208 is executed.
S207, generating a second search result for the target geographic area in the geographic area remark table, and preloading the second search result.
After obtaining the determined target keyword, the server may calculate and match the search result, and generate a second search result after excluding the merchandise limited in the search result for the target geographic area, and preload the second search result. Illustratively, the search results for a certain target keyword include drug a, drug C, drug D, drug E, where drug D is restricted from being sold in geographic area F, and the second search results for geographic area F include drug a, drug C, and drug E.
S208, matching the first search result for the target keyword, and preloading the first search result.
Specifically, if the geographical area remark table is not set, a plurality of results matched with the target keyword can be searched as a first search result, and the first search result is preloaded.
S209, when a search request comprising the target keyword is received, acquiring the geographic area of the terminal logged in by the client from the search request.
In one embodiment, the search request includes the target keyword, and may further include an IP address of the terminal to which the client logs in, and the geographic area may be determined by the IP address.
S210, judging whether the geographic area is a target geographic area.
After obtaining the geographical area in which the user is located, the geographical area may be compared with the target geographical area to determine whether the geographical area is the target geographical area, if so, S211 is executed, and if not, S212 is executed.
S211, sending the second search result to the client.
When the geographic area in which the user is located is the target geographic area, the second search results may be sent to the client used by the user.
S212, sending the first search result to the client
When the geographic area in which the user is located is not the target geographic area, the first search results may be sent to a client used by the user.
After monitoring the search request quantity and the historical search keywords received in the first sliding time window, if the search request quantity is larger than a preset threshold value, determining a target keyword based on commodity activity events when the current time reaches the preset commodity activity time, otherwise determining N historical search keywords with search times larger than the preset times threshold value as the target keyword, preloading search results matched with the target keyword, and returning the search results to the client when receiving a search request comprising the target keyword.
Furthermore, by setting the geographical region remark table, different search results are preloaded for different geographical regions, so that the method is high in flexibility and suitable for the scenes of limited purchase of commodities in partial regions.
In an alternative embodiment, after performing the first level of preloading of S203-S212, the load or performance of the server may be determined, for example, by calculating the occupancy of hardware resources such as a processor, memory, graphics card, etc. of the server, or by calculating the search result delay to measure the server performance. When the load of the server is larger than the preset load or the performance of the server is lower than the preset performance, determining hot search keywords in a preset second sliding time window, wherein the time length of the second sliding time window is smaller than that of the first sliding time window, preloading a third search result matched with the hot search keywords, and returning the third search result to the client when a search request comprising the hot search keywords is received. Specifically, after the first level preloading of S203-S212 is performed by monitoring the search request amount received in the preset first sliding time window, if the server load or performance does not reach the standard, it may be determined that the hot search keyword in the second sliding time window with a time length smaller than the first sliding time window is a search keyword detected in the second sliding time window with a shorter time length and with a search frequency greater than a threshold value, and the preloading is performed by the hot search keyword detected in a short time, so as to further reduce the server pressure and improve the response speed of the hot search keyword in a short time.
In yet another alternative embodiment, after the first level of preloading is performed by executing S203-S212 and the second level of preloading is performed by monitoring the popular search keywords of the second sliding time window, if the load of the server is still greater than the preset load or the performance of the server is still lower than the preset performance, the behavior operation of the user on the client may be detected, the search keyword of the user may be predicted based on the behavior operation, the fourth search result matched with the predicted search keyword of the user may be loaded, and when the search request including the predicted search keyword of the user is received, the fourth search result may be returned to the client to implement the third level of preloading.
Example III
Fig. 3 is a schematic structural diagram of a search preloading device according to a third embodiment of the present invention. As shown in fig. 3, the search preloading device includes:
the monitoring module 301 is configured to monitor a search request amount and a historical search keyword received in a preset first sliding time window;
a search request amount determining module 302, configured to determine whether the search request amount is greater than a preset threshold;
the preset event monitoring module 303 is configured to determine whether to monitor a preset merchandise activity event when the search request amount is greater than a preset threshold, if yes, execute the first target keyword determining module 304, and if not, execute the second target keyword determining module 305;
a first target keyword determination module 304, configured to determine a target keyword based on the commodity activity event;
a second target keyword determining module 305, configured to determine a target keyword from the historical search keywords;
a search result preloading module 306, configured to preload search results that match the target keyword;
and a search result sending module 307, configured to return the search result to the client when receiving a search request including the target keyword.
Optionally, the preset event listening module 303 includes:
the time judging unit is used for judging whether the current time reaches the preset commodity activity time or not;
the first target keyword determining module 304 includes:
and the first target keyword determining unit is used for determining keywords preset for the commodity activity event as target keywords.
Optionally, the second target keyword determining module 305 includes:
the times counting unit is used for counting the times of each historical search keyword received in the first sliding time window;
and the second target keyword determining unit is used for determining N historical search keywords with times larger than a preset times threshold as target keywords.
Optionally, the search result preloading module 306 includes:
the limiting area judging unit is used for judging whether a geographical area remark table is arranged, wherein the geographical area remark table is provided with commodities limited by a target geographical area, if yes, the second search result preloading unit is executed, and if not, the first search result preloading unit is executed;
a second search result preloading unit, configured to generate a second search result for a target geographic area in the geographic area remark table, and preload the second search result;
and the first search result preloading unit is used for matching the first search result for the target keyword and preloading the first search result.
Optionally, the search result sending module 307 includes:
a geographical area obtaining unit, configured to obtain a geographical area of a terminal registered by the client from the search request;
the geographic area judging unit is used for judging whether the geographic area is the target geographic area, if so, executing the second search result transmitting unit, and if not, executing the first search result transmitting unit;
a second search result sending unit, configured to send the second search result to the client;
and the first search result sending unit is used for sending the first search result to the client.
Optionally, the method further comprises:
the hot search keyword determining module is used for determining hot search keywords in a preset second sliding time window if the search request quantity is larger than a preset threshold value, and the time length of the second sliding time window is smaller than that of the first sliding time window;
the third search result preloading module is used for preloading third search results matched with the hot search keywords;
and the third search result sending module is used for returning the third search result to the client when receiving the search request comprising the hot search keyword.
Optionally, the method further comprises:
the search keyword prediction module is used for detecting behavior operation of a user on the client and predicting search keywords of the user based on the behavior operation;
a fourth search result preloading module for loading a fourth search result matched with the predicted search keyword of the user;
and the fourth search result sending module is used for returning the fourth search result to the client when receiving a search request comprising the predicted search keyword.
The search preloading device provided by the embodiment of the invention can execute the search preloading method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of an electronic device 40 that may be used to implement an embodiment of the invention. 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. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), 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 inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, etc., in which the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 may also be stored. The processor 41, the ROM 42 and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
Various components in electronic device 40 are connected to I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 41 may be various general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as the search preloading method.
In some embodiments, the search preloading method may be implemented as a computer program tangibly embodied on a computer readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the search preloading method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the search preloading method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can 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), complex 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.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program 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 the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage 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. Alternatively, the computer readable storage medium may be a machine readable signal medium. 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 an electronic device 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 a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. 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 computing system may include clients and servers. 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.
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 described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. 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 invention should be included in the scope of the present invention.

Claims (10)

1. A search preloading method for preloading search results of goods, comprising:
monitoring the received search request quantity and historical search keywords in a preset first sliding time window;
judging whether the search request quantity is larger than a preset threshold value or not;
judging whether a preset commodity activity event is monitored or not when the search request quantity is larger than a preset threshold value;
if yes, determining a target keyword based on the commodity activity event;
if not, determining a target keyword from the historical search keywords;
preloading search results matched with the target keywords;
and returning the search result to the client when receiving the search request comprising the target keyword.
2. The method of claim 1, wherein said determining whether a preset merchandise activity event is monitored comprises:
judging whether the current time reaches the preset commodity activity time or not;
the determining the target keyword based on the commodity activity event comprises the following steps:
and determining the keywords preset for the commodity activity event as target keywords.
3. The method of claim 1, wherein determining a target keyword from the historical search keywords comprises:
counting the times of each historical search keyword received in the first sliding time window;
and determining N historical search keywords with times larger than a preset times threshold as target keywords.
4. A method according to any of claims 1-3, wherein preloading search results that match the target keyword comprises:
judging whether a geographical area remark list is arranged, wherein the geographical area remark list is provided with commodities limited by a target geographical area;
if yes, generating a second search result for the target geographic area in the geographic area remark table, and preloading the second search result;
if not, matching the first search result for the target keyword, and preloading the first search result.
5. The method of claim 4, wherein the returning the search results to the client upon receiving a search request including the target keyword comprises:
acquiring a geographic area of a terminal logged in by the client from the search request;
judging whether the geographic area is the target geographic area or not;
if yes, sending the second search result to the client;
and if not, sending the first search result to the client.
6. A method as recited in any of claims 1-3, further comprising, after returning the search results to the client:
determining hot search keywords in a preset second sliding time window, wherein the time length of the second sliding time window is smaller than that of the first sliding time window;
preloading a third search result matched with the hot search keyword;
and returning the third search result to the client when a search request comprising the hot search keyword is received.
7. The method of claim 6, further comprising, after returning the third search result to the client:
detecting behavior operation of a user on a client, and predicting search keywords of the user based on the behavior operation;
loading a fourth search result matched with the predicted search keyword of the user;
and returning the fourth search result to the client when a search request comprising the predicted search keyword is received.
8. A search preloading device for preloading search results of goods, comprising:
the monitoring module is used for monitoring the search request quantity and the historical search keywords received in a preset first sliding time window;
the search request quantity judging module is used for judging whether the search request quantity is larger than a preset threshold value or not;
the preset event monitoring module is used for judging whether a preset commodity activity event is monitored when the search request quantity is larger than a preset threshold value, if so, executing the first target keyword determining module, and if not, executing the second target keyword determining module;
the first target keyword determining module is used for determining target keywords based on the commodity activity event;
the second target keyword determining module is used for determining target keywords from the historical search keywords;
the search result preloading module is used for preloading search results matched with the target keywords;
and the search result sending module is used for returning the search result to the client when receiving the search request comprising the target keyword.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the search preloading method of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the search preloading method of any of claims 1-7 when executed.
CN202311551164.9A 2023-11-20 2023-11-20 Search preloading method, device, electronic equipment and storage medium Pending CN117520686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311551164.9A CN117520686A (en) 2023-11-20 2023-11-20 Search preloading method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311551164.9A CN117520686A (en) 2023-11-20 2023-11-20 Search preloading method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117520686A true CN117520686A (en) 2024-02-06

Family

ID=89758355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311551164.9A Pending CN117520686A (en) 2023-11-20 2023-11-20 Search preloading method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117520686A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067275A1 (en) * 2005-09-20 2007-03-22 Microsoft Corporation Context sensitive web search queries
CN102930054A (en) * 2012-11-19 2013-02-13 北京奇虎科技有限公司 Data search method and data search system
CN103064852A (en) * 2011-10-20 2013-04-24 阿里巴巴集团控股有限公司 Website statistical information processing method and website statistical information processing system
CN110569421A (en) * 2019-08-22 2019-12-13 上海摩库数据技术有限公司 search method based on chemical industry
CN113051392A (en) * 2021-04-30 2021-06-29 中国银行股份有限公司 Knowledge pushing method and device
CN115114504A (en) * 2021-03-22 2022-09-27 腾讯科技(深圳)有限公司 Data searching method and device
CN116150459A (en) * 2021-11-23 2023-05-23 腾讯科技(深圳)有限公司 Searching method, searching device, electronic equipment and storage medium
CN116701762A (en) * 2023-06-09 2023-09-05 广州商研网络科技有限公司 Method, device, equipment and medium for processing degradation of search service of independent station

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067275A1 (en) * 2005-09-20 2007-03-22 Microsoft Corporation Context sensitive web search queries
CN103064852A (en) * 2011-10-20 2013-04-24 阿里巴巴集团控股有限公司 Website statistical information processing method and website statistical information processing system
CN102930054A (en) * 2012-11-19 2013-02-13 北京奇虎科技有限公司 Data search method and data search system
CN110569421A (en) * 2019-08-22 2019-12-13 上海摩库数据技术有限公司 search method based on chemical industry
CN115114504A (en) * 2021-03-22 2022-09-27 腾讯科技(深圳)有限公司 Data searching method and device
CN113051392A (en) * 2021-04-30 2021-06-29 中国银行股份有限公司 Knowledge pushing method and device
CN116150459A (en) * 2021-11-23 2023-05-23 腾讯科技(深圳)有限公司 Searching method, searching device, electronic equipment and storage medium
CN116701762A (en) * 2023-06-09 2023-09-05 广州商研网络科技有限公司 Method, device, equipment and medium for processing degradation of search service of independent station

Similar Documents

Publication Publication Date Title
WO2014151292A1 (en) Estimating visibility of content items
US11062350B2 (en) Method, apparatus, and device for monitoring promotion status data, and non-volatile computer storage medium
CN111324804B (en) Search keyword recommendation model generation method, keyword recommendation method and device
CN111897700B (en) Application index monitoring method and device, electronic equipment and readable storage medium
CN107291835B (en) Search term recommendation method and device
CN113656733B (en) Floor page generation method and device, electronic equipment and storage medium
CN113205189B (en) Method for training prediction model, prediction method and device
CN111177513A (en) Method and device for determining abnormal access address, electronic equipment and storage medium
CN116471174B (en) Log data monitoring system, method, device and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN117520686A (en) Search preloading method, device, electronic equipment and storage medium
CN113722593B (en) Event data processing method, device, electronic equipment and medium
CN112887426B (en) Information stream pushing method and device, electronic equipment and storage medium
CN114862479A (en) Information pushing method and device, electronic equipment and medium
CN114661562A (en) Data warning method, device, equipment and medium
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN113312554A (en) Method and device for evaluating recommendation system, electronic equipment and medium
CN113326436A (en) Method and device for determining recommended resources, electronic equipment and storage medium
CN116719621B (en) Data write-back method, device, equipment and medium for mass tasks
CN114186123A (en) Processing method, device and equipment for hotspot event and storage medium
CN113297492B (en) Data determination method, data determination device, electronic device and storage medium
CN113239296B (en) Method, device, equipment and medium for displaying small program
CN117350811A (en) Order processing method, order processing device, electronic equipment and storage medium
CN113360756A (en) Resource recommendation method and device, electronic equipment and medium
CN117635272A (en) Object recommendation method and device, electronic equipment and storage medium

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