okf-search-native 0.7.0 → 0.7.1
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/native.d.cts
CHANGED
|
@@ -84,14 +84,14 @@ export interface PreparedDocument {
|
|
|
84
84
|
documentId: string
|
|
85
85
|
path: string
|
|
86
86
|
type: string
|
|
87
|
-
conformance:
|
|
87
|
+
conformance: "strict" | "degraded"
|
|
88
88
|
diagnostics: Array<Diagnostic>
|
|
89
89
|
title: string
|
|
90
90
|
tags: Array<string>
|
|
91
|
-
status?:
|
|
91
|
+
status?: "draft" | "stable" | "deprecated"
|
|
92
92
|
staleAfterEpoch?: number
|
|
93
93
|
stalenessClassified: boolean
|
|
94
|
-
trustTier?:
|
|
94
|
+
trustTier?: "unverified" | "machine-confirmed" | "human-reviewed"
|
|
95
95
|
resource: string
|
|
96
96
|
description: string
|
|
97
97
|
sourceText: string
|
|
@@ -123,8 +123,8 @@ export interface SearchHit {
|
|
|
123
123
|
title: string
|
|
124
124
|
sectionId: string
|
|
125
125
|
score: number
|
|
126
|
-
conformance:
|
|
127
|
-
matchedFields: Array<
|
|
126
|
+
conformance: "strict" | "degraded"
|
|
127
|
+
matchedFields: Array<"resource" | "title" | "heading" | "description" | "tags" | "type" | "sources" | "body">
|
|
128
128
|
headingPath: string
|
|
129
129
|
path: string
|
|
130
130
|
startLine: number
|
|
@@ -137,8 +137,8 @@ export interface SearchOptions {
|
|
|
137
137
|
snippetLength?: number
|
|
138
138
|
where?: SearchWhere
|
|
139
139
|
asOf?: Date
|
|
140
|
-
match?:
|
|
141
|
-
fields?: Array<
|
|
140
|
+
match?: "any" | "all"
|
|
141
|
+
fields?: Array<"resource" | "title" | "heading" | "description" | "tags" | "type" | "sources" | "body">
|
|
142
142
|
boost?: SearchBoost
|
|
143
143
|
fuzzy?: boolean | number
|
|
144
144
|
}
|
|
@@ -146,10 +146,10 @@ export interface SearchOptions {
|
|
|
146
146
|
export interface SearchWhere {
|
|
147
147
|
types?: Array<string>
|
|
148
148
|
tagsAny?: Array<string>
|
|
149
|
-
statuses?: Array<
|
|
150
|
-
trustTiers?: Array<
|
|
149
|
+
statuses?: Array<"draft" | "stable" | "deprecated">
|
|
150
|
+
trustTiers?: Array<"unverified" | "machine-confirmed" | "human-reviewed">
|
|
151
151
|
stale?: boolean
|
|
152
|
-
conformance?: Array<
|
|
152
|
+
conformance?: Array<"strict" | "degraded">
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
export interface Suggestion {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "okf-search-native",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Search Open Knowledge Format collections at native speed with a lean Rust and Tantivy engine.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"open-knowledge-format",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"test:rust": "cargo test --locked",
|
|
78
78
|
"test:prepare-bundle": "node ../../scripts/check-private-bundling.mjs native",
|
|
79
79
|
"typecheck": "pnpm run test:types",
|
|
80
|
-
"test": "pnpm run test:prepare-bundle && pnpm run test:
|
|
80
|
+
"test": "pnpm run test:prepare-bundle && pnpm run test:package-api && vitest run tests/directory.test.ts tests/lifecycle.test.ts tests/persistence.test.ts tests/raw-boundary.test.ts tests/root-contract.test.ts tests/search-options.test.ts --no-file-parallelism && pnpm run test:rust",
|
|
81
81
|
"verify:release-artifacts": "node scripts/verify-release-artifacts.mjs"
|
|
82
82
|
}
|
|
83
83
|
}
|