public interface FieldMetadataCreationContext
Modifier and Type | Method and Description |
---|---|
FieldMetadataCreationContext |
field(String name,
FieldType type)
Adds a field to the list of all meta-data.
|
<T extends FieldMetadataCreationContext> |
mappedOn(Class<T> indexTechnology)
Gives access to properties that are specific to an indexing technology.
|
FieldMetadataCreationContext |
sortable(boolean sortable)
Marks the last added field as sortable.
|
FieldMetadataCreationContext field(String name, FieldType type)
name
- The name of the fieldtype
- The type of the field; The type of the field created in
FieldBridge.set(String, Object, org.apache.lucene.document.Document, org.hibernate.search.bridge.LuceneOptions)
must match the type declared for the field here.FieldMetadataCreationContext sortable(boolean sortable)
sortable
- whether the last added field is sortable or not.<T extends FieldMetadataCreationContext> T mappedOn(Class<T> indexTechnology)
indexTechnology
- the selected index technology.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved