CN110851704A - Multi-class service system and method - Google Patents
Multi-class service system and method Download PDFInfo
- Publication number
- CN110851704A CN110851704A CN201910941355.3A CN201910941355A CN110851704A CN 110851704 A CN110851704 A CN 110851704A CN 201910941355 A CN201910941355 A CN 201910941355A CN 110851704 A CN110851704 A CN 110851704A
- Authority
- CN
- China
- Prior art keywords
- information
- target
- dish
- merchant
- menu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 68
- 235000012054 meals Nutrition 0.000 claims description 57
- 238000010411 cooking Methods 0.000 claims description 18
- 238000010586 diagram Methods 0.000 description 11
- 238000012163 sequencing technique Methods 0.000 description 10
- 239000013589 supplement Substances 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 241001107116 Castanospermum australe Species 0.000 description 8
- 235000021279 black bean Nutrition 0.000 description 8
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 8
- 235000021186 dishes Nutrition 0.000 description 7
- 235000010149 Brassica rapa subsp chinensis Nutrition 0.000 description 6
- 235000000536 Brassica rapa subsp pekinensis Nutrition 0.000 description 6
- 241000499436 Brassica rapa subsp. pekinensis Species 0.000 description 6
- 235000013305 food Nutrition 0.000 description 4
- 239000000463 material Substances 0.000 description 3
- 241000251468 Actinopterygii Species 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009469 supplementation Effects 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0639—Item locations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
- G06Q30/0643—Graphical representation of items or shoppers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/12—Hotels or restaurants
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Databases & Information Systems (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Development Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Primary Health Care (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses multi-category service system includes: the system comprises a user request end, a server end and a data retrieval end; the user request end sends the obtained target position information and the target dish information to the service end and outputs target merchant information, target take-out delivery information and target dish information returned by the service end; the server side obtains target retrieval request information according to the target dish information and the target position information and provides the target retrieval request information to the data retrieval side; and the data retrieval end retrieves and obtains target merchant information, target take-out delivery information and target menu information according to the target retrieval request information, and then provides the target merchant information, the target take-out delivery information and the target menu information to the service end. By using the system, the service information of various categories such as merchant information, takeaway delivery information, menu information and the like can be provided for the user through single retrieval, and the retrieval requirement of the user can be met from multiple aspects.
Description
Technical Field
The application relates to the technical field of computers, in particular to a multi-category service system. The application also relates to a method and a device for providing the multi-category service and electronic equipment. The application also relates to a data retrieval method, a data retrieval device and electronic equipment. The application also relates to a data output method, a data output device and electronic equipment.
Background
With the development of the e-commerce technology, the user can search related to the food and drink information through the life service App, and the search becomes one of more widely applied convenient life scenes.
However, the service information related to the dish is of a wide variety, and may be, for example, merchant information including the dish, takeout merchant information providing takeout subscription service for the dish, and efficacy information or cooking information of the dish. Under the condition that the user search requirement cannot be obtained, any single-category information is provided for the user, and the search requirement of the user cannot be met. For example, for a single dish, a plurality of ways of eating, such as a meal for entering a store, a meal for taking out, or a meal for cooking, may be included, and if the user's eating needs cannot be known, a search is performed based on dish information to obtain single category information that is not information that the user wants, for example, the user inputs "pickled Chinese cabbage", and the search result is merchant information including the word "pickled Chinese cabbage", such as "x pickled Chinese cabbage fish" or "x pickled Chinese cabbage fish rice", but the user has an original intention to know recipe information of pickled Chinese cabbage or take-out information related to pickled Chinese cabbage. In this case, the user needs to enter a website supporting the restaurant delivery service for retrieval or enter a recipe website for recipe query, so that the user retrieval process becomes complicated.
Therefore, in a search process related to the dining information, the existing lifestyle service type App cannot provide target information to the user through a single retrieval.
Disclosure of Invention
The application provides a multi-category service system to solve the problem that target information cannot be provided for a user through single retrieval in the existing searching process related to catering information. The application further provides a method, a device and electronic equipment for providing multi-class services. The application also provides a data retrieval method, a data retrieval device and electronic equipment. The application further provides a data output method, a data output device and electronic equipment.
The application provides a multi-category service system, including: the system comprises a user request end, a server end and a data retrieval end;
the user request end is used for obtaining target position information and target dish information corresponding to a target user; sending the target position information and the target dish information to the server; outputting target merchant information, target take-out delivery information and target menu information from the server;
the server is used for acquiring target retrieval request information according to the target dish information and the target position information; providing the target retrieval request information to a data retrieval end; providing the target merchant information, the target takeout and delivery information and the target menu information returned by the data retrieval end to the user request end;
the data retrieval end is used for retrieving aiming at the store service merchant information of the target dish, the take-out delivery information of the target dish and the menu information of the target dish respectively according to the target retrieval request information to obtain target merchant information, target take-out delivery information and target menu information; and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
Optionally, the obtaining target retrieval request information according to the target dish information and the target location information includes:
according to the target dish information and the target position information, obtaining first target retrieval request information of store-in service merchant information aiming at the target dish, obtaining second target retrieval request information of take-out distribution information aiming at the target dish, and obtaining third target retrieval request information of menu information aiming at the target dish; the first target retrieval request information comprises the target position information and the target dish information, the second target retrieval request information comprises the target position information and the target dish information, and the third target retrieval request information comprises the target dish information;
correspondingly, the providing the target retrieval request information to the data retrieval end includes:
and providing the first target retrieval request information, the second target retrieval request information and the third target retrieval request information to the data retrieval terminal.
Optionally, the retrieving, according to the target retrieval request information, is performed respectively for the store service provider information of the target dish, the takeout delivery information of the target dish, and the recipe information of the target dish, so as to obtain the target provider information, the target takeout delivery information, and the target recipe information, and includes:
sending the first target retrieval request information to a merchant information engine; sending the second target retrieval request information to a takeaway data engine; sending the third target retrieval request information to a menu data engine;
the merchant information engine retrieves the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain target merchant information;
the takeout data engine searches the takeout distribution information of the target dish according to the second target search request information to obtain target takeout distribution information;
and the menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information.
Optionally, the retrieving, by the merchant information engine, the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain the target merchant information includes:
obtaining alternative merchant information within a preset distance range from the target position information;
obtaining candidate merchant information containing the target dish information from the candidate merchant information;
and sorting the candidate merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate merchant information of a preset number in the front as the target merchant information.
Optionally, the obtaining of the alternative merchant information within a predetermined distance range from the target location information includes:
obtaining a first GeoHash character string corresponding to merchant information within a preset distance range from the target position information;
obtaining a second GeoHash character string which corresponds to the merchant information in the merchant information database and is provided with an inverted index;
and matching the first GeoHash character string with the second GeoHash character string to obtain the information of the alternative merchants which are contained in the merchant information database and are within a preset distance range from the target position information.
Optionally, the obtaining of the candidate merchant information including the target dish information from the candidate merchant information includes:
acquiring the dish information of the established reverse index contained in the alternative merchant information;
and matching the target dish information with the dish information with which the inverted index is established to obtain candidate merchant information containing the target dish information.
Optionally, the retrieving, by the takeout data engine, the takeout delivery information of the target dish according to the second target retrieval request information to obtain the target takeout delivery information includes:
obtaining the information of the takeout distribution merchants within a preset distance range from the target position information;
obtaining candidate takeout distribution merchant information containing the target dish information from the candidate takeout distribution merchant information;
and sequencing the candidate takeout delivery merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate takeout delivery merchant information with a preset number in the front sequence as the target takeout delivery merchant information.
Optionally, the obtaining the information of the takeout delivery merchant within the predetermined distance range from the target location information includes:
acquiring a GeoHash character string of the established inverted index corresponding to a position area, within a preset distance range, of the take-out delivery merchant information in the take-out delivery merchant information database;
acquiring a GeoHash character string corresponding to the target position information;
and matching the GeoHash character string corresponding to the target position information with the GeoHash character string with the established inverted index to obtain the information of the takeout distribution merchants within a preset distance range from the target position information.
Optionally, the retrieving, by the recipe data engine, the recipe information of the target dish according to the third target retrieval request information to obtain target recipe information, where the retrieving includes:
acquiring dish information in a dish database and dish data corresponding to the dish information, wherein inverted indexes are established for the dish information and the dish data;
and matching the target dish with the dish information and the menu data to obtain the target menu information of the target dish.
Optionally, the user request end outputs the target merchant information, the target takeout and delivery information, and the target menu information, including: outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of the target merchant information, the target take-out delivery information and the target menu information.
Optionally, the step of providing, by the service end, the target merchant information, the target takeout and delivery information, and the target menu information to the user request end includes:
and performing data supplement on the target merchant information, the target take-out delivery information and the target menu information according to a preset page display requirement, and providing the page display information obtained after data supplement to the user request end.
Optionally, after the data retrieval end obtains the target merchant information, the target takeout and delivery information, and the target recipe information, the method further includes:
and respectively sequencing the target merchant information, the target takeout delivery information and the target menu information according to a preset sequencing mode to obtain the sequenced target merchant information, sequenced target takeout delivery information and sequenced target menu information.
Optionally, after the data retrieval end obtains the target merchant information, the target takeout and delivery information, and the target recipe information, the method further includes:
and carrying out data encapsulation on the target merchant information, the target take-out delivery information and the target menu information.
The application also provides a method for obtaining multi-category service information, which comprises the following steps:
acquiring target dish information and target position information from a user request end;
acquiring target retrieval request information according to the target dish information and the target position information; the target retrieval request information includes: search request information for the store-entering service merchant information of the target dish, search request information for the takeout delivery information of the target dish, and search request information for the menu information of the target dish;
providing the target retrieval request information to a data retrieval end;
obtaining target merchant information, target take-out delivery information and target menu information provided by the data retrieval end;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the user request end.
Optionally, the providing the target merchant information, the target takeout delivery information, and the target menu information to the user request end includes:
and performing data supplement on the target merchant information, the target take-out delivery information and the target menu information according to a preset page display requirement, and providing the page display information obtained after data supplement to the user request end.
The application also provides a data retrieval method, which comprises the following steps:
obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information of store-entering service merchant information for a target dish, second retrieval request information of take-out delivery information for the target dish, and third retrieval request information of menu information for the target dish;
according to the target retrieval request information, retrieving aiming at the store-entering service merchant information of the target dish, the takeout delivery information of the target dish and the menu information of the target dish respectively to obtain target merchant information, target takeout delivery information and target menu information;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
Optionally, the retrieving, according to the target retrieval request information, the store service provider information of the target dish, the takeout delivery information of the target dish, and the recipe information of the target dish, respectively, to obtain the target provider information, the target takeout delivery information, and the target recipe information includes:
sending the first target retrieval request information to a merchant information engine; sending the second target retrieval request information to a takeaway data engine; sending the third target retrieval request information to a menu data engine;
the merchant information engine retrieves the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain target merchant information;
the takeout data engine searches the takeout distribution information of the target dish according to the second target search request information to obtain target takeout distribution information;
and the menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information.
Optionally, the retrieving, by the merchant information engine, the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain the target merchant information includes:
obtaining alternative merchant information within a preset distance range from the target position information;
obtaining candidate merchant information containing the target dish information from the candidate merchant information;
and sorting the candidate merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate merchant information of a preset number in the front as the target merchant information.
Optionally, the obtaining of the alternative merchant information within a predetermined distance range from the target location information includes:
obtaining a first GeoHash character string corresponding to merchant information within a preset distance range from the target position information;
obtaining a second GeoHash character string which corresponds to the merchant information in the merchant information database and is provided with an inverted index;
and matching the first GeoHash character string with the second GeoHash character string to obtain the information of the alternative merchants which are contained in the merchant information database and are within a preset distance range from the target position information.
Optionally, the obtaining of the candidate merchant information including the target dish information from the candidate merchant information includes:
acquiring the dish information of the established reverse index contained in the alternative merchant information;
and matching the target dish information with the dish information with which the inverted index is established to obtain candidate merchant information containing the target dish information.
Optionally, the retrieving, by the takeout data engine, the takeout delivery information of the target dish according to the second target retrieval request information to obtain the target takeout delivery information includes:
obtaining the information of the takeout distribution merchants within a preset distance range from the target position information;
obtaining candidate takeout distribution merchant information containing the target dish information from the candidate takeout distribution merchant information;
and sequencing the candidate takeout delivery merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate takeout delivery merchant information with a preset number in the front sequence as the target takeout delivery merchant information.
Optionally, the obtaining the information of the takeout delivery merchant within the predetermined distance range from the target location information includes:
acquiring a GeoHash character string of the established inverted index corresponding to a position area, within a preset distance range, of the take-out delivery merchant information in the take-out delivery merchant information database;
acquiring a GeoHash character string corresponding to the target position information;
and matching the GeoHash character string corresponding to the target position information with the GeoHash character string with the established inverted index to obtain the information of the takeout distribution merchants within a preset distance range from the target position information.
Optionally, the retrieving, by the recipe data engine, the recipe information of the target dish according to the third target retrieval request information to obtain target recipe information, where the retrieving includes:
acquiring dish information in a dish database and dish data corresponding to the dish information, wherein inverted indexes are established for the dish information and the dish data;
and matching the target dish with the dish information and the menu data to obtain the target menu information of the target dish.
The present application further provides a data output method, including:
acquiring target dish information and target position information;
outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
The present application further provides an apparatus for obtaining multi-class service information, including:
the information acquisition unit is used for acquiring target dish information and target position information from a user request end;
a target retrieval request information obtaining unit, configured to obtain target retrieval request information according to the target dish information and the target location information; the target retrieval request information includes: search request information for the store-entering service merchant information of the target dish, search request information for the takeout delivery information of the target dish, and search request information for the menu information of the target dish;
a target retrieval request information providing unit, configured to provide the target retrieval request information to a data retrieval end;
the target information obtaining unit is used for obtaining target merchant information, target take-out delivery information and target menu information which are provided by the data retrieval end;
and the target information providing unit is used for providing the target merchant information, the target take-out delivery information and the target menu information to the user request end.
The present application further provides an electronic device, comprising:
a processor; a memory for storing a program for obtaining multi-class service information, the program, when read executed by the processor, performing the following:
acquiring target dish information and target position information from a user request end;
acquiring target retrieval request information according to the target dish information and the target position information; the target retrieval request information includes: search request information for the store-entering service merchant information of the target dish, search request information for the takeout delivery information of the target dish, and search request information for the menu information of the target dish;
providing the target retrieval request information to a data retrieval end;
obtaining target merchant information, target take-out delivery information and target menu information provided by the data retrieval end;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the user request end.
The present application also provides a data retrieval apparatus, comprising: a target retrieval request information obtaining unit for obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information for store-in service merchant information of the target dish, second retrieval request information for take-out delivery information of the target dish, and third retrieval request information for menu information of the target dish;
a target information obtaining unit, configured to respectively search for the store service provider information of the target dish, the takeout distribution information of the target dish, and the recipe information of the target dish according to the target search request information, and obtain target provider information, target takeout distribution information, and target recipe information;
and the target information providing unit is used for providing the target merchant information, the target take-out delivery information and the target menu information to the server.
The present application further provides an electronic device, comprising:
a processor; a memory for storing a program for data retrieval, which when read and executed by the processor performs the following operations:
obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information for store-in service merchant information of the target dish, second retrieval request information for take-out delivery information of the target dish, and third retrieval request information for menu information of the target dish;
according to the target retrieval request information, retrieving aiming at the store-entering service merchant information of the target dish, the takeout delivery information of the target dish and the menu information of the target dish respectively to obtain target merchant information, target takeout delivery information and target menu information;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
The present application also provides a data output apparatus, comprising:
the information acquisition unit is used for acquiring target dish information and target position information;
an optional meal mode information output unit for outputting optional meal mode information matched with the target dish and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
the trigger instruction receiving unit is used for receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
the target information output unit is used for outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
The present application further provides an electronic device, comprising:
a processor; a memory for storing a program of data output, which when read and executed by the processor, performs the following operations:
acquiring target dish information and target position information;
outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
Compared with the prior art, the method has the following advantages:
the multi-category service system provided by the application comprises: the system comprises a user request end, a server end and a data retrieval end; the user request end sends the obtained target position information and the target dish information to the service end and outputs target merchant information, target take-out delivery information and target dish information returned by the service end; the server side obtains target retrieval request information according to the received target dish information and the target position information, provides the target retrieval request information to the data retrieval side for data retrieval, and provides target merchant information, target takeout distribution information and target menu information returned by the data retrieval side to the user request side; and the data retrieval end retrieves and obtains target merchant information, target take-out delivery information and target menu information according to the target retrieval request information, and then provides the target merchant information, the target take-out delivery information and the target menu information to the service end. By using the system, in the searching process related to the catering information, service information of categories such as merchant information, takeaway delivery information and menu information can be provided for the user, and the retrieval requirements of the user can be met from multiple aspects.
Drawings
FIG. 1 is a schematic diagram of a multi-category service system provided in a first embodiment of the present application;
FIG. 1-A is a schematic view of a user presentation interface provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for obtaining multi-category service information according to a second embodiment of the present application;
FIG. 3 is a flow chart of a data retrieval method provided by a third embodiment of the present application;
FIG. 4 is a flow chart of a data output method provided by a fourth embodiment of the present application;
fig. 5 is a block diagram of a unit of an apparatus for obtaining multi-category service information according to a fifth embodiment of the present application;
fig. 6 is a schematic logical structure diagram of an electronic device according to a sixth embodiment of the present application;
fig. 7 is a block diagram of a data retrieval apparatus according to a seventh embodiment of the present application;
fig. 8 is a schematic logical structure diagram of an electronic device according to an eighth embodiment of the present application;
fig. 9 is a block diagram of a unit of a data output apparatus according to a ninth embodiment of the present application;
fig. 10 is a schematic logical structure diagram of an electronic device according to a tenth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
Aiming at a data retrieval scene in the catering service field, in order to meet retrieval requirements of users from multiple aspects, the application provides a multi-class service system, a method for obtaining multi-class service information, a device for obtaining multi-class service information corresponding to the method and electronic equipment. The application also provides a data retrieval method, a data retrieval device corresponding to the method and electronic equipment. The application also provides a data output method, a data retrieval device corresponding to the method and electronic equipment. The following provides embodiments to explain the method, apparatus, and electronic device in detail.
A first embodiment of the present application provides a multi-class service system, which can be applied to a data retrieval scenario in the field of catering services, fig. 1 is a schematic diagram of the multi-class service system provided in the first embodiment of the present application, and the system provided in this embodiment is described in detail below with reference to fig. 1. The following description is directed to embodiments which are intended to explain the principles of system operation and method principles and are not intended to be limiting in practical use.
As shown in fig. 1, the multi-category service system 100 provided by the present embodiment includes: a user request terminal 101, a server terminal 102 and a data retrieval terminal 103;
the user request terminal 101 is used for obtaining target position information and target dish information corresponding to a target user; sending the target position information and the target dish information to a server; receiving target merchant information, target takeout distribution information and target menu information provided by a server; outputting target merchant information, target take-out delivery information and target menu information;
the server 102 is used for receiving target dish information and target position information from a user request end; acquiring target retrieval request information according to the target dish information and the target position information; providing the target retrieval request information to a data retrieval end; obtaining target merchant information, target take-out delivery information and target menu information provided by a data retrieval end; providing the target merchant information, the target takeout distribution information and the target menu information to a user request end;
the data retrieval terminal 103 is used for receiving target retrieval request information from the server terminal; according to the target retrieval request information, retrieving aiming at store-entering service merchant information of the target dish, take-out delivery information of the target dish and menu information of the target dish respectively to obtain target merchant information, target take-out delivery information and target menu information; and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
The user request terminal 101 may be an intelligent terminal that provides an information input interface for a user and outputs display information for the user, performs information interaction with a server, sends request information to the server, and receives response information corresponding to the request information returned by the server, for example, a smart phone with a catering service APP, where the user may obtain catering service information that matches the demand of the user through the catering service APP on the smart phone. The target dish information may refer to a name of the target dish or other identification information that may be used to represent the target dish, and the target location information corresponding to the target user may be real-time location information where the target user is located or location information specified by the target user. The target merchant information refers to store service merchant information related to the target dish information, the target take-out delivery information refers to take-out merchant information and take-out delivery route information which take the target dish as a take-out delivery object, and the like, and the target menu information refers to cooking methods and food material ratio information of the target dish.
The process of outputting the target merchant information, the target takeout delivery information and the target menu information by the user request terminal may refer to: outputting optional dining mode information matched with the target dishes and the target position information through a preset output interface; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information; receiving a trigger instruction of a target user for target meal mode information in the selectable meal mode information; and outputting target information corresponding to the target meal mode information according to the trigger instruction, wherein the target information is one of target merchant information, target take-out delivery information and target menu information.
For example, a target user inputs "black bean water" through a catering service APP of a smart phone, and determines that position information that has been input before or position information that is newly input is target position information, as shown in fig. 1-a, an APP interface outputs selectable "go away", "take out", and "do it himself" three kinds of dining mode information, which respectively correspond to store dining information, take-out dining information, and cooking dining information, the target user selects the target dining mode information from the three kinds of dining mode information, generates a corresponding trigger instruction, and the APP outputs a store nearby selling "black bean water" or take-out store information that can provide "black bean water" distribution service, or food material and cooking method information related to "black bean water" according to the trigger instruction.
The server 102 obtains the target retrieval request information according to the target dish information and the target location information, and specifically includes the following steps: according to the target dish information and the target position information, first target retrieval request information of store-in service merchant information for the target dish is obtained, second target retrieval request information of take-out distribution information for the target dish is obtained, and third target retrieval request information of menu information for the target dish is obtained; the first target retrieval request information comprises target position information and target dish information, the second target retrieval request information comprises the target position information and the target dish information, and the third target retrieval request information comprises the target dish information.
Correspondingly, the service end 102 provides the target retrieval request information to the data retrieval end, which refers to: and providing the first target retrieval request information, the second target retrieval request information and the third target retrieval request information to a data retrieval end.
In this embodiment, the method for providing target merchant information, target takeout and delivery information, and target menu information to the user request end by the service end further includes: and performing data supplement on the target merchant information, the target take-out delivery information and the target menu information according to a preset page display requirement, and providing the page display information obtained after the data supplement to the user request end. For example, the image information, price information, and the like of the target dish are combined with the target merchant information, the target takeout delivery information, and the target recipe information to generate page display information.
The data retrieval end receives target retrieval request information from the server end, and the target retrieval request information comprises: first target retrieval request information, second target retrieval request information, and third target retrieval request information are received.
In this embodiment, the data retrieval end retrieves, according to the target retrieval request information, the store-entering service provider information of the target dish, the takeout delivery information of the target dish, and the recipe information of the target dish, respectively, and the process of obtaining the target provider information, the target takeout delivery information, and the target recipe information may be as follows:
and sending the first target retrieval request information to a merchant information engine, sending the second target retrieval request information to a takeaway data engine, sending the third target retrieval request information to a menu data engine, and performing corresponding data retrieval through the engine.
And the merchant information engine retrieves the store-entering service merchant information of the target dishes according to the first target retrieval request information to obtain the target merchant information. The process specifically comprises the following steps:
firstly, obtaining alternative merchant information within a predetermined distance range from the target position information, for example, calculating by using a GeoHash algorithm to obtain a first GeoHash character string corresponding to the merchant information within the predetermined distance range from the target position information, obtaining a second GeoHash character string corresponding to the merchant information in a merchant information database and having established an inverted index, matching the first GeoHash character string with the second GeoHash character string, and obtaining the alternative merchant information within the predetermined distance range from the target position information, which is contained in the merchant information database, according to the matching result.
In the index technology related to the position, index fields need to be sequenced, one-dimensional fields can be sequenced, and for points (position coordinates comprise longitude and latitude) on the space, two-dimensional coordinate data need to be converted into one-dimensional data through the space index technology, wherein the GeoHash algorithm is a typical algorithm of the space index technology and converts two-dimensional longitude and latitude coordinate values into GeoHash character strings, each GeoHash character string represents a certain rectangular area, all the points (longitude and latitude coordinates) in the rectangular area share the GeoHash character string, and the more similar the GeoHash character strings are, the closer the distances of the space points are. The GeoHash character string is used for representing the position information of the space point, so that privacy can be protected (the GeoHash character string only represents the position of an approximate region and does not represent specific point coordinates), and the position data can be cached in a database conveniently.
And secondly, obtaining candidate merchant information containing the target dish information from the candidate merchant information, for example, obtaining dish information of which an inverted index is established and which is contained in the candidate merchant information, and matching the target dish information with the dish information of which the inverted index is established to obtain the candidate merchant information containing the target dish information.
And finally, sorting the candidate merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate merchant information of a preset number in the front as the target merchant information.
And the takeout data engine searches the takeout delivery information of the target dish according to the second target search request information to obtain the target takeout delivery information. The process specifically comprises the following steps:
firstly, obtaining take-out delivery merchant information within a preset distance range from target position information, for example, obtaining a GeoHash character string of an established inverted index corresponding to a position area within the preset distance range from take-out delivery merchant information in a take-out delivery merchant information database, obtaining a GeoHash character string corresponding to the target position information, matching the GeoHash character string corresponding to the target position information with the GeoHash character string of the established inverted index, and obtaining take-out delivery merchant information within the preset distance range from the target position information;
secondly, obtaining candidate takeout distribution merchant information containing target dish information from the takeout distribution merchant information which is within a preset distance range from the target position information;
and finally, sorting the candidate takeout delivery merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate takeout delivery merchant information of a preset number in the front sorting as the target takeout delivery merchant information.
And the menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information. The process specifically comprises the following steps: and acquiring menu information in a menu database and menu data corresponding to the menu information, and matching the target menu information with the menu information and the menu data to acquire the menu information of the target menu information.
In this embodiment, after the data retrieval end obtains the target merchant information, the target takeout delivery information, and the target menu information, the data retrieval end needs to sort the target merchant information, the target takeout delivery information, and the target menu information according to a predetermined sorting manner, so as to obtain the sorted target merchant information, the sorted target takeout delivery information, and the sorted target menu information. And, data encapsulation is also needed to be carried out on the target merchant information, the target take-out delivery information and the target menu information. For example, the target merchant information is sorted according to the order of the good scores of the merchants from high to low, and the target takeaway delivery information is sorted according to the popularity of the takeaway merchants; and sequencing the target menu information according to the times of searching the menu information.
In the multi-category service system provided by this embodiment, the user request terminal sends the obtained target location information and target dish information to the service terminal, and outputs target merchant information, target takeout delivery information, and target menu information returned by the service terminal; the server side obtains target retrieval request information according to the received target dish information and the target position information and provides the target retrieval request information to the data retrieval side; the target merchant information, the target take-out and delivery information and the target menu information provided by the data retrieval end are provided to the user request end; and the data retrieval end retrieves and obtains target merchant information, target take-out delivery information and target menu information according to the target retrieval request information, and then provides the target merchant information, the target take-out delivery information and the target menu information to the service end. By using the system, a user can be provided with various types of catering service information such as merchant information, takeaway delivery information, menu information and the like through single retrieval, and the retrieval requirements of the user can be met from multiple aspects.
A second embodiment of the present application provides a method for obtaining multi-class service information, where an implementation subject of the method may be a server in the foregoing system embodiment. As shown in fig. 2, the method for obtaining multi-category service information provided in this embodiment includes the following steps:
s201, obtaining target dish information and target position information from a user request end.
And S202, acquiring target retrieval request information according to the target dish information and the target position information.
The target retrieval request information includes: search request information for store-in service merchant information for the target dish, search request information for take-out delivery information for the target dish, and search request information for recipe information for the target dish.
S203, the target retrieval request information is provided to the data retrieval end.
And S204, obtaining the target merchant information, the target take-out delivery information and the target menu information provided by the data retrieval end.
And S205, providing the target merchant information, the target takeout delivery information and the target menu information to the user request end. For example, the target merchant information, the target takeout delivery information, and the target recipe information are subjected to data supplementation according to a preset page display requirement, and the page display information obtained after the data supplementation is provided to the user request terminal.
A third embodiment of the present application provides a data retrieval method, where an implementation subject of the method may be a data retrieval end in the above system embodiment, as shown in fig. 3, the data retrieval method provided in this embodiment includes the following steps:
s301, target retrieval request information from a server is obtained.
The target retrieval request information includes: the dish management system comprises first retrieval request information of store-in service merchant information for a target dish, second retrieval request information of take-out delivery information for the target dish and third retrieval request information of menu information for the target dish.
And S302, searching for the store service merchant information of the target dish, the takeout distribution information of the target dish and the menu information of the target dish respectively according to the target search request information to obtain the target merchant information, the target takeout distribution information and the target menu information.
In this embodiment, the present step specifically includes the following steps:
sending the first target retrieval request information to a merchant information engine; sending the second target retrieval request information to a takeaway data engine; sending the third target retrieval request information to a menu data engine; the merchant information engine retrieves the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain target merchant information; the takeout data engine searches the takeout distribution information of the target dish according to the second target search request information to obtain target takeout distribution information; and the menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information.
The merchant information engine retrieves the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain target merchant information, and the target merchant information comprises the following contents:
firstly, obtaining alternative merchant information within a preset distance range from the target position information, for example, calculating by adopting a GeoHash algorithm to obtain a first GeoHash character string corresponding to the merchant information within the preset distance range from the target position information, obtaining a second GeoHash character string corresponding to the merchant information in a merchant information database and having established an inverted index, matching the first GeoHash character string with the second GeoHash character string, and obtaining the alternative merchant information within the preset distance range from the target position information contained in the merchant information database;
then, candidate merchant information including the target dish information is obtained from the candidate merchant information, for example, dish information of which an inverted index is established and which is included in the candidate merchant information is obtained, and the target dish information is matched with the dish information of which the inverted index is established to obtain the candidate merchant information including the target dish information.
And finally, sorting the candidate merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate merchant information of a preset number in the front as the target merchant information.
The takeout data engine searches the takeout distribution information of the target dish according to the second target search request information to obtain the target takeout distribution information, and the takeout distribution information comprises the following contents:
obtaining take-out delivery merchant information within a preset distance range from the target position information, for example, obtaining a GeoHash character string of an established inverted index corresponding to a position area within the preset distance range from the take-out delivery merchant information in the take-out delivery merchant information database; acquiring a GeoHash character string corresponding to the target position information; matching the GeoHash character string corresponding to the target position information with the GeoHash character string with the established inverted index to obtain the information of the takeout distribution merchants within a preset distance range from the target position information;
obtaining candidate takeout distribution merchant information containing target dish information from the takeout distribution merchant information;
and sequencing the candidate takeout delivery merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate takeout delivery merchant information with a preset number in the front sequence as the target takeout delivery merchant information.
The menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information, and the menu data engine comprises the following contents:
acquiring dish information in a dish database and dish data corresponding to the dish information, wherein reverse indexes are established for the dish information and the dish data; and matching the target dish with the dish information and the menu data to obtain the target menu information of the target dish.
And S303, providing the target merchant information, the target takeout distribution information and the target menu information to the server.
A fourth embodiment of the present application provides a data output method, where an implementation subject of the method may be a user request end in the system embodiment, as shown in fig. 4, the method provided in this embodiment includes the following steps:
s401, obtaining target dish information and target position information.
S402, outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: meal information for incoming stores, meal information for take-out, and meal information for cooking.
And S403, receiving a trigger instruction aiming at the target meal mode information in the selectable meal mode information.
And S404, outputting target information corresponding to the target dining mode information according to the trigger instruction.
The target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
For example, a target user inputs "black bean water" through a catering service APP of a smart phone, and determines that position information that has been input before or position information that is newly input is target position information, as shown in fig. 1-a, an APP interface outputs selectable "go away", "take out", and "do it himself" three kinds of dining mode information, which respectively correspond to store dining information, take-out dining information, and cooking dining information, the target user selects the target dining mode information from the three kinds of dining mode information, generates a corresponding trigger instruction, and the APP outputs a store nearby selling "black bean water" or take-out store information that can provide "black bean water" distribution service, or food material and cooking method information related to "black bean water" according to the trigger instruction.
The fifth embodiment of the present application further provides an apparatus for obtaining multi-class service information, since the apparatus embodiment is substantially similar to the method embodiment, so that the description is relatively simple, and the detailed portions of the related technical features may be referred to the corresponding description of the method embodiment provided above, and the following description of the apparatus embodiment is only illustrative.
Referring to fig. 5, to understand the embodiment, fig. 5 is a block diagram of a unit of the apparatus provided in the embodiment, and as shown in fig. 5, the apparatus provided in the embodiment includes:
an information obtaining unit 501, configured to obtain target dish information and target location information from a user request end; a target retrieval request information obtaining unit 502 for obtaining target retrieval request information according to the target dish information and the target location information; the target retrieval request information includes: search request information for store-entering service merchant information of the target dish, search request information for take-out delivery information of the target dish and search request information for menu information of the target dish; a target retrieval request information providing unit 503 for providing target retrieval request information to the data retrieval side; a target information obtaining unit 504, configured to obtain target merchant information, target takeout distribution information, and target menu information provided by the data retrieval end; and a target information providing unit 505, configured to provide the target merchant information, the target takeout delivery information, and the target menu information to the user request end.
Optionally, the providing the target merchant information, the target takeout delivery information, and the target menu information to the user request end includes:
and performing data supplement on the target merchant information, the target take-out delivery information and the target menu information according to a preset page display requirement, and providing the page display information obtained after the data supplement to the user request end.
In the foregoing embodiments, a method for obtaining multi-class service information and an apparatus for obtaining multi-class service information are provided, and in addition, a sixth embodiment of the present application further provides an electronic device, which is basically similar to the method embodiment and therefore is relatively simple to describe, and please refer to the corresponding description of the method embodiment for the details of the related technical features, and the following description of the embodiment of the electronic device is only illustrative. The embodiment of the electronic equipment is as follows:
please refer to fig. 6 for understanding the present embodiment, fig. 6 is a schematic view of an electronic device provided in the present embodiment.
As shown in fig. 6, the electronic apparatus includes: a processor 601; a memory 602;
a memory 602 for storing a program for obtaining multi-class service information, the program, when read and executed by the processor, performing the following operations:
acquiring target dish information and target position information from a user request end; acquiring target retrieval request information according to the target dish information and the target position information; the target retrieval request information includes: search request information for store-entering service merchant information of the target dish, search request information for take-out delivery information of the target dish and search request information for menu information of the target dish; providing the target retrieval request information to a data retrieval end; obtaining target merchant information, target take-out delivery information and target menu information provided by a data retrieval end; and providing the target merchant information, the target takeout and delivery information and the target menu information to a user request end.
Optionally, the providing the target merchant information, the target takeout delivery information, and the target menu information to the user request end includes: and performing data supplement on the target merchant information, the target take-out delivery information and the target menu information according to a preset page display requirement, and providing the page display information obtained after the data supplement to the user request end.
The seventh embodiment of the present application provides a data retrieval method, and correspondingly, the seventh embodiment of the present application also provides a data retrieval device, since the device embodiment is basically similar to the method embodiment, so that the description is relatively simple, and the details of the related technical features can be found in the corresponding description of the method embodiment provided above, and the following description of the device embodiment is only illustrative.
Referring to fig. 7, to understand the embodiment, fig. 7 is a block diagram of a unit of the apparatus provided in the embodiment, and as shown in fig. 7, the apparatus provided in the embodiment includes:
a target retrieval request information obtaining unit 701 configured to obtain target retrieval request information from a server; the target retrieval request information includes: first retrieval request information for store-entering service merchant information of a target dish, second retrieval request information for take-out delivery information of the target dish, and third retrieval request information for menu information of the target dish;
a target information obtaining unit 702, configured to respectively search for store service provider information of the target dish, take-out delivery information of the target dish, and menu information of the target dish according to the target search request information, and obtain target provider information, target take-out delivery information, and target menu information;
and a target information providing unit 703, configured to provide the target merchant information, the target takeout delivery information, and the target menu information to the server.
Optionally, according to the target retrieval request information, retrieving is performed respectively for the store service provider information of the target dish, the takeout delivery information of the target dish, and the menu information of the target dish, so as to obtain the target provider information, the target takeout delivery information, and the target menu information, including:
sending the first target retrieval request information to a merchant information engine; sending the second target retrieval request information to a takeaway data engine; sending the third target retrieval request information to a menu data engine; the merchant information engine retrieves the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain target merchant information; the takeout data engine searches the takeout distribution information of the target dish according to the second target search request information to obtain target takeout distribution information; and the menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information.
Optionally, the retrieving, by the merchant information engine, the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain the target merchant information includes:
obtaining alternative merchant information within a preset distance range from the target position information;
obtaining candidate merchant information containing target dish information from the candidate merchant information;
and sequencing the candidate merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate merchant information with a preset number in the front as the target merchant information.
Optionally, obtaining information of alternative merchants within a predetermined distance range from the target location information includes: obtaining a first GeoHash character string corresponding to merchant information within a preset distance range from the target position information; obtaining a second GeoHash character string which corresponds to the merchant information in the merchant information database and is provided with an inverted index; and matching the first GeoHash character string with the second GeoHash character string to obtain the alternative merchant information which is contained in the merchant information database and is within a preset distance range from the target position information.
Optionally, obtaining candidate merchant information including the target dish information from the candidate merchant information includes: acquiring dish information of the established reverse index contained in the alternative merchant information; and matching the target dish information with the dish information with which the inverted index is established to obtain candidate merchant information containing the target dish information.
Optionally, the retrieving, by the takeout data engine, the takeout delivery information of the target dish according to the second target retrieval request information to obtain the target takeout delivery information includes:
acquiring take-out delivery merchant information within a preset distance range from the target position information; obtaining candidate takeout distribution merchant information containing target dish information from the takeout distribution merchant information; and sequencing the candidate takeout delivery merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate takeout delivery merchant information with a preset number in the front sequence as the target takeout delivery merchant information.
Optionally, obtaining the information of the takeout delivery merchant within a predetermined distance range from the target location information includes:
acquiring a GeoHash character string of the established inverted index corresponding to a position area, within a preset distance range, of the take-out delivery merchant information in the take-out delivery merchant information database; acquiring a GeoHash character string corresponding to the target position information; and matching the GeoHash character string corresponding to the target position information with the GeoHash character string with the established inverted index to obtain the take-out distribution merchant information which is within a preset distance range from the target position information.
Optionally, the retrieving, by the recipe data engine, the recipe information of the target dish according to the third target retrieval request information to obtain the target recipe information, where the retrieving includes: acquiring dish information in a dish database and dish data corresponding to the dish information, wherein reverse indexes are established for the dish information and the dish data; and matching the target dish with the dish information and the menu data to obtain the target menu information of the target dish.
In the above embodiments, a data retrieval method and a data retrieval device are provided, and in addition, an eighth embodiment of the present application also provides an electronic device, which is basically similar to the method embodiment, so that description is relatively simple, and for details of relevant technical features, reference may be made to the corresponding description of the method embodiment provided above, and the following description of the electronic device embodiment is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 8 for understanding the present embodiment, fig. 8 is a schematic view of an electronic device provided in the present embodiment. As shown in fig. 8, the electronic apparatus includes: a processor 801; a memory 802;
a memory 802 for storing a data retrieval program which, when read and executed by the processor, performs the following operations:
obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information for store-entering service merchant information of a target dish, second retrieval request information for take-out delivery information of the target dish, and third retrieval request information for menu information of the target dish; according to the target retrieval request information, retrieving aiming at the store-entering service merchant information of the target dish, the takeout delivery information of the target dish and the menu information of the target dish respectively to obtain the target merchant information, the target takeout delivery information and the target menu information; and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
Optionally, according to the target retrieval request information, retrieving is performed respectively for the store service provider information of the target dish, the takeout delivery information of the target dish, and the menu information of the target dish, so as to obtain the target provider information, the target takeout delivery information, and the target menu information, including:
sending the first target retrieval request information to a merchant information engine; sending the second target retrieval request information to a takeaway data engine; sending the third target retrieval request information to a menu data engine; the merchant information engine retrieves the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain target merchant information; the takeout data engine searches the takeout distribution information of the target dish according to the second target search request information to obtain target takeout distribution information; and the menu data engine retrieves the menu information of the target menu according to the third target retrieval request information to obtain the target menu information.
Optionally, the retrieving, by the merchant information engine, the store-entering service merchant information of the target dish according to the first target retrieval request information to obtain the target merchant information includes:
obtaining alternative merchant information within a preset distance range from the target position information;
obtaining candidate merchant information containing target dish information from the candidate merchant information;
and sequencing the candidate merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate merchant information with a preset number in the front as the target merchant information.
Optionally, obtaining information of alternative merchants within a predetermined distance range from the target location information includes: obtaining a first GeoHash character string corresponding to merchant information within a preset distance range from the target position information; obtaining a second GeoHash character string which corresponds to the merchant information in the merchant information database and is provided with an inverted index; and matching the first GeoHash character string with the second GeoHash character string to obtain the alternative merchant information which is contained in the merchant information database and is within a preset distance range from the target position information.
Optionally, obtaining candidate merchant information including the target dish information from the candidate merchant information includes: acquiring dish information of the established reverse index contained in the alternative merchant information; and matching the target dish information with the dish information with which the inverted index is established to obtain candidate merchant information containing the target dish information.
Optionally, the retrieving, by the takeout data engine, the takeout delivery information of the target dish according to the second target retrieval request information to obtain the target takeout delivery information includes: acquiring take-out delivery merchant information within a preset distance range from the target position information; obtaining candidate takeout distribution merchant information containing target dish information from the takeout distribution merchant information; and sequencing the candidate takeout delivery merchant information according to the sequence of the distance from the target position information from near to far, and taking the candidate takeout delivery merchant information with a preset number in the front sequence as the target takeout delivery merchant information.
Optionally, obtaining the information of the takeout delivery merchant within a predetermined distance range from the target location information includes: acquiring a GeoHash character string of the established inverted index corresponding to a position area, within a preset distance range, of the take-out delivery merchant information in the take-out delivery merchant information database; acquiring a GeoHash character string corresponding to the target position information; and matching the GeoHash character string corresponding to the target position information with the GeoHash character string with the established inverted index to obtain the take-out distribution merchant information which is within a preset distance range from the target position information.
Optionally, the retrieving, by the recipe data engine, the recipe information of the target dish according to the third target retrieval request information to obtain the target recipe information, where the retrieving includes: acquiring dish information in a dish database and dish data corresponding to the dish information, wherein reverse indexes are established for the dish information and the dish data; and matching the target dish with the dish information and the menu data to obtain the target menu information of the target dish.
The ninth embodiment of the present application also provides a data output device, since the device embodiment is substantially similar to the method embodiment, so that the description is simple, and the details of the related technical features can be found in the corresponding description of the method embodiment provided above, and the following description of the device embodiment is only illustrative.
Please refer to fig. 9 for understanding the embodiment, fig. 9 is a block diagram of a unit of the apparatus provided in the embodiment, and as shown in fig. 9, the apparatus provided in the embodiment includes:
an information obtaining unit 901 for obtaining target dish information and target location information;
a meal mode information output unit 902, configured to output optional meal mode information that matches the target dish and the target location information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
a trigger instruction receiving unit 903, configured to receive a trigger instruction for target meal mode information in the selectable meal mode information;
a target information output unit 904, configured to output target information corresponding to the target meal mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
In the embodiments described above, a data output method and a data output apparatus are provided, and in addition, a tenth embodiment of the present application also provides an electronic device, which is basically similar to the method embodiment and therefore is described relatively simply, and the details of the related technical features need to be referred to the corresponding description of the method embodiment provided above, and the following description of the electronic device embodiment is only illustrative.
The embodiment of the electronic equipment is as follows:
please refer to fig. 10 for understanding the present embodiment, fig. 10 is a schematic view of an electronic device provided in the present embodiment.
As shown in fig. 10, the electronic apparatus includes: a processor 1001; a memory 1002;
a memory 1002 for storing a data output program which, when read and executed by the processor, performs the following operations:
acquiring target dish information and target position information; outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information; receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information; outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
Claims (10)
1. A multi-category service system, comprising: the system comprises a user request end, a server end and a data retrieval end;
the user request end is used for obtaining target position information and target dish information corresponding to a target user; sending the target position information and the target dish information to the server; outputting target merchant information, target take-out delivery information and target menu information from the server;
the server is used for acquiring target retrieval request information according to the target dish information and the target position information; providing the target retrieval request information to a data retrieval end; providing the target merchant information, the target takeout and delivery information and the target menu information returned by the data retrieval end to the user request end;
the data retrieval end is used for retrieving aiming at the store service merchant information of the target dish, the take-out delivery information of the target dish and the menu information of the target dish respectively according to the target retrieval request information to obtain target merchant information, target take-out delivery information and target menu information; and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
2. A method for obtaining multi-class service information, comprising:
acquiring target dish information and target position information from a user request end;
acquiring target retrieval request information according to the target dish information and the target position information; the target retrieval request information includes: search request information for the store-entering service merchant information of the target dish, search request information for the takeout delivery information of the target dish, and search request information for the menu information of the target dish;
providing the target retrieval request information to a data retrieval end;
obtaining target merchant information, target take-out delivery information and target menu information provided by the data retrieval end;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the user request end.
3. A method of data retrieval, comprising:
obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information of store-entering service merchant information for a target dish, second retrieval request information of take-out delivery information for the target dish, and third retrieval request information of menu information for the target dish;
according to the target retrieval request information, retrieving aiming at the store-entering service merchant information of the target dish, the takeout delivery information of the target dish and the menu information of the target dish respectively to obtain target merchant information, target takeout delivery information and target menu information;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
4. A data output method, comprising:
acquiring target dish information and target position information;
outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
5. An apparatus for obtaining multi-class service information, comprising:
the information acquisition unit is used for acquiring target dish information and target position information from a user request end;
a target retrieval request information obtaining unit, configured to obtain target retrieval request information according to the target dish information and the target location information; the target retrieval request information includes: search request information for the store-entering service merchant information of the target dish, search request information for the takeout delivery information of the target dish, and search request information for the menu information of the target dish;
a target retrieval request information providing unit, configured to provide the target retrieval request information to a data retrieval end;
the target information obtaining unit is used for obtaining target merchant information, target take-out delivery information and target menu information which are provided by the data retrieval end;
and the target information providing unit is used for providing the target merchant information, the target take-out delivery information and the target menu information to the user request end.
6. An electronic device, comprising:
a processor;
a memory for storing a program for obtaining multi-class service information, the program, when read executed by the processor, performing the following:
acquiring target dish information and target position information from a user request end;
acquiring target retrieval request information according to the target dish information and the target position information; the target retrieval request information includes: search request information for the store-entering service merchant information of the target dish, search request information for the takeout delivery information of the target dish, and search request information for the menu information of the target dish;
providing the target retrieval request information to a data retrieval end;
obtaining target merchant information, target take-out delivery information and target menu information provided by the data retrieval end;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the user request end.
7. A data retrieval device, comprising: a target retrieval request information obtaining unit for obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information for store-in service merchant information of the target dish, second retrieval request information for take-out delivery information of the target dish, and third retrieval request information for menu information of the target dish;
a target information obtaining unit, configured to respectively search for the store service provider information of the target dish, the takeout distribution information of the target dish, and the recipe information of the target dish according to the target search request information, and obtain target provider information, target takeout distribution information, and target recipe information;
and the target information providing unit is used for providing the target merchant information, the target take-out delivery information and the target menu information to the server.
8. An electronic device, comprising:
a processor;
a memory for storing a program for data retrieval, which when read and executed by the processor performs the following operations:
obtaining target retrieval request information from a server; the target retrieval request information includes: first retrieval request information for store-in service merchant information of the target dish, second retrieval request information for take-out delivery information of the target dish, and third retrieval request information for menu information of the target dish;
according to the target retrieval request information, retrieving aiming at the store-entering service merchant information of the target dish, the takeout delivery information of the target dish and the menu information of the target dish respectively to obtain target merchant information, target takeout delivery information and target menu information;
and providing the target merchant information, the target takeout and delivery information and the target menu information to the server.
9. A data output apparatus, comprising:
the information acquisition unit is used for acquiring target dish information and target position information;
an optional meal mode information output unit for outputting optional meal mode information matched with the target dish and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
the trigger instruction receiving unit is used for receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
the target information output unit is used for outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
10. An electronic device, comprising:
a processor;
a memory for storing a program of data output, which when read and executed by the processor, performs the following operations:
acquiring target dish information and target position information;
outputting optional meal mode information matched with the target dishes and the target position information; the selectable dining mode information comprises: store meal information, take-away meal information, and cooking meal information;
receiving a trigger instruction aiming at target dining mode information in the selectable dining mode information;
outputting target information corresponding to the target dining mode information according to the trigger instruction; the target information is one of store service merchant information of the target dish, take-out distribution information of the target dish and menu information of the target dish.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910941355.3A CN110851704A (en) | 2019-09-30 | 2019-09-30 | Multi-class service system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910941355.3A CN110851704A (en) | 2019-09-30 | 2019-09-30 | Multi-class service system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110851704A true CN110851704A (en) | 2020-02-28 |
Family
ID=69597522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910941355.3A Pending CN110851704A (en) | 2019-09-30 | 2019-09-30 | Multi-class service system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110851704A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112288532A (en) * | 2020-10-30 | 2021-01-29 | 广州富港万嘉智能科技有限公司 | Dish ordering method, computer-readable storage medium, server and intelligent dish ordering system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1432943A (en) * | 2002-01-17 | 2003-07-30 | 北京标杆网络技术有限公司 | Biaogan intelligent searching engine system |
CN101859424A (en) * | 2010-05-18 | 2010-10-13 | 上海购龙信息科技有限公司 | Method for realizing display of commodity purchasing comparison state information on mobile phone by Internet |
US20120226682A1 (en) * | 2011-01-14 | 2012-09-06 | Alibaba Group Holding Limited | Providing search information |
CN107451936A (en) * | 2017-08-08 | 2017-12-08 | 安顺弄潮儿互联网科技有限责任公司 | A kind of food and drink platform based on internet exploitation |
CN107918616A (en) * | 2016-10-09 | 2018-04-17 | 阿里巴巴集团控股有限公司 | Search system, page display method and client |
CN107977721A (en) * | 2017-11-14 | 2018-05-01 | 深圳市思迅软件股份有限公司 | Order processing method, apparatus, server and readable storage medium storing program for executing |
CN109242651A (en) * | 2018-11-05 | 2019-01-18 | 广州大学 | A kind of commodity intelligent recommendation System and method for based on Internet of Things search |
CN109643434A (en) * | 2016-08-31 | 2019-04-16 | 株式会社咕嘟妈咪 | Server, information providing method and information provision procedure |
CN109804402A (en) * | 2016-10-20 | 2019-05-24 | 株式会社咕嘟妈咪 | Information processing system, information processing method and the non-transient computer readable storage medium for storing program |
-
2019
- 2019-09-30 CN CN201910941355.3A patent/CN110851704A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1432943A (en) * | 2002-01-17 | 2003-07-30 | 北京标杆网络技术有限公司 | Biaogan intelligent searching engine system |
CN101859424A (en) * | 2010-05-18 | 2010-10-13 | 上海购龙信息科技有限公司 | Method for realizing display of commodity purchasing comparison state information on mobile phone by Internet |
US20120226682A1 (en) * | 2011-01-14 | 2012-09-06 | Alibaba Group Holding Limited | Providing search information |
CN109643434A (en) * | 2016-08-31 | 2019-04-16 | 株式会社咕嘟妈咪 | Server, information providing method and information provision procedure |
CN107918616A (en) * | 2016-10-09 | 2018-04-17 | 阿里巴巴集团控股有限公司 | Search system, page display method and client |
CN109804402A (en) * | 2016-10-20 | 2019-05-24 | 株式会社咕嘟妈咪 | Information processing system, information processing method and the non-transient computer readable storage medium for storing program |
CN107451936A (en) * | 2017-08-08 | 2017-12-08 | 安顺弄潮儿互联网科技有限责任公司 | A kind of food and drink platform based on internet exploitation |
CN107977721A (en) * | 2017-11-14 | 2018-05-01 | 深圳市思迅软件股份有限公司 | Order processing method, apparatus, server and readable storage medium storing program for executing |
CN109242651A (en) * | 2018-11-05 | 2019-01-18 | 广州大学 | A kind of commodity intelligent recommendation System and method for based on Internet of Things search |
Non-Patent Citations (1)
Title |
---|
王瑞民: "铁路12306互联网订餐平台设计与实现", 《铁路计算机应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112288532A (en) * | 2020-10-30 | 2021-01-29 | 广州富港万嘉智能科技有限公司 | Dish ordering method, computer-readable storage medium, server and intelligent dish ordering system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10163146B2 (en) | Method and system for displaying location based dining recommendation labels in a reduced image area of an interface | |
US9646318B2 (en) | Updating point of interest data using georeferenced transaction data | |
CN108009205B (en) | Search result caching method based on position, search method, client and system | |
CN107122376B (en) | Method and apparatus for map-based selection of query components | |
US10031923B2 (en) | Displaying region-based search results | |
US10289695B2 (en) | Computerized system and method for performing a location-based search | |
EP3292527A1 (en) | Device and method for targeted display of information | |
US20150187139A1 (en) | Apparatus and method of providing augmented reality | |
TWI690172B (en) | Information push method, location positioning method and equipment | |
WO2017080173A1 (en) | Nature information recognition-based push system and method and client | |
US20150371430A1 (en) | Identifying Imagery Views Using Geolocated Text | |
CN113706222B (en) | Store site selection method and device | |
WO2016202214A2 (en) | Method and device for displaying keyword | |
JP6637968B2 (en) | Guided data search | |
JP5054234B2 (en) | System and method for displaying search results based on density | |
CN111651628B (en) | Method and device for realizing business operation based on pictures | |
CN110837552A (en) | Diet information recommendation method and device | |
CN109670817B (en) | Data processing method and device | |
CN107220374B (en) | Search method, client, server and search device | |
CN110851704A (en) | Multi-class service system and method | |
CN110858231A (en) | Item recommendation method and device | |
KR101852766B1 (en) | Method and Apparatus for Searching Things for Sale | |
WO2016179346A1 (en) | Device and method for targeted display of information | |
CN106383841A (en) | Purchasing method and apparatus based on picture identification | |
CN111915679B (en) | Method, device and equipment for determining target point based on floor |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200228 |