|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.gouv.culture.sdx.search.lucene.Field
A field for indexing.
Field Summary | |
static int |
DATE
Field type "date". |
static int |
FIELD
Field type "field" |
static int |
UNINDEXED
Field type "unindexed". |
static int |
WORD
Field type "word". |
Constructor Summary | |
Field()
Constructor to satisfy needs of RMI and Serializable implementation |
Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configures the field |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Set's the logger for the field. |
Analyzer |
getAnalyzer()
Provides access to the analyzer for this field. |
java.lang.String |
getCode()
Returns the field's code (name) |
java.text.Collator |
getCollator()
Returns a collator for sorting this field. |
int |
getFieldType()
Returns the type of the field. |
java.util.Locale |
getLocale()
Provides access to the locale for this field. |
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. |
boolean |
isDefault()
Indicates if this field is defined as a default field. |
boolean |
isInBrief()
|
void |
setAnalyzer(Analyzer analyzer)
|
void |
setFieldType(java.lang.String type)
Sets the type for this field |
void |
setProperties(java.util.Hashtable props)
Sets the properties object. |
void |
setUp(java.util.Locale locale,
Analyzer analyzer,
java.lang.String analyzerClass,
java.lang.String analyzerConfFile)
Builds a field object with params |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WORD
public static final int FIELD
public static final int DATE
public static final int UNINDEXED
Constructor Detail |
public Field()
Method Detail |
public void setUp(java.util.Locale locale, Analyzer analyzer, java.lang.String analyzerClass, java.lang.String analyzerConfFile)
locale
- The locale to use as a default if none specified in the configurationanalyzer
- The default analyzer to use if none specified in the configurationanalyzerClass
- The fully qualified class name to use as a defaultanalyzerConfFile
- The anlayzer configuration file path to use as a defaultpublic void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
logger
- The logger to usepublic void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configuration
-
org.apache.avalon.framework.configuration.ConfigurationException
public Analyzer getAnalyzer()
public void setAnalyzer(Analyzer analyzer)
public java.lang.String getCode()
public org.apache.lucene.document.Field getLuceneField(java.lang.String content) throws SDXException
content
- The field's content.
SDXException
public boolean isDefault()
public int getFieldType()
public java.lang.String getTypeName()
public java.util.Locale getLocale()
public java.text.Collator getCollator()
public void setFieldType(java.lang.String type)
type
- The field type as a string from our configuration object (element in app.xconf)public void setProperties(java.util.Hashtable props)
props
- The properties objectpublic boolean isInBrief()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |