public class MetacatSolrIndex
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MetacatSolrIndex |
getInstance() |
java.io.InputStream |
query(org.apache.solr.common.params.SolrParams solrParams,
java.util.Set<org.dataone.service.types.v1.Subject> authorizedSubjects,
boolean isMNadmin)
Handle the query when the query is on the key/value format
|
java.io.InputStream |
query(java.lang.String query,
java.util.Set<org.dataone.service.types.v1.Subject> authorizedSubjects,
boolean isMNadmin)
Query the solr server
|
void |
submit(org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v2.SystemMetadata systemMetadata,
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> fields,
boolean followRevisions) |
void |
submitDeleteTask(org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v2.SystemMetadata sysMeta)
Submit a deleting-index task
|
public static MetacatSolrIndex getInstance() throws java.lang.Exception
java.lang.Exception
public java.io.InputStream query(java.lang.String query, java.util.Set<org.dataone.service.types.v1.Subject> authorizedSubjects, boolean isMNadmin) throws org.apache.solr.client.solrj.SolrServerException, java.io.IOException, edu.ucsb.nceas.utilities.PropertyNotFoundException, java.sql.SQLException, java.lang.ClassNotFoundException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.UnsupportedType
query
- the solr queryauthorizedSubjects
- the authorized subjects in this query sessionisMNadmin
- the indicator of the authorized subjects are the mn admin or notorg.apache.solr.client.solrj.SolrServerException
java.lang.ClassNotFoundException
java.sql.SQLException
edu.ucsb.nceas.utilities.PropertyNotFoundException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
org.dataone.service.exceptions.UnsupportedType
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
java.io.IOException
public java.io.InputStream query(org.apache.solr.common.params.SolrParams solrParams, java.util.Set<org.dataone.service.types.v1.Subject> authorizedSubjects, boolean isMNadmin) throws org.apache.solr.client.solrj.SolrServerException, java.io.IOException, edu.ucsb.nceas.utilities.PropertyNotFoundException, java.sql.SQLException, java.lang.ClassNotFoundException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.UnsupportedType
solrParams
- the query with the key/value formatauthorizedSubjects
- the authorized subjects in this query sessionisMNadmin
- the indicator of the authorized subjects are the mn admin or notorg.apache.solr.client.solrj.SolrServerException
java.io.IOException
edu.ucsb.nceas.utilities.PropertyNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.UnsupportedType
public void submitDeleteTask(org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v2.SystemMetadata sysMeta)
pid
- the pid's solr document will be deleted.public void submit(org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v2.SystemMetadata systemMetadata, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> fields, boolean followRevisions)
Copyright © 2020 Regents of the University of California. All Rights Reserved.