Last active
August 29, 2015 13:57
-
-
Save l1x/9356415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#creating a new schema | |
# | |
curl -XPUT -d @sch_cities.xml -H "Content-Type: application/xml" \ | |
'http://10.0.3.81:10018/search/schema/sch_cities' | |
curl -XPUT -i "http://10.0.3.81:10018/search/index/idx_cities" \ | |
-H'content-type:application/json' \ | |
-d'{"schema":"sch_cities"}' | |
#creating a bucket-type - cities using the search index idx_cities | |
dev1/bin/riak-admin bucket-type create cities '{"props":{"search_index":"idx_cities","n_val":2}}' | |
dev1/bin/riak-admin bucket-type activate cities | |
curl -XPUT -d @0005579c-eefd-4754-b556-97f9397222ec.json -H "Content-Type: application/json" \ http://10.0.3.81:10018/types/cities/buckets/cities/keys/0005579c-eefd-4754-b556-97f9397222ec.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment