using python client for search

Eric Moritz eric at
Fri Apr 1 09:02:19 EDT 2011

Hi Thomas,

This is beyond my understanding of the internal storage of Riak Search
indexes, but I don't think they're stored in any ordered way.

What I believe is happening under the covers when things are being
indexed is pointers to documents are created under specialized keys.
For instance if the word "automobile" is indexed for the "products"
index, there's an index document stored under something like:
products.automobile that points to the documents that have that value.

I may be completely wrong, but based on what I've read about Riak
Search, I don't believe there is a sort order internally to indexes.

On Fri, Apr 1, 2011 at 7:59 AM, Thomas Bikeev <thomas.bikeev at> wrote:
> Thanks, Eric - I got it eventually to work.
> I have follow-up questions (I am somewhat completely new to riak).
> Say I have stored a large number of records in a bucket that has been
> indexed in riaksearch. Records would have "updated" field, say
> 'updated': '2011-03-31T22:26:31', but they have been keyed into the bucket
> using some other ID.
> so since this bucket has search installed they ('updated' fields) have been
> indexed already using alpha-ascending sort internally.
> How can I retrieve only first 100 or so records (those that are most
> out-of-date)? I would not like to traverse the whole bunch in the map phase.
> Can I somehow explicitly state on which index field I'd like to be based? I
> guess I am trying to find out if riaksearch indexes could be used in the
> same way couchdb views are used. If there is already an index can I just
> access the tip of it?
> Thomas
> --
> Thomas Bikeev
> Sent with Sparrow
> On Thursday 31 March 2011 at 18:29, Eric Moritz wrote:
> The method is basically a shortcut to using the
> mapred_search erlang function as an input to a map/reduce query. You
> can sort, seek and limit in the reduce phase of that mapred query.
> An alternative is to use pysolr to talk to riak search.
> Eric.
> On Thu, Mar 31, 2011 at 11:15 AM, Thomas Bikeev <thomas.bikeev at>
> wrote:
> Hello,
> is it possible to use solr-type parameters: specifically start, rows and
> sort in python client?
> Thanks!
> --
> Thomas Bikeev
> Sent with Sparrow
> _______________________________________________
> riak-users mailing list
> riak-users at

More information about the riak-users mailing list