rinigus / geocoder-nlp

Geocoder library based on libpostal normalization of libosmscout generated database
MIT License
21 stars 1 forks source link

optimize search: skip primitive when possible #25

Closed rinigus closed 7 years ago

rinigus commented 7 years ago

if libpostal managed to parse the string into several hierarchies and we found a result, there is no need to use primitive parser search.

also, if libpostal and primitive parser both have not found any hierarchy, we don't need to repeat the same search

in general, have to record performed searches and skip the copies of them.