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

io.zulia.server.index.field.LongFieldIndexer Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
package io.zulia.server.index.field;

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

public class LongFieldIndexer extends NumericFieldIndexer {

	public static final LongFieldIndexer INSTANCE = new LongFieldIndexer();

	protected LongFieldIndexer() {

	}

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

	@Override
	protected Number parseString(String value) {
		return Long.parseLong(value);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy