app/models/solr_core/base.rb
# NOTE: this will NOT work on items with composite primary keys.
this will NOT work on items with composite primary keys.
this will NOT work on items with composite primary keys .
def reindex_items(items)
      items = Array(items)
      delete_by_ids(items.map(&:id))
      begin
        @connection.add(items.map(&:to_hash))
      rescue RSolr::Error::Http => e
        EOL.log("WARNING: Failed to reindex items: #{e.message}", prefix: "!")
      end
      @connection.commit
    end
def reindex_items ( items ) items = Array ( items ) delete_by_ids ( items . map ( & :id ) ) begin @connection . add ( items . map ( & :to_hash ) ) rescue RSolr :: Error :: Http => e EOL . log ( "WARNING: Failed to reindex items: #{e.message}" , prefix : "!" ) end @connection . commit end
NOTE: this will NOT work on items with composite primary keys.
NOTE : this will NOT work on items with composite primary keys .
items
<not_specific>