module Jekyll::Algolia::Indexer

def self.remote_object_ids

browsing, but if the index does not exist we read the main index.
Note: We use a dedicated index to store the objectIDs for faster

Public: Returns an array of all the objectIDs in the index
def self.remote_object_ids
  Logger.log('I:Getting list of existing records')
  # Fast version, using the dedicated index
  has_dedicated_index = index_exist?(index_object_ids)
  return remote_object_ids_from_dedicated_index if has_dedicated_index
  # Slow version, browsing the full index
  remote_object_ids_from_main_index
end