Riak Search 1.0 Bug - Inline Fields

Greg Pascale greg at clipboard.com
Thu Oct 6 18:16:58 EDT 2011


 Sounds good. Thanks for looking into this, Rusty.

-- 
Greg
Clipboard

On Thursday, October 6, 2011 at 2:34 PM, Rusty Klophaus wrote:

> Hi Greg,
> 
> Did some investigation into this issue. This is indeed a bug introduced in 1.0. 
> 
> Specifically, it affects filtering on inline fields when that field is also used in the search query. In other words, if your main search is on field "ctime" and the filter is on field "foo", then this bug is not triggered. 
> 
> This issue is tracked here: https://issues.basho.com/1240
> 
> There is no easy workaround, so your special cased search logic is probably the best route until this is fixed. 
> 
> Best,
> Rusty
> 
> 
> On Thu, Oct 6, 2011 at 3:21 PM, Greg Pascale <greg at clipboard.com (mailto:greg at clipboard.com)> wrote:
> > Anybody have any ideas on this one? I was able to deploy a workaround, but it involved some ugly special case logic in my search code. 
> > 
> > Also, the last example should say "crashes", not "times out". It returned with that error immediately. 
> > 
> > -- 
> > Greg
> > Clipboard
> > 
> > On Wednesday, October 5, 2011 at 11:31 AM, Greg Pascale wrote:
> > 
> > >  Hi, 
> > > 
> > > I have uncovered what I think has to be a bug with inline field searches in Riak 1.0. In short, it seems that there are issues when including a field in both the query and filter query. I have a query in production that used to work with 14.2 but no longer does with 1.0. 
> > > 
> > > I dove into the issue a bit and was able to come up with some simpler examples that illustrate what I'm seeing. I ran these on my dev box which only has about 15 items in the clips bucket, so I'm nowhere close to the results limit. ctime is a field with inline set to true. 
> > > 
> > > Example 1: Works
> > > 
> > > search-cmd search clips 'ctime:([98682333448080 TO 98682333448089])'
> > > 
> > >   :: Searching for 'ctime:([98682333448080 TO 98682333448089])' / '' in clips...
> > > 
> > > ------------------------------ 
> > > 
> > > index/id: clips/LR04QZTJS_wVDcb6
> > > <<"ctime">> -> <<"98682333448084">>
> > > p -> [0]
> > > <<"ctime">> -> [<<"98682333448084">>]
> > > <<"private">> -> [<<"0">>]
> > > score -> 0.0
> > > 
> > > ------------------------------
> > > 
> > > Example 2: Times out (should return 0 results) 
> > > 
> > > search-cmd search clips 'ctime:([98682333448080 TO 98682333448089])' 'ctime:(99999999999999)' :: Searching for 'ctime:([98682333448080 TO 98682333448089])' / 'ctime:(99999999999999)' in clips... ------------------------------ :: ERROR: timeout 
> > > 
> > > Example 3: Times out (should return 1 result)
> > > 
> > > search-cmd search clips 'ctime:(98682333448084)' 'ctime:(98682333448084)' 
> > > 
> > >  :: Searching for 'ctime:(98682333448084)' / 'ctime:(98682333448084)' in clips...
> > > 
> > > ------------------------------ 
> > > 
> > >  :: ERROR: {badarg,[{lists,member,[<<"98682333448084">>,<<"98682333448084">>]},
> > >                     {riak_search_inlines,passes_inlines_1,3},
> > >                     {lists,all,2},
> > >                         {mi_server,iterate,6},
> > >                         {mi_server,lookup,8}]}
> > > 
> > > 
> > > Thanks
> > > 
> > > -- 
> > > Greg
> > > Clipboard
> > 
> > 
> > _______________________________________________
> >  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
> > 
> 
> 
> 
> -- 
> Rusty Klophaus
> 
> Basho Technologies, Inc.
>  11921 Freedom Drive, Suite 550
> Reston, VA 20190
> www.basho.com (http://www.basho.com/) 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111006/12b2842a/attachment.html>


More information about the riak-users mailing list