public interface Indexer
| Modifier and Type | Interface and Description |
|---|---|
static class |
Indexer.CommitType
Deprecated.
since 6.2, use
SolrSearchProvider.CommitType instead |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index,
Indexer.CommitType commitType)
Deprecated.
since 6.2, use
SolrSearchProvider.commit(Index, SolrSearchProvider.CommitType) instead |
Collection<SolrInputDocument> |
indexItems(Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Method send items to indexer.
|
Collection<SolrInputDocument> |
indexItems(Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Collection<IndexedProperty> indexedProperties)
Method send items to indexer.
|
void |
optimize(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index)
Deprecated.
since 6.2, use
SolrSearchProvider.optimize(Index) instead |
void |
removeAllItems(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index)
Deprecated.
since 6.2, use
SolrSearchProvider.deleteAllDocuments(Index) instead |
Collection<String> |
removeItems(Collection<ItemModel> items,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Deprecated.
since 6.3, use
SolrSearchProvider#deleteDocumentsByPK(Index, List) instead |
void |
removeItemsByPk(Collection<PK> pks,
FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index) |
void |
removeItemsByQuery(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index,
String query)
Deprecated.
since 6.2, use
SolrSearchProvider.deleteOldDocuments(Index, long) instead |
Collection<SolrInputDocument> indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, InterruptedException
items - items for send to indexer in one transactionfacetSearchConfig - configuration of facet searchindexedType - indexed type definitionIndexerException - if an error occurs during indexingInterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.Collection<SolrInputDocument> indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<IndexedProperty> indexedProperties) throws IndexerException, InterruptedException
items - items for send to indexer in one transactionfacetSearchConfig - configuration of facet searchindexedType - indexed type definitionindexedProperties - the properties to indexIndexerException - if an error occurs during indexingInterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.void removeItemsByPk(Collection<PK> pks, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException, InterruptedException
pks - - list of pks to be removedfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeInterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.IndexerException@Deprecated Collection<String> removeItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, InterruptedException
SolrSearchProvider#deleteDocumentsByPK(Index, List) insteaditems - items for send to indexer in one transactionfacetSearchConfig - configuration of facet searchindexedType - indexed type definitionIndexerException - if an error occurs during indexingInterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted
status of the current thread is cleared when this exception is thrown.@Deprecated void removeAllItems(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException
SolrSearchProvider.deleteAllDocuments(Index) insteadfacetSearchConfig - facet search configurationindexedType - indexed type definitionindex - indexIndexerException@Deprecated void removeItemsByQuery(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, String query) throws IndexerException
SolrSearchProvider.deleteOldDocuments(Index, long) insteadfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeindex - - the indexquery - - the raw queryIndexerException@Deprecated void commit(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, Indexer.CommitType commitType) throws IndexerException
SolrSearchProvider.commit(Index, SolrSearchProvider.CommitType) insteadfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeindex - - the indexcommitType - - the commit typeIndexerException - if an error occurs during the commit@Deprecated void optimize(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException
SolrSearchProvider.optimize(Index) insteadfacetSearchConfig - - the facet search configurationindexedType - - the indexed typeindex - - the indexIndexerException - if an error occurs during the commitCopyright © 2017 SAP SE. All Rights Reserved.