Method, device, apparatus and storage medium for search processing
By using geographical location information to dynamically adjust and display search terms and tags in search processing, the problem of mismatch between search content and user needs in the existing technology is solved, and more personalized and accurate search results are achieved, improving user experience and conversion rates.
Patent Information
- Application Number
- CN202411857590.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art cannot dynamically adjust search terms based on the needs of different regions, resulting in the search content that does not match the actual needs of users, and the search terms display is relatively single, affecting the user experience and conversion rate.
By determining the geographical location information of the target object, dynamically adjusting and presenting search terms and tags corresponding to the geographical location, the tag provides description information of the search terms to improve the personalization and accuracy of the search results.
It effectively solves the problem of mismatch between search content and user needs, improves the personalization and accuracy of search results, and improves user experience and conversion rates.
Smart Images

Figure CN119760208A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of e-commerce and Internet technology, and in particular to a method, apparatus, device and computer-readable storage medium for search processing. Background Art
[0002] With the rapid development of e-commerce and retail business, object search, as a key link, is no longer limited to the matching and query of a single object, but has more diversified needs.
[0003] In related technologies, search keywords are an important tool for optimizing user experience and improving conversion rates. By showing users popular search terms related to their needs, users can quickly find the products they need, especially in high-frequency and immediate retail scenarios, such as takeout and buying medicine, where the accuracy and personalization of search recommendations are particularly important.
[0004] Therefore, a more intelligent and personalized method for search processing is needed. Summary of the invention
[0005] In a first aspect of the present disclosure, a method for search processing is provided. The method includes: determining geographic location information of a target object; and presenting at least one search term corresponding to the geographic location information and at least one label of the search term in a target application, wherein the label indicates corresponding description information of the at least one search term.
[0006] In a second aspect of the present disclosure, a device for search processing is provided. The device includes: a geographic location information determination module configured to determine the geographic location information of a target object; and a presentation module configured to present at least one search term corresponding to the geographic location information and at least one label of the search term in a target application, wherein the label indicates corresponding description information of the at least one search term.
[0007] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0009] In a fifth aspect of the present disclosure, a computer program product is provided, which is tangibly stored in a computer storage medium and includes computer executable instructions, which when executed by a device cause the device to perform the method according to the first aspect of the present disclosure.
[0010] It should be understood that the content described in this content section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0012] Figure 1A A schematic diagram of a search page is shown;
[0013] Figure 1B A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0014] Figure 2 A flowchart showing a process of search processing according to some embodiments of the present disclosure;
[0015] Figure 3A A schematic diagram showing a process of determining target search suggestion data in some embodiments of the present disclosure;
[0016] Figure 3B A schematic diagram showing an interface that presents at least one search term and a label of the search term in some embodiments of the present disclosure;
[0017] Figure 3C A schematic diagram showing a process of storing search suggestion data in some embodiments of the present disclosure;
[0018] Figure 3D A schematic diagram showing a process of storing search suggestion data in some embodiments of the present disclosure;
[0019] Figure 4 A block diagram showing an apparatus for search processing according to some embodiments of the present disclosure; and
[0020] Figure 5 A block diagram of an electronic device capable of implementing one or more embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0021] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0023] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0025] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0028] As briefly mentioned above, with the rapid development of e-commerce and retail business, object search, as a key link, is no longer limited to the matching and query of a single object, but has more diversified needs. Among them, search keywords are an important tool for optimizing user experience and improving conversion rate. By showing users popular search terms related to their needs, users can quickly find the products they need, especially in high-frequency and immediate demand retail scenarios, the accuracy and personalization of search recommendations are particularly important.
[0029] Figure 1A Schematic diagram of the search page 10 is shown. Figure 1A As shown, search keywords have two main presentation modes in the related art.
[0030] For example, on the search initial page 11, by presenting preset query items as search keywords in the search bar 11-1, users are helped to quickly input and find the desired content, thereby improving search efficiency. In response to detecting a relevant interactive operation (such as a user clicking on the search bar 11-1) on the search initial page 11, a search transition page 12 is presented. On the search transition page 12, personalized recommendations are provided to users by presenting historical search terms 12-1 and / or recommended search terms 12-2, thereby optimizing the overall search experience.
[0031] This method of presenting search keywords on the search page is widely used in e-commerce platforms, search engines and social media, and plays an important role in instant retail business.
[0032] However, in the search processing solutions of related technologies, recommended search keywords mainly rely on fixed preset rules or operational configurations. This static strategy makes the search keywords presented in the application uniform even in different regions, and cannot be dynamically adjusted according to the specific geographical location of the user. For example, in a certain period of time, users in place A may need more influenza-related drugs, while users in place B are more concerned about heatstroke prevention and cooling products. If fixed search terms are displayed to users in different regions, there may be a problem that the search content does not match the actual needs of users.
[0033] Secondly, the current search page usually only displays a basic list of search terms, lacking personalized tags or prominent features related to products or services. This simple display method cannot fully attract users, nor can it reflect the advantages or characteristics of the product, affecting the user's search experience and the platform's conversion effect.
[0034] Therefore, in order to solve the problems in related technologies such as the inability to dynamically adjust search terms according to the needs of different regions and the relatively single display of search terms, a more intelligent and efficient solution for search processing is needed that can combine geographic location information to dynamically determine and display search terms to better match the search needs of different users and improve search efficiency and user satisfaction.
[0035] In an embodiment of the present disclosure, a scheme for search processing is provided. According to an embodiment of the present disclosure, in response to receiving a search request on a first interface of a target application, determining the geographic location information of the initiator of the search request; based on the geographic location information, determining target search suggestion data, the target search suggestion data at least including at least one search term corresponding to the geographic location information and at least one search term label, the label indicating corresponding description information of at least one search term; and based on the determined target search suggestion data, presenting at least one search term and a search term label on a second interface of the target application.
[0036] Therefore, by dynamically adjusting the search terms presented based on geographic location information, the problem of mismatch between search content and actual user needs in related technologies can be effectively solved. And personalized search hot words and tags are flexibly generated and displayed according to the user's location, making the search results closer to the user's immediate needs, improving the user's search experience, and increasing search efficiency and conversion rate.
[0037] Figure 1B A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. In the example environment 100, a target application 120 is installed in an electronic device 110. A user 105 can interact with the target application 120 via the electronic device 110 and / or an attached device of the electronic device 110.
[0038] The target application 120 may include an application that supports search processing and provides services related to the target object to the user 105, such as product search, matching recommendation, purchase decision assistance, etc.
[0039] For example, the electronic device 110 may receive the search request of the user 105 through the target application 120, and then display information related to the user's needs. In some embodiments, the information may include search keywords, description information, pictures, etc.
[0040] exist Figure 1B In the environment 100, if the target application 120 is active, the electronic device 110 can present the interface 140 of the target application 120 to the user 105. The interface 140 can be various pages that the target application 120 can provide for the search request, such as an initial search page, a search transition page, a product details page, etc.
[0041] In the environment 100, the electronic device 110 can be any type of device with computing capabilities, including a terminal device or a server device. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.
[0042] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and does not imply any limitation on the scope of the present disclosure.
[0043] Figure 2 A flowchart of a process 200 of a search process according to some embodiments of the present disclosure is shown. The process 200 may be implemented in the environment 100, for example, the process 200 may be implemented at the electronic device 110. Hereinafter, for ease of discussion, the process 200 will be described with reference to FIG. 1.
[0044] At block 210 , the electronic device 110 determines geographic location information of a target object.
[0045] Geographic location information, also known as location-based service (LBS) information, usually refers to the geographic location information of the search initiator obtained through a terminal such as a mobile device. The obtained LBS information usually includes longitude and latitude coordinates, and can be further parsed into specific provinces, cities, regions or more detailed geographic range information. The electronic device 110 can use the parsed geographic location information as the basis for subsequent search terms, thereby ensuring that search terms related to the current area can be dynamically presented, improving the accuracy of search results and user experience.
[0046] Continue to refer Figure 2 In box 220, the electronic device 110 presents at least one search term and a label of the search term corresponding to the geographic location information in the target application.
[0047] The tag indicates corresponding description information of at least one search term. The tag is supplementary description information of the search term, which is used to enrich the content display of the search term, provide additional context or attribute information, and thus help better understand the characteristics or popularity of the search term.
[0048] In some embodiments, the user 105 may initiate a search request based on the target application 120. When the target application 120 receives or detects the search request initiated by the user 105, the electronic device 110 may present at least one search term and a label of the search term corresponding to the geographic location information in the target application. The triggering condition of the search request may be, for example, that the electronic device 110 detects that the user 105 accesses or enters the search interface in the target application 120 or that the user 105 performs an interactive operation such as clicking on the search bar included in the search interface.
[0049] In some embodiments, the electronic device 110 may present at least one search term corresponding to the geographic location information and a label corresponding to the search term on the first interface of the target application.
[0050] As an example, Figure 3A A schematic diagram of an interface 300A presenting at least one search term and a tag according to some embodiments of the present disclosure is shown.
[0051] like Figure 3A As shown, the electronic device 110 can present at least one search word and at least one label of the search word in the search box component 311 of the first interface 310. The label indicates the number of corresponding search initiators and corresponding geographic location information of the search word.
[0052] For example, the electronic device 110 may present a search term 311-1 and a label 313-1 corresponding to the search term 312-1 in the target search suggestion data in the search box component 311 of the first interface 310 (e.g., the default search page 310). The information presented by the label 311-2 may be combined with the LBS information and the search popularity information (e.g., splicing "A place + X million people searching"), so as to intuitively present the background information of the search term. Displaying the search popularity or geographical origin through labels helps the search initiator to select the content of interest more specifically.
[0053] In some embodiments, the electronic device 110 may present one search term and label corresponding to the geographic location information of the target object at a time in the first interface 310, and may also present multiple search terms and corresponding labels corresponding to the geographic location information of the target object in the first interface 310 by, for example, scrolling up and down. For example, the electronic device 110 switches the first search term and the label of the first search term in at least one search term presented in the search box component of the first interface to another search term and the corresponding label in at least one search term other than the first search term.
[0054] For example, continue to refer to Figure 3AWhen the time that the first search term 312-1 and its label 313-1 are displayed in the first interface 310 reaches a preset threshold time, the electronic device 110 can automatically switch it to the next search term 312-2 and its corresponding label 313-2, so as to display it in a carousel. Through the carousel method, the search initiator can see more search terms and their labels in a limited interface space, which helps to increase attention and stay time. The candidate search terms for switching can be the top N search terms sorted based on the number of initiators.
[0055] In some embodiments, in response to the search initiator's (i.e., target object) need to know more detailed information about the search in the current area, the electronic device 110 can provide more information by controlling the presentation of another interface. For example, in response to detecting a click operation on a display area other than at least one search word and a label in the search box component, the electronic device 110 presents at least one search word and at least one search word label on the second interface of the target application.
[0056] As an example, Figure 3B A schematic diagram of another interface 300B presenting at least one search term and a tag according to some embodiments of the present disclosure is shown.
[0057] like Figure 3B As shown, the electronic device 110 presents the second interface 320 in the target application in response to detecting the operation of the search initiator clicking the blank area of the search box component 311 on the first interface 310. The electronic device 110 can present the search term ranking 320-1 on the second interface 320 based on the result sorted by the number of searches of at least one search term indicated by the search term ranking. The search term ranking 320-1 includes a threshold number of search terms (such as search term 320-2) and corresponding tags (such as tag 320-3). The tag indicates the number of corresponding search initiators of the search term.
[0058] In some embodiments, the electronic device 110 may also present a geographic location tag 320-4 on the interface 320. The geographic location tag indicates the corresponding geographic location information of the search term. The geographic location tag can help the search initiator perceive the regionality of the content, improve the accuracy of localized recommendations and the trust of the search initiator in the recommended content.
[0059] In some embodiments, in addition to indicating the number and / or geographic location information of the search initiators of the search term, the label of the search term may also indicate more, less, or different other information, for example, search trend information "search popularity increased by 20%", service or promotional information "XX off for purchases over XX", social tags "friends' hot searches", etc.
[0060] In the disclosed embodiment, by providing different presentation methods of search terms and tags, the advantages of dynamic carousel and fixed sorting are combined, so that more content can be displayed in a limited space, and the displayed content can be highly relevant and personalized. In addition, the search popularity and geographic information provided by the tags enable the search initiator to quickly understand the most popular search terms and their regional trends, thereby improving the user experience and optimizing the efficiency of information acquisition.
[0061] In some embodiments, in response to detecting selection of a second search term among the at least one search term, the electronic device 110 presents search results corresponding to the second search term on a third interface of the target application.
[0062] For example, when the electronic device 110 detects that the user has selected a target search term (e.g., search term A), the target search result corresponding to the search term A may be presented. For example, if A is a certain type of commodity, the electronic device 110 presents the relevant commodity information, price, and purchase options on the search results page. If A is a certain service, the electronic device 110 presents the service details and reservation options on the search results page. If A is a certain topic, the electronic device 110 presents the relevant articles or community discussion content on the search results page.
[0063] In some embodiments, the electronic device 110 may determine target search suggestion data based on the geographic location information, thereby determining at least one search term and at least one tag of the search term corresponding to the geographic location information.
[0064] In some embodiments, the search suggestion data includes at least one search term corresponding to the geographic location information and at least one tag of the search term. The at least one search term corresponding to the geographic location information can be understood as a popular keyword or a recommended search term obtained by screening based on different geographic locations. These search terms are keyword data that are statistically derived from the search behavior data and are highly relevant to the needs of a specific geographic location.
[0065] As an example, Figure 3C A schematic diagram of a process 300C for determining target search suggestion data according to some embodiments of the present disclosure is shown.
[0066] At block 331 , the electronic device 110 determines geographic location information of an originator of the search request.
[0067] In block 332 , the electronic device 110 determines whether the geographic location information is empty. If not, block 333 is executed.
[0068] For example, LBS information may fail to be successfully obtained or the obtained LBS information may be empty due to network delay, initiator refusal of authorization, device problem or other situations. By determining whether the LBS information is empty, the electronic device 110 can handle abnormal situations in a timely manner, such as using default values or providing backup solutions.
[0069] In box 333, the electronic device 110 obtains corresponding search suggestion data of the first geographical range corresponding to the geographical location information.
[0070] For example, the electronic device 110 may preferentially obtain search suggestion data for a first geographic range (e.g., a specific city or a more detailed area) corresponding to the current geographic location information of the search initiator. This step ensures that highly relevant search term recommendations are provided to the search initiator in the area, thereby improving the personalization and accuracy of search results.
[0071] In box 334, the electronic device 110 determines whether the number of search terms included in the corresponding search suggestion data of the first geographic scope meets the threshold number. If the electronic device 110 determines that the number of search terms included in the corresponding search suggestion data of the first geographic scope meets the threshold number, box 335 is executed. In box 335, the electronic device 110 determines the corresponding search suggestion data of the first geographic scope as the target search suggestion data.
[0072] If the electronic device 110 determines that the number of search terms included in the corresponding search suggestion data of the first geographic scope does not meet the threshold number, block 336 is executed. In block 336, the electronic device 110 obtains the corresponding search suggestion data of the second geographic scope corresponding to the geographic location information. The second geographic scope includes the first geographic scope.
[0073] For example, the electronic device 110 determines whether the number of search terms contained in the search suggestion data within the first geographical scope meets a preset threshold (such as at least N search terms). If so, the electronic device 110 can directly determine that the data is the target search suggestion data. This process helps to quickly provide search recommendations that best match local needs and reduce computational complexity. If the data within the first geographical scope is insufficient (such as the number of search terms is lower than the threshold), the electronic device 110 can expand to a second geographical scope (such as a provincial level or other area larger than the first geographical scope) to obtain the corresponding search suggestion data. The second geographical scope includes the first geographical scope, thereby ensuring that when local data is insufficient, a wider range of regional hot search terms are provided to improve data coverage.
[0074] In box 337, the electronic device 110 determines whether the number of search terms included in the corresponding search suggestion data of the second geographic scope meets the threshold number. If the electronic device 110 determines that the number of search terms included in the corresponding search suggestion data of the second geographic scope meets the threshold number, box 335 is executed. In box 335, the electronic device 110 determines the corresponding search suggestion data of the second geographic scope as the target search suggestion data.
[0075] If the electronic device 110 determines that the number of search terms included in the corresponding search suggestion data of the second geographic scope does not meet the threshold number, or the electronic device 110 determines that the geographic location information cannot be determined or the geographic location information is empty, then execute box 338. In box 338, the electronic device 110 obtains the corresponding search suggestion data of the default geographic scope. Then the electronic device 110 executes box 338 to determine the corresponding search suggestion data of the default geographic scope as the target search suggestion data.
[0076] For example, if the search suggestion data within the second geographic scope meets the threshold requirement, the electronic device 110 can determine the data as the target search suggestion data. If the data in the second geographic scope is still insufficient, or valid geographic location information cannot be determined (such as the search initiator does not authorize location permissions or receives invalid geographic location information), the electronic device 110 can use the search suggestion data of the default geographic scope (such as the national scope) as the target data. This design ensures that search recommendations can be provided in any case to prevent the situation where no data is available.
[0077] In the disclosed embodiment, by gradually expanding the geographical scope of the search suggestion data, it is ensured that sufficient and relevant search keyword recommendations can be provided in different regions and under different data volume conditions. This approach not only improves the personalized search experience, but also provides a backup plan when local data is insufficient, enhancing the robustness and adaptability of the search process. At the same time, search recommendations based on dynamic geographic information can more accurately reflect the needs of search initiators in different regions, further optimizing user experience and service effects.
[0078] Figure 3D A schematic diagram of a process 330D for storing search suggestion data according to some embodiments of the present disclosure is shown.
[0079] like Figure 3D As shown, the electronic device 110 can utilize a data processing platform, a message queue (MQ) and a cache system and based on big data processing and distributed storage technology, partition, sort and store the acquired search operation data by geographic location, and finally construct search suggestion data for search processing.
[0080] First, the electronic device 110 acquires search operation data, which indicates at least one search word and the number of searches corresponding to the at least one search word, the number of search initiators, and description information.
[0081] In block 341, the electronic device 110 determines the search word ranking based on the acquired search operation data. Specifically, the electronic device 110 determines the geographic location information of the corresponding initiator of the search word. Then, the electronic device 110 determines the search word ranking by sorting the search words by the number of searches based on the geographic location information.
[0082] As an example, the electronic device 110 obtains and counts the historical search operation data of the instant retail shopping platform, and the statistical indicators include, for example, search terms, number of searchers, number of searches, etc. Then, the electronic device 110 determines the province identifier (Identity document, ID) and city ID corresponding to the search operation data based on the geographic location information, and organizes the search operation data by LBS region based on the province ID and city ID. Then, the electronic device 110 sorts according to the number of searches to determine the search term ranking for each region. In addition, in addition to counting the search term data for a single specific area, the electronic device 110 also generates nationwide search term ranking data as the corresponding data for the default geographic range, thereby providing backup display content for areas where local search data is insufficient or where the acquisition of geographic location information is abnormal.
[0083] In some embodiments, the electronic device 110 may also generate a corresponding tag for each search term based on a preset rule, for example, determining the corresponding tag based on the number and / or description information of the search initiators.
[0084] In block 342, the electronic device 110 periodically executes (e.g., daily) a batch processing task to store at least one search term, tag, search term ranking, and the number of search initiators as search suggestion data in the target database. For example, the search suggestion data is stored in a MySQL database table according to the data structure of province ID, city ID, search term, search term ranking, and number of searchers for subsequent calls.
[0085] As an example, Table 1 shows the structure of a corresponding data table of search suggestion data stored in the target database:
[0086] Table 1
[0087] Field Name Data Types Notes ID large integer Primary Key ID province_id Integer Province ID province_name Variable-length strings Province name city_id Integer City ID city_name Variable-length strings City Name keywords Variable-length strings Search term rank Integer Search word sorting keywords_uv Integer Number of initiators tag Variable-length strings Label
[0088] In the disclosed embodiments, by utilizing big data analysis technology and a data processing platform to integrate massive amounts of search operation data, search suggestion data based on geographic location information is constructed to ensure that the search suggestion data is associated with the geographic location of the search initiator, thereby improving the accuracy and practicality of search term recommendations, thereby meeting the personalized needs of users in different regions and enhancing user experience.
[0089] In some embodiments, in response to determining that the search suggestion data is stored in the target database, the electronic device 110 stores the target search suggestion data stored in the target database into a cache using a message queue mechanism.
[0090] Continue to refer Figure 3D In block 343, the electronic device 110 generates a log message in the message queue. In block 344, the electronic device 110 obtains the log message in the message queue through the cache system.
[0091] In some embodiments, the message queue is based on a component for subscribing to and consuming database binary log files (binlog) for data synchronization and distribution. This mechanism can decouple the production and consumption of search suggestion data, ensuring that the front-end interface can receive the latest search suggestion data, thereby improving the efficiency and stability of search processing.
[0092] As an example, after the electronic device 110 uses the data processing platform to perform batch processing tasks to analyze the search operation data of a certain period of time, it generates corresponding search suggestion data based on LBS information and stores it in the target database. In response to the newly generated search suggestion data being stored in the target database, the electronic device 110 can publish a binary log message in the message queue, indicating that there is new data to be distributed. Each component that subscribes to the message queue (such as a cache system) will listen to the message queue. When the cache system detects that a new message is pushed to the queue, it will respond immediately and synchronously store the updated search suggestion data.
[0093] At block 345 , in response to the log message indicating that the search suggestion data has been updated, electronic device 110 heterogeneously stores the updated search suggestion data in the cache system.
[0094] Heterogeneous storage means that the electronic device 110 can convert and store data from different data sources (such as the relational database MySQL) into a distributed cache system, and at the same time use a specific data structure or storage format to meet specific business needs. Specifically, the format and organization of data storage in the cache system may have a different structure from the data in the original database.
[0095] As an example, the electronic device 110 queries the data in the data table for province_id=-1, counts the search suggestion data of the default geographical scope (national scope), and then arranges the search suggestion data of the national scope in positive order according to the rank (search word sorting) field, that is, the data with the higher ranking is stored first. Then, the electronic device 110 traverses and counts the search suggestion data of each specific second geographical scope (province) and the first geographical scope (city).
[0096] In the cache system, the search suggestion data in the form of key-value pairs can be stored sequentially through the List ordered set data structure. Among them, the key is an identifier of the geographic location information (for example, "lbs_search_hot_keywords_{province ID}{city ID}"), which is used to distinguish the search suggestion data corresponding to different geographic locations. The value is an array containing multiple search keyword objects, each of which is used to store search suggestion data related to a specific geographic location. In each search keyword object, for example, the following fields are included: "keywords", which represents a specific search term; "rank", indicating the ranking position of the search term in the hot search list; "keywords_uv", which represents the search initiator data or search heat value of the search term; "tag", which is used as a tag to provide supplementary descriptive information for the term.
[0097] In the disclosed embodiment, by heterogeneously storing the search suggestion data in a cache system, target search suggestion data corresponding to specific geographic location information can be quickly retrieved during search processing, thereby achieving personalized search recommendations based on geographic location information, effectively improving the user's search experience and service accuracy.
[0098] Figure 4 A block diagram of an apparatus 400 for search processing according to some embodiments of the present disclosure is shown. The apparatus 400 may be implemented as or include the electronic device 110.
[0099] The device 400 includes a geographic location information determination module 410, which is configured to determine the geographic location information of the target object in response to receiving a search request in the first interface of the target application; and a presentation module 420, which is configured to present at least one search term and at least one search term label corresponding to the geographic location information in the target application.
[0100] In some embodiments, the presentation module 420 is further configured to present at least one search term and a label of at least one search term in a search box component of the first interface of the target application, wherein the label indicates the number of corresponding search initiators and corresponding geographic location information of the at least one search term.
[0101] In some embodiments, the presentation module 420 is further configured to present, on the second interface of the target application, the results of at least one search term sorted by the number of searches and at least one search term label, wherein the label indicates the number of corresponding search initiators of the at least one search term; and to present a geographic location label on the second interface, wherein the geographic location label indicates the corresponding geographic location information of the at least one search term.
[0102] In some embodiments, the presentation module 420 is further configured to switch a first search term and a label of the first search term in at least one search term presented in the search box component of the first interface to another search term and a corresponding label in at least one search term other than the first search term.
[0103] In some embodiments, the presentation module 420 is further configured to present at least one search term and at least one search term label on the second interface of the target application in response to detecting a click operation on a display area of the search box component other than at least one search term and label.
[0104] In some embodiments, the presentation module 420 is further configured to present search results corresponding to the second search term on a third interface of the target application in response to detecting a selection of a second search term among the at least one search term.
[0105] In some embodiments, the device 400 also includes a search suggestion data determination module 430, which is configured to obtain corresponding search suggestion data for a first geographic scope corresponding to the geographic location information, the search suggestion data including at least one search term and at least one label of the search term corresponding to the geographic location information; if it is determined that the number of search terms included in the corresponding search suggestion data of the first geographic scope meets a threshold number, the corresponding search suggestion data of the first geographic scope is determined as target search suggestion data.
[0106] In some embodiments, the search suggestion data determination module 430 is further configured to obtain corresponding search suggestion data of a second geographic scope corresponding to the geographic location information if it is determined that the number of search terms included in the corresponding search suggestion data of the first geographic scope does not meet a threshold number, and the second geographic scope includes the first geographic scope; and if it is determined that the number of search terms included in the corresponding search suggestion data of the second geographic scope meets a threshold number, determine the corresponding search suggestion data of the second geographic scope as target search suggestion data.
[0107] In some embodiments, the search suggestion data determination module 430 is further configured to determine corresponding search suggestion data of a default geographic range as target search suggestion data if it is determined that the geographic location information cannot be determined or is determined to be empty.
[0108] In some embodiments, the device 400 also includes a search suggestion data storage module 440, which is configured to obtain search operation data indicating at least one search term and the number of searches corresponding to the at least one search term, the number of search initiators and description information; determine a label based on the number of search initiators and / or the description information; determine the geographic location information of the corresponding initiator of the search term; determine the search term ranking by sorting the search terms by the number of searches based on the geographic location information; and store at least one search term, label, search term ranking and the number of search initiators as target search suggestion data to a target database.
[0109] In some embodiments, the search suggestion data storage module 440 is further configured to store the target search suggestion data stored in the target database into the cache using a message queue mechanism in response to determining that the target search suggestion data is stored in the target database.
[0110] The modules included in the device 400 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 400 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0111] Figure 5 1 shows a block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 5 The electronic device 500 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein.
[0112] like Figure 5 As shown, the electronic device 500 is in the form of a general electronic device. The components of the electronic device 500 may include, but are not limited to, one or more processors or processing units 510, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processing unit 510 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 520. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 500.
[0113] The electronic device 500 typically includes a plurality of computer storage media. Such media may be any available media accessible to the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 500.
[0114] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 5 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0115] The communication unit 540 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0116] The input device 550 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 560 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 may also communicate with one or more external devices (not shown) through the communication unit 540 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 500, or communicate with any device that allows the electronic device 500 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0117] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which one or more computer instructions are stored, wherein the one or more computer instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0118] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0119] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0120] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0121] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0122] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the implementations disclosed herein.
Claims
1. A method for search processing, comprising: Determine the geographic location information of the target object; as well as At least one search term corresponding to the geographic location information and a label of the at least one search term are presented in the target application, where the label indicates corresponding description information of the at least one search term.
2. The method of claim 1, wherein presenting the at least one search term and the tag comprises: The at least one search term and a label of the at least one search term are presented in a search box component of the first interface of the target application, wherein the label indicates the number of corresponding search initiators and corresponding geographic location information of the at least one search term.
3. The method according to claim 1 or 2, wherein presenting the at least one search term and the tag further comprises: presenting, on the second interface of the target application, the results of the at least one search term sorted by the number of searches and a label of the at least one search term, wherein the label indicates the number of corresponding search initiators of the at least one search term; as well as A geographic location tag is presented on the second interface, and the geographic location tag indicates corresponding geographic location information of the at least one search term.
4. The method according to claim 2, further comprising: Switch a first search term and a label of the at least one search term presented in the search box component of the first interface to another search term and a corresponding label other than the first search term in the at least one search term.
5. The method according to claim 3, further comprising: In response to detecting a click operation on a display area of the search box component other than the at least one search word and the label, presenting the at least one search word and the label of the at least one search word on a second interface of the target application.
6. The method according to claim 1, further comprising: In response to detecting a selection of a second search term among the at least one search term, presenting search results corresponding to the second search term on a third interface of the target application.
7. The method according to claim 1, wherein at least one search word corresponding to the geographic location information and a label of the at least one search word are determined by: Acquire corresponding search suggestion data of a first geographical range corresponding to the geographical location information, wherein the search suggestion data at least includes at least one search word corresponding to the geographical location information and a label of the at least one search word; If it is determined that the number of search terms included in the corresponding search suggestion data of the first geographical scope meets a threshold number, the corresponding search suggestion data of the first geographical scope is determined as the target search suggestion data.
8. The method according to claim 7, further comprising: If it is determined that the number of search terms included in the corresponding search suggestion data of the first geographical scope does not meet the threshold number, obtaining corresponding search suggestion data of a second geographical scope corresponding to the geographical location information, where the second geographical scope includes the first geographical scope; as well as If it is determined that the number of search terms included in the corresponding search suggestion data of the second geographical scope meets the threshold number, the corresponding search suggestion data of the second geographical scope is determined as the target search suggestion data.
9. The method according to claim 7, further comprising: If it is determined that the geographic location information cannot be determined or is determined to be empty, the corresponding search suggestion data of the default geographic range is determined as the target search suggestion data.
10. The method according to claim 1, wherein the at least one search word and the tag of the at least one search word are stored by: Acquire search operation data, the search operation data indicating at least one search term and the number of searches corresponding to the at least one search term, the number of search initiators, and description information; determining the tag based on the number of search initiators and / or the description information; Determining geographic location information of a corresponding initiator of the search term; Determining a search word ranking by ranking the search words according to the number of searches based on the geographic location information; as well as The at least one search term, the tag, the search term ranking, and the number of search initiators are stored in a target database as the target search suggestion data.
11. The method according to claim 10, further comprising: In response to determining that the target search suggestion data is stored in the target database, the target search suggestion data stored in the target database is stored in a cache using a message queue mechanism.
12. An apparatus for search processing, comprising: A geographic location information determination module, configured to determine the geographic location information of a target object; as well as The presentation module is configured to present at least one search term corresponding to the geographic location information and a label of the at least one search term in a target application, wherein the label indicates corresponding description information of the at least one search term.
13. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions when executed by the at least one processing unit cause the electronic device to perform the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the method according to any one of claims 1 to 11.
15. A computer program product tangibly stored in a computer storage medium and comprising computer executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 11.