Riak Search Schema Question

Alexander Sicular siculars at gmail.com
Sun Oct 26 00:50:25 EDT 2014


Haven't tried it out but should stats be an array?

And the query would be something like 

Stats_name = stat1 and stats_value > 1

I think the extractor flattens everything and separates with underscores. 

-Alexander 

@siculars
http://siculars.posthaven.com

Sent from my iRotaryPhone

> On Oct 25, 2014, at 22:53, Andrew Zeneski <andrew at andrewzeneski.com> wrote:
> 
> Hi All, I'm trying to determine if  a use case is supported by Yokozuna or not. 
> 
> With a stored value that looks like:
> 
> {"id": 1, "stats": { "name": "stat1", "value": 1 }, {"name": "stat2", "value": 5}}
> {"id": 2, "stats": { "name": "stat3", "value": 2 }, {"name": "stat1", "value": 3}}
> {"id": 3, "stats": { "name": "stat2", "value": 3 }, {"name": "stat3", "value": 1}}
> 
> I want to find those who have stat1 > 2. The result should be id 2.
> 
> I believe Solr 4.8 would handle this as a block-join, but I don't think Yokozuna supports this feature. My first thought was a custom extractor; are there other options I'm not seeing? 
> 
> Thanks!
> 
> Andrew
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list