All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lumongo.server.index.field.DoubleFieldIndexer Maven / Gradle / Ivy

The newest version!
package org.lumongo.server.index.field;

import org.apache.lucene.document.DoublePoint;
import org.apache.lucene.document.Field;

public class DoubleFieldIndexer extends NumericFieldIndexer {

	public static final DoubleFieldIndexer INSTANCE = new DoubleFieldIndexer();

	protected DoubleFieldIndexer() {

	}

	@Override
	protected Field createField(Number o, String indexedFieldName) {
		return new DoublePoint(indexedFieldName, o.doubleValue());
	}

	@Override
	protected Number parseString(String value) {
		return Double.parseDouble(value);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy