public final class FieldFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canCreateTypedField(Type<?> type) |
static java.lang.Long |
dateToLong(java.lang.String date)
Date values are saved with sec resolution
|
static org.apache.lucene.document.Field |
newAncestorsField(java.lang.String path) |
static java.util.Collection<org.apache.lucene.document.Field> |
newBinSimilarityFields(java.lang.String name,
Blob value) |
static java.util.Collection<org.apache.lucene.document.Field> |
newBinSimilarityFields(java.lang.String name,
java.lang.String value) |
static org.apache.lucene.document.Field |
newDepthField(java.lang.String path) |
static org.apache.lucene.document.Field |
newFulltextField(java.lang.String value) |
static org.apache.lucene.document.Field |
newFulltextField(java.lang.String value,
boolean stored) |
static org.apache.lucene.document.Field |
newFulltextField(java.lang.String name,
java.lang.String value) |
static org.apache.lucene.document.Field |
newFulltextField(java.lang.String name,
java.lang.String value,
boolean stored) |
static org.apache.lucene.document.Field |
newPathField(java.lang.String path) |
static org.apache.lucene.document.Field |
newPropertyField(java.lang.String name,
java.lang.String value,
boolean tokenized,
boolean stored) |
static java.util.Collection<org.apache.lucene.document.Field> |
newSimilarityFields(java.lang.String name,
Blob value) |
static java.util.Collection<org.apache.lucene.document.Field> |
newSimilarityFields(java.lang.String name,
java.lang.String value) |
static org.apache.lucene.document.Field |
newSuggestField(java.lang.String... values) |
public static boolean canCreateTypedField(Type<?> type)
public static org.apache.lucene.document.Field newPathField(java.lang.String path)
public static org.apache.lucene.document.Field newPropertyField(java.lang.String name, java.lang.String value, boolean tokenized, boolean stored)
public static java.util.Collection<org.apache.lucene.document.Field> newSimilarityFields(java.lang.String name, Blob value) throws java.io.IOException
java.io.IOException
public static java.util.Collection<org.apache.lucene.document.Field> newBinSimilarityFields(java.lang.String name, Blob value) throws java.io.IOException
java.io.IOException
public static java.util.Collection<org.apache.lucene.document.Field> newSimilarityFields(java.lang.String name, java.lang.String value)
public static java.util.Collection<org.apache.lucene.document.Field> newBinSimilarityFields(java.lang.String name, java.lang.String value)
public static org.apache.lucene.document.Field newFulltextField(java.lang.String value)
public static org.apache.lucene.document.Field newFulltextField(java.lang.String name, java.lang.String value)
public static org.apache.lucene.document.Field newFulltextField(java.lang.String value, boolean stored)
public static org.apache.lucene.document.Field newFulltextField(java.lang.String name, java.lang.String value, boolean stored)
public static org.apache.lucene.document.Field newAncestorsField(java.lang.String path)
public static org.apache.lucene.document.Field newDepthField(java.lang.String path)
public static org.apache.lucene.document.Field newSuggestField(java.lang.String... values)
public static java.lang.Long dateToLong(java.lang.String date)
date
- jcr data stringCopyright © 2010 - 2020 Adobe. All Rights Reserved