lucene - Increment decimal position in Solr -


making field "float" fieldtype converts source data 50 50.0 in response.

is there way make 50.00 tweaks in schema??

this responsibility better handled in display layer in response solr (and far know, can't define round operation performed when value retrieved). floating point values inherently non-exact, different number 50.0 end 48.99999999999997, etc. precision changes depending on how large numbers are.

perform rounding in display layer before displaying values user.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -