public interface SolrIndexUpdateService
| Modifier and Type | Method and Description |
|---|---|
org.apache.solr.common.SolrInputDocument |
buildDocument(Indexable indexable)
Provides an interface for a caller to convert an
Indexable into a SolrInputDocument. |
org.apache.solr.common.SolrInputDocument |
buildDocument(Indexable indexable,
List<IndexField> fields,
List<Locale> locales)
Provides an interface for a caller to convert an
Indexable into a SolrInputDocument. |
void |
rebuildIndex()
Default behavior is to truncate the background collection (offline index), populate it with documents,
commit, and then swap (re-alias) so that it becomes the foreground collection and the foreground collection becomes the background.
|
void |
updateIndex(List<org.apache.solr.common.SolrInputDocument> documents)
This is for relatively small, autonomous, incremental updates to the main (customer-facing) foreground Solr collection / index.
|
void |
updateIndex(List<org.apache.solr.common.SolrInputDocument> documents,
List<String> deleteQueries)
This is for relatively small, autonomous, incremental updates to the main (customer-facing) foreground Solr collection / index.
|
void rebuildIndex()
throws ServiceException
ServiceExceptionvoid updateIndex(List<org.apache.solr.common.SolrInputDocument> documents) throws ServiceException
documents - ServiceExceptionvoid updateIndex(List<org.apache.solr.common.SolrInputDocument> documents, List<String> deleteQueries) throws ServiceException
documents - deleteQueries - ServiceExceptionorg.apache.solr.common.SolrInputDocument buildDocument(Indexable indexable)
Indexable into a SolrInputDocument. This may return null if the implementor does not want
the specified Indexable indexed.indexable - org.apache.solr.common.SolrInputDocument buildDocument(Indexable indexable, List<IndexField> fields, List<Locale> locales)
Indexable into a SolrInputDocument. This may return null if the implementor does not want
the specified Indexable indexed.indexable - fields - locales - Copyright © 2026. All rights reserved.