Class SolrIndexHandler

  • All Implemented Interfaces:
    IndexHandler

    public final class SolrIndexHandler
    extends java.lang.Object
    implements IndexHandler
    Solr Implementation of IndexHandler
    Author:
    arunans23
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createIndex​(ObjectStore os, java.util.Map<java.lang.String,​java.util.List<FieldDescriptor>> classKeys)
      Main method to create the index Used mostly in post process tasks
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrIndexHandler

        public SolrIndexHandler()
    • Method Detail

      • createIndex

        public void createIndex​(ObjectStore os,
                                java.util.Map<java.lang.String,​java.util.List<FieldDescriptor>> classKeys)
                         throws java.io.IOException,
                                org.apache.solr.client.solrj.SolrServerException
        Description copied from interface: IndexHandler
        Main method to create the index Used mostly in post process tasks
        Specified by:
        createIndex in interface IndexHandler
        Parameters:
        os - Objectstore that is passed CreateSearchIndexTask
        classKeys - classKeys from InterMineAPI, map of classname to all key field descriptors
        Throws:
        java.io.IOException - IOException is thrown from Objectstore
        org.apache.solr.client.solrj.SolrServerException - is thrown from solr