public class SolrIndexCollection extends Object implements eu.dnetlib.functionality.index.IndexCollection
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_INDEX_OK
The Constant STATUS_INDEX_OK.
|
| Constructor and Description |
|---|
SolrIndexCollection(org.apache.solr.client.solrj.impl.CloudSolrClient newServer)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(eu.dnetlib.functionality.index.model.document.IndexDocument doc) |
boolean |
addAll(Collection<eu.dnetlib.functionality.index.model.document.IndexDocument> docs) |
boolean |
addAll(Iterator<eu.dnetlib.functionality.index.model.document.IndexDocument> docs) |
boolean |
commit() |
boolean |
deleteByQuery(String query,
String dsId) |
boolean |
deleteIndex(String dsId) |
protected boolean |
doDelete(String query)
Do delete.
|
boolean |
isShutdown() |
void |
setShutdown(boolean shutdown) |
void |
shutdown() |
public static final int STATUS_INDEX_OK
public SolrIndexCollection(org.apache.solr.client.solrj.impl.CloudSolrClient newServer)
newServer - the clientpublic boolean add(eu.dnetlib.functionality.index.model.document.IndexDocument doc)
throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
add in interface eu.dnetlib.functionality.index.IndexCollectioneu.dnetlib.data.provision.index.rmi.IndexServiceExceptionIndexCollection.add(eu.dnetlib.functionality.index.model.document.IndexDocument)public boolean addAll(Iterator<eu.dnetlib.functionality.index.model.document.IndexDocument> docs) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
addAll in interface eu.dnetlib.functionality.index.IndexCollectioneu.dnetlib.data.provision.index.rmi.IndexServiceExceptionIndexCollection.addAll(java.util.Iterator)public boolean addAll(Collection<eu.dnetlib.functionality.index.model.document.IndexDocument> docs) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
addAll in interface eu.dnetlib.functionality.index.IndexCollectioneu.dnetlib.data.provision.index.rmi.IndexServiceExceptionIndexCollection.addAll(java.util.Collection)public boolean deleteIndex(String dsId) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
deleteIndex in interface eu.dnetlib.functionality.index.IndexCollectioneu.dnetlib.data.provision.index.rmi.IndexServiceExceptionIndexCollection.deleteIndex(java.lang.String)public boolean deleteByQuery(String query, String dsId) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
deleteByQuery in interface eu.dnetlib.functionality.index.IndexCollectioneu.dnetlib.data.provision.index.rmi.IndexServiceExceptionIndexCollection.deleteByQuery(java.lang.String, java.lang.String)protected boolean doDelete(String query) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
query - the queryeu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionpublic boolean commit()
throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
commit in interface eu.dnetlib.functionality.index.IndexCollectioneu.dnetlib.data.provision.index.rmi.IndexServiceExceptionIndexCollection.commit()public void shutdown()
shutdown in interface eu.dnetlib.functionality.index.IndexCollectionpublic boolean isShutdown()
public void setShutdown(boolean shutdown)
Copyright © 2018. All rights reserved.