|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.search.config.IndexSchemaField
public class IndexSchemaField
Each field in the search index is defined by a instance of
IndexSchemaField
. The schema definition will be loaded at startup
and the defined values will be set to instances of this class. Each
constructed field will be passed to an instance of
IndexSchema
.
IndexSchemaField contains all informations about how the content from incoming entries has to be extracted and how the actual content has to be index into the lucene index.
Each field will have a defined
ContentStrategy
which does
process the extraction of the field content from an incoming entry.
ContentStrategy
,
IndexSchema
Nested Class Summary | |
---|---|
static class |
IndexSchemaField.ContentType
Defines the ContentStrategy to use for a
IndexSchemaField to extract the content from the entry |
Field Summary | |
---|---|
static Field.Index |
DEFAULT_INDEX_STRATEGY
Default value for Field.Index |
static Field.Store |
DEFAULT_STORE_STRATEGY
Default value for Field.Store |
Constructor Summary | |
---|---|
IndexSchemaField()
Constructs a new SchemaField Default values: boost: 1.0 index: TOKENIZED store: NO |
Method Summary | |
---|---|
Class<? extends Analyzer> |
getAnalyzerClass()
|
float |
getBoost()
|
IndexSchemaField.ContentType |
getContentType()
|
Class<? extends ContentStrategy> |
getFieldClass()
|
Field.Index |
getIndex()
|
String |
getName()
|
String |
getPath()
|
Field.Store |
getStore()
|
String |
getTypePath()
|
void |
setAnalyzerClass(Class<? extends Analyzer> alanyzerClass)
|
void |
setBoost(float boost)
|
void |
setContentType(IndexSchemaField.ContentType type)
|
void |
setFieldClass(Class<? extends ContentStrategy> fieldClass)
Sets the class or strategy is used to extract this field Attention: this method set the contentTyp to IndexSchemaField.ContentType.CUSTOM |
void |
setIndex(Field.Index index)
|
void |
setIndexByName(String name)
Sets the Index class by simple name |
void |
setName(String name)
|
void |
setPath(String path)
|
void |
setStore(Field.Store store)
|
void |
setStoreByName(String name)
Sets the Store class by simple name |
void |
setType(String type)
Sets the content type of this field by the name of the enum type. |
void |
setTypePath(String typePath)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Field.Store DEFAULT_STORE_STRATEGY
Field
public static final Field.Index DEFAULT_INDEX_STRATEGY
Field
Constructor Detail |
---|
public IndexSchemaField()
Method Detail |
---|
public Class<? extends Analyzer> getAnalyzerClass()
public void setAnalyzerClass(Class<? extends Analyzer> alanyzerClass)
alanyzerClass
- The alanyzerClass to set.public Class<? extends ContentStrategy> getFieldClass()
public void setFieldClass(Class<? extends ContentStrategy> fieldClass)
IndexSchemaField.ContentType.CUSTOM
fieldClass
- The fieldClass to set.public Field.Index getIndex()
public void setIndex(Field.Index index)
index
- The index to set.public String getName()
public void setName(String name)
name
- The name to set.public String getPath()
public void setPath(String path)
path
- The path to set.public Field.Store getStore()
public void setStore(Field.Store store)
store
- The store to set.public IndexSchemaField.ContentType getContentType()
public void setContentType(IndexSchemaField.ContentType type)
type
- The type to set.public void setType(String type)
type
- -
type name as stringpublic float getBoost()
public void setBoost(float boost)
boost
- The boost to set.public String toString()
toString
in class Object
Object.toString()
public void setStoreByName(String name)
name
- -
one of yes, no, compresspublic void setIndexByName(String name)
name
- -
un_tokenized, tokenized, no, no_normspublic String getTypePath()
public void setTypePath(String typePath)
typePath
- The typePath to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |