bayard-cli set

DESCRIPTION

Set document to index server

USAGE

bayard-cli set [OPTIONS] [ARGS]

FLAGS

  • -h, --help
         Prints help information.

  • -v, --version
         Prints version information.

OPTIONS

  • -s, --server <IP:PORT>
         Index service address. [default: 127.0.0.1:5000]

ARGS

  • <ID>
         A unique ID that identifies the document in the index server.

  • <FIELDS>
         Fields of document to be indexed.

EXAMPLES

To put a document:

$ cat ./examples/doc_1.json | xargs -0 bayard-cli set 1