meilisearch/MeiliSearch

Change key actions to be bitflags

Aperta

#4645 aperta il 21 mag 2024

 (11 commenti) (0 reazioni) (0 assegnatari)Rust (2542 fork)batch import
good first issuemaintenance

Metriche repository

Star
 (57.572 stelle)
Metriche merge PR
 (Merge medio 11g 20h) (41 PR mergiate in 30 g)

Descrizione

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.

Guida contributor