Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ Once running any algolia client can be used.
```javascript

const client = algoliasearch('app-id', 'api-key', {
protocol: 'http:',
hosts: {
read: ['localhost:9200'],
write: ['localhost:9200']
}
hosts: [{
protocol: 'http',
url: 'localhost:9200'
}]
})

const index = client.initIndex('entries');

await index.addObject({
await index.addObject({
title: 'Algolia 2019',
contentType: 'events'
contentType: 'events'
})

const result = await index.search('Algolia')
Expand All @@ -48,4 +47,4 @@ const result = await index.search('Algolia')

```
docker run --rm -p 9200:9200 --name algolite marconi1992/algolite:0.1.1
```
```