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

org.hibernate.search.bridge.FieldBridge Maven / Gradle / Ivy

There is a newer version: 3.5.6-Final
Show newest version
//$Id: $
package org.hibernate.search.bridge;

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

/**
 * Link between a java property and a Lucene Document
 * Usually a Java property will be linked to a Document Field
 *
 * @author Emmanuel Bernard
 */
//TODO should show Field or document?
//document is nice since I can save an object into several fields
public interface FieldBridge {
	/**
	 * Manipulate the document to index the given value.
	 * A common implementation is to add a Field name to the given document following
	 * the parameters (store, index, boost) if the
	 * value is not null
	 */
	void set(String name, Object value, Document document, Field.Store store, Field.Index index, Float boost);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy