module Jekyll::Algolia::Indexer
def self.remote_object_ids
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') # Main index empty, the list is empty no matter what (we don't use the # dedicated index in that case) return [] if record_count(index).zero? # Fast version, using the dedicated index has_object_id_index = index_exist?(index_object_ids) return remote_object_ids_from_dedicated_index if has_object_id_index # Slow version, browsing the full index remote_object_ids_from_main_index end