Riak solr query range issue

tele tele at rhizomatica.org
Tue Aug 19 01:59:46 EDT 2014


Hi,

Yes thanks! Yokozuna is a game changer. 
You guys did a really great job with this integration.

Especially i like that i can define my own schema and also use solr
spatial/geospatial searches. 
No more calculations on application side :)

:tele

On Mon, 11 Aug 2014 09:11:38 -0700
Eric Redmond <eredmond at basho.com> wrote:

> Glad that works for you. Saves me from having to suggest you use
> 2.0 :)
> 
> Eric
> 
> 
> On Aug 10, 2014, at 4:25 PM, tele <tele at rhizomatica.org> wrote:
> 
> > Hi,
> > 
> > I have a simple solr document like this:
> > 
> > <?xml version="1.0" ?>
> > <add>
> > 	<doc>
> > 		<field name="city">Oslo</field>
> > 		<field name="name">Bob</field>
> > 		<field name="age_int">34</field>
> > 	</doc>
> > </add>
> > 
> > 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
> > 
> > Thanks
> > 
> > :tele
> > 
> > _______________________________________________
> > riak-users mailing list
> > riak-users at lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 





More information about the riak-users mailing list