A method, system, device and storage medium for searching geographic location information
By combining the hotspot cache retrieval module and the distributed search engine, the performance problem of the geographic location information search system under high QPS requirements is solved, the stability and reliability are improved, and efficient complex screening conditions and variable longitude and latitude sorting are supported.
Patent Information
- Application Number
- CN202310814560.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2043-07-04
AI Technical Summary
The existing geolocation information search system has poor performance under high QPS requirements and cannot meet complex screening conditions and sudden traffic, resulting in high machine costs and prone to downtime.
The method of combining the hotspot cache retrieval module and the distributed search engine is adopted. The search request is received through the preset interface, the hotspot request is judged and the search results are determined from the geographic location cache data or the distributed search engine respectively, to achieve efficient caching and asynchronous recording.
It improves the stability and reliability of search services, avoids inaccurate results, reduces machine costs, and supports high QPS information search services.
Smart Images

Figure CN116595118B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data search, and in particular to a method, system, device and storage medium for searching geographic location information. Background Art
[0002] With the proliferation of mobile devices and the development of positioning technology, LBS (Location Based Services) applications have become widely used in daily life. LBS positioning information can provide accurate data on the user's location, providing important contextual information for personalized recommendation systems, allowing them to recommend the closest data to the user.
[0003] However, when using Elasticsearch (a distributed, highly scalable, and highly real-time search and data analysis engine) or MySQL search, some filtering conditions cannot be aggregated into the database due to excessive data volume or frequent changes. For example, in scenarios where multi-business data is aggregated, such as stores participating in xx activities or stores with xx products, a batch of identifiers must be obtained before other database filtering and latitude and longitude sorting can be performed. As a result, the filtering conditions are complex and performance is relatively poor, unable to meet high QPS (Query Per Second) requirements. Simply adding machines to meet performance requirements can only result in high machine costs and an inability to automatically scale. Traffic bursts can easily cause online services to crash. Summary of the Invention
[0004] In view of this, the present invention aims to provide a method, system, device, and storage medium for searching geographic location information, which can effectively improve the stability and reliability of search services. The specific solution is as follows:
[0005] In a first aspect, the present application provides a geographic location information search system, comprising:
[0006] A request receiving module is configured to receive a search request based on a geographic location service through a preset interface, determine a corresponding target search keyword based on the search request, and perform a corresponding hotspot determination operation based on the target search keyword to obtain a corresponding hotspot determination result;
[0007] a hotspot cache retrieval module configured to, when the hotspot determination result indicates that the search request is a hotspot request and geographical location cache data corresponding to the search request currently exists locally, directly determine a first search result corresponding to the search request from the geographical location cache data;
[0008] a hotspot cache module, configured to, when the hotspot determination result indicates that the search request is a hotspot request and the geographic location cache data corresponding to the search request does not currently exist locally, determine a second search result corresponding to the search request using a preset distributed search engine, and record the second search result in the geographic location cache data;
[0009] The non-hotspot retrieval module is configured to use the preset distributed search engine to determine a third search result corresponding to the search request when the hotspot determination result indicates that the search request does not belong to a hotspot request.
[0010] Optionally, the request receiving module includes:
[0011] The keyword information determining unit is configured to determine a target search keyword corresponding to the search request by performing a corresponding summary operation on a search condition corresponding to the search request; wherein the search condition includes corresponding filtering information and preset sorting rule information.
[0012] Optionally, the hotspot cache retrieval module includes:
[0013] The first result determination unit is configured to search the geographic location cache data in batches from near to far based on the user location information corresponding to the search request and the preset sorting rule information to determine a corresponding first search result.
[0014] Optionally, the hotspot cache module includes:
[0015] A second result determining unit, configured to determine a second search result corresponding to the search request by using the preset distributed search engine and a preset non-hotspot search rule;
[0016] Accordingly, the non-hotspot search module includes:
[0017] The third result determining unit is configured to determine a third search result corresponding to the search request by using the preset distributed search engine and the preset non-hotspot search rule.
[0018] Optionally, the second result determination unit is specifically configured to determine the corresponding second search result by performing a corresponding search operation based on a preset distributed search engine and the screening information.
[0019] Optionally, the geographic location information search system further includes:
[0020] The cache judgment module is used to judge whether there is the geographic location cache data corresponding to the search request locally when the hotspot judgment result indicates that the search request is a hotspot request.
[0021] Optionally, the request receiving module includes:
[0022] The hot spot judgment unit is used to perform corresponding request statistical operations for the current scene based on the target search keyword and the preset statistical time period, and judge whether the determined request volume is not less than the preset hot spot request volume. If so, the search request is determined to be a hot spot request.
[0023] In a second aspect, the present application provides a method for searching for geographic location information, comprising:
[0024] Receiving a search request based on a geographic location service through a preset interface, determining a corresponding target search keyword based on the search request, and performing a corresponding hotspot determination operation according to the target search keyword to obtain a corresponding hotspot determination result;
[0025] When the hotspot determination result indicates that the search request is a hotspot request and geographical location cache data corresponding to the search request currently exists locally, directly determining a first search result corresponding to the search request from the geographical location cache data;
[0026] When the hotspot determination result indicates that the search request is a hotspot request and the geographic location cache data corresponding to the search request does not currently exist locally, using a preset distributed search engine to determine a second search result corresponding to the search request, and recording the second search result in the geographic location cache data;
[0027] When the hotspot determination result indicates that the search request does not belong to a hotspot request, the preset distributed search engine is used to determine a third search result corresponding to the search request.
[0028] In a third aspect, the present application provides an electronic device, comprising:
[0029] Memory, used to store computer programs;
[0030] The processor is used to execute the computer program to implement the steps of the aforementioned geographic location information search method.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, which implements the steps of the aforementioned geographic location information search method when executed by a processor.
[0032] It can be seen that in this application, the request receiving module is used to receive a search request based on a geographic location service through a preset interface, determine the corresponding target search keyword based on the search request, and perform a corresponding hotspot judgment operation based on the target search keyword to obtain a corresponding hotspot judgment result; the hotspot cache retrieval module is used to directly determine the first search result corresponding to the search request from the geographic location cache data when the hotspot judgment result indicates that the search request belongs to a hotspot request and the geographic location cache data corresponding to the search request currently exists locally; the hotspot cache module is used to use a preset distributed search engine to determine the second search result corresponding to the search request when the hotspot judgment result indicates that the search request belongs to a hotspot request and the geographic location cache data corresponding to the search request currently does not exist locally, and record the second search result to the geographic location cache data; the non-hotspot retrieval module is used to use the preset distributed search engine to determine the third search result corresponding to the search request when the hotspot judgment result indicates that the search request does not belong to a hotspot request. In this application, when a search request based on a geographic location service is received, it is determined whether it is a hotspot request by determining the corresponding target search keyword, and the corresponding result determination operation is performed based on the judgment result. In this way, the stability and reliability of the search service can be effectively improved, and the inaccurate results caused by complex search requests in the prior art can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0034] Figure 1 A schematic diagram of the structure of a geographic location information search system provided in this application;
[0035] Figure 2 A flowchart of a specific method for searching for geographic location information provided in this application;
[0036] Figure 3 A flowchart of a method for searching for geographic location information provided in this application;
[0037] Figure 4 This is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0039] When using Elasticsearch or MySQL for existing searches, some filtering conditions cannot be aggregated into the database due to excessively large amounts of data or frequent changes. It is necessary to first obtain a batch of identifiers before performing other database filtering and latitude and longitude sorting. Therefore, the filtering conditions are very complex, the performance is relatively poor, and it is impossible to meet high QPS requirements. Simply adding machines can only achieve performance requirements, resulting in high machine costs and the inability to automatically scale capacity; encountering sudden traffic can easily cause online services to crash. To this end, this application provides a geographic location information search system that can effectively improve the stability of search services.
[0040] See also Figure 1 As shown, an embodiment of the present invention discloses a geographical location information search system, including:
[0041] The request receiving module 11 is used to receive a search request based on a geographic location service through a preset interface, determine a corresponding target search keyword based on the search request, and perform a corresponding hotspot judgment operation according to the target search keyword to obtain a corresponding hotspot judgment result.
[0042] In this embodiment, combined with Figure 2 As shown, the request receiving module may specifically include: a keyword information determination unit, used to determine the target search keyword corresponding to the search request by performing a corresponding summary operation on the search conditions corresponding to the search request; wherein, the search conditions include corresponding filtering information (for example: geographical location-Shanghai, activity-participation in xx promotion, product-clothing, brand-xx brand), preset sorting rule information.
[0043] Furthermore, before performing a data search, it is necessary to first determine the type of the search request, that is, to determine whether the search request is a hotspot request. To determine the type of the search request, it is necessary to first determine the target search keyword corresponding to the search request. Therefore, the request receiving module may specifically include a hotspot determination unit for performing a corresponding request statistics operation for the current scenario based on the target search keyword and a preset statistical time period, and determining whether the determined request volume is not less than a preset hotspot request volume. If so, the search request is determined to be a hotspot request. It should be understood that a search request is determined to be a hotspot request when the request volume is equal to or greater than the preset hotspot request volume. Furthermore, since the user's longitude and latitude information may change after initiating a request, in this embodiment, only the longitude and latitude information at the time of initiation of the request is considered. Therefore, in the process of determining the target search keyword, the user's longitude and latitude information that changes in real time is ignored, and the determined target search keyword is unique. For example, if searching for "activity - participate in xx promotion" and "xx brand", the unique key is lbs:activityId-618:brandId-361. Among them, the preset statistical time period can be set in advance based on actual needs, and the preset hot spot request volume can also be pre-configured based on actual needs. In a specific embodiment, when performing request statistics, redis (REmoteDIctionary Server, data structure server) can be used as a hot spot judgment, and a LUA script can be used to perform rolling window statistics to obtain the request volume of the current search scene in the last 2 seconds as 200+1 times. If the preset hot spot request volume is 100 times at this time, it can be seen that 201>100, then it can be determined that the search request is a hot spot request.
[0044] The hotspot cache retrieval module 12 is used to directly determine the first search result corresponding to the search request from the geographic location cache data when the hotspot judgment result indicates that the search request is a hotspot request and geographic location cache data corresponding to the search request currently exists locally.
[0045] In this embodiment, combined with Figure 2 As shown, after the hotspot judgment result indicates that the search request belongs to a hotspot request, it is necessary to determine whether there is a local geographic location cache data corresponding to the search request, and if so, directly determine the first search result corresponding to the search request from the geographic location cache data. Figure 2The GEO (Geolocation) cache in the search is also the geographic location cache. It is understood that the geographic location information search system may further include a cache determination module configured to determine whether the local geographic location cache data corresponding to the search request exists when the hotspot determination result indicates that the search request is a hotspot request. For example, this module may query whether a cache key (i.e., the target search keyword) exists in Redis.
[0046] Furthermore, in this embodiment, the hotspot cache retrieval module may specifically include: a first result determination unit, which is used to search the geographic location cache data in batches from near to far based on the user location information corresponding to the search request and the preset sorting rule information to determine the corresponding first search result. For example: use the redislua command to search in batches from near to far. Then recommend by outputting the required data details of the latest batch from the user location information. At this time, by eliminating the need for the filtering information, accurate results can be determined by performing a cache search based on the corresponding location information. In this way, this embodiment can also automatically go to the cache in burst traffic to avoid service downtime.
[0047] The hotspot cache module 13 is used to use a preset distributed search engine to determine a second search result corresponding to the search request when the hotspot judgment result indicates that the search request is a hotspot request and the geographic location cache data corresponding to the search request does not currently exist locally, and record the second search result in the geographic location cache data.
[0048] In this embodiment, after determining that the search request belongs to a hotspot request, when it is determined that the geographic location cache data corresponding to the search request does not currently exist locally, it indicates that the search request is not "hot" enough. At this time, the search request needs to be regarded as a non-hotspot request, that is, the result needs to be determined based on the preset non-hotspot search rules, but at the same time, the corresponding cache construction operation needs to be performed asynchronously. That is, the hotspot cache module may specifically include: a second result determination unit, which is used to determine the second search result corresponding to the search request using the preset distributed search engine and the preset non-hotspot search rules. Specifically, the second result determination unit is specifically used to determine the corresponding second search result by performing a corresponding retrieval operation based on the preset distributed search engine and the screening information. Among them, the preset distributed search engine can be Elasticsearch, can be MySQL GEO (a geographic location index), or can be JVM GEO (a geographic location index). Among them, ivm (Java Virtual Machine, Java Virtual Machine).
[0049] It should be understood that what is output at this time is all the data details retrieved at one time without sorting. For example: when searching based on Elasticsearch, the default sorting is to query only the unique ID (Identity document) identifiers, latitude and longitude that meet the filter conditions. In addition, the determined second search result needs to be cached in the geographic location cache data corresponding to the search request constructed by the filter conditions, so that when a search request for the current search scenario is received again in the future, the filter conditions are ignored and the cache query is performed to determine the search result.
[0050] In a specific embodiment, stress test data statistics show that the Elasticsearch configuration (12*32 cores 64G) is under complex hot search conditions. (1) 10 filter conditions, QPS≈5000, rt (Reaction Time, referring to the average response time) ≈133ms, 95 lines rt≈240ms. (2) 200 filter conditions, QPS≈4000, rt≈133ms, 95 lines rt≈240ms. (3) 5000 filter conditions, QPS≈273, rt≈1616ms, 95 lines rt≈2065ms. Using half of the configuration of Elasticsearch (4*16 cores 32G) and redis (8*16 cores 32G) in this embodiment can support high-performance retrieval under more complex search conditions. When the number of hot search requests is small, JVM GEO can also be used. (1) Under redisGEO cache, 10 filter conditions, QPS≈100000, rt≈10ms, 95 lines rt≈30ms. (2) With 200 filter conditions in the RedisGEO cache, QPS ≈ 100,000, RT ≈ 10ms, and RT ≈ 30ms for 95 lines. (3) With 5,000 filter conditions in the RedisGEO cache, QPS ≈ 100,000, RT ≈ 10ms, and RT ≈ 30ms for 95 lines. Thus, RedisGEO can achieve an unlimited number of filter conditions, with QPS ≈ 100,000, RT ≈ 10ms, and RT ≈ 30ms for 95 lines. Furthermore, using the JVM GEO cache can significantly reduce event costs and improve search efficiency.
[0051] The non-hotspot retrieval module 14 is configured to use the preset distributed search engine to determine a third search result corresponding to the search request when the hotspot determination result indicates that the search request does not belong to a hotspot request.
[0052] Specific, combined Figure 2As shown, for non-hotspot requests, it is necessary to execute the corresponding non-hotspot solution, that is, the non-hotspot retrieval module can specifically include: a third result determination unit, which is used to use the preset distributed search engine and the preset non-hotspot search rules to determine the third search result corresponding to the search request.
[0053] Thus, in the embodiment of the present application, the request receiving module is used to receive a search request based on a geographic location service through a preset interface, determine a corresponding target search keyword based on the search request, and perform a corresponding hotspot judgment operation based on the target search keyword to obtain a corresponding hotspot judgment result; the hotspot cache retrieval module is used to directly determine a first search result corresponding to the search request from the geographic location cache data when the hotspot judgment result indicates that the search request belongs to a hotspot request and the geographic location cache data corresponding to the search request currently exists locally; the hotspot cache module is used to determine a second search result corresponding to the search request using a preset distributed search engine when the hotspot judgment result indicates that the search request belongs to a hotspot request and the geographic location cache data corresponding to the search request currently does not exist locally, and record the second search result in the geographic location cache data; the non-hotspot retrieval module is used to determine a third search result corresponding to the search request using the preset distributed search engine when the hotspot judgment result indicates that the search request does not belong to a hotspot request. In the present application, when a search request based on a geographic location service is received, it is determined whether the current request is a hotspot request by determining the corresponding target search keyword, and the corresponding result determination operation is performed based on the judgment result. In this way, the inaccurate results caused by complex search requests in the existing technology can be effectively avoided, the stability and reliability of the search service can be improved, and high QPS information search services can be provided under complex screening conditions and variable latitude and longitude sorting rules.
[0054] See also Figure 3 As shown, the embodiment of the present application also discloses a method for searching geographic location information, including:
[0055] Step S11: receiving a search request based on a geographic location service through a preset interface, determining a corresponding target search keyword based on the search request, and performing a corresponding hotspot judgment operation according to the target search keyword to obtain a corresponding hotspot judgment result.
[0056] Step S12: When the hotspot determination result indicates that the search request is a hotspot request and geographic location cache data corresponding to the search request currently exists locally, a first search result corresponding to the search request is directly determined from the geographic location cache data.
[0057] Step S13: When the hotspot judgment result indicates that the search request is a hotspot request and the geographic location cache data corresponding to the search request does not currently exist locally, a preset distributed search engine is used to determine a second search result corresponding to the search request, and the second search result is recorded in the geographic location cache data.
[0058] Step S14: When the hotspot determination result indicates that the search request is not a hotspot request, the preset distributed search engine is used to determine a third search result corresponding to the search request.
[0059] For more specific working processes of the above steps, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0060] Thus, in an embodiment of the present application, a search request based on a geographic location service is received through a preset interface, a corresponding target search keyword is determined based on the search request, and a corresponding hotspot judgment operation is performed according to the target search keyword to obtain a corresponding hotspot judgment result; when the hotspot judgment result indicates that the search request belongs to a hotspot request and there is currently a local geographic location cache data corresponding to the search request, a first search result corresponding to the search request is directly determined from the geographic location cache data; when the hotspot judgment result indicates that the search request belongs to a hotspot request and there is currently no local geographic location cache data corresponding to the search request, a preset distributed search engine is used to determine a second search result corresponding to the search request and the second search result is recorded in the geographic location cache data; when the hotspot judgment result indicates that the search request does not belong to a hotspot request, a preset distributed search engine is used to determine a third search result corresponding to the search request. In the present application, when a search request based on a geographic location service is received, the corresponding target search keyword is determined to determine whether it is a hotspot request, and a corresponding result determination operation is performed based on the judgment result. In this way, the stability and reliability of the search service can be effectively improved, and the inaccurate results caused by the complexity of the search request in the prior art can be avoided.
[0061] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation to the scope of application of the present application.
[0062] Figure 4This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the geographic location information search method disclosed in any of the aforementioned embodiments. Furthermore, the electronic device 20 in this embodiment may be a computer.
[0063] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0064] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0065] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222. The operating system 221 can be Windows Server, NetWare, Unix, Linux, etc. In addition to including a computer program capable of performing the geographic location information search method performed by the electronic device 20 as disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program capable of performing other specific tasks.
[0066] Furthermore, this application discloses a computer-readable storage medium for storing a computer program; wherein, when executed by a processor, the computer program implements the aforementioned method for searching for geographic location information. The specific steps of this method can be found in the corresponding contents disclosed in the aforementioned embodiments and will not be further described here.
[0067] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0068] Those skilled in the art will further appreciate that the units and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various examples have been described herein in terms of their functionality, which has been described generally and symbolically in flow charts. Having thus described the functionality of the examples, a person of ordinary skill in the art will be able to implement such functions in hardware and / or software, using the means and methods available to those skilled in the art. The examples described herein are not meant to limit the scope of the application, but merely to provide examples of the methods and systems being described.
[0069] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0070] Finally, it should be noted that the terms "first", "second", and the like, herein do not denote any order, quantity, combination, or importance, but rather are used to distinguish one element from another, and are more especially used for the purpose of distinction from other elements in the specification. Also, the terms "comprise", "include" or "contain" or any other variant thereof are intended to encompass non-exclusive inclusions, such that processes, methods, articles, or apparatuses that comprise, include, or contain a list of elements are not limited to those elements, but can include other elements not expressly listed or inherent to such processes, methods, articles, or apparatuses. Without further limitation, an element defined by the phrase "comprising a... " does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0071] The above has introduced the technical solutions provided by the present application in detail, and the principles and implementation manners of the present application have been described by using specific examples; the above example descriptions are only used to help understand the method and core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges can be changed; in conclusion, the content of the specification should not be understood as limiting the present application.
Claims
1. A geographical location information search system, characterized in that: include: A request receiving module is configured to receive a search request based on a geographic location service through a preset interface, determine a corresponding target search keyword based on the search request, and perform a corresponding hotspot determination operation based on the target search keyword to obtain a corresponding hotspot determination result; a hotspot cache retrieval module configured to, when the hotspot determination result indicates that the search request is a hotspot request and geographical location cache data corresponding to the search request currently exists locally, directly determine a first search result corresponding to the search request from the geographical location cache data; a hotspot cache module, configured to, when the hotspot determination result indicates that the search request is a hotspot request and the geographic location cache data corresponding to the search request does not currently exist locally, determine a second search result corresponding to the search request using a preset distributed search engine, and record the second search result in the geographic location cache data; a non-hotspot retrieval module, configured to, when the hotspot determination result indicates that the search request does not belong to a hotspot request, use the preset distributed search engine to determine a third search result corresponding to the search request; The hotspot cache module includes: A second result determining unit, configured to determine a second search result corresponding to the search request using a preset distributed search engine and a preset non-hotspot search rule; Accordingly, the non-hotspot search module includes: The third result determining unit is configured to determine a third search result corresponding to the search request by using the preset distributed search engine and the preset non-hotspot search rule.
2. The geographical location information search system according to claim 1, characterized in that: The request receiving module includes: The keyword information determining unit is configured to determine a target search keyword corresponding to the search request by performing a corresponding summary operation on a search condition corresponding to the search request; wherein the search condition includes corresponding filtering information and preset sorting rule information.
3. The geographical location information search system according to claim 2, characterized in that: The hotspot cache retrieval module includes: The first result determination unit is configured to search the geographic location cache data in batches from near to far based on the user location information corresponding to the search request and the preset sorting rule information to determine a corresponding first search result.
4. The geographical location information search system according to claim 2, characterized in that: The second result determination unit is specifically configured to determine the corresponding second search result by performing a corresponding search operation based on a preset distributed search engine and the screening information.
5. The geographical location information search system according to claim 1, characterized in that: Also includes: The cache judgment module is used to judge whether there is the geographic location cache data corresponding to the search request currently in the local area when the hotspot judgment result indicates that the search request is a hotspot request.
6. The geographical location information search system according to any one of claims 1 to 5, characterized in that: The request receiving module includes: The hot spot judgment unit is used to perform corresponding request statistical operations for the current scene based on the target search keyword and the preset statistical time period, and judge whether the determined request volume is not less than the preset hot spot request volume. If so, the search request is determined to be a hot spot request.
7. A method for searching geographic location information, characterized in that: include: Receiving a search request based on a geographic location service through a preset interface, determining a corresponding target search keyword based on the search request, and performing a corresponding hotspot determination operation according to the target search keyword to obtain a corresponding hotspot determination result; When the hotspot determination result indicates that the search request is a hotspot request and geographical location cache data corresponding to the search request currently exists locally, directly determining a first search result corresponding to the search request from the geographical location cache data; When the hotspot determination result indicates that the search request is a hotspot request and the geographic location cache data corresponding to the search request does not currently exist locally, using a preset distributed search engine to determine a second search result corresponding to the search request, and recording the second search result in the geographic location cache data; When the hotspot determination result indicates that the search request does not belong to a hotspot request, determining a third search result corresponding to the search request using the preset distributed search engine; The determining of the second search result corresponding to the search request by using a preset distributed search engine includes: Determine a second search result corresponding to the search request using a preset distributed search engine and a preset non-hotspot search rule; Accordingly, the determining the third search result corresponding to the search request by using the preset distributed search engine includes: The preset distributed search engine and the preset non-hotspot search rule are used to determine a third search result corresponding to the search request.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the geographic location information search method according to claim 7.
9. A computer-readable storage medium, characterized in that Used to store a computer program, which, when executed by a processor, implements the geographic location information search method according to claim 7.
Citation Information
Patent Citations
Search cache updating method and device
CN106682202A
Low-cost cache system for air ticket search
CN114048235A