List of usage examples for org.apache.lucene.document FloatPoint encodeDimension
public static void encodeDimension(float value, byte dest[], int offset)
From source file:org.apache.solr.schema.FloatPointField.java
License:Apache License
@Override public void readableToIndexed(CharSequence val, BytesRefBuilder result) { result.grow(Float.BYTES);//from w w w .j a va 2s . c om result.setLength(Float.BYTES); FloatPoint.encodeDimension(Float.parseFloat(val.toString()), result.bytes(), 0); }