Re: Faceted range based on float within velocity not working properly

2012-03-25 Thread Erick Erickson
Marcelo: Take a look at: http://wiki.apache.org/solr/HowToContribute But the short form is to go ahead and open up a JIRA, and attach a patch. The easiest way to create a patch is to execute "svn diff > SOLR-.patch" at the top level (i.e. from the directory that contains "lucene", "solr", "mo

Re: Faceted range based on float within velocity not working properly

2012-03-24 Thread Marcelo Carvalho Fernandes
Just to let you know that there can't have any spaces in the begining of a line code. That leads us to... #macro(range_get_to_value $inval, $gapval) #if(${gapval.class.name} == "java.lang.String") $inval$gapval## #elseif(${gapval.class.name} == "java.lang.Float" || ${inval.class.name} == "java.la

Re: Faceted range based on float within velocity not working properly

2012-03-24 Thread Marcelo Carvalho Fernandes
Hi all! I have just solved the problem but I'm not sure if that would be nice to commit to Solr repository. How do I go about having this patch approved? The changed file is VM_global_library.vm and the changed code is highlighted as yellow in the following.. #macro(range_get_to_value $inval, $g

Re: Faceted range based on float within velocity not working properly

2012-03-23 Thread Marcelo Carvalho Fernandes
I went deeper in the problem and discovered that... $math.toInteger("10.1") returns 101 $math.toInteger("10,1") returns 10 Although I'm using Strings in the previous examples, I have a Float variable from Solr. I'm not sure if it is just a Solr problem, just a Velocity problema or somewhere betw