def solrize( obj, opts={} )
      # retrieve the Fedora object based on the given unique id
        
      begin
        
        start = Time.now
        logger.debug "SOLRIZER Retrieving object #{obj} ..."


        if obj.kind_of? ActiveFedora::Base
          # do nothing
        elsif obj.kind_of? String
          obj = Repository.get_object( obj )
        elsif obj.respond_to? :pid
          obj = Repository.get_object( obj.pid )
        else
          raise "you must pass either a ActiveFedora::Base, Fedora::RepositoryObject, or a String.  You submitted a #{obj.class}"
        end
          
            obj_done = Time.now
            obj_done_elapse = obj_done - start
            logger.debug  " completed. Duration: #{obj_done_elapse}"
            
           logger.debug "\t Indexing object #{obj.pid} ... "
           # add the keywords and facets to the search index
           index_start = Time.now
           indexer.index( obj )
           
           index_done = Time.now
           index_elapsed = index_done - index_start
           
            logger.debug "completed. Duration:  #{index_elapsed} ."
          
        
      rescue Exception => e
          if opts[:suppress_errors] 
            logger.error "SOLRIZER unable to index #{obj}.  Failed with #{e.inspect}"
          else
            raise e
          end
      end

    end
def solrize( obj, opts={} )
      # retrieve the Fedora object based on the given unique id
        
      begin
        
        start = Time.now
        logger.debug "SOLRIZER Retrieving object #{obj} ..."


        if obj.kind_of? ActiveFedora::Base
          # do nothing
        elsif obj.kind_of? String
          obj = Repository.get_object( obj )
        elsif obj.respond_to? :pid
          obj = Repository.get_object( obj.pid )
        else
          raise "you must pass either a ActiveFedora::Base, Fedora::RepositoryObject, or a String.  You submitted a #{obj.class}"
        end
          
            obj_done = Time.now
            obj_done_elapse = obj_done - start
            logger.debug  " completed. Duration: #{obj_done_elapse}"
            
           logger.debug "\t Indexing object #{obj.pid} ... "
           # add the keywords and facets to the search index
           index_start = Time.now
           indexer.index( obj )
           
           index_done = Time.now
           index_elapsed = index_done - index_start
           
            logger.debug "completed. Duration:  #{index_elapsed} ."
          
        
      rescue Exception => e
          if opts[:suppress_errors] 
            logger.error "SOLRIZER unable to index #{obj}.  Failed with #{e.inspect}"
          else
            raise e
          end
      end

    end
This method initializes the indexer
 If passed an argument of :index_full_text=>true, it will perform full-text indexing instead of indexing fields only.

 Solrize the given Fedora object's full-text and facets into the search index

 @param [String or ActiveFedora::Base] obj the object to solrize
 @param [Hash] opts optional parameters
 @example Suppress errors using :suppress_errors option
   solrizer.solrize("my:pid", :suppress_errors=>true)