Skip to content

Commit ac43d09

Browse files
committed
Update stale example.
1 parent 3e2d409 commit ac43d09

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,20 @@
22

33
Java client library for accessing the HTTP API of [Typesense](https://typesense.org) search engine.
44

5-
## Installation
6-
7-
The client is available on Maven Central.
8-
9-
```
10-
<dependency>
11-
<groupId>org.typesense</groupId>
12-
<artifactId>typesense-java</artifactId>
13-
<version>0.0.3</version>
14-
</dependency>
15-
```
5+
Note: This package is still under development. Some existing APIs might change or new APIs might be available in the future.
166

17-
You can also download the JAR file from the [releases](https://github.com/typesense/typesense-java/releases) section of this repository and add it to your project.
18-
19-
## Usage
7+
## Installation
208

21-
### Import the packages
9+
Download the JAR file from the [releases](https://github.com/typesense/typesense-java/releases) section of this repository and add it to your project.
2210

2311
```java
2412
import org.typesense.api.*;
2513
import org.typesense.model.*;
2614
import org.typesense.resources.*;
2715
```
2816

17+
## Usage
18+
2919
### Create a new client
3020
```java
3121
ArrayList<Node> nodes = new ArrayList<>();
@@ -90,8 +80,8 @@ client.collections("countries").documents().import_(documentList, queryParameter
9080
```java
9181
SearchParameters searchParameters = new SearchParameters()
9282
.q("tokoyo")
93-
.addQueryByItem("countryName").addQueryByItem("capital")
94-
.addPrefixItem(true).addPrefixItem(false);
83+
.queryBy("countryName,capital")
84+
.prefix("true,false");
9585
SearchResult searchResult = client.collections("countries").documents().search(searchParameters);
9686
```
9787

0 commit comments

Comments
 (0)