public interface SearchIndexerSource extends SearchSource
SearchSource
with configuration
required for the search-indexer.Modifier and Type | Field and Description |
---|---|
static String |
UPDATE_STRATEGY_LAST_MODIFIED
The
update-type for delta-updating via
date/time of the last modification of the resources to index. |
static String |
UPDATE_STRATEGY_NONE
The
update-type for no incremental updates. |
static String |
UPDATE_STRATEGY_VCS
The
update-type for delta-updating using a
version-control-system (VCS). |
ID_ANY
Modifier and Type | Method and Description |
---|---|
List<? extends SearchIndexerDataLocation> |
getLocations()
This method gets the
List of directories . |
String |
getUpdateStrategy()
This method gets the identifier of the strategy used for (incremental)
updates of this
SearchSource . |
getId, getTitle, getUrlPrefix
static final String UPDATE_STRATEGY_NONE
update-type
for no incremental updates. In
this case all entries for this source will always be removed and everything
is re-indexed from scratch.static final String UPDATE_STRATEGY_LAST_MODIFIED
update-type
for delta-updating via
date/time of the last modification of the resources to index.static final String UPDATE_STRATEGY_VCS
update-type
for delta-updating using a
version-control-system (VCS). update-strategy
requires that
the locations for this source are dedicated to the search-indexer and do
not get updated form outside of the search-indexer. The indexer will save
the revision (or date of update) of the working copy and can thereby detect
if this is the initial indexing or a delta-update should be performed. It
may also detect if the working copy was updated externally and a
delta-update is NOT possible. If you can not guarantee dedication of the
locations, simply use UPDATE_STRATEGY_LAST_MODIFIED
instead and
perform VCS updates in a wrapper script.
See SearchIndexDataLocation.getUpdateStrategyVariant()
for
further details.String getUpdateStrategy()
SearchSource
. This property is of interest for the
search-indexer and can be ignored for the search-engine (due to the lack of
full generic support in JAXB we decided NOT to move this method to a
sub-interface in the search-indexer-api). UPDATE_STRATEGY_LAST_MODIFIED
that
should work for all locations/resources that have a modification date.
Besides UPDATE_STRATEGY_NONE
there is also
UPDATE_STRATEGY_VCS
available.null
if no
delta-update-indexing shall be performed. Use one of the
UPDATE_TYPE_*
constants. The default implementation
uses maven-scm
as abstraction layer on VCS. In such
case this is the role-hint for the scm-provider.UPDATE_STRATEGY_LAST_MODIFIED
,
UPDATE_STRATEGY_VCS
,
UPDATE_STRATEGY_NONE
List<? extends SearchIndexerDataLocation> getLocations()
List
of directories
.List
of SearchIndexerDataLocation
.Copyright © 2001–2016 mmm-Team. All rights reserved.