Help: Riak Search on Counters

2014-08-18 Thread Alex De la rosa
Hi there, Can somebody help me with Riak Search 2.0 on Counters? Imagine we have a counter called visitors to store how many people visits certain cities:

Re: Help: Riak Search on Counters

2014-08-18 Thread Sean Cribbs
Hi Alex, Bare counters become the counter field in the Solr index. For counts greater than 3 you might query with counter:[3 TO *]. Hope that helps! On Mon, Aug 18, 2014 at 8:01 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, Can somebody help me with Riak Search 2.0 on

Re: Help: Riak Search on Counters

2014-08-18 Thread Eric Redmond
Also note that you don't run enable_search for 2.0. On Aug 18, 2014, at 11:50 AM, Sean Cribbs s...@basho.com wrote: Hi Alex, Bare counters become the counter field in the Solr index. For counts greater than 3 you might query with counter:[3 TO *]. Hope that helps! On Mon, Aug 18,

Re: Help: Riak Search on Counters

2014-08-18 Thread Alex De la rosa
Hi Sean, Thank you for the counter field trick :) What id you don't know the max value and you want the top 5 cities? In your example you assume 3 or upper. Thanks! Alex On Monday, August 18, 2014, Sean Cribbs s...@basho.com wrote: Hi Alex, Bare counters become the counter field in the