public interface SearchIndexerDataLocation
data-location
that should be indexed by the indexer and is then available
for search via the SearchEngine
.Modifier and Type | Field and Description |
---|---|
static String |
UPDATE_STRATEGY_VCS_VARIANT_BAZAAR
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_CVS
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_GIT
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_MERCURIAL
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_PERFORCE
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_SVN
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_TFS
|
static String |
UPDATE_STRATEGY_VCS_VARIANT_VSS
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseUri()
This method gets the base-URI used to build the
search-entry-URI for the
location itself. |
String |
getEncoding()
This method gets the encoding of the resources in this location.
|
Filter<String> |
getFilter()
|
String |
getLocationUri()
This method gets the location (typically an URL) with the data that should
be part of the search index.
|
SearchIndexerSource |
getSource()
This method gets the
Source associated with
this directory. |
String |
getUpdateStrategyVariant()
This method determines the optional variant of the
update-strategy . |
Transformer<String> |
getUriTransformer()
This method gets the
Transformer used to
convert the (relative) URI of a
resource to the indexed
URI . |
boolean |
isAbsoluteUris()
This method determines if
search-entry-URIs should
be set to the absolute location . |
static final String UPDATE_STRATEGY_VCS_VARIANT_CVS
static final String UPDATE_STRATEGY_VCS_VARIANT_SVN
static final String UPDATE_STRATEGY_VCS_VARIANT_GIT
static final String UPDATE_STRATEGY_VCS_VARIANT_MERCURIAL
static final String UPDATE_STRATEGY_VCS_VARIANT_BAZAAR
static final String UPDATE_STRATEGY_VCS_VARIANT_PERFORCE
static final String UPDATE_STRATEGY_VCS_VARIANT_VSS
static final String UPDATE_STRATEGY_VCS_VARIANT_TFS
String getLocationUri()
filter
. String getBaseUri()
search-entry-URI
for the
location
itself. locations
of the same
source
you can use this attribute. E.g. when
source
is "svn"
and you
have one location
that
points
to where you checked out "trunk/documents"
of a subversion repository then the base-URI
may be
"documents"
. Analog you may also have another
location
with a base-URI
of "development/code"
. Therefore
SearchSource.getUrlPrefix()
may be something like
"http://svn.foo.bar/trunk/"
.boolean isAbsoluteUris()
search-entry-URIs
should
be set to the absolute location
. This can make
sense if you want to index a web-site via an HTTP-location
but also some related sites linked from there. In all other cases
this should be false
.true
if the absolute URIs should be stored in the
search-index, false
if the URIs should be relative to
location
with respect to the
base-URI
.getBaseUri()
SearchIndexerSource getSource()
Source
associated with
this directory.SearchIndexerSource
.String getEncoding()
null
for automatic
unicode detection.Filter<String> getFilter()
Filter
that decides which resource-URIs should
be accepted
for indexing. files
AND folders
.
If a folder is NOT accepted
then this entire
folder is NOT crawled any further and therefore its
children
are NOT indexed. All
files
that are crawled
and accepted
will be
added to the search-index
.Filter
.Transformer<String> getUriTransformer()
Transformer
used to
convert
the (relative) URI of a
resource to the indexed
URI
. By default the transformer will keep the URI untouched. However the
Transformer
can rewrite the URI if it differs from the path to
access the file online. E.g. the relevant files in the data directory of a
twiki/foswiki installation have the extension .txt while their URLs do NOT
contain this extension.Transformer
.String getUpdateStrategyVariant()
update-strategy
. update-strategy
of the according
SearchIndexerSource
is
SearchIndexerSource.UPDATE_STRATEGY_VCS
, then this variant can
determine the actual VCS to use (see
UPDATE_STRATEGY_VCS_VARIANT_*
constants like
UPDATE_STRATEGY_VCS_VARIANT_SVN
). However if not set (
null
) the VCS will be auto detected (by looking for folders
like .svn
, .hg
, .git
, etc.)update-strategy
or null
for default.Copyright © 2001–2016 mmm-Team. All rights reserved.