Package eu.dnetlib.app.directindex.solr
Class SolrIndexClient
java.lang.Object
eu.dnetlib.app.directindex.solr.SolrIndexClient
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.response.UpdateResponseaddRecord(org.apache.solr.common.SolrInputDocument record, boolean commit) voidclose()voidcommit()org.apache.solr.client.solrj.response.UpdateResponsedeleteRecord(String id, boolean commit) booleanexistsRecord(String id) eu.dnetlib.dhp.schema.solr.SolrRecordfindRecord(String id)
-
Constructor Details
-
SolrIndexClient
public SolrIndexClient(org.apache.solr.client.solrj.SolrClient solrClient)
-
-
Method Details
-
commit
- Throws:
DirectIndexApiException
-
addRecord
public org.apache.solr.client.solrj.response.UpdateResponse addRecord(org.apache.solr.common.SolrInputDocument record, boolean commit) throws Exception - Throws:
Exception
-
deleteRecord
public org.apache.solr.client.solrj.response.UpdateResponse deleteRecord(String id, boolean commit) throws DirectIndexApiException - Throws:
DirectIndexApiException
-
findRecord
- Throws:
DirectIndexApiException
-
existsRecord
- Throws:
DirectIndexApiException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-