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

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

There is a newer version: 0.52
Show newest version
package org.lumongo.server.index.field;

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

public class IntFieldIndexer extends NumericFieldIndexer {

	public static final IntFieldIndexer INSTANCE = new IntFieldIndexer();

	protected IntFieldIndexer() {

	}

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

	@Override
	protected Number parseString(String value) {
		return Integer.parseInt(value);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy