Skip to content

Commit 6bc1ce9

Browse files
committed
Update README
1 parent 6fd293a commit 6bc1ce9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Download the JAR file from the [releases](https://github.com/typesense/typesense
1010

1111
```java
1212
import org.typesense.api.*;
13-
import org.typesense.models.*;
13+
import org.typesense.model.*;
1414
import org.typesense.resources.*;
1515
```
1616

@@ -29,7 +29,7 @@ nodes.add(
2929

3030
Configuration configuration = new Configuration(nodes, Duration.ofSeconds(2),"<API_KEY>");
3131

32-
Clienr client = new Client(configuration);
32+
Client client = new Client(configuration);
3333
```
3434

3535
### Create a new collection
@@ -89,7 +89,7 @@ SearchResult searchResult = client.collections("countries").documents().search(s
8989
```java
9090
HashMap<String, Object> hmap = new HashMap<>();
9191
hmap.put("gdp", 8);
92-
client.collections("countries").documents("28").retrieve(hmap);
92+
client.collections("countries").documents("28").update(hmap);
9393
```
9494

9595
### Retrieve a document

0 commit comments

Comments
 (0)