public final class DocumentBuilderHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
extractObjectFromFieldable(org.apache.lucene.index.IndexableField field)
Deprecated.
we should know the projection rules from the metadata rather than guess from the field properties
|
static String |
extractStringFromFieldable(org.apache.lucene.index.IndexableField field)
Deprecated.
we should know the projection rules from the metadata rather than guess from the field properties
|
static DocumentBuilderIndexedEntity |
getDocumentBuilder(String className,
ExtendedSearchIntegrator searchIntegrator) |
static Object[] |
getDocumentFields(DocumentBuilderIndexedEntity builderIndexedEntity,
org.apache.lucene.document.Document document,
String[] fields,
ConversionContext conversionContext) |
static Serializable |
getDocumentId(DocumentBuilderIndexedEntity builderIndexedEntity,
org.apache.lucene.document.Document document,
ConversionContext conversionContext) |
static int |
getFieldPosition(String[] fields,
String fieldName) |
static void |
populateResult(String fieldName,
FieldBridge fieldBridge,
Store store,
Object[] result,
org.apache.lucene.document.Document document,
ConversionContext conversionContext,
int matchingPosition) |
public static DocumentBuilderIndexedEntity getDocumentBuilder(String className, ExtendedSearchIntegrator searchIntegrator)
public static Serializable getDocumentId(DocumentBuilderIndexedEntity builderIndexedEntity, org.apache.lucene.document.Document document, ConversionContext conversionContext)
public static Object[] getDocumentFields(DocumentBuilderIndexedEntity builderIndexedEntity, org.apache.lucene.document.Document document, String[] fields, ConversionContext conversionContext)
public static void populateResult(String fieldName, FieldBridge fieldBridge, Store store, Object[] result, org.apache.lucene.document.Document document, ConversionContext conversionContext, int matchingPosition)
@Deprecated public static Object extractObjectFromFieldable(org.apache.lucene.index.IndexableField field)
field - the field@Deprecated public static String extractStringFromFieldable(org.apache.lucene.index.IndexableField field)
field - the field to decompressCopyright © 2006–2017 Hibernate. All rights reserved.