public interface MetadataProvidingFieldBridge extends FieldBridge
FieldBridge
implementations wishing to expose meta-data related to the
fields they create.
Field bridges should implement this contract if they create field(s) with custom names and wish them to mark as sortable. The required doc value fields will be added by the Hibernate Search engine in that case. Otherwise users may not (efficiently) sort on such custom fields.
Modifier and Type | Method and Description |
---|---|
void |
configureFieldMetadata(String name,
FieldMetadataBuilder builder)
Allows this bridge to expose meta-data about the fields it creates.
|
set
void configureFieldMetadata(String name, FieldMetadataBuilder builder)
name
- The default field name; Should be used consistently with
FieldBridge.set(String, Object, org.apache.lucene.document.Document, LuceneOptions)
.builder
- Builder for exposing field-related meta-dataCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved