meilisearch/MeiliSearch

Change key actions to be bitflags

Open

#4.645 geöffnet am 21. Mai 2024

Auf GitHub ansehen
 (11 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (733 Forks)batch import
good first issuemaintenance

Repository-Metriken

Stars
 (20.887 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 3h) (37 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide