Skip to main content

Search Import

Import documents into search index

Synopsis

Imports documents into the search index. Input is a stream or array of JSON documents to import.

tigris search import {index} {document}...|- [flags]

Examples


tigris search import --project=myproj users --create-index \
'[
{"id": 20, "name": "Jania McGrory"},
{"id": 21, "name": "Bunny Instone"}
]'

Options

  -a, --append                   Force append to existing index
--autogenerate strings Comma separated list of autogenerated fields (only top level keys supported)
-b, --batch-size int32 set batch size (default 100)
--cleanup-null-values Remove NULL values and empty arrays from the documents before importing (default true)
--csv-comment string CSV comment
--csv-delimiter string CSV delimiter
--csv-trim-leading-space Trim leading space in the fields (default true)
--detect-byte-arrays Try to detect byte arrays fields
--detect-integers Try to detect integer fields (default true)
--detect-times Try to detect date time fields (default true)
--detect-uuids Try to detect UUID fields (default true)
-h, --help help for import
-d, --inference-depth int32 Number of records in the beginning of the stream to detect field types. It's equal to batch size if not set
--no-create-index Do not create collection automatically if it doesn't exist
-p, --project string Specifies project: --project=my_proj1
--update-schema Update index schema from the new documents

SEE ALSO