atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Describing my dream API for search

Open joepio opened this issue 2 years ago • 0 comments

This issue will be moved to a different repository, atomic-data-rust people can ignore this

This goes out to @alexmikhalev, who's working on the Terraphim search engine. He wanted some thoughts on what I'd like to have as an API for integrating search. I'm currently using tantivy, and for me that was mostly a blast to work with. However,

  • Provide your service as a Rust API, without a mandatory HTTP layer. Similar to tantivy does this. This helps to prevent bugs, increase performance.
  • Don't require a hard limit for ranking, prefer to return an iterator.
  • Allow ranked, fuzzy search

My tantivy integration code for inspiration:

https://github.com/joepio/atomic-data-rust/blob/master/server/src/search.rs

https://github.com/joepio/atomic-data-rust/blob/master/server/src/handlers/search.rs

joepio avatar Mar 17 '22 09:03 joepio