I've been using Riak for about a month now and I just found out about finding Riak. So I installed it and inserted a very simple json document for testing.
Here is the command I used:
curl -X PUT http://127.0.0.1:8098/riak/json/test -H "Content-Type: application/json" -d @test.json
where test.json ...
{
"firstName": "John",
"lastName": "Smith"
}
So according to https://wiki.basho.com/display/RIAK/Riak+Search+-+Indexing+and+Querying+Riak+KV+Data
if I turned on KV search in this bucket, then when I insert json- document, keys are automatically indexed.
I tried to search using the search utility. I tried
/search-cmd search firstName "John"
/search-cmd search "firstName:John"
I even tried curl cmd.
http://127.0.0.1:8098/solr/json/select?q=firstName:John
but I get 0 results for all of them. what am I doing wrong?
source
share