-
Notifications
You must be signed in to change notification settings - Fork 9
Command Line Client
Payam Meyer edited this page Apr 25, 2018
·
8 revisions
{
"cluster":true,
"serverAddress": "localhost",
"servicePort": 32191,
"restPort": 32192,
"dataPath": "/data/zulia/",
"clusterName": "zulia",
"mongoServers": [
{ "hostname": "localhost" }
]
}
bash zuliad --config config/zulia.properties addNode
bash zuliad --config config/zulia.properties removeNode
bash zuliad --config config/zulia.properties start
bash zulia getIndexes
bash zulia --index indexName getCurrentNodes
bash zulia --index indexName getCount
bash zulia --index indexName getFields
bash zulia --index indexName clear
bash zulia --index indexName delete
bash zulia --index indexName optimize
bash zulia --index indexName --q "title:water" --rows 10
query Queries the given index in --index argument.
Usage: query [options]
Options:
--facetCount
Number of facets to return.
Default: 10
--facetShardCount
Number of facets to return per shard.
Default: 40
--facets
List of fields to facet on.
--fetch
Fetch type (none, metadata, full)
Default: none
--fl
List of fields to return
--flMask
List of fields to mask
--fq
Filter query.
--indexes
Indexes to query, none to default to the required argument or
many.
--minimumNumberShouldMatch
Minimum number of optional boolean queries to match
--q
Zulia query, matches all docs by default.
--qf
Specific field(s) to search, index default if none given.
--rows
Number of records to return.
Default: 0
--sort
List of fields to sort on.
--sortDesc
List of fields to sort on in descending order.
--start
Results start index.
Default: 0