Riak solr query range issue

tele tele at rhizomatica.org
Sun Aug 10 19:25:16 EDT 2014


I have a simple solr document like this:

<?xml version="1.0" ?>
		<field name="city">Oslo</field>
		<field name="name">Bob</field>
		<field name="age_int">34</field>

As "id" i use an email addr added to a 'users' index. 
I've defined age as Int field.

I can now query the index with:

# search-cmd search users "name:Bob"
 :: Searching for 'name:Bob' / '' in users...
index/id: users/foo at bar.org
p -> [0]
score -> 0.35355339059327373
 :: Found 1 results.

If i do search-cmd search users "age:34" 
It works. 

If i try the range 

search-cmd search users "age:[20 TO 40]"

It just gives me the Usage of "search-cmd" again without saying anything
like if the syntax is wrong.

Uing the HTTP solr interface basically is the same i get no results..

curl "http://localhost:8098/solr/users/select?q=age:%7B20 TO 50%7D"
curl: (52) Empty reply from server

curl 'http://localhost:8098/solr/users/select?q=age:{20 TO 50}'
curl: (52) Empty reply from server

What i am doing wrong? please note i have other data in the index

My riak version is 1.4.10



More information about the riak-users mailing list