Search is returning 0 results

bufer bufer1 at yahoo.com
Fri Aug 17 19:46:39 EDT 2012


Search is returning 0 results, let me know if I am doing something bad. I
just installed riak and enabled search:  {riak_search, [{enabled, true}]}
then I inserted some registers (I am using ubuntu 11.04)

http://pastie.org/4541142

# My real data
# Options: id, name, value
# BJ1AJYRkX4D8hzsQ8jx7vBVeJFJ,version,private
# Mx6WGfY492iIQY0LXFcaA4EqCcv,version,private
# Z6j2afGJHlRvPbjulPGmsYJ5LGh,version,private
# Z8Q1FcBqpGb9fp97CRvia1TMbJq,version,private

############### My buckets
$ curl http://localhost:8098/riak?buckets=true
{"buckets":["options","_rsid_options"]}

############### Keys of options
$ curl -i http://localhost:8098/riak/options?keys=true
HTTP/1.1 200 OK
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
Link: </riak/options/Z8Q1FcBqpGb9fp97CRvia1TMbJq>; riaktag="contained",
</riak/options/BJ1AJYRkX4D8hzsQ8jx7vBVeJFJ>; riaktag="contained",
</riak/options/Mx6WGfY492iIQY0LXFcaA4EqCcv>; riaktag="contained",
</riak/options/Z6j2afGJHlRvPbjulPGmsYJ5LGh>; riaktag="contained"
Date: Fri, 17 Aug 2012 22:21:14 GMT
Content-Type: application/jsoni,version,private
Content-Length: 615

{"props":{"allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"dw":"quorum","last_write_wins":false,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"n_val":3,"name":"options","notfound_ok":true,"old_vclock":86400,"postcommit":[],"pr":0,"precommit":[{"mod":"riak_search_kv_hook","fun":"precommit"}],"pw":0,"r":"quorum","rw":"quorum","search":true,"small_vclock":50,"w":"quorum","young_vclock":20},"keys":["Z6j2afGJHlRvPbjulPGmsYJ5LGh","Mx6WGfY492iIQY0LXFcaA4EqCcv","BJ1AJYRkX4D8hzsQ8jx7vBVeJFJ","Z8Q1FcBqpGb9fp97CRvia1TMbJq"]}

############### get an specific item data
$ curl -i
http://127.0.0.1:8098/buckets/options/keys/Z8Q1FcBqpGb9fp97CRvia1TMbJq
HTTP/1.1 200 OK
X-Riak-Vclock: a85hYGBgzGDKBVIcypz/fgbo5gVmMCUy5rEyGEouOsmXBQA=
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
Link: </buckets/options>; rel="up"
Last-Modified: Fri, 17 Aug 2012 01:24:01 GMT
ETag: "1tnW2SLPFsub0IJL4bx92F"
Date: Fri, 17 Aug 2012 23:37:48 GMT
Content-Type: application/x-erlang-binary
Content-Length: 46

�lhdnamekversionhdvaluekprivatej

############### the search return 0 results:
fernando at ferhp ~/erlang/poc $ search-cmd search options "name:version"
Attempting to restart script through sudo -H -u riak

 :: Searching for 'name:version' / '' in options...

------------------------------

 :: Found 0 results.



--
View this message in context: http://riak-users.197444.n3.nabble.com/Search-is-returning-0-results-tp4025032.html
Sent from the Riak Users mailing list archive at Nabble.com.




More information about the riak-users mailing list