Riak Search 2.0 - CRDT Sets within Maps not returned in search results

Zeeshan Lakhani zlakhani at basho.com
Wed Jan 27 15:42:28 EST 2016


Yep, it was changed in latest versions of 2.0 and 2.1. 

Zeeshan Lakhani
programmer | 
software engineer at @basho | 
org. member/founder of @papers_we_love | paperswelove.org
twitter => @zeeshanlakhani

> On Jan 27, 2016, at 3:19 PM, Weixi Yen <weixi at spacechatapp.com> wrote:
> 
> Just FYI, I'm actually running 2.1.0 version of Riak KV and the default schema is showing stored=false.  2.1.0-0-g6e88b24 to be specific on ubuntu.
> 
> On OSX it's the same issue as well for 2.1.1
> http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.1/osx/10.8/riak-2.1.1-OSX-x86_64.tar.gz <http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.1/osx/10.8/riak-2.1.1-OSX-x86_64.tar.gz>
> 
> It seems that 2.1.3 has stored=true though.
> 
> 
> On Wed, Jan 27, 2016 at 11:47 AM, Weixi Yen <weixi at spacechatapp.com <mailto:weixi at spacechatapp.com>> wrote:
> Awesome, that's what I was looking for, thank you!
> 
> On Wed, Jan 27, 2016 at 11:40 AM, Zeeshan Lakhani <zlakhani at basho.com <mailto:zlakhani at basho.com>> wrote:
> Weixi,
> 
> Are you using 2.0.0 or another 2.0.* version?
> 
> If you look at https://github.com/basho/yokozuna/blob/2.0.0/priv/default_schema.xml#L104 <https://github.com/basho/yokozuna/blob/2.0.0/priv/default_schema.xml#L104>, sets are not stored in the default schema, as they can get large. They’re indexed for search, but will not return in the result-set. In 2.0.7 and in 2.1.3, the default schema was changed to store them. If you modify the existing default schema you have (stored=true), reload the schema, and reindex, you’ll see the results.
> 
> Thanks.
> 
> Zeeshan Lakhani
> programmer | 
> software engineer at @basho | 
> org. member/founder of @papers_we_love | paperswelove.org <http://paperswelove.org/>
> twitter => @zeeshanlakhani
> 
>> On Jan 27, 2016, at 2:34 PM, Weixi Yen <weixi at spacechatapp.com <mailto:weixi at spacechatapp.com>> wrote:
>> 
>> I have a CRDT Map bucket that I'm running searches on in Yokozuna (using _yz_default index for now)
>> 
>> However, the search results do not return any fields of the map that are CRDT sets.  Is this intended behavior?
>> 
>> Thanks in advance!
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com <mailto:riak-users at lists.basho.com>
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com <http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com>
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160127/8817ddee/attachment-0002.html>


More information about the riak-users mailing list