> On Apr 21, 2015, at 4:07 PM, 寂寂 <44290...@qq.com> wrote: > > And I create the bucket type by myself: > > riak-admin bucket-type create video '{"props":{"search_index":"videos"}}' > riak-admin bucket-type activate vide > > > ------------------ Original ------------------ > From: "寂寂 ";<44290...@qq.com>; > Send time: Tuesday, Apr 21, 2015 9:49 PM > To: "riak-users"<riak-users@lists.basho.com>; > Subject: [Riak-Users]Why riak search only return 1 result every query,how to > return all results at once > > 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?
Hi there, Can you clarify how you are writing the values? Are you writing with a w=1 or using the defaults? Given the index delay on Riak Search, subsequent queries may return different values given on when you query and if you are using majority write quorums. When are you writing the values and how are you performing the writes? Thanks, Chris Christopher Meiklejohn Senior Software Engineer Basho Technologies, Inc. cmeiklej...@basho.com _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com