public final class DocumentBuilderHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
extractObjectFromFieldable(IndexableField field)
Deprecated.
we should know the projection rules from the metadata rather than guess from the field properties
|
static String |
extractStringFromFieldable(IndexableField field)
Deprecated.
we should know the projection rules from the metadata rather than guess from the field properties
|
static Class<?> |
getDocumentClass(String className,
ServiceManager serviceManager) |
static Object[] |
getDocumentFields(ExtendedSearchIntegrator extendedIntegrator,
Class<?> clazz,
Document document,
String[] fields,
ConversionContext conversionContext) |
static Serializable |
getDocumentId(ExtendedSearchIntegrator extendedIntegrator,
Class<?> clazz,
Document document,
ConversionContext conversionContext) |
static String |
getDocumentIdName(ExtendedSearchIntegrator extendedIntegrator,
Class<?> clazz) |
static int |
getFieldPosition(String[] fields,
String fieldName) |
static void |
populateResult(String fieldName,
FieldBridge fieldBridge,
Store store,
Object[] result,
Document document,
ConversionContext conversionContext,
int matchingPosition) |
public static Class<?> getDocumentClass(String className, ServiceManager serviceManager)
public static Serializable getDocumentId(ExtendedSearchIntegrator extendedIntegrator, Class<?> clazz, Document document, ConversionContext conversionContext)
public static String getDocumentIdName(ExtendedSearchIntegrator extendedIntegrator, Class<?> clazz)
public static Object[] getDocumentFields(ExtendedSearchIntegrator extendedIntegrator, Class<?> clazz, Document document, String[] fields, ConversionContext conversionContext)
public static void populateResult(String fieldName, FieldBridge fieldBridge, Store store, Object[] result, Document document, ConversionContext conversionContext, int matchingPosition)
@Deprecated public static Object extractObjectFromFieldable(IndexableField field)
field
- the field@Deprecated public static String extractStringFromFieldable(IndexableField field)
field
- the field to decompressCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved