File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Download the JAR file from the [releases](https://github.com/typesense/typesense
1010
1111``` java
1212import org.typesense.api.* ;
13- import org.typesense.models .* ;
13+ import org.typesense.model .* ;
1414import org.typesense.resources.* ;
1515```
1616
@@ -29,7 +29,7 @@ nodes.add(
2929
3030Configuration 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
9090HashMap<String , Object > hmap = new HashMap<> ();
9191hmap. 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
You can’t perform that action at this time.
0 commit comments