Riak Search. Ranges. Integer Analyzer Factory.

Vladimir Shapovalov shapovalov at gmail.com
Mon Aug 20 12:29:37 EDT 2012


Hi Ryan,

Thank you, I didn't know that the data stays unchanged. Similar to 2i.

While executing curl request I get this record in crash.log:
------------------------------------------------------------------
2012-08-20 18:12:22 =CRASH REPORT====
  crasher:
    initial call: mochiweb_acceptor:init/3
    pid: <0.138.0>
    registered_name: []
    exception error: no case clause matching {ok,{http_error,"GET
/solr/my_index/select?q=price:[100 TO 200] HTTP/1.1\r\n"},<<>>}
      in function  mochiweb_http:request/3
      in call from proc_lib:init_p_do_apply/3
    ancestors: ['http_localhost:8098',riak_core_sup,<0.105.0>]
    messages: []
    links: [<0.136.0>,#Port<0.6518>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 24
    reductions: 533
  neighbours:
------------------------------------------------------------------


I've tried it on the command line with the no success:

$: /usr/sbin/search-cmd search my_index "price:[100 TO 200]"

In this case I'm getting only usage help from search-cmd tool. It looks the
syntax is wrong. But I followed the docu:
http://wiki.basho.com/Riak-Search---Querying.html#Range-Searches.

Please correct me, what I'm doing wrong?

Thanks
Vladimir

On Mon, Aug 20, 2012 at 4:25 PM, Ryan Zezeski <rzezeski at basho.com> wrote:

>
>
> On Mon, Aug 20, 2012 at 4:22 AM, Vladimir Shapovalov <shapovalov at gmail.com
> > wrote:
>
>> Hi Alexander,
>>
>> thanks for prompt reply.
>> Didn't work...
>> And the strings aren't padded in my case. I still have 100 or 200 as
>> values after insert.
>>
>> Thanks
>>  Vladimir
>>
>>
> Vladimir,
>
> Alexander is correct.  The integers are turned into binaries and 0 padded
> (with a default width of 10).  Note that the data itself is not padded,
> only the index entry.  The reason your queries aren't working is because
> you didn't url encode.  Also, you'll want to use single quotes around that
> url to avoid the shell interpreting the &.
>
> -Z
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120820/b34b0dd8/attachment.html>


More information about the riak-users mailing list