Package org.hibernate.search.bridge
Class NullEncodingTwoWayFieldBridge
java.lang.Object
org.hibernate.search.bridge.NullEncodingTwoWayFieldBridge
- All Implemented Interfaces:
FieldBridge,TwoWayFieldBridge
-
Constructor Summary
ConstructorsConstructorDescriptionNullEncodingTwoWayFieldBridge(TwoWayFieldBridge fieldBridge, String nullMarker) -
Method Summary
Modifier and TypeMethodDescriptionBuild the element object from theDocumentobjectToString(Object object) Convert the object representation to a string.voidset(String name, Object value, Document document, LuceneOptions luceneOptions) Manipulate the document to index the given value.unwrap()
-
Constructor Details
-
NullEncodingTwoWayFieldBridge
-
-
Method Details
-
get
Description copied from interface:TwoWayFieldBridgeBuild the element object from theDocument- Specified by:
getin interfaceTwoWayFieldBridge- Parameters:
name- field namedocument- document- Returns:
- The return value is the entity property value.
-
objectToString
Description copied from interface:TwoWayFieldBridgeConvert the object representation to a string.- Specified by:
objectToStringin interfaceTwoWayFieldBridge- Parameters:
object- The object to index.- Returns:
- string (index) representation of the specified object. Must not be
null, but can be empty.
-
unwrap
-
set
Description copied from interface:FieldBridgeManipulate the document to index the given value. A common implementation is to add a Field with the givennametodocumentfollowing the parametersluceneOptionsif thevalueis notnull. {code} String fieldValue = convertToString(value); luceneOptions.addFieldToDocument(name, fieldValue, document); {code}- Specified by:
setin interfaceFieldBridge- Parameters:
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 addingvalueto the Lucene document.
-