public class SearchIndexerConfigurationBean extends AbstractSearchConfigurationBean implements SearchIndexerConfiguration
SearchIndexerConfiguration
as
JAXB-ready Java-Bean.Modifier and Type | Field and Description |
---|---|
private List<FilterRuleChain<String>> |
filters |
private String |
nonUtfEncoding |
private Map<String,SearchIndexerSourceBean> |
sourceMap |
private List<SearchIndexerSourceBean> |
sources |
private List<StringTransformerChain> |
transformers |
XML_ELEMENT_SOURCE, XML_ELEMENT_SOURCES
DEFAULT_CONFIGURATION_URL
Constructor and Description |
---|
SearchIndexerConfigurationBean()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<FilterRuleChain<String>> |
getFilters()
|
String |
getNonUtfEncoding()
If you are indexing
locations that
contain textual content with different encodings you can enable automatic
unicode detection by omitting the
SearchIndexerDataLocation.getEncoding() . |
SearchIndexerSourceBean |
getSource(String id)
This method gets the
SearchSource with the given ID . |
protected Map<String,SearchIndexerSourceBean> |
getSourceMap() |
Collection<? extends SearchIndexerSource> |
getSources()
This method gets the
Collection of sources . |
List<StringTransformerChain> |
getTransformers() |
void |
setFilters(List<FilterRuleChain<String>> filters)
This method sets the
filters . |
void |
setNonUtfEncoding(String nonUtfEncoding) |
void |
setSources(List<SearchIndexerSourceBean> sources) |
void |
setTransformers(List<StringTransformerChain> transformers) |
getFields, getProperties, getRawProperties, getSearchIndex, setFields, setProperties, setSearchIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFields, getProperties, getSearchIndex
private List<SearchIndexerSourceBean> sources
getSources()
private transient Map<String,SearchIndexerSourceBean> sourceMap
getSourceMap()
private List<FilterRuleChain<String>> filters
getFilters()
private List<StringTransformerChain> transformers
getTransformers()
private String nonUtfEncoding
getNonUtfEncoding()
public SearchIndexerConfigurationBean()
public Collection<? extends SearchIndexerSource> getSources()
SearchIndexerConfiguration
Collection
of sources
.getSources
in interface SearchConfiguration
getSources
in interface SearchIndexerConfiguration
public SearchIndexerSourceBean getSource(String id)
SearchSource
with the given ID
.getSource
in interface SearchConfiguration
getSource
in interface SearchIndexerConfiguration
id
- is the ID
of the requested SearchSource
.SearchSource
or null
if none is configured for the given
id
.public void setSources(List<SearchIndexerSourceBean> sources)
sources
- is the sources to setprotected Map<String,SearchIndexerSourceBean> getSourceMap()
public List<StringTransformerChain> getTransformers()
public void setTransformers(List<StringTransformerChain> transformers)
transformers
- is the transformers to setpublic String getNonUtfEncoding()
locations
that
contain textual content with different encodings you can enable automatic
unicode detection by omitting the
SearchIndexerDataLocation.getEncoding()
. In this case if a file has
an unspecified encoding, unicode encodings will be detected automatically.
Otherwise this non unicode decoding is used as fallback. If not explicitly
set, EncodingUtil.ENCODING_ISO_8859_15
is
used.getNonUtfEncoding
in interface SearchIndexerConfiguration
public void setNonUtfEncoding(String nonUtfEncoding)
nonUtfEncoding
- is the nonUtfEncoding to setpublic Collection<FilterRuleChain<String>> getFilters()
Collection
with the FilterRuleChain
s.SearchIndexerDataLocation.getFilter()
public void setFilters(List<FilterRuleChain<String>> filters)
filters
.filters
- is the list of FilterRuleChain
.Copyright © 2001–2016 mmm-Team. All rights reserved.