January 2018
Intermediate to advanced
336 pages
7h 56m
English
The Lookup microservice uses Elasticsearch as the local database to store all the events that are denormalized across databases maintained by Consumer, Provider, Service and Order microservices. Elasticsearch provides sub-second response for the search queries and also supports geolocation-based queries. It also supports aggregation and analytics out of the box to generate various reports for the Helping Hands application. Here is a mapping for the Elasticsearch index that is required for the Lookup service:
| Field | Type | Mapping | Analyzer | Description |
| oid | string | - | keyword | Order ID |
| cid | string | - | keyword | Used for consumer ID |
| pid | string | - | keyword | Used for service provider ID |
| sid | string | - | keyword | Used for ... |
Read now
Unlock full access