meilisearch/MeiliSearch

Change key actions to be bitflags

開放

#4,645 建立於 2024年5月21日

 (11 則留言) (0 個反應) (0 位負責人)Rust (2,542 個分叉)batch import
good first issuemaintenance

倉庫指標

星標
 (57,572 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently, the Meilisearch action keys are single numbers and therefore cannot be combined. It's not possible to OR them NOT them. I needed to do a basic documents.add | documents.delete for the edit documents by using a function feature.

We must use bitflags to define those actions and be able to combine them. We could have 32 or 64 different combinable actions. We already use this library in heed and it works very well.

貢獻者指南