What is Algolia

Algolia empowers modern developers to build world class search and discovery experiences without any DevOps.
Libraries with every major language and framework make it easy to enrich your users' experiences. 

API-first search and discovery for your Python applications

Utilize the Algolia open-source Python API client to index your data, configure your search, add analytics and much more.  

Algolia is an API-First Search and Discovery platform that empowers builders to compose experiences at scale. Explore Algolia

Get started

INSTALL (GET A FREE ACCOUNT HERE.)


        
          
            

npm install algoliasearch

INDEX


        
          
            

const objects = [{
  firstname: 'Jimmie',
  lastname: 'Barninger',
  objectID: 'myID1'
}, {
  firstname: 'Warren',
  lastname: 'Speach',
  objectID: 'myID2'
}];

index.saveObjects(objects).then(({ objectIDs }) => {
  console.log(objectIDs);
});

SEARCH


        
          
            

from algoliasearch.search_client import SearchClient

client = SearchClient.create("AppId", "AdminAPIKey")
index = client.init_index("index_name")

# index records
records = [
    {"objectID": "myID1", "firstname": "Jimmie", "lastname": "Barninger"},
    {"objectID": "myID2", "firstname": "Warren", "lastname": "Speach"},
]
index.save_objects(records).wait()

# only query string
res = index.search('Jim')
print(res)

# or with params
res = index.search('Jim', {
    'attributesToRetrieve': [ 'firstname', 'lastname' ],
    'hitsPerPage': 50
})
print(res)

Enable anyone to build great Search & Discovery