@memberjunction/search-engine 6.2.0-edge.3 → 6.2.0-edge.5
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 +1 -1
- package/dist/generic/EntitySearchProvider.d.ts +12 -4
- package/dist/generic/EntitySearchProvider.d.ts.map +1 -1
- package/dist/generic/EntitySearchProvider.js +13 -6
- package/dist/generic/EntitySearchProvider.js.map +1 -1
- package/dist/generic/FullTextSearchProvider.d.ts +8 -0
- package/dist/generic/FullTextSearchProvider.d.ts.map +1 -1
- package/dist/generic/FullTextSearchProvider.js +12 -4
- package/dist/generic/FullTextSearchProvider.js.map +1 -1
- package/dist/generic/ISearchProvider.d.ts +67 -2
- package/dist/generic/ISearchProvider.d.ts.map +1 -1
- package/dist/generic/ISearchProvider.js +63 -0
- package/dist/generic/ISearchProvider.js.map +1 -1
- package/dist/generic/ScopeDimensionResolver.d.ts +28 -0
- package/dist/generic/ScopeDimensionResolver.d.ts.map +1 -1
- package/dist/generic/ScopeDimensionResolver.js +55 -3
- package/dist/generic/ScopeDimensionResolver.js.map +1 -1
- package/dist/generic/ScopeExplanation.d.ts +24 -13
- package/dist/generic/ScopeExplanation.d.ts.map +1 -1
- package/dist/generic/ScopeExplanation.js +39 -26
- package/dist/generic/ScopeExplanation.js.map +1 -1
- package/dist/generic/ScopeFilterGuard.d.ts +18 -0
- package/dist/generic/ScopeFilterGuard.d.ts.map +1 -1
- package/dist/generic/ScopeFilterGuard.js +49 -0
- package/dist/generic/ScopeFilterGuard.js.map +1 -1
- package/dist/generic/ScopeTemplateRenderer.d.ts +3 -0
- package/dist/generic/ScopeTemplateRenderer.d.ts.map +1 -1
- package/dist/generic/ScopeTemplateRenderer.js +11 -2
- package/dist/generic/ScopeTemplateRenderer.js.map +1 -1
- package/dist/generic/ScopeValueEscaper.d.ts +10 -3
- package/dist/generic/ScopeValueEscaper.d.ts.map +1 -1
- package/dist/generic/ScopeValueEscaper.js +51 -5
- package/dist/generic/ScopeValueEscaper.js.map +1 -1
- package/dist/generic/SearchEngine.d.ts +507 -50
- package/dist/generic/SearchEngine.d.ts.map +1 -1
- package/dist/generic/SearchEngine.js +1356 -253
- package/dist/generic/SearchEngine.js.map +1 -1
- package/dist/generic/SearchEnricher.d.ts +3 -1
- package/dist/generic/SearchEnricher.d.ts.map +1 -1
- package/dist/generic/SearchEnricher.js +10 -5
- package/dist/generic/SearchEnricher.js.map +1 -1
- package/dist/generic/SearchFusion.d.ts +42 -7
- package/dist/generic/SearchFusion.d.ts.map +1 -1
- package/dist/generic/SearchFusion.js +116 -47
- package/dist/generic/SearchFusion.js.map +1 -1
- package/dist/generic/StorageSearchProvider.d.ts +37 -20
- package/dist/generic/StorageSearchProvider.d.ts.map +1 -1
- package/dist/generic/StorageSearchProvider.js +79 -105
- package/dist/generic/StorageSearchProvider.js.map +1 -1
- package/dist/generic/TagSearchProvider.d.ts +5 -1
- package/dist/generic/TagSearchProvider.d.ts.map +1 -1
- package/dist/generic/TagSearchProvider.js +5 -2
- package/dist/generic/TagSearchProvider.js.map +1 -1
- package/dist/generic/VectorSearchProvider.d.ts +3 -0
- package/dist/generic/VectorSearchProvider.d.ts.map +1 -1
- package/dist/generic/VectorSearchProvider.js +29 -9
- package/dist/generic/VectorSearchProvider.js.map +1 -1
- package/dist/generic/search.types.d.ts +125 -7
- package/dist/generic/search.types.d.ts.map +1 -1
- package/dist/generic/search.types.js +0 -9
- package/dist/generic/search.types.js.map +1 -1
- package/dist/permissions/SearchScopePermissionResolver.d.ts +6 -5
- package/dist/permissions/SearchScopePermissionResolver.d.ts.map +1 -1
- package/dist/permissions/SearchScopePermissionResolver.js +15 -13
- package/dist/permissions/SearchScopePermissionResolver.js.map +1 -1
- package/dist/providers/AzureAISearchProvider.d.ts +4 -1
- package/dist/providers/AzureAISearchProvider.d.ts.map +1 -1
- package/dist/providers/AzureAISearchProvider.js +8 -6
- package/dist/providers/AzureAISearchProvider.js.map +1 -1
- package/dist/providers/ElasticsearchSearchProvider.d.ts +3 -0
- package/dist/providers/ElasticsearchSearchProvider.d.ts.map +1 -1
- package/dist/providers/ElasticsearchSearchProvider.js +8 -7
- package/dist/providers/ElasticsearchSearchProvider.js.map +1 -1
- package/dist/providers/OpenSearchSearchProvider.d.ts +5 -1
- package/dist/providers/OpenSearchSearchProvider.d.ts.map +1 -1
- package/dist/providers/OpenSearchSearchProvider.js +9 -5
- package/dist/providers/OpenSearchSearchProvider.js.map +1 -1
- package/dist/providers/TypesenseSearchProvider.d.ts +4 -1
- package/dist/providers/TypesenseSearchProvider.d.ts.map +1 -1
- package/dist/providers/TypesenseSearchProvider.js +8 -7
- package/dist/providers/TypesenseSearchProvider.js.map +1 -1
- package/package.json +10 -10
|
@@ -15,6 +15,30 @@
|
|
|
15
15
|
* @module @memberjunction/search-engine
|
|
16
16
|
*/
|
|
17
17
|
import { ComputeRRF } from '@memberjunction/core';
|
|
18
|
+
/** The RRF smoothing constant: a result at rank r in a list contributes weight / (RRF_K + r). */
|
|
19
|
+
export const RRF_K = 60;
|
|
20
|
+
/**
|
|
21
|
+
* Apply `MinScore` to one lane's results, before fusion.
|
|
22
|
+
*
|
|
23
|
+
* Only the semantic (vector) lane gets a numeric floor: its score is a similarity, so "below X"
|
|
24
|
+
* means "not similar enough". Keyword, full-text, tag and storage hits have no floor — a hit
|
|
25
|
+
* there already means the text matched, and their scores (a match-breadth heuristic, a rank) say
|
|
26
|
+
* nothing a threshold could use. Fused RRF scores are rank-based and never compared to MinScore.
|
|
27
|
+
*
|
|
28
|
+
* @param source - The lane the results came from.
|
|
29
|
+
* @param results - That lane's results, as the provider returned them.
|
|
30
|
+
* @param minScore - The caller's MinScore (0 or unset = no floor).
|
|
31
|
+
* @returns The results that pass, order unchanged.
|
|
32
|
+
*/
|
|
33
|
+
export function ApplySemanticFloor(source, results, minScore) {
|
|
34
|
+
if (source !== 'vector' || !minScore || minScore <= 0)
|
|
35
|
+
return results;
|
|
36
|
+
// Falling back to `Score` is valid HERE only: this runs before fusion, on the vector
|
|
37
|
+
// provider's own items, where `Score` is still the provider's raw similarity. The client-side
|
|
38
|
+
// counterpart (ng-search `PassesSemanticFloor`) sees fused results, where `Score` is
|
|
39
|
+
// rank-based, so it deliberately does NOT fall back. Keep the two as they are.
|
|
40
|
+
return results.filter(r => (r.ScoreBreakdown?.Vector ?? r.Score) >= minScore);
|
|
41
|
+
}
|
|
18
42
|
/**
|
|
19
43
|
* Handles fusion and deduplication of multi-source search results
|
|
20
44
|
* using Reciprocal Rank Fusion.
|
|
@@ -24,9 +48,9 @@ export class SearchFusion {
|
|
|
24
48
|
* Fuse multiple ranked result lists using RRF, deduplicate, and return
|
|
25
49
|
* the top results up to maxResults.
|
|
26
50
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
51
|
+
* `Score` on every returned item is the RRF score divided by its maximum (see
|
|
52
|
+
* `normalizeByRRFMax`), in [0, 1], including when only one source has results.
|
|
53
|
+
* Each provider's raw score stays in `ScoreBreakdown`.
|
|
30
54
|
*
|
|
31
55
|
* @param lists - Labeled result lists from each search source
|
|
32
56
|
* @param maxResults - Maximum number of results to return
|
|
@@ -49,13 +73,19 @@ export class SearchFusion {
|
|
|
49
73
|
&& r.RecordID.length > 0
|
|
50
74
|
&& Number.isFinite(r.Score)),
|
|
51
75
|
}));
|
|
52
|
-
// Collect only lists that have (sanitized) results
|
|
53
|
-
|
|
76
|
+
// Collect only lists that have (sanitized) results. A provider list carrying FusionLane
|
|
77
|
+
// tags is first split into one ranked list per lane (see splitByFusionLane).
|
|
78
|
+
const nonEmpty = sanitized.flatMap(l => this.splitByFusionLane(l)).filter(l => l.Results.length > 0);
|
|
54
79
|
if (nonEmpty.length === 0)
|
|
55
80
|
return [];
|
|
56
|
-
// Single source:
|
|
81
|
+
// Single source: RRF over one list is just its rank order, so Score = 1/(k+r) divided by
|
|
82
|
+
// its maximum 1/(k+1), i.e. (k+1)/(k+r). The same scale as the multi-source path, so a
|
|
83
|
+
// MinScore-free client sees one meaning of Score; the raw score stays in ScoreBreakdown.
|
|
57
84
|
if (nonEmpty.length === 1) {
|
|
58
|
-
return nonEmpty[0].Results.slice(0, maxResults)
|
|
85
|
+
return nonEmpty[0].Results.slice(0, maxResults).map((r, i) => ({
|
|
86
|
+
...r,
|
|
87
|
+
Score: (RRF_K + 1) / (RRF_K + i + 1),
|
|
88
|
+
}));
|
|
59
89
|
}
|
|
60
90
|
// Multiple sources: apply RRF with optional weights
|
|
61
91
|
return this.applyRRF(nonEmpty, maxResults, fusionWeights);
|
|
@@ -103,12 +133,13 @@ export class SearchFusion {
|
|
|
103
133
|
}
|
|
104
134
|
}
|
|
105
135
|
}
|
|
106
|
-
|
|
136
|
+
const ranked = fused.slice(0, maxResults).map(candidate => {
|
|
107
137
|
const item = resultMap.get(candidate.ID);
|
|
108
138
|
if (item)
|
|
109
139
|
return { ...item, Score: candidate.Score };
|
|
110
140
|
return this.createFallbackItem(candidate);
|
|
111
141
|
});
|
|
142
|
+
return this.normalizeByRRFMax(ranked, weights);
|
|
112
143
|
}
|
|
113
144
|
/**
|
|
114
145
|
* Deduplicate results by EntityName+RecordID.
|
|
@@ -148,44 +179,55 @@ export class SearchFusion {
|
|
|
148
179
|
});
|
|
149
180
|
}
|
|
150
181
|
}
|
|
151
|
-
//
|
|
152
|
-
//
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return deduplicated.sort((a, b) => b.Score - a.Score);
|
|
182
|
+
// Score is the RANKING score: RRF divided by its maximum (`normalizeByRRFMax`) or
|
|
183
|
+
// a reranker's relevance. It is deliberately NOT raised to the max ScoreBreakdown value:
|
|
184
|
+
// breakdowns are raw, per-provider scores on different scales (cosine ~0.8 vs the keyword
|
|
185
|
+
// scorer's ~0.6), and sorting by them threw the fused order away, so an exact keyword
|
|
186
|
+
// match ranked below every semantic near-miss. A stable sort keeps tied RRF positions in
|
|
187
|
+
// fused order.
|
|
188
|
+
return Array.from(seen.values()).sort((a, b) => b.Score - a.Score);
|
|
159
189
|
}
|
|
160
190
|
/**
|
|
161
191
|
* Apply RRF across multiple result lists.
|
|
162
192
|
* Maps results to ScoredCandidate[], runs ComputeRRF (optionally weighted), then maps back.
|
|
163
193
|
*/
|
|
164
194
|
applyRRF(lists, maxResults, fusionWeights) {
|
|
165
|
-
//
|
|
166
|
-
//
|
|
167
|
-
|
|
168
|
-
|
|
195
|
+
// A result's identity is EntityName + RecordID: record IDs alone collide across entities
|
|
196
|
+
// (integer keys, e.g. Accounts:1 vs Contacts:1). And each lane counts a record ONCE, at its
|
|
197
|
+
// first (best) position: ComputeRRF adds every occurrence, so a duplicate within one lane
|
|
198
|
+
// would score above the [0, 1] maximum. `Rank` is carried as an excess property for test
|
|
199
|
+
// doubles that key off it; production ComputeRRF ranks by array position.
|
|
200
|
+
const keyOf = (r) => `${r.EntityName}::${r.RecordID}`;
|
|
201
|
+
const dedupedLists = lists.map(list => {
|
|
202
|
+
const seen = new Set();
|
|
203
|
+
return list.Results.filter(r => {
|
|
204
|
+
const key = keyOf(r);
|
|
205
|
+
if (seen.has(key))
|
|
206
|
+
return false;
|
|
207
|
+
seen.add(key);
|
|
208
|
+
return true;
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
const rankedLists = dedupedLists.map(list => list.map((r, i) => ({
|
|
212
|
+
ID: keyOf(r),
|
|
169
213
|
Score: r.Score,
|
|
170
214
|
Rank: i + 1
|
|
171
215
|
})));
|
|
172
216
|
const weights = lists.map(l => fusionWeights?.[l.Source] ?? 1);
|
|
173
217
|
const fused = this.computeWeightedRRF(rankedLists, weights);
|
|
174
|
-
// Build a lookup from
|
|
175
|
-
//
|
|
176
|
-
//
|
|
177
|
-
// would silently drop the second provider's contribution — which then
|
|
178
|
-
// causes the downstream `Deduplicate.breakdownMax` post-processing to
|
|
179
|
-
// under-rank multi-provider hits (they'd look single-provider).
|
|
218
|
+
// Build a lookup from the result key to the full item. When the same record appears in
|
|
219
|
+
// several provider lists, merge their `ScoreBreakdown`s so the multi-provider evidence
|
|
220
|
+
// isn't lost.
|
|
180
221
|
const resultMap = new Map();
|
|
181
|
-
for (const list of
|
|
182
|
-
for (const r of list
|
|
183
|
-
const
|
|
222
|
+
for (const list of dedupedLists) {
|
|
223
|
+
for (const r of list) {
|
|
224
|
+
const key = keyOf(r);
|
|
225
|
+
const existing = resultMap.get(key);
|
|
184
226
|
if (!existing) {
|
|
185
|
-
resultMap.set(
|
|
227
|
+
resultMap.set(key, r);
|
|
186
228
|
}
|
|
187
229
|
else {
|
|
188
|
-
resultMap.set(
|
|
230
|
+
resultMap.set(key, {
|
|
189
231
|
...existing,
|
|
190
232
|
ScoreBreakdown: { ...existing.ScoreBreakdown, ...r.ScoreBreakdown },
|
|
191
233
|
});
|
|
@@ -193,7 +235,7 @@ export class SearchFusion {
|
|
|
193
235
|
}
|
|
194
236
|
}
|
|
195
237
|
// Map fused candidates back to full result items
|
|
196
|
-
|
|
238
|
+
const ranked = fused.slice(0, maxResults).map(candidate => {
|
|
197
239
|
const item = resultMap.get(candidate.ID);
|
|
198
240
|
if (item) {
|
|
199
241
|
return { ...item, Score: candidate.Score };
|
|
@@ -201,6 +243,7 @@ export class SearchFusion {
|
|
|
201
243
|
// Fallback (shouldn't happen in practice)
|
|
202
244
|
return this.createFallbackItem(candidate);
|
|
203
245
|
});
|
|
246
|
+
return this.normalizeByRRFMax(ranked, weights);
|
|
204
247
|
}
|
|
205
248
|
/**
|
|
206
249
|
* RRF with optional per-list weights. Delegates to the canonical `ComputeRRF()`
|
|
@@ -211,25 +254,51 @@ export class SearchFusion {
|
|
|
211
254
|
* required positional argument (clearer intent at the call sites) while the
|
|
212
255
|
* canonical function keeps `weights` optional for backwards-compatible behavior.
|
|
213
256
|
*/
|
|
214
|
-
computeWeightedRRF(rankedLists, weights, k =
|
|
257
|
+
computeWeightedRRF(rankedLists, weights, k = RRF_K) {
|
|
215
258
|
return ComputeRRF(rankedLists, k, weights);
|
|
216
259
|
}
|
|
217
260
|
/**
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
261
|
+
* Split a provider's list into one ranked list per `FusionLane`, keeping each lane's order.
|
|
262
|
+
*
|
|
263
|
+
* A provider can return results from sources whose scores aren't comparable (the vector
|
|
264
|
+
* provider: one embedding model per lane). Fusing them as separate RRF lists merges them by
|
|
265
|
+
* rank instead of by score. Each sub-list keeps the provider's `Source`, so it gets that
|
|
266
|
+
* source's fusion weight. A list with no lane tags is returned unchanged. Providers should
|
|
267
|
+
* tag all results or none; in a partly tagged list the untagged remainder forms its own lane
|
|
268
|
+
* (key `''`), so it is still merged by rank, never by score.
|
|
221
269
|
*/
|
|
222
|
-
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
270
|
+
splitByFusionLane(list) {
|
|
271
|
+
if (!list.Results.some(r => r.FusionLane))
|
|
272
|
+
return [list];
|
|
273
|
+
const lanes = new Map();
|
|
274
|
+
for (const r of list.Results) {
|
|
275
|
+
const key = r.FusionLane ?? '';
|
|
276
|
+
const lane = lanes.get(key);
|
|
277
|
+
if (lane)
|
|
278
|
+
lane.push(r);
|
|
279
|
+
else
|
|
280
|
+
lanes.set(key, [r]);
|
|
281
|
+
}
|
|
282
|
+
return Array.from(lanes.values()).map(results => ({ Source: list.Source, Results: results }));
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Divide each fused RRF score by the largest RRF score possible for these lists.
|
|
286
|
+
*
|
|
287
|
+
* A result ranked #1 by every list scores Σ weight / (k + 1); that is the maximum, so the
|
|
288
|
+
* normalized Score is in [0, 1] and 1.0 means "every list that returned results ranked it
|
|
289
|
+
* first". The mapping is a constant divisor, so order (and ties) are unchanged, it uses ranks
|
|
290
|
+
* only (no provider's raw scale leaks in), and it means the same thing on every query. RRF is
|
|
291
|
+
* not a calibrated relevance or confidence, so this is not either; thresholds belong on a
|
|
292
|
+
* lane's own score before fusion (see `SearchEngine` MinScore).
|
|
293
|
+
*
|
|
294
|
+
* @param ranked - Results in fused order, `Score` holding the raw RRF value.
|
|
295
|
+
* @param weights - The per-list weights passed to RRF; zero-weight lists can't contribute.
|
|
296
|
+
*/
|
|
297
|
+
normalizeByRRFMax(ranked, weights) {
|
|
298
|
+
const maxPossible = weights.filter(w => w > 0).reduce((sum, w) => sum + w, 0) / (RRF_K + 1);
|
|
299
|
+
if (maxPossible <= 0)
|
|
300
|
+
return ranked;
|
|
301
|
+
return ranked.map(r => ({ ...r, Score: r.Score / maxPossible }));
|
|
233
302
|
}
|
|
234
303
|
/**
|
|
235
304
|
* Create a fallback SearchResultItem for a fused candidate that has
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchFusion.js","sourceRoot":"","sources":["../../src/generic/SearchFusion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAmB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchFusion.js","sourceRoot":"","sources":["../../src/generic/SearchFusion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAmB,MAAM,sBAAsB,CAAC;AAGnE,iGAAiG;AACjG,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;AAExB;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAoB,EAAE,OAA2B,EAAE,QAA4B;IAC9G,IAAI,MAAM,KAAK,QAAQ,IAAI,CAAC,QAAQ,IAAI,QAAQ,IAAI,CAAC;QAAE,OAAO,OAAO,CAAC;IACtE,qFAAqF;IACrF,8FAA8F;IAC9F,qFAAqF;IACrF,+EAA+E;IAC/E,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,EAA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,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO;YACH,EAAE,EAAE,QAAQ;YACZ,UAAU,EAAE,UAAU;YACtB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,OAAO;YACnB,UAAU,EAAE,eAAe;YAC3B,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,cAAc,EAAE,EAA0B;YAC1C,IAAI,EAAE,EAAE;YACR,SAAS,EAAE,IAAI,IAAI,EAAE;SACxB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -3,65 +3,82 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Searches files across MJ File Storage accounts that have
|
|
5
5
|
* IncludeInGlobalSearch=true, using each provider's native search API.
|
|
6
|
-
*
|
|
7
|
-
* before
|
|
6
|
+
* Account permissions (`MJ: File Storage Account Permissions`) are evaluated
|
|
7
|
+
* per call, for the searching user, before any account is searched.
|
|
8
8
|
*
|
|
9
9
|
* @module @memberjunction/search-engine
|
|
10
10
|
*/
|
|
11
11
|
import { UserInfo } from '@memberjunction/core';
|
|
12
12
|
import { BaseSearchProvider } from './ISearchProvider.js';
|
|
13
|
+
import type { LaneKind } from './ScopeExplanation.js';
|
|
13
14
|
import { SearchSource, SearchFilters, SearchResultItem, ScopeConstraints } from './search.types.js';
|
|
14
15
|
/**
|
|
15
16
|
* Provides file-level search across MJ File Storage accounts using each
|
|
16
17
|
* provider's native SearchFiles() API. Only accounts with
|
|
17
|
-
* IncludeInGlobalSearch=true
|
|
18
|
+
* IncludeInGlobalSearch=true on active providers with SupportsSearch=true are searched.
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* **Nothing is snapshotted.** The searchable accounts are read at search time from
|
|
21
|
+
* `FileStorageEngine.Instance.AccountsWithProviders` (a `BaseEngine` cache kept current by entity
|
|
22
|
+
* events), and account permissions are evaluated per call, for the searching user, through
|
|
23
|
+
* `StorageAccessEvaluator` from `@memberjunction/storage` — so a grant or revocation applies to the
|
|
24
|
+
* next search, and which user configured the engine first does not matter. The evaluator reads the
|
|
25
|
+
* permission rows with the MJ system user and decides for the caller: an account with no permission
|
|
26
|
+
* rows is open to everyone (the current product rule, kept in one place in the evaluator); otherwise
|
|
27
|
+
* the user needs CanRead through an Everyone, Role or User row. A failed evaluation searches nothing.
|
|
28
|
+
*
|
|
29
|
+
* The provider's own check is push-down only: `SearchEngine`'s late permission filter re-checks every
|
|
30
|
+
* `storage-file` hit (its account, for the user, against this provider's stamped `ProviderId`).
|
|
23
31
|
*/
|
|
24
32
|
export declare class StorageSearchProvider extends BaseSearchProvider {
|
|
25
33
|
readonly SourceType: SearchSource;
|
|
34
|
+
/** Reads the scope's storage-account lanes (see `BaseSearchProvider.ConsumesLaneKinds`). */
|
|
35
|
+
readonly ConsumesLaneKinds: readonly LaneKind[];
|
|
26
36
|
private _available;
|
|
27
|
-
private _searchableAccounts;
|
|
28
|
-
private _permissions;
|
|
29
37
|
/**
|
|
30
38
|
* Whether this provider has at least one searchable storage account.
|
|
31
39
|
*/
|
|
32
40
|
IsAvailable(): boolean;
|
|
33
41
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
42
|
+
* Determine availability: true when at least one searchable storage account exists right now.
|
|
43
|
+
* Called once during SearchEngine.Config(). Nothing user-specific is captured here — the
|
|
44
|
+
* searchable accounts and their permissions are re-read on every search.
|
|
36
45
|
*
|
|
37
|
-
* @param contextUser - The user context for
|
|
46
|
+
* @param contextUser - The user context for loading the storage engine's metadata cache
|
|
38
47
|
*/
|
|
39
48
|
CheckAvailability(contextUser: UserInfo): Promise<void>;
|
|
40
49
|
/**
|
|
41
|
-
*
|
|
50
|
+
* The accounts eligible for search at this moment: IncludeInGlobalSearch accounts whose provider is
|
|
51
|
+
* active and supports search. Read from the engine's live cache, never from a snapshot.
|
|
52
|
+
*/
|
|
53
|
+
private currentSearchableAccounts;
|
|
54
|
+
/**
|
|
55
|
+
* Execute a file search across the storage accounts the user may read right now.
|
|
42
56
|
*
|
|
43
57
|
* @param query - The search query text
|
|
44
58
|
* @param topK - Maximum number of results to retrieve
|
|
45
59
|
* @param _filters - Optional filters (currently unused for storage search)
|
|
46
60
|
* @param contextUser - The user performing the search
|
|
61
|
+
* @param scopeConstraints - Optional scope narrowing (accounts, folder paths, query transforms)
|
|
47
62
|
* @returns Scored result items from storage search
|
|
48
63
|
*/
|
|
49
64
|
Search(query: string, topK: number, _filters: SearchFilters | undefined, contextUser: UserInfo, scopeConstraints?: ScopeConstraints): Promise<SearchResultItem[]>;
|
|
50
65
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
66
|
+
* The accounts this search may touch: searchable now, inside the scope (when it restricts), and readable by
|
|
67
|
+
* `contextUser` now — account permissions are evaluated per call by `StorageAccessEvaluator`, which fails
|
|
68
|
+
* closed (an evaluation failure leaves nothing to search).
|
|
53
69
|
*/
|
|
54
|
-
private
|
|
70
|
+
private accountsToSearch;
|
|
55
71
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* accessible to everyone (backwards compatible).
|
|
72
|
+
* Restrict the searchable account list to the scope's allowed set. Only an UNSCOPED search
|
|
73
|
+
* (`scopeRows` undefined) returns the accounts unchanged; an empty list allows none.
|
|
59
74
|
*/
|
|
60
|
-
private
|
|
75
|
+
private applyScopeAccountFilter;
|
|
61
76
|
/**
|
|
62
77
|
* Search a single storage account using the provider's native SearchFiles API.
|
|
63
78
|
* If `folderPath` is supplied (from a scope), results are filtered to that prefix
|
|
64
79
|
* after the driver returns — most drivers do not natively support a path filter.
|
|
80
|
+
* A supplied but BLANK folderPath restricts to nothing rather than to the whole account
|
|
81
|
+
* (the engine refuses such a path before it gets here; this keeps a direct caller closed too).
|
|
65
82
|
*/
|
|
66
83
|
private searchOneAccount;
|
|
67
84
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageSearchProvider.d.ts","sourceRoot":"","sources":["../../src/generic/StorageSearchProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"StorageSearchProvider.d.ts","sourceRoot":"","sources":["../../src/generic/StorageSearchProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAuB,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AASrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAoB,gBAAgB,EAA0B,MAAM,gBAAgB,CAAC;AAQ3I;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,qBAAsB,SAAQ,kBAAkB;IACzD,SAAgB,UAAU,EAAE,YAAY,CAAa;IAErD,4FAA4F;IAC5F,SAAyB,iBAAiB,EAAE,SAAS,QAAQ,EAAE,CAAsB;IAErF,OAAO,CAAC,UAAU,CAAS;IAE3B;;OAEG;IACI,WAAW,IAAI,OAAO;IAI7B;;;;;;OAMG;IACU,iBAAiB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAapE;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAQjC;;;;;;;;;OASG;IACU,MAAM,CACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,aAAa,GAAG,SAAS,EACnC,WAAW,EAAE,QAAQ,EACrB,gBAAgB,CAAC,EAAE,gBAAgB,GACpC,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAoC9B;;;;OAIG;YACW,gBAAgB;IAoB9B;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAS/B;;;;;;OAMG;YACW,gBAAgB;IA0C9B;;OAEG;IACH,OAAO,CAAC,cAAc;I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