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.
Files changed (2) hide show
  1. package/README.md +8 -3
  2. 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
- await client.search("articles", { query: { all: {} } }, 500);
197
- await client.forceMerge("articles", 3_600_000);
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-client-typescript",
3
- "version": "1.8.121",
3
+ "version": "1.8.122",
4
4
  "description": "TypeScript client for Hermes search server",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",