public interface TwoWayFieldBridge extends FieldBridge, StringBridge
FieldBridge
able to convert the index representation back into an object without losing information.
Any bridge expected to process a document id should implement this interface.Modifier and Type | Method and Description |
---|---|
Object |
get(String name,
org.apache.lucene.document.Document document)
Build the element object from the
Document |
String |
objectToString(Object object)
Convert the object representation to a string.
|
set
Object get(String name, org.apache.lucene.document.Document document)
Document
name
- field namedocument
- documentString objectToString(Object object)
objectToString
in interface StringBridge
object
- The object to index.null
, but
can be empty.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.