You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we have 4 administrative boundaries. State, District, Sub District, Village.
After project setup, master list for this can be found under server/geojson-data as PARSED_MASTER_LOCATION_NAMES.json which is derived from MASTER_LOCATION_NAMES.json.
We have an API that does fuzzy search on all levels, and returns the matches.
Right now the implementation is using Fuse, which is really slow. (implementation inside server/location.search.js
We need to benchmark the search with different algo(s) that uses trie data structure. Do some research on what provides us with best results.
we can use separate trie for each level (state, district, subDistrict, village) to store the respective names allowing independent searches at each level
Description
Right now we have 4 administrative boundaries. State, District, Sub District, Village.
After project setup, master list for this can be found under
server/geojson-data
asPARSED_MASTER_LOCATION_NAMES.json
which is derived fromMASTER_LOCATION_NAMES.json
.We have an API that does fuzzy search on all levels, and returns the matches.
Right now the implementation is using
Fuse
, which is really slow. (implementation insideserver/location.search.js
We need to benchmark the search with different algo(s) that uses trie data structure. Do some research on what provides us with best results.
References:
https://gist.github.com/smhanov/94230b422c2100ae4218
https://docs.rs/rsmorphy/latest/rsmorphy/dawg/index.html
https://johnresig.com/blog/javascript-trie-performance-analysis/
https://github.com/gotenxds/WordGraphs
The text was updated successfully, but these errors were encountered: