@ComponentSpecification public interface ResourceSearchIndexer
SearchIndexer. It can index| Modifier and Type | Method and Description | 
|---|---|
| MutableSearchEntry | createEntry(SearchIndexer indexer,
           DataResource resource,
           String resourceUri)This method creates a  MutableSearchEntryfor a singleDataResource. | 
| void | index(SearchIndexer indexer,
     DataResource resource,
     ChangeType changeType,
     SearchIndexerDataLocation location)This method indexes a single  DataResource. | 
| void | index(SearchIndexer indexer,
     DataResource resource,
     ChangeType changeType,
     SearchIndexerDataLocation location,
     EntryUpdateVisitor uriVisitor)This method indexes a single  DataResource. | 
| void | index(SearchIndexer indexer,
     DataResource resource,
     ChangeType changeType,
     SearchIndexerDataLocation location,
     EntryUpdateVisitor uriVisitor,
     DataResource locationFolder)This method indexes a single  DataResource. | 
| void | index(SearchIndexer indexer,
     DataResource resource,
     ChangeType changeType,
     SearchIndexerDataLocation location,
     EntryUpdateVisitor uriVisitor,
     DataResource locationFolder,
     String nonUtfEncoding)This method indexes a single  DataResource. | 
MutableSearchEntry createEntry(SearchIndexer indexer, DataResource resource, String resourceUri)
MutableSearchEntry for a single DataResource. It may be used for
 specific situations when the ConfiguredSearchIndexer is NOT suitable. You can
 add additional fields before
 adding it to the index. index the given resource.
 You have to do that manually after calling this method.indexer - is the SearchIndexer used for indexing.resource - is the DataResource to index.resourceUri - is the URI for the entry.MutableSearchEntry.void index(SearchIndexer indexer, DataResource resource, ChangeType changeType, SearchIndexerDataLocation location)
DataResource. resources, you should use
 index(SearchIndexer, DataResource, ChangeType, SearchIndexerDataLocation, EntryUpdateVisitor, DataResource)
 to avoid performance-overhead.indexer - is the SearchIndexer used for indexing.resource - is the DataResource to index.changeType - indicates the change for resource. In case of add
        it should be added, in case of
        update it should be updated and in case of remove it should be
        removed. The changeType can also be
        null to indicate that the resource was already indexed and remains
        untouched as it is not modified.location - is the SearchIndexerDataLocation where the resource comes from.void index(SearchIndexer indexer, DataResource resource, ChangeType changeType, SearchIndexerDataLocation location, EntryUpdateVisitor uriVisitor)
DataResource. resources, you should use
 index(SearchIndexer, DataResource, ChangeType, SearchIndexerDataLocation, EntryUpdateVisitor, DataResource)
 to avoid performance-overhead.indexer - is the SearchIndexer used for indexing.resource - is the DataResource to index.changeType - indicates the change for resource. In case of add
        it should be added, in case of
        update it should be updated and in case of remove it should be
        removed. The changeType can also be
        null to indicate that the resource was already indexed and remains
        untouched as it is not modified.location - is the SearchIndexerDataLocation where the resource comes from.uriVisitor - is the EntryUpdateVisitor.void index(SearchIndexer indexer, DataResource resource, ChangeType changeType, SearchIndexerDataLocation location, EntryUpdateVisitor uriVisitor, DataResource locationFolder)
DataResource.indexer - is the SearchIndexer used for indexing.resource - is the DataResource to index.changeType - indicates the change for resource. In case of add
        it should be added, in case of
        update it should be updated and in case of remove it should be
        removed. The changeType can also be
        null to indicate that the resource was already indexed and remains
        untouched as it is not modified.location - is the SearchIndexerDataLocation where the resource comes from.uriVisitor - is the EntryUpdateVisitor.locationFolder - is the DataResource for SearchIndexerDataLocation.getLocationUri().void index(SearchIndexer indexer, DataResource resource, ChangeType changeType, SearchIndexerDataLocation location, EntryUpdateVisitor uriVisitor, DataResource locationFolder, String nonUtfEncoding)
DataResource.indexer - is the SearchIndexer used for indexing.resource - is the DataResource to index.changeType - indicates the change for resource. In case of add
        it should be added, in case of
        update it should be updated and in case of remove it should be
        removed. The changeType can also be
        null to indicate that the resource was already indexed and remains
        untouched as it is not modified.location - is the SearchIndexerDataLocation where the resource comes from.uriVisitor - is the EntryUpdateVisitor.locationFolder - is the DataResource for SearchIndexerDataLocation.getLocationUri().nonUtfEncoding - is the
        non-UTF
        encoding.Copyright © 2001–2016 mmm-Team. All rights reserved.