Riak Search. Ranges. Integer Analyzer Factory.

Vladimir Shapovalov shapovalov at gmail.com
Sun Aug 19 18:11:21 EDT 2012

Hi all,

Does anybody know, how to query integers with wildcards and ranges?
Currently I can get result with exact match only.

I've definded keynames with suffix *_int* (price_int).
I use integer_analyzer_factory:
        {dynamic_field, [
            {name, "*_int"},
            {type, integer},
            {analyzer_factory, {erlang, text_analyzers,

I use curl for:

$: curl --globoff -v "
TO 200]*" - no results.

$: curl --globoff -v "
q=price_int:20**" - no results.

But if I change query to "*q=price_int:200"* I get result as expected.

$: curl --globoff -v "
q=price_int:200*" - is available.

So there is definitelly a key with price:200 stored.

Could someone tell me what I'm doing wrong and how to deal with integers in
riak-context correctly?

Thanks a lot in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120820/12ffa7cc/attachment.html>

More information about the riak-users mailing list