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

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

There is a newer version: 0.52
Show 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