Class MarcSolrClient


  • public class MarcSolrClient
    extends Object
    • Constructor Detail

      • MarcSolrClient

        public MarcSolrClient()
      • MarcSolrClient

        public MarcSolrClient​(String url)
      • MarcSolrClient

        public MarcSolrClient​(String url,
                              String collection)
      • MarcSolrClient

        public MarcSolrClient​(org.apache.solr.client.solrj.SolrClient client)
    • Method Detail

      • index

        public void index​(org.apache.solr.common.SolrInputDocument document)
      • createSolrDoc

        public org.apache.solr.common.SolrInputDocument createSolrDoc​(String id,
                                                                      Map<String,​List<String>> objectMap)
      • indexDuplumKey

        public void indexDuplumKey​(String id,
                                   Map<String,​Object> objectMap)
                            throws IOException,
                                   org.apache.solr.client.solrj.SolrServerException
        Throws:
        IOException
        org.apache.solr.client.solrj.SolrServerException
      • commit

        public void commit()
      • optimize

        public void optimize()
      • get

        public org.apache.solr.common.SolrDocument get​(String id)
      • getTrimId

        public boolean getTrimId()
      • setTrimId

        public void setTrimId​(boolean trimId)