I search through your content to help you find answers to your questions, fast.
Algolia Assist can make mistakes. Verify responses.
Gives API access to all Algolia functionality, settings, advanced features, and ML/AI products
Installs with and without Bundler
Compatible with ActiveRecord, Mongoid, and Sequel
Built with modern tools: Minitest, Yard convention, Faraday
Background retry strategy to ensure uptime
Seamless batching via iterators to optimize number of network calls
Zero downtime reindexing feature
Thin & minimal low-level HTTP client to interact with Algolia's API
Supports Ruby version 2.2+..
INDEX
res = index.save_objects([{
firstname: 'Jimmie',
lastname: 'Barninger',
objectID: 'myID1'
}, {
firstname: 'Warren',
lastname: 'Speach',
objectID: 'myID2'
}])
SEARCH
index = client.init_index('contacts')
// Search without settings
res = index.search('query string')
// Search with settings
res = index.search('query string', {
params: {
attributesToRetrieve: 'firstname,lastname',
hitsPerPage: 20
}
})