toshi-search / Toshi

A full-text search engine in rust
MIT License
4.18k stars 130 forks source link

API for listing existing indexes #789

Open prabhatsharma opened 3 years ago

prabhatsharma commented 3 years ago

I am looking to list the existing indexes that are available. Do we have an API endpoint for that?

Additional context I am building a Javascript front end UI for toshi. Once the UI is in a state to be released, we can have it as a companion to toshi.

hntd187 commented 3 years ago

Not currently, but it'd be very easy to add, a good first issue if someone wanted to learn a bit of rust.

prabhatsharma commented 3 years ago

Totally agree. It would be a good first issue. Rust is something that I intend to learn. This could take a couple of weeks though before I am able to learn and make a PR. I can build the UI much faster and have greater impact on the project if the API is available sooner. Here is a peek of what I am building (A kibana equivalent for Toshi). Let me know what you think about it?

joshi-1
prabhatsharma commented 3 years ago
about-joshi
hntd187 commented 3 years ago

Oh what a cute akita! This looks great, I'd love to see something like this be available, if you have interest as well I don't mind introducing it into the toshi-search org. It's up to you but it looks fantastic thanks for the effort.

hntd187 commented 3 years ago

I added a list endpoint, you can try it via

curl -X GET --location "http://localhost:8080/_list" -H "Content-Type: application/json"