quickwit-oss / tantivy

Tantivy is a full-text search engine library inspired by Apache Lucene and written in Rust
MIT License
11.41k stars 627 forks source link

Add error handling for invalid CustomOrder in term aggregation #2435

Open PSeitz opened 1 month ago

PSeitz commented 1 month ago

We should fail if order contains more than one key

"order": {
      "avg_field": "desc",
      "_key": "desc"
}

or is an array with more than one entry, which is not supported currently

"order": [ { "avg_field": "desc" }, { "_key":"desc" } ] 

https://github.com/quickwit-oss/quickwit/issues/5120