Riak Search and Sorting

Jeremiah Peschka jeremiah.peschka at gmail.com
Thu Jul 18 10:23:27 EDT 2013


AH HA! And you have now saved me from going crazy trying to track down
strange collection related behavior.

Ryan Zezeski, you're my hero.

---
Jeremiah Peschka - Founder, Brent Ozar Unlimited
MCITP: SQL Server 2008, MVP
Cloudera Certified Developer for Apache Hadoop


On Thu, Jul 18, 2013 at 7:20 AM, Ryan Zezeski <rzezeski at basho.com> wrote:

> Jeremiah,
>
> Sorting is broken in protobuffs currently.  Unfortunately the fix got lost
> in the cracks.
>
> https://github.com/basho/riak_search/pull/136
>
> -Z
>
>
> On Thu, Jul 18, 2013 at 10:11 AM, Jeremiah Peschka <
> jeremiah.peschka at gmail.com> wrote:
>
>> I just confirmed that today I'm getting the correct sorting in the
>> browser but not in CorrugatedIron. I'm about to start in on a day of
>> working with a client. Will verify this afternoon.
>>
>> ---
>> Jeremiah Peschka - Founder, Brent Ozar Unlimited
>> MCITP: SQL Server 2008, MVP
>> Cloudera Certified Developer for Apache Hadoop
>>
>>
>> On Thu, Jul 18, 2013 at 6:55 AM, Ryan Zezeski <rzezeski at basho.com> wrote:
>>
>>> Jeremiah,
>>>
>>> After a quick glance I don't see anything obvious in the code.  I notice
>>> you have a presort defined.  By any chance, if you remove the presort, do
>>> you get a correct sorting on the creation_dt field?
>>>
>>> -Z
>>>
>>>
>>> On Wed, Jul 17, 2013 at 5:30 PM, Jeremiah Peschka <
>>> jeremiah.peschka at gmail.com> wrote:
>>>
>>>> I'm attempting to sort data with Riak Search and have run into a
>>>> distinct lack of sorting.
>>>>
>>>> When using curl (The Fullest Featurest Riak Client EVAR™), I query the
>>>> following URL:
>>>> http://localhost:10038/solr/posts/select?q=title_txt:google&presort=key&sort=creation_dt&rows=500
>>>>
>>>> Being aware that results are sorted AFTER filtering on the server side,
>>>> I adjusted my query to accept too many rows: there are 335 rows that meet
>>>> my query criteria. However, Riak Search returns 10 sorted by some random
>>>> criteria that I'm not aware of (it's not score, that's for sure).
>>>>
>>>> Is this behavior expected? Is there something that I've missed in my
>>>> query?
>>>>
>>>> ---
>>>> Jeremiah Peschka - Founder, Brent Ozar Unlimited
>>>> MCITP: SQL Server 2008, MVP
>>>> Cloudera Certified Developer for Apache Hadoop
>>>>
>>>> _______________________________________________
>>>> riak-users mailing list
>>>> riak-users at 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/20130718/d7b45343/attachment.html>


More information about the riak-users mailing list