public interface LuceneIndexFieldTypeFactory extends IndexFieldTypeFactory
| Modifier and Type | Method and Description |
|---|---|
default <F> IndexFieldTypeFinalStep<F> |
asNative(Class<F> valueType,
LuceneFieldContributor<F> fieldContributor)
Define a native field type on which projection is not allowed.
|
<F> IndexFieldTypeFinalStep<F> |
asNative(Class<F> valueType,
LuceneFieldContributor<F> fieldContributor,
LuceneFieldValueExtractor<F> fieldValueExtractor)
Define a native field type.
|
as, asBigDecimal, asBigInteger, asBoolean, asByte, asDouble, asFloat, asGeoPoint, asInstant, asInteger, asLocalDate, asLocalDateTime, asLocalTime, asLong, asMonthDay, asOffsetDateTime, asOffsetTime, asShort, asString, asYear, asYearMonth, asZonedDateTime, extension<F> IndexFieldTypeFinalStep<F> asNative(Class<F> valueType, LuceneFieldContributor<F> fieldContributor, LuceneFieldValueExtractor<F> fieldValueExtractor)
A native field type has the following characteristics:
field contributor.
This contributor will translate the value into IndexableField instances
which will be added to the document.LuceneSearchPredicateFactory.fromLuceneQuery(Query)
or LuceneSearchSortFactory.fromLuceneSort(Sort)fieldValueExtractor is non-null.
When projecting, the value extractor will be passed the IndexableField
and will return the corresponding projected value of type F.F - The type of the value.valueType - The type of the value.fieldContributor - The field contributor.fieldValueExtractor - The field value extractor used when projecting on this field.default <F> IndexFieldTypeFinalStep<F> asNative(Class<F> valueType, LuceneFieldContributor<F> fieldContributor)
See asNative(Class, LuceneFieldContributor, LuceneFieldValueExtractor).
F - The type of the value.valueType - The type of the value.fieldContributor - The field contributor.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.