[Riak-Users]Why riak search only return 1 result every query, how to return all results at once

寂寂 44290016 at qq.com
Tue Apr 21 09:49:15 EDT 2015


Dear All,

I have many objects with the same "tag:hot" stored in Riak cluster with two nodes, all with "leveldb" backend.

When I try to search with the same query condition, I just got one result returned, and everytime with different result:
curl -v "http://192.168.1.102:10028/search/query/videos?wt=json&q=tag:hot"
{"responseHeader":{"status":0,"QTime":18,"params":{"shards":"127.0.0.1:10014/internal_solr/videos,127.0.0.1:10024/internal_solr/videos","q":"tag:hot","127.0.0.1:10014":"_yz_pn:64  OR (_yz_pn:61 AND (_yz_fpn:61)) OR _yz_pn:60 OR _yz_pn:57 OR _yz_pn:48  OR _yz_pn:45 OR _yz_pn:36 OR _yz_pn:33 OR _yz_pn:24 OR _yz_pn:21 OR  _yz_pn:12 OR _yz_pn:9","wt":"json","127.0.0.1:10024":"_yz_pn:54 OR  _yz_pn:51 OR _yz_pn:42 OR _yz_pn:39 OR _yz_pn:30 OR _yz_pn:27 OR  _yz_pn:18 OR _yz_pn:15 OR _yz_pn:6 OR  _yz_pn:3"}},"response":{"numFound":1,"start":0,"maxScore":0.71231794,"docs":[{"title":"Love   Story","code":"8vBcw6rJCS6D6til2u","_yz_id":"1*video*movie*8vBcw6rJCS6D6til2u*48","_yz_rk":"8vBcw6rJCS6D6til2u","_yz_rt":"video","_yz_rb":"movie"}]}}


curl -v "http://192.168.1.102:10028/search/query/videos?wt=json&q=tag:hot"
{"responseHeader":{"status":0,"QTime":14,"params":{"shards":"127.0.0.1:10014/internal_solr/videos,127.0.0.1:10024/internal_solr/videos","q":"tag:hot","127.0.0.1:10014":"(_yz_pn:60  AND (_yz_fpn:60)) OR _yz_pn:56 OR _yz_pn:53 OR _yz_pn:44 OR _yz_pn:41  OR _yz_pn:32 OR _yz_pn:29 OR _yz_pn:20 OR _yz_pn:17 OR _yz_pn:8 OR  _yz_pn:5","wt":"json","127.0.0.1:10024":"_yz_pn:63 OR _yz_pn:59 OR  _yz_pn:50 OR _yz_pn:47 OR _yz_pn:38 OR _yz_pn:35 OR _yz_pn:26 OR  _yz_pn:23 OR _yz_pn:14 OR _yz_pn:11 OR  _yz_pn:2"}},"response":{"numFound":1,"start":0,"maxScore":0.71231794,"docs":[{"title":"Forest   Gan","code":"8vBhSeP2Q2hCEEGmsC","_yz_id":"1*video*movie*8vBhSeP2Q2hCEEGmsC*20","_yz_rk":"8vBhSeP2Q2hCEEGmsC","_yz_rt":"video","_yz_rb":"movie"}]}}

How can I get all at once query?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150421/c9f27a01/attachment-0002.html>


More information about the riak-users mailing list