Skip to content
/ mieli Public
forked from irevoire/mieli

A stupid wrapper around Meilisearch 🐻

License

Notifications You must be signed in to change notification settings

qdequele/mieli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mieli 🐻

Usage 🧸

mieli 0.1.8
A stupid wrapper around meilisearch

USAGE:
    mieli [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -a, --addr <addr>            The server address in the format of ip_addr:port (ex: http:https://0.0.0.0:7700) [env:
                                 MEILI_ADDR=]  [default: http:https://localhost:7700]
    -i, --index <index>          The name of the index [default: mieli]
        --interval <interval>    Interval between each status check (in milliseconds) [default: 200]
    -k, --key <key>              Your secret API key https://docs.meilisearch.com/reference/api/keys.html#get-keys [env:
                                 MEILI_MASTER_KEY=]  [default: ]

SUBCOMMANDS:
    add         Add documents with the `post` verb You can pipe your documents in the command
    delete      Delete documents. If no argument are specified all documents are deleted
    dump        Create a dump or get the status of a dump
    get         Get one document. If no argument are specified it returns all documents
    health      Do an healthcheck
    help        Prints this message or the help of the given subcommand(s)
    search      Do a search. You must pipe your parameter in the command as a json
    settings    Update the settings. You must pipe your parameter in the command as a json
    stats       Return the stats about the indexes
    status      Return the status of an update
    update      Replace documents with the `put` verb You can pipe your documents in the command
    version     Return the version of the running meilisearch instance

Get mieli on your system 🍯

cargo install mieli

Examples 🐝

Add documents

echo '[{ "id": 1, "content": "I love gaspacho" }]' | mieli -i cook add

Search

# placeholder
echo '{}' | mieli -i cook search
# simple search with query
echo '{ "q": "gaspacho" }' | mieli -i cook search

About

A stupid wrapper around Meilisearch 🐻

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%