public static class SolrArtifactIndexAdmin.SolrArtifactIndexReindex extends Object
| Constructor and Description |
|---|
SolrArtifactIndexReindex() |
| Modifier and Type | Method and Description |
|---|---|
static void |
reindexAllArtifacts(org.apache.solr.client.solrj.SolrClient solrClient)
Experimental.
|
static void |
reindexArtifactsForVersion(org.apache.solr.client.solrj.SolrClient solrClient,
int targetVersion)
Reindexes artifacts in a Solr core or collection for a specific version of the LOCKSS provided Solr configuration
set.
|
static void |
reindexArtifactsFrom1To2(org.apache.solr.client.solrj.SolrClient solrClient)
Performs a reindex (atomic update) of artifacts between LOCKSS configuration set version 1 to 2.
|
public static void reindexArtifactsForVersion(org.apache.solr.client.solrj.SolrClient solrClient,
int targetVersion)
throws org.apache.solr.client.solrj.SolrServerException,
SolrResponseErrorException,
IOException
Intended to be called by a loop over target versions. Does not iterative reindex operations up to target version!
solrClient - A SolrJ SolrCore implementation.targetVersion - A int representing the target version of the reindex operation.org.apache.solr.client.solrj.SolrServerExceptionSolrResponseErrorExceptionIOExceptionpublic static void reindexArtifactsFrom1To2(org.apache.solr.client.solrj.SolrClient solrClient)
throws IOException,
org.apache.solr.client.solrj.SolrServerException,
SolrResponseErrorException
Changes: * The collectionDate field type changed from a Trie-based 'long' to Point-based 'plong'. * Introduced a new sortUri field to influence correct sort order on an artifact's URI. This solution was chosen over a Java CollationField or ICUCollationField for operation and administrative simplicity.
solrClient - A SolrJ SolrCore implementation.IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionSolrResponseErrorExceptionpublic static void reindexAllArtifacts(org.apache.solr.client.solrj.SolrClient solrClient)
throws org.apache.solr.client.solrj.SolrServerException,
SolrResponseErrorException,
IOException
org.apache.solr.client.solrj.SolrServerExceptionSolrResponseErrorExceptionIOExceptionCopyright © 2000–2020 LOCKSS Program. All rights reserved.