hermes-client-typescript 1.8.121 → 1.8.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -171,7 +171,7 @@ await client.search("articles", {
|
|
|
171
171
|
});
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
Supported variants are `term`, `match`, `boolean`, `sparseVector`,
|
|
174
|
+
Supported variants are `term`, `match`, `phrase`, `boolean`, `sparseVector`,
|
|
175
175
|
`denseVector`, `binaryDenseVector`, `boost`, `range`, `prefix`, `all`, and
|
|
176
176
|
`fusion`.
|
|
177
177
|
|
|
@@ -193,8 +193,13 @@ const client = new HermesClient("localhost:50051", {
|
|
|
193
193
|
defaultTimeoutMs: 5_000,
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
client.connect();
|
|
197
|
+
try {
|
|
198
|
+
await client.search("articles", { query: { all: {} } }, 500);
|
|
199
|
+
await client.forceMerge("articles", 3_600_000);
|
|
200
|
+
} finally {
|
|
201
|
+
client.close();
|
|
202
|
+
}
|
|
198
203
|
```
|
|
199
204
|
|
|
200
205
|
Expired calls reject with a gRPC `DEADLINE_EXCEEDED` error.
|