org.hibernate.search.bridge
public interface FieldBridge
| Modifier and Type | Method and Description |
|---|---|
void |
set(String name,
Object value,
Document document,
LuceneOptions luceneOptions)
Manipulate the document to index the given value.
|
void set(String name, Object value, Document document, LuceneOptions luceneOptions)
name to document following
the parameters luceneOptions if the value is not null.
{code}
String fieldValue = convertToString(value);
luceneOptions.addFieldToDocument(name, fieldValue, document);
{code}name - The field to add to the Lucene documentvalue - The actual value to indexdocument - The Lucene document into which we want to index the value.luceneOptions - Contains the parameters used for adding value to
the Lucene document.Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved