public class LuceneDataField extends Property
SdxObject.ConfigurationNode| Modifier and Type | Field and Description |
|---|---|
static int |
DATE
Field type "date".
|
static int |
FIELD
Field type "field"
|
static java.lang.String |
FIELD_TYPE_DATE
String representation of the field type.
|
static java.lang.String |
FIELD_TYPE_FIELD
String representation of the field type.
|
static java.lang.String |
FIELD_TYPE_UNINDEXED
String representation of the field type.
|
static java.lang.String |
FIELD_TYPE_WORD
String representation of the field type.
|
protected int |
fieldType
Le type de champ dont il s'agit.
|
protected boolean |
inBrief
Indique s'il doit etre retourne dans la liste des resultats.
|
protected org.apache.lucene.document.Field.Store |
store |
static int |
UNINDEXED
Field type "unindexed".
|
static int |
WORD
Field type "word".
|
CLASS_NAME_SUFFIX, firstValue, name, values_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitializedDEFAULT_ENCODING| Constructor and Description |
|---|
LuceneDataField() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.document.Field |
getLuceneField(java.lang.String content)
Returns the Lucene field for the search field.
|
java.lang.String |
getTypeName()
Returns the type Name of the field.
|
void |
setFieldType(boolean store,
boolean index,
boolean token) |
void |
setFieldType(java.lang.String type)
Sets the type for this field
|
void |
setStore(boolean _store) |
addValue, attemptToSetFirstValue, containsValue, deleteValue, getClassNameSuffix, getName, getValue, getValues, initToSax, initVolatileObjectsToSax, resetValues, setName, setValuesconfigure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResourcesprotected int fieldType
protected boolean inBrief
protected org.apache.lucene.document.Field.Store store
public static final java.lang.String FIELD_TYPE_WORD
public static final java.lang.String FIELD_TYPE_FIELD
public static final java.lang.String FIELD_TYPE_DATE
public static final java.lang.String FIELD_TYPE_UNINDEXED
public static final int WORD
public static final int FIELD
public static final int DATE
public static final int UNINDEXED
public void setFieldType(java.lang.String type)
type - The field type as a string from our configuration object (element in app.xconf)public void setFieldType(boolean store,
boolean index,
boolean token)
public java.lang.String getTypeName()
public org.apache.lucene.document.Field getLuceneField(java.lang.String content)
content - The field's content.public void setStore(boolean _store)
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.