Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit fc5a800

Browse files
authored
add include_content param (#27)
1 parent e91f532 commit fc5a800

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "getindexify",
3-
"version": "0.0.34",
3+
"version": "0.0.35",
44
"description": "This is the TypeScript client for interacting with the Indexify service.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ class IndexifyClient {
203203
async searchIndex(
204204
name: string,
205205
query: string,
206-
topK: number
206+
topK: number,
207+
include_content:boolean = true
207208
): Promise<ISearchIndexResponse[]> {
208209
const resp = await this.client.post("search", {
209210
index: name,
210211
query,
211212
k: topK,
213+
include_content
212214
});
213215
return resp.data["results"];
214216
}

0 commit comments

Comments
 (0)