Open ellenhp opened 2 years ago
Usually I'd put this kind of thing under AGPL or LGPL, but I guess here it doesn't matter much. I've added an MIT license, same license as tantivy. Let me know if you do anything interesting! ;)
I appreciate it! I'm exploring using it as a geocoding backend for Headway (demo) which is Apache 2.0. Considering how big the read chunks are, adding a little bit of noise to the byte ranges it requests could do a lot to obfuscate what the user is searching for, not to mention it would be much cheaper to host an index at scale with this compared to running a real geocoder. I think I'm close to having the demo up and running so we'll see what the latency characteristics are :)
Neat! I don't know what your requirements are (except for FTS i guess) but did you also look at sql.js-httpvfs (or similar)? It's less efficient for FTS than tantivy but SQLite is easier to build on and more popular, and might be useful since there seems to be some existing geocoding things for SQLite. Something related to spatialite in general or e.g. this: https://github.com/pelias/placeholder in particular.
Feel free to contact me if I can help any more.
I know this is just a demo but I'm wondering if you'd be willing to release it under a permissive license so others can mess around with it.