Created
May 23, 2017 16:23
-
-
Save smarj/e9c9671dd3ecb5a4c7ecf6338a4cd3f5 to your computer and use it in GitHub Desktop.
Fill two Solr-indexed buckets with timestamps
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
#!/bin/bash | |
for bucket in $(seq -f "stest%g" 2 2); do | |
for key in $(seq -f "s2key%g" 1 10000); do | |
cdate=`date` | |
curl -XPUT ${RIAK}/types/solr/buckets/${bucket}/keys/${key} -H "Content-Type: application/json" -d "{\"name_s\":\"my${key}\", \"timestamp_s\":\"${cdate}\"}" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment