CN109344342B - Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system - Google Patents

Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system Download PDF

Info

Publication number
CN109344342B
CN109344342B CN201811541351.8A CN201811541351A CN109344342B CN 109344342 B CN109344342 B CN 109344342B CN 201811541351 A CN201811541351 A CN 201811541351A CN 109344342 B CN109344342 B CN 109344342B
Authority
CN
China
Prior art keywords
retrieval
request
mode
search
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811541351.8A
Other languages
Chinese (zh)
Other versions
CN109344342A (en
Inventor
杨旋
雷达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811541351.8A priority Critical patent/CN109344342B/en
Publication of CN109344342A publication Critical patent/CN109344342A/en
Application granted granted Critical
Publication of CN109344342B publication Critical patent/CN109344342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a map data retrieval method, a map data retrieval device, a map data retrieval server and a map data retrieval system, wherein the method comprises the following steps: analyzing more than one retrieval condition from the map retrieval request; determining a retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode; when the corresponding retrieval mode is a first retrieval mode, generating a first retrieval request by adopting the more than one retrieval condition, and sending the first retrieval request, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results; receiving a retrieval result aiming at the first retrieval request. The embodiment of the invention can provide the retrieval result corresponding to the first retrieval mode in the map data retrieval.

Description

Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system
Technical Field
The invention relates to the technical field of data retrieval, in particular to a map data retrieval method, a map data retrieval device, a map data retrieval server and a map data retrieval system.
Background
At present, the existing map retrieval service product can only support a single accurate retrieval request. For the non-precise retrieval requirement of the multi-condition logic combination, for example, when the retrieval request aiming at the travel data simultaneously contains elements such as 'region', 'suitable crowd', 'distance limit', etc., the traditional map retrieval service cannot support.
Disclosure of Invention
The embodiment of the invention provides a map data retrieval method and a map data retrieval device, which are used for at least solving the technical problems in the prior art.
In a first aspect, an embodiment of the present invention provides a map data retrieval method, including:
analyzing more than one retrieval condition from the map retrieval request;
determining a retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode;
when the corresponding retrieval mode is a first retrieval mode, generating a first retrieval request by adopting the more than one retrieval condition, and sending the first retrieval request, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results;
receiving a retrieval result aiming at the first retrieval request.
In one embodiment, the parsing one or more search criteria from the map search request includes:
converting the map retrieval request in the voice form into a map retrieval request in a text form;
and resolving more than one retrieval condition from the map retrieval request in the text form.
In one embodiment, the method further comprises:
when the corresponding retrieval mode is a second retrieval mode, generating a second retrieval request by adopting the more than one retrieval condition, and sending the second retrieval request, wherein the second retrieval mode comprises retrieval by utilizing the analyzed more than one retrieval condition;
and receiving a retrieval result aiming at the second retrieval request.
In one embodiment, the method further comprises:
and converting the retrieval result aiming at the first retrieval request or the retrieval result aiming at the second retrieval request into a retrieval result in a voice form, and playing the retrieval result in the voice form.
In a second aspect, an embodiment of the present invention further provides another map data retrieval method, including:
receiving a first retrieval request, wherein the first retrieval request is generated by adopting more than one retrieval condition;
aiming at the first retrieval request, a first retrieval mode is adopted for retrieval, and the first retrieval mode comprises the steps of utilizing the more than one retrieval conditions to carry out parallel retrieval and carrying out logic combination on retrieval results;
and sending the result of searching by adopting the first searching mode.
In one embodiment, before receiving the first retrieval request, the method further includes:
and establishing an index for each field of the locally stored data, wherein the type of the index is the same as that of the corresponding field.
In one embodiment, before receiving the first retrieval request, the method further includes:
and segmenting partial fields of the local storage data, and establishing full text type indexes for the segmented fields.
In one embodiment, the method further comprises:
receiving a second retrieval request, wherein the second retrieval request is generated by adopting more than one retrieval condition;
aiming at the second retrieval request, a second retrieval mode is adopted for retrieval, and the second retrieval mode comprises retrieval by utilizing the more than one retrieval conditions;
and sending the result of searching by adopting the second searching mode.
In a third aspect, an embodiment of the present invention further provides an apparatus for implementing map data retrieval, including:
the analysis module is used for analyzing more than one retrieval condition from the map retrieval request;
the determining module is used for determining the retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode;
the generating module is used for generating a first retrieval request by adopting the more than one retrieval condition when the corresponding retrieval mode is a first retrieval mode, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results;
a retrieval request sending module, configured to send the first retrieval request;
and the retrieval result receiving module is used for receiving the retrieval result aiming at the first retrieval request.
In one embodiment, the parsing module comprises:
the first conversion submodule is used for converting the map retrieval request in the voice form into the map retrieval request in the text form;
and the text analysis sub-module is used for analyzing more than one search condition from the map search request in the text form.
In one embodiment, the generating module is further configured to generate a second search request by using the one or more search conditions when the corresponding search mode is a second search mode, where the second search mode includes searching by using the parsed one or more search conditions;
the sending module is further configured to send the second retrieval request;
the retrieval result receiving module is further configured to receive a retrieval result for the second retrieval request.
In one embodiment, the parsing module comprises:
and the second conversion submodule is used for converting the retrieval result aiming at the first retrieval request or the retrieval result aiming at the second retrieval request into a retrieval result in a voice form and playing the retrieval result in the voice form.
In a fourth aspect, an embodiment of the present invention further provides a retrieval server for implementing map data retrieval, where the retrieval server includes:
the retrieval request receiving module is used for receiving a first retrieval request, wherein the first retrieval request is generated by adopting more than one retrieval condition;
the retrieval module is used for retrieving by adopting a first retrieval mode aiming at the first retrieval request, wherein the first retrieval mode comprises parallel retrieval by utilizing the more than one retrieval conditions and logic combination of retrieval results;
and the retrieval result sending module is used for sending the retrieval result by adopting the first retrieval mode.
In an embodiment, the apparatus further includes a first presetting module, configured to establish an index for each field of the data stored in the search server, where a type of the index is the same as a type of the corresponding field.
In an embodiment, the apparatus further includes a second preset module, configured to perform word segmentation on a part of fields of the data stored in the search server, and establish a full-text type index for the word-segmented fields.
In an embodiment, the search request receiving module is further configured to receive a second search request, where the second search request is a search request generated by using more than one search condition;
the retrieval module is further configured to perform retrieval by using a second retrieval method for the second retrieval request, where the second retrieval method includes retrieval by using the one or more retrieval conditions;
and the retrieval result sending module is also used for sending the result of the retrieval in the second retrieval mode.
In a fifth aspect, an embodiment of the present invention further provides a system for implementing map data retrieval, including the apparatus in any one of the third aspects and the retrieval server in any one of the fourth aspects.
In a sixth aspect, an embodiment of the present invention provides a map data retrieval device, where functions of the map data retrieval device may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the map data retrieval device has a structure including a processor and a memory, the memory is used for storing a program supporting the device to execute the method, and the processor is configured to execute the program stored in the memory. The device may also include a communication interface for communicating with other devices or a communication network.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer software instructions for a map data retrieval device, which includes a program for executing the map data retrieval method.
One of the above technical solutions has the following advantages or beneficial effects:
the map data retrieval method and the map data retrieval device provided by the embodiment of the invention can analyze more than one retrieval condition from the map retrieval request, and can determine the retrieval mode corresponding to the set of the analyzed retrieval conditions according to the preset corresponding relation. When the corresponding retrieval mode is the first retrieval mode, the retrieval condition is adopted to generate the first retrieval request, so that the data retrieval of the first retrieval mode can be completed by utilizing the retrieval server.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 is a flowchart of a method for retrieving map data according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a step S11 of a method for retrieving map data according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another implementation of a map data retrieval method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another implementation of a map data retrieval method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another exemplary map data retrieval method according to the present invention;
FIG. 6 is a schematic structural diagram of a map data retrieving device according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of another map data retrieval apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a retrieval server for implementing map data retrieval according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another retrieval server for implementing map data retrieval according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a map data retrieving device according to an embodiment of the present invention.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
The embodiment of the invention mainly provides a map data retrieval method, a map data retrieval device, a map data retrieval server and a map data retrieval system. The following embodiments are used to describe the technical solutions.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a map data retrieval method according to an embodiment of the present invention, including:
s11: analyzing more than one retrieval condition from the map retrieval request;
s12: determining a retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode;
s13: when the corresponding retrieval mode is a first retrieval mode, generating a first retrieval request by adopting the more than one retrieval condition, and sending the first retrieval request, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results;
s14: receiving a retrieval result aiming at the first retrieval request.
As shown in fig. 2, in one possible implementation, step S11 may include:
s111: converting the map retrieval request in the voice form into a map retrieval request in a text form;
s112: and resolving more than one retrieval condition from the map retrieval request in the text form.
The embodiment of the invention can support voice retrieval, and a user can retrieve geographic position data meeting various limiting conditions on a map in a natural spoken language expression mode of a person under the condition that the user can not directly touch intelligent equipment such as a mobile phone and the like during driving, housework and the like.
In a possible implementation, the first search mode may be referred to as an inaccurate search. The non-precise retrieval means: firstly, parallel search is carried out according to each search condition in the first search request, and then the results of the parallel search are logically combined to obtain the final search result.
For example, in one first search request, two search conditions of "beijing", "sight" are included. When the elastic retrieval server is used for retrieval, two retrieval conditions of Beijing and scenic spots are respectively adopted for parallel retrieval, and retrieval results (called as a first retrieval result set) corresponding to the Beijing and retrieval results (called as a second retrieval result set) corresponding to the scenic spots are obtained. And then, taking intersection of the first retrieval result set and the second retrieval result set to obtain a final retrieval result.
As another example, in another first search request, three search conditions of "beijing", "shanghai", and "scenic spot" are included. When searching, the search server performs parallel search by using three search conditions of "Beijing", "Shanghai" and "scenic spot", respectively, and obtains a search result (called a first search result set) corresponding to "Beijing", a search result (called a second search result set) corresponding to "Shanghai", and a search result (called a third search result set) corresponding to "scenic spot". And then, taking an intersection from the first retrieval result set and the third retrieval result set, taking an intersection from the second retrieval result set and the third retrieval result set, and taking a union set from the two intersections to obtain a final retrieval result. The final retrieval result comprises scenic spots of two cities of Beijing and Shanghai.
In one embodiment, the retrieval server performs corresponding logic combination processing on the retrieval results obtained by parallel retrieval according to preset processing logic to generate final retrieval results.
Referring to fig. 3, fig. 3 is a flowchart of another map data retrieval method according to an embodiment of the present invention, including:
s11: analyzing more than one retrieval condition from the map retrieval request;
s12: determining a retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode;
s13: when the corresponding retrieval mode is a first retrieval mode, generating a first retrieval request by adopting the more than one retrieval condition, and sending the first retrieval request, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results;
s14: receiving a retrieval result aiming at the first retrieval request.
S35: when the corresponding retrieval mode is a second retrieval mode, generating a second retrieval request by adopting the more than one retrieval condition, and sending the second retrieval request, wherein the second retrieval mode comprises retrieval by utilizing the analyzed more than one retrieval condition;
s36: and receiving a retrieval result aiming at the second retrieval request.
The steps S11-S14 are the same as S11-S14 in the above embodiment, and are not repeated.
It is noted that the above steps S13, 14 are not performed in the same embodiment as the steps S35, 36. That is, according to the search mode determined in step S12, when the search mode is the first search mode, steps S13 and S14 are performed; when the retrieval manner is the second retrieval manner, steps S35 and S36 are performed.
In a possible implementation, the second retrieval mode may be an accurate retrieval. The accurate retrieval means: and performing retrieval once according to the information of all the retrieval condition combinations in the second retrieval request, wherein the retrieval result is the final retrieval result.
For example, in a second search request, two search conditions of "great wall" and "entrance ticket" are included. When searching, the search server searches once according to the information of the combination of two search conditions of the great wall and the entrance ticket, and the final search result is the entrance ticket price of the great wall.
In one possible implementation, the search server providing the search may be an elastic search server (elastic search). The first search request generated in step S13 and the second search request generated in step S35 are in a language recognizable by the flexible search server. After receiving the search result for the first search request or the search result for the second search request, the search result may be converted into a search result in a voice form and played back, thereby implementing voice search.
The following describes a map data search process according to an embodiment of the present invention, taking a specific search process as an example.
In the one-time retrieval process, when a user calls the terminal equipment for realizing the map data retrieval of the embodiment of the invention by using the fixed keyword, the terminal equipment is in a recording state. The terminal device receives a map retrieval request in the form of a user voice, and the content of the map retrieval request is 'highly evaluated in Beijing and suitable for scenic spots of the old people'.
And converting the map retrieval request in the voice form into the map retrieval request in the text form. Then, the following search conditions are analyzed from the map search request in text form:
the city name is: beijing;
is suitable for the crowd: the elderly;
the keyword of the location is the scenic spot.
According to the preset corresponding relation, a retrieval mode corresponding to a retrieval condition describing the city name and a set of retrieval conditions (such as suitable crowd and place keywords) describing more than one attribute is a first retrieval mode. In the present embodiment, a search condition describing a city name "city name: beijing ", and two search conditions describing attributes" fit the population: the old man and the location key word, namely the scenic spot, judge that the retrieval belongs to a first retrieval mode according to the preset corresponding relation.
In another retrieval process, when the map retrieval request is the price of the ancient great wall in north ancient city, the following retrieval conditions are analyzed from the map retrieval request in text form:
the name of the scenic spot: ancient great wall in northern ancient times;
price: an entrance ticket.
And according to the preset corresponding relation, the retrieval mode corresponding to the set of the retrieval conditions for describing the names of the specific scenic spots and the retrieval conditions for describing the prices is a second retrieval mode. In this embodiment, a search condition "sight name: ancient great wall in northern ancient times ", and a search condition describing price" price: and the entrance ticket' judges that the current retrieval belongs to a second retrieval mode according to the preset corresponding relation.
In one possible embodiment, the correspondence between the set of search conditions and the search method is set in advance. Since the embodiment of the present invention is limited to be applied to the search of the map data, the possibility of the correspondence is not very high, and the correspondence between the set of search conditions and the search mode may be preset in an enumerated manner.
When a plurality of search conditions are analyzed from the map search request, the search mode corresponding to a set of some of the search conditions can be determined according to the correspondence relationship stored in advance. The other part of the search conditions have no influence on the determination of the search mode.
For example, according to a preset setting, the search mode corresponding to the set of the search condition describing the city and the search condition describing more than one attribute is the first search mode. When a plurality of search conditions are parsed from the map search request, if it is determined that one search condition describing a city and one search condition describing an attribute exist, it may be determined that the corresponding search mode is the first search mode. Other search conditions in the map search request have no influence on the determination of the search method.
In a retrieval process, a map request input by a user is 'Beijing', and the following retrieval conditions are analyzed from the map retrieval request in a text form:
the city name is: beijing.
According to the preset setting, a retrieval condition describing a city has no corresponding retrieval mode. In the present embodiment, a search condition "city name: beijing' judges that the search is an invalid search because the search mode does not correspond to the search mode, and feeds back search failure information to the user.
In another specific retrieval process, the user uses a voice function to perform retrieval while driving. The device for realizing the map data retrieval receives the map retrieval request in the voice form of the user, and the content of the map retrieval request is 'the scenic spot which can be highly evaluated and is suitable for the old when the Beijing is driven for two hours'.
And converting the map retrieval request in the voice form into the map retrieval request in the text form. Then, the following search conditions are analyzed from the map search request in text form:
the city name is: beijing;
driving time: 120 minutes;
is suitable for the crowd: the elderly;
the keyword of the location is the scenic spot.
And determining that the analyzed set of the search conditions corresponds to the first search mode according to the preset corresponding relation between the set of the search conditions and the search modes. And generating a first retrieval request by combining the current position information of the user, sending the first retrieval request to a retrieval server, and providing retrieval service by the retrieval server.
In the retrieval content fed back by the retrieval server, the scenic spot scores can be arranged in the order from high to low so as to ensure the quality of the recommended data.
The embodiment of the present invention further provides another map data retrieval method, and as shown in fig. 4, the method is a flowchart for implementing the method, and includes:
s41: receiving a first retrieval request, wherein the first retrieval request is generated by adopting more than one retrieval condition;
s42: aiming at the first retrieval request, a first retrieval mode is adopted for retrieval, and the first retrieval mode comprises the steps of utilizing the more than one retrieval conditions to carry out parallel retrieval and carrying out logic combination on retrieval results;
s43: and sending the result of searching by adopting the first searching mode.
In a possible implementation, the first search mode may be referred to as an inaccurate search. The non-precise retrieval means: firstly, parallel search is carried out according to each search condition in the first search request, and then the results of the parallel search are logically combined to obtain the final search result.
In one possible implementation, the embodiment of the invention is applied to an elastic retrieval server. In order to enable the flexible search server to be applied to the map data search service, it is necessary to make necessary settings for the data stored by the flexible search server.
Specifically, an embodiment of the present invention further provides another map data retrieval method, where as shown in fig. 5, an implementation flowchart of the method includes:
s501: and establishing an index for each field of the locally stored data, wherein the type of the index is the same as that of the corresponding field. In some embodiments, the index may be established for the field at the time of the pre-setup of the retrieval server.
Examples of partial fields, field types, and corresponding index types are listed in table 1.
TABLE 1
Content of field Type of field Index type
Place name Full text type Full text type
Describe its own characteristics Precision character string type Precision character string type
Price Floating point number type Floating point number type
Latitude and longitude Geometric coordinate pattern Geometric coordinate pattern
In table 1, the type of index established for a field is the same as the type of the field. One field may correspond to a plurality of attributes (tags). For example, for a field whose content is "describe self characteristics", the field may include a plurality of attributes, such as "fit the elderly", "famous spots", "heavy history", and the like. Each attribute is used to describe a feature.
Of course, the field type and the index type in table 1 are only exemplary descriptions, and different field types and index types may be set for different fields according to specific search principles in the embodiment of the present invention.
As shown in fig. 5, the present embodiment further includes:
s502: and segmenting partial fields of the local storage data, and establishing full text type indexes for the segmented fields. In some embodiments, the segmentation and indexing may be performed at the time of presetting the search server.
For example, when the flexible search server is preset, the original field of "the national city of the Yi-nationality of the cool mountain, the Murringzu-zang-nationality of the prefecture" can be segmented by using the segmenter according to the meaning of the word, and the segmented word can be a new field such as "the cool mountain", "the Yi-nationality", "autonomy", "state", "Murringzi", "zang-nationality", "autonomy", "county", and the like. The new fields are then saved and a full text type index is created for each new field.
Through the presetting, when a user inputs a map retrieval request, the user does not need to completely contain the retrieval condition of ' the autonomous county of the Yi nationality of the Liangshan, Murray and Tibetan nationality ', and only needs to have related retrieval conditions of ' the city of Liangshan, the autonomous county of Liangshan, and the like. The elastic retrieval server can retrieve the field after word segmentation corresponding to the autonomous prefecture of the Murray prefecture of the Yi nationality of Liang mountain by segmenting the retrieval conditions and comparing the segmented result with the pre-stored field after word segmentation, thereby improving the recall rate and the accuracy of data.
In this way, the full-text retrieval service is provided in the map retrieval service. The embodiment of the invention can perform word segmentation on fields such as city names, administrative district names, address information and the like and set full text type indexes, thereby realizing full text retrieval capability aiming at the fields and improving the data recall rate and the data accuracy to a greater extent.
As shown in fig. 5, the present embodiment further includes steps S41 to S43, and steps S41 to S43 are the same as the corresponding steps in the above embodiments and are not repeated.
As shown in fig. 5, the present embodiment further includes:
s54: receiving a second retrieval request, wherein the second retrieval request is generated by adopting more than one retrieval condition;
s55: aiming at the second retrieval request, a second retrieval mode is adopted for retrieval, and the second retrieval mode comprises retrieval by utilizing the more than one retrieval conditions;
s56: and sending the result of searching by adopting the second searching mode.
In one possible implementation, the second search mode may be referred to as a precise search. The accurate retrieval means: and performing retrieval once according to the information of all the retrieval condition combinations in the second retrieval request, wherein the retrieval result is the final retrieval result.
The specific retrieval processes of the first retrieval mode and the second retrieval mode are the same as the introduction in the above embodiment, and are not described again.
Based on the above method, an embodiment of the present invention provides a map data retrieval device, as shown in fig. 6, the device includes:
the analysis module 610 is used for analyzing more than one retrieval condition from the map retrieval request;
a determining module 620, configured to determine, according to a preset correspondence between a set of search conditions and a search mode, a search mode corresponding to the parsed set of search conditions;
a generating module 630, configured to generate a first retrieval request by using the one or more retrieval conditions when the corresponding retrieval manner is a first retrieval manner, where the first retrieval manner includes performing parallel retrieval and performing logical combination on a retrieval result by using the analyzed one or more retrieval conditions;
a retrieval request sending module 640, configured to send the first retrieval request;
a retrieval result receiving module 650, configured to receive a retrieval result for the first retrieval request.
An embodiment of the present invention provides another map data retrieval device, as shown in fig. 7, the device includes:
the analysis module 610 is used for analyzing more than one retrieval condition from the map retrieval request;
a determining module 620, configured to determine, according to a preset correspondence between a set of search conditions and a search mode, a search mode corresponding to the parsed set of search conditions;
a generating module 630, configured to generate a first retrieval request by using the one or more retrieval conditions when the corresponding retrieval manner is a first retrieval manner, where the first retrieval manner includes performing parallel retrieval and performing logical combination on a retrieval result by using the analyzed one or more retrieval conditions; the system is further used for generating a second retrieval request by adopting the more than one retrieval condition when the corresponding retrieval mode is a second retrieval mode, wherein the second retrieval mode comprises retrieval by utilizing the analyzed more than one retrieval condition;
a retrieval request sending module 640, configured to send the first retrieval request and the second retrieval request;
a retrieval result receiving module 650, configured to receive a retrieval result for the first retrieval request and a retrieval result for the second retrieval request.
The parsing module 610 may include:
a first conversion sub-module 611, configured to convert the map retrieval request in the voice format into a map retrieval request in the text format;
a text parsing sub-module 612, configured to parse one or more search conditions from the map search request in the text form;
a second conversion sub-module 613, configured to convert the search result for the first search request or the search result for the second search request into a search result in a voice format, and play the search result in the voice format.
An embodiment of the present invention further provides a search server for implementing map data search, as shown in fig. 8, where the search server includes:
a retrieval request receiving module 810, configured to receive a first retrieval request, where the first retrieval request is a retrieval request generated by using more than one retrieval condition;
a retrieval module 820, configured to perform retrieval according to the first retrieval request by using a first retrieval method, where the first retrieval method includes performing parallel retrieval and performing logical combination on a retrieval result by using the one or more retrieval conditions;
the retrieval result sending module 830 is configured to send the result of the retrieval performed by using the first retrieval method.
An embodiment of the present invention further provides another search server for implementing map data search, as shown in fig. 9, where the search server includes:
a first presetting module 901, configured to establish an index for each field of the data stored in the search server, where a type of the index is the same as a type of the corresponding field;
the second preset module 902 is configured to perform word segmentation on a part of the fields of the data stored in the search server, and establish a full-text type index for the word-segmented fields.
A retrieval request receiving module 810, configured to receive a first retrieval request and a second retrieval request, where the first retrieval request or the second retrieval request is a retrieval request generated by using more than one retrieval condition;
a retrieval module 820, configured to perform retrieval in a first retrieval manner according to the first retrieval request, where the first retrieval manner includes performing parallel retrieval using more than one retrieval condition and performing logical combination on a retrieval result; the system is also used for searching by adopting a second searching mode aiming at the second searching request, wherein the second searching mode comprises the step of searching by utilizing more than one searching condition;
the retrieval result sending module 830 is configured to send the result of the retrieval performed by using the first retrieval method or the result of the retrieval performed by using the second retrieval method.
The embodiment of the invention also provides a system for realizing the map data retrieval, which comprises the device for realizing the map data retrieval and the server in the embodiment mode.
An embodiment of the present invention further provides a map data retrieving device, and as shown in fig. 10, the map data retrieving device according to the embodiment of the present invention is schematically configured, and includes:
a memory 11 and a processor 12, the memory 11 storing a computer program operable on the processor 12. The processor 12, when executing the computer program, implements the map data retrieval method in the above-described embodiments. The number of the memory 11 and the processor 12 may be one or more.
The apparatus may further include:
and the communication interface 13 is used for communicating with external equipment and exchanging and transmitting data.
The memory 11 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 11, the processor 12 and the communication interface 13 are implemented independently, the memory 11, the processor 12 and the communication interface 13 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA), or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, and does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 11, the processor 12 and the communication interface 13 are integrated on a chip, the memory 11, the processor 12 and the communication interface 13 may complete communication with each other through an internal interface.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
In summary, the map data retrieval method provided in the embodiment of the present invention may parse one or more retrieval conditions from the map retrieval request, and determine the retrieval method corresponding to the parsed set of retrieval conditions according to the correspondence between the set of retrieval conditions and the retrieval method set in advance. And when the first search mode is corresponded, generating a first search request by adopting the search condition and sending the first search request to the search server, and providing a search result aiming at the first search request by the search server.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present invention, and these should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (19)

1. A map data retrieval method, the method comprising:
analyzing more than one retrieval condition from the map retrieval request;
determining a retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode;
when the corresponding retrieval mode is a first retrieval mode, generating a first retrieval request by adopting the more than one retrieval condition, and sending the first retrieval request, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results;
receiving a retrieval result aiming at the first retrieval request.
2. The method of claim 1, wherein parsing one or more search criteria from the map search request comprises:
converting the map retrieval request in the voice form into a map retrieval request in a text form;
and resolving more than one retrieval condition from the map retrieval request in the text form.
3. The method of claim 1 or 2, further comprising:
when the corresponding retrieval mode is a second retrieval mode, generating a second retrieval request by adopting the more than one retrieval condition, and sending the second retrieval request, wherein the second retrieval mode comprises retrieval by utilizing the analyzed more than one retrieval condition;
and receiving a retrieval result aiming at the second retrieval request.
4. The method of claim 3, further comprising:
and converting the retrieval result aiming at the first retrieval request or the retrieval result aiming at the second retrieval request into a retrieval result in a voice form, and playing the retrieval result in the voice form.
5. A map data retrieval method, the method comprising:
receiving a first retrieval request, wherein the first retrieval request is generated by adopting more than one retrieval condition;
aiming at the first retrieval request, a first retrieval mode is adopted for retrieval, and the first retrieval mode comprises the steps of utilizing the more than one retrieval conditions to carry out parallel retrieval and carrying out logic combination on retrieval results; during retrieval, according to preset processing logic, carrying out corresponding logic combination processing on retrieval results obtained by the parallel retrieval;
and sending the result of searching by adopting the first searching mode.
6. The method of claim 5, wherein before receiving the first search request, further comprising:
and establishing an index for each field of the locally stored data, wherein the type of the index is the same as that of the corresponding field.
7. The method of claim 5, wherein before receiving the first search request, further comprising:
and segmenting partial fields of the local storage data, and establishing full text type indexes for the segmented fields.
8. The method of any of claims 5 to 7, further comprising:
receiving a second retrieval request, wherein the second retrieval request is generated by adopting more than one retrieval condition;
aiming at the second retrieval request, a second retrieval mode is adopted for retrieval, and the second retrieval mode comprises retrieval by utilizing the more than one retrieval conditions;
and sending the result of searching by adopting the second searching mode.
9. An apparatus for implementing map data retrieval, the apparatus comprising:
the analysis module is used for analyzing more than one retrieval condition from the map retrieval request;
the determining module is used for determining the retrieval mode corresponding to the analyzed set of retrieval conditions according to the corresponding relation between the set of preset retrieval conditions and the retrieval mode;
the generating module is used for generating a first retrieval request by adopting the more than one retrieval condition when the corresponding retrieval mode is a first retrieval mode, wherein the first retrieval mode comprises the steps of utilizing the analyzed more than one retrieval condition to carry out parallel retrieval and carrying out logic combination on retrieval results;
a retrieval request sending module, configured to send the first retrieval request;
and the retrieval result receiving module is used for receiving the retrieval result aiming at the first retrieval request.
10. The apparatus of claim 9, wherein the parsing module comprises:
the first conversion submodule is used for converting the map retrieval request in the voice form into the map retrieval request in the text form;
and the text analysis sub-module is used for analyzing more than one search condition from the map search request in the text form.
11. The apparatus according to claim 9 or 10, wherein the generating module is further configured to generate a second search request by using the one or more search conditions when the corresponding search mode is a second search mode, where the second search mode includes searching by using the parsed one or more search conditions;
the sending module is further configured to send the second retrieval request;
the retrieval result receiving module is further configured to receive a retrieval result for the second retrieval request.
12. The apparatus of claim 11, wherein the parsing module comprises:
and the second conversion submodule is used for converting the retrieval result aiming at the first retrieval request or the retrieval result aiming at the second retrieval request into a retrieval result in a voice form and playing the retrieval result in the voice form.
13. A search server that realizes map data search, the search server comprising:
the retrieval request receiving module is used for receiving a first retrieval request, wherein the first retrieval request is generated by adopting more than one retrieval condition;
the retrieval module is used for retrieving by adopting a first retrieval mode aiming at the first retrieval request, wherein the first retrieval mode comprises parallel retrieval by utilizing the more than one retrieval conditions and logic combination of retrieval results; during retrieval, according to preset processing logic, carrying out corresponding logic combination processing on retrieval results obtained by the parallel retrieval;
and the retrieval result sending module is used for sending the retrieval result by adopting the first retrieval mode.
14. The search server according to claim 13, further comprising a first presetting module configured to establish an index for each field of the data stored in the search server, wherein the index is of the same type as the corresponding field.
15. The search server according to claim 13, further comprising a second pre-setting module, configured to perform word segmentation on a part of the fields of the data stored in the search server, and create a full-text index for the word-segmented fields.
16. The search server according to any one of claims 13 to 15,
the retrieval request receiving module is further configured to receive a second retrieval request, where the second retrieval request is a retrieval request generated by using more than one retrieval condition;
the retrieval module is further configured to perform retrieval by using a second retrieval method for the second retrieval request, where the second retrieval method includes retrieval by using the one or more retrieval conditions;
and the retrieval result sending module is also used for sending the result of the retrieval in the second retrieval mode.
17. A system for implementing map data retrieval, the system comprising the apparatus of any one of claims 9 to 12 and the retrieval server of any one of claims 13 to 16.
18. A map data retrieval device, characterized in that the device comprises:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
19. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN201811541351.8A 2018-12-17 2018-12-17 Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system Active CN109344342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811541351.8A CN109344342B (en) 2018-12-17 2018-12-17 Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811541351.8A CN109344342B (en) 2018-12-17 2018-12-17 Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system

Publications (2)

Publication Number Publication Date
CN109344342A CN109344342A (en) 2019-02-15
CN109344342B true CN109344342B (en) 2021-04-09

Family

ID=65304377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811541351.8A Active CN109344342B (en) 2018-12-17 2018-12-17 Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system

Country Status (1)

Country Link
CN (1) CN109344342B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801262B (en) * 2022-08-31 2023-07-18 重庆市规划和自然资源信息中心 Intersection operator space retrieval method based on elastic search technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2447838A1 (en) * 2010-10-29 2012-05-02 Fujitsu Limited Technique for efficient parallelization of software analysis in a distributed computing environment through intelligent dynamic load balancing
CN102929869A (en) * 2011-08-02 2013-02-13 北京百度网讯科技有限公司 Geographical-position-based retrieval method, device and system
CN102982800A (en) * 2012-11-08 2013-03-20 鸿富锦精密工业(深圳)有限公司 Electronic device with audio video file video processing function and audio video file processing method
CN104636368A (en) * 2013-11-11 2015-05-20 腾讯科技(深圳)有限公司 Data retrieval method and device and server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021404A (en) * 1997-08-18 2000-02-01 Moukheibir; Nabil W. Universal computer assisted diagnosis
JP4829698B2 (en) * 2006-06-23 2011-12-07 キヤノン株式会社 Document search system, document search method, and program
CN103488752B (en) * 2013-09-24 2017-08-25 沈阳美行科技有限公司 A kind of search method of POI intelligent retrievals
CN107992502B (en) * 2016-10-27 2021-11-09 腾讯科技(北京)有限公司 Advertisement retrieval control method and device
CN108170719A (en) * 2017-12-05 2018-06-15 深圳市金立通信设备有限公司 A kind of search method, server and computer readable storage medium
CN108830308B (en) * 2018-05-31 2021-12-14 西安电子科技大学 Signal-based traditional feature and depth feature fusion modulation identification method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2447838A1 (en) * 2010-10-29 2012-05-02 Fujitsu Limited Technique for efficient parallelization of software analysis in a distributed computing environment through intelligent dynamic load balancing
CN102929869A (en) * 2011-08-02 2013-02-13 北京百度网讯科技有限公司 Geographical-position-based retrieval method, device and system
CN102982800A (en) * 2012-11-08 2013-03-20 鸿富锦精密工业(深圳)有限公司 Electronic device with audio video file video processing function and audio video file processing method
CN104636368A (en) * 2013-11-11 2015-05-20 腾讯科技(深圳)有限公司 Data retrieval method and device and server

Also Published As

Publication number Publication date
CN109344342A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN108345690B (en) Intelligent question and answer method and system
US8442716B2 (en) Identifying physical locations of entities
CN107203526B (en) Query string semantic demand analysis method and device
CN107491537A (en) POI data excavation, information retrieval method, device, equipment and medium
CN109543680A (en) Location determining method, appliance arrangement and the medium of point of interest
US20170308560A1 (en) Location Searching with Category Indices
CN110688434B (en) Method, device, equipment and medium for processing interest points
CN110633404A (en) Application message pushing method and device, storage medium and terminal equipment
CN111177589A (en) Address information query method, device, equipment and storage medium
CN109344342B (en) Map data retrieval method, map data retrieval device, map data retrieval server and map data retrieval system
WO2020005594A1 (en) Geocode interpolation
CN111126422A (en) Industry model establishing method, industry determining method, industry model establishing device, industry determining equipment and industry determining medium
CN111930891B (en) Knowledge graph-based search text expansion method and related device
KR100852616B1 (en) Navigation system for providing types of business search service and method for providing navigation
CN109388758B (en) Population migration purpose determination method, device, equipment and storage medium
JP4510792B2 (en) LOCATION ANALYSIS DEVICE, LOCATION ANALYSIS METHOD, ITS PROGRAM, AND RECORDING MEDIUM
CN111177585A (en) Map POI feedback method and device
CN113515687B (en) Logistics information acquisition method and device
EP2763052A1 (en) Search method and information management device
CN112256852A (en) Scenic spot comment data processing method and device, electronic equipment and storage medium
CN114048797A (en) Method, device, medium and electronic equipment for determining address similarity
CN111126120B (en) Urban area classification method, device, equipment and medium
CN111125272B (en) Regional characteristic acquisition method, regional characteristic acquisition device, computer equipment and medium
KR102038093B1 (en) Method, search server and computer readable recording medium for providing branch office information
CN112861023A (en) Map information processing method, map information processing apparatus, map information processing device, storage medium, and program product

Legal Events

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