I want to get a geocoding system based on OSM data and Elasticsearch engine. I've tried some projects like komoot\photon, but, as I'm a really newbie in this, I stuck on preparing of the data for my area and many troubles with a Nominatim server.
I could be using the whole world dump of indices but it is too big data for me(about 56Gb space). However, I found out I can use just Elasticsearch from scratch and some tool such as ogr2ogr which provide a support of a files converting from shape to elasticsearch. So, I downloaded shapefiles from geofabrik and converted some of them to Elasticsearch.
What kind of shapefiles (points, roads, places...) should I import to Elasticsearch for organize simple geocoding?
I'm thinking of using it on my Leaflet HTML page.
And what kind of requests should be to work with Elasticsearch engine then?