Whoa! First, you should really NOT be using sfloat (or pfloat) or any
of their variants unless you're waaay back on 1.4. Those were fine in
their time, but numeric types (float/tfloat and the rest) are vastly
preferred. Also more efficient in terms of CPU cycles and storage.

second, and assuming your problem is really that you're looking at the
_display_, you should get back exactly what you put in so I'm guessing
pilot error here.

But you need to provide more details, especially the Solr version and
how the output is displayed.

Best,
Erick

On Tue, Sep 16, 2014 at 5:15 PM, bbarani <bbar...@gmail.com> wrote:
> I have a requirement to preserve 0 after decimal point, currently with the
> below field type
>
>  <fieldType class="solr.SortableFloatField" name="sfloat" omitNorms="true"
> sortMissingLast="true"/>
>
> 27.50 is stripped as 27.5
> 27.00 is stripped as 27.0
> 27.90 is stripped as 29.9
>
> <float name="Price">27.5</float>
>
> I also tried using double but even then the 0's are getting stripped.
>
> <double name="Price">27.5</double>
>
> Input data:
>
> <field name="Price">27.50</field>
>
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-preserve-0-after-decimal-point-tp4159295.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to