package fr.openwide.core.jpa.search.bridge; import org.apache.lucene.document.Document; import org.hibernate.search.bridge.LuceneOptions; public class GenericEntityIdFieldBridge extends AbstractGenericEntityIdFieldBridge { @Override public void set(String name, Object value, Document document, LuceneOptions luceneOptions) { if (value == null) { return; } luceneOptions.addFieldToDocument(name, objectToString(value), document); } }