mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Switch to a JSON protocol for the front page
This commit is contained in:
parent
5caf523fd9
commit
802e925fd7
10 changed files with 53 additions and 80 deletions
|
@ -68,7 +68,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
|
|||
let mut wtr = csv::Writer::from_writer(io::stdout());
|
||||
wtr.write_record(&headers)?;
|
||||
for (_id, record) in documents {
|
||||
wtr.write_record(&record)?;
|
||||
wtr.write_record(record.iter().map(|(_, v)| v))?;
|
||||
}
|
||||
wtr.flush()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue