module Jekyll::Algolia::Indexer
def self.remote_object_ids
The returned array is sorted. It won't have any impact on the way it is
Public: Returns an array of all the objectIDs in the index
def self.remote_object_ids list = [] Logger.verbose( "I:Inspecting existing records in index #{index.name}..." ) begin index.browse(attributesToRetrieve: 'objectID') do |hit| list << hit['objectID'] end rescue StandardError # The index might not exist if it's the first time we use the plugin # so we'll consider that it means there are no records there return [] end list.sort end