@delali/narsil 0.4.6-next.332 → 0.4.6-next.334
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/dist/browser/{chunk-VAPCFSMX.mjs → chunk-3PGIOK7Z.mjs} +16 -1
- package/dist/browser/{chunk-VIVG3OXM.mjs → chunk-FBDTHGDR.mjs} +7 -3
- package/dist/browser/{chunk-56UNHLAF.mjs → chunk-HIC42RBU.mjs} +1 -1
- package/dist/browser/{chunk-DJDBJB2U.mjs → chunk-J343PP7Q.mjs} +85 -28
- package/dist/browser/{optional-reads-NQO5DKM4.mjs → optional-reads-4O4CJ7TR.mjs} +1 -1
- package/dist/browser/{optional-writes-3HKIVZFU.mjs → optional-writes-OFPF77WY.mjs} +2 -1
- package/dist/browser/{runtime-OMKE7DF4.mjs → runtime-AMEB4J2D.mjs} +2 -1
- package/dist/browser/{segment-codec-leaf-GXSRX5VT.mjs → segment-codec-leaf-E4YHXUAI.mjs} +7 -2
- package/dist/browser/{storage-leaf-72PEG6IP.mjs → storage-leaf-WJMD66YX.mjs} +15 -2
- package/dist/{capabilities-DaJKuKlG.d.ts → capabilities-YazdElfW.d.ts} +2 -2
- package/dist/{chunk-UAITBI74.mjs → chunk-2QQCR7KF.mjs} +15 -9
- package/dist/{chunk-NNRDQYBD.mjs → chunk-4QNWK42S.mjs} +104 -41
- package/dist/{chunk-G6P6YTTW.mjs → chunk-5PUNOJC7.mjs} +1 -1
- package/dist/chunk-6S5QPDPP.mjs +110 -0
- package/dist/{chunk-EY5U4P5V.mjs → chunk-7NMLFP2T.mjs} +17 -2
- package/dist/{react-native/chunks/chunk-NUOJ2EAK.mjs → chunk-AKLCYPUY.mjs} +1 -1
- package/dist/{chunk-WRDGPEN6.mjs → chunk-B276ZQIH.mjs} +2 -2
- package/dist/{chunk-HWIIMLLR.mjs → chunk-B6VO3BCX.mjs} +6 -6
- package/dist/{chunk-3GWUUKDJ.mjs → chunk-BVFJ5XAU.mjs} +2 -2
- package/dist/{chunk-WCGFMFWK.mjs → chunk-CHGJGKST.mjs} +2 -2
- package/dist/{chunk-AQI4DIFA.mjs → chunk-CVCBVUH4.mjs} +2 -2
- package/dist/{chunk-CN42TL6V.mjs → chunk-HB3EBTKC.mjs} +5 -5
- package/dist/{react-native/chunks/chunk-ALSPAMEE.mjs → chunk-HNE4HNC2.mjs} +2 -2
- package/dist/{chunk-RBHEMWN6.mjs → chunk-I255IQTR.mjs} +3 -3
- package/dist/{chunk-VIHHCXBO.mjs → chunk-IALJ2X74.mjs} +3 -3
- package/dist/{chunk-EDZJNZKV.mjs → chunk-ICEZRKIS.mjs} +1 -1
- package/dist/{chunk-JXRMHWQU.mjs → chunk-IVVNKTHC.mjs} +1 -1
- package/dist/{chunk-MUBQER6D.mjs → chunk-KHZ6LAFB.mjs} +1 -1
- package/dist/{chunk-5SHWA6PE.mjs → chunk-L2GYY6KY.mjs} +1 -1
- package/dist/{chunk-4JLHHEBN.mjs → chunk-M5RYB6FE.mjs} +1 -1
- package/dist/{chunk-ONDHZ4WW.mjs → chunk-N3DJTTKK.mjs} +2 -2
- package/dist/{chunk-JASE2FE6.mjs → chunk-QWYIMVYT.mjs} +2 -2
- package/dist/{chunk-GTB2S2VX.mjs → chunk-R5OFJZNI.mjs} +2 -2
- package/dist/{chunk-7DW2ITZ3.mjs → chunk-RHFUQ76T.mjs} +1 -1
- package/dist/{chunk-FWZ5OK5G.mjs → chunk-SCUYG24W.mjs} +4 -4
- package/dist/{chunk-DVFCDOXW.mjs → chunk-TNBOFWDS.mjs} +1 -1
- package/dist/{chunk-PM2UOKYB.mjs → chunk-UFDD57KD.mjs} +37 -9
- package/dist/{chunk-M2Z5WVWW.mjs → chunk-UGMOBSMD.mjs} +2 -0
- package/dist/{chunk-CZHAPGVH.mjs → chunk-UJQ2S5QU.mjs} +80 -78
- package/dist/{chunk-43T3P3BE.mjs → chunk-WW3RDS57.mjs} +1 -1
- package/dist/{chunk-BOTZ2GSW.mjs → chunk-Z622PLNH.mjs} +25 -14
- package/dist/{client-DetSCqP2.d.ts → client-B9YNYYs_.d.ts} +38 -12
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +2 -2
- package/dist/{config-BB4MRAsB.d.ts → config-DJFXyHMZ.d.ts} +2 -2
- package/dist/{config-XEHd4MFx.d.ts → config-DlvP2PSi.d.ts} +2 -2
- package/dist/{direct-executor-3C5WFR33.mjs → direct-executor-P2Z7T57F.mjs} +3 -3
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution/transport/tcp.mjs +1 -1
- package/dist/distribution.d.ts +14 -9
- package/dist/distribution.mjs +391 -315
- package/dist/{engine-DGG_yX0p.d.ts → engine-DP4PrdKM.d.ts} +51 -13
- package/dist/{index-fX_FbuRT.d.ts → index-CcivYH_R.d.ts} +1 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +3 -3
- package/dist/index.react-native.mjs +3 -3
- package/dist/{long-query-thread-C62WK6NI.mjs → long-query-thread-SOJ25FZU.mjs} +13 -13
- package/dist/{msgpack-leaf-LIT7TKZW.mjs → msgpack-leaf-LTAJ5QGB.mjs} +2 -2
- package/dist/{optional-reads-ESDVS225.mjs → optional-reads-5QWIOFOU.mjs} +1 -1
- package/dist/{optional-writes-AGDEVXC4.mjs → optional-writes-GVHTEENI.mjs} +5 -5
- package/dist/{paged-partition-archive-EABR3N3F.mjs → paged-partition-archive-XCETVLZW.mjs} +13 -13
- package/dist/partial-words.browser.mjs +3 -3
- package/dist/partial-words.mjs +3 -3
- package/dist/pattern.browser.mjs +2 -2
- package/dist/pattern.mjs +2 -2
- package/dist/persistence/durability/checkpoint-worker.d.ts +2 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +10 -10
- package/dist/{query-actions-QH5UQRCY.mjs → query-actions-WKC4SQEZ.mjs} +3 -3
- package/dist/query-suggestions/merge-worker.mjs +6 -6
- package/dist/query-suggestions.browser.mjs +3 -3
- package/dist/query-suggestions.d.ts +2 -2
- package/dist/query-suggestions.mjs +4 -4
- package/dist/react-native/chunks/{chunk-PTCHRZCP.mjs → chunk-4JY2CZWV.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-ESVBC3AT.mjs → chunk-BIORJHQZ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-AOLLV37A.mjs → chunk-CBG4EUYD.mjs} +17 -2
- package/dist/react-native/chunks/{chunk-GPMPHDDO.mjs → chunk-FN3HBVNY.mjs} +2 -2
- package/dist/{chunk-AWMO3NKJ.mjs → react-native/chunks/chunk-LR6OK725.mjs} +1 -1
- package/dist/{chunk-57MN2UAL.mjs → react-native/chunks/chunk-MPNHORPY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-V2H7EDTM.mjs → chunk-QT2G6OMI.mjs} +103 -40
- package/dist/react-native/chunks/{chunk-BGRX5SPG.mjs → chunk-QZUFYRFX.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZF3VSGEI.mjs → chunk-ZSJABTIE.mjs} +1 -1
- package/dist/react-native/chunks/{msgpack-leaf-FOUPTT7J.mjs → msgpack-leaf-Q4BPA4G7.mjs} +2 -2
- package/dist/react-native/chunks/{optional-reads-TN3PT6M4.mjs → optional-reads-M6F26KFO.mjs} +1 -1
- package/dist/react-native/chunks/{optional-writes-F4FJKEZ4.mjs → optional-writes-TCVHZRRM.mjs} +4 -4
- package/dist/react-native/chunks/{restore-queue-MLFBOOZP.mjs → restore-queue-RLQ3L223.mjs} +6 -6
- package/dist/{runtime-USQYKN3I.mjs → react-native/chunks/runtime-7UKADH3G.mjs} +2 -1
- package/dist/react-native/chunks/{segment-codec-leaf-Z3OS3B2K.mjs → segment-codec-leaf-IM6YCP7M.mjs} +4 -4
- package/dist/react-native/chunks/{segment-merge-leaf-TNHU77VW.mjs → segment-merge-leaf-32YR2ZTM.mjs} +5 -5
- package/dist/react-native/chunks/{storage-leaf-NF733K7B.mjs → storage-leaf-RKI6S6T5.mjs} +23 -10
- package/dist/react-native/chunks/{store-leaf-UDKCNQB7.mjs → store-leaf-YQXG6NOD.mjs} +5 -5
- package/dist/react-native/chunks/{suggestions-leaf-M6ITOPNM.mjs → suggestions-leaf-Q3ABULFB.mjs} +5 -5
- package/dist/react-native/chunks/{worker-copies-GG7CKUBI.mjs → worker-copies-W63KWZZN.mjs} +4 -4
- package/dist/react-native/partial-words.mjs +3 -3
- package/dist/react-native/pattern.mjs +2 -2
- package/dist/react-native/query-suggestions.mjs +3 -3
- package/dist/react-native/sync.mjs +12 -7
- package/dist/react-native/synonyms.mjs +3 -3
- package/dist/react.d.ts +9 -9
- package/dist/{rerank-LCMA5PZG.mjs → rerank-OJLSVUYV.mjs} +25 -12
- package/dist/{restore-queue-NSA3RWF6.mjs → restore-queue-BYO4AJLZ.mjs} +6 -6
- package/dist/{react-native/chunks/runtime-UOHD2XUJ.mjs → runtime-WWFVQOBJ.mjs} +2 -1
- package/dist/{schema-CFnQ-WI3.d.ts → schema-CPQUdJTs.d.ts} +6 -0
- package/dist/{segment-codec-leaf-DQKKIN4F.mjs → segment-codec-leaf-V52PQEVL.mjs} +4 -4
- package/dist/{segment-merge-leaf-67Z6OMRF.mjs → segment-merge-leaf-M3ZLJYDD.mjs} +4 -4
- package/dist/server.d.ts +22 -11
- package/dist/server.mjs +23 -21
- package/dist/{storage-leaf-FUH75D3X.mjs → storage-leaf-YYO4FLHQ.mjs} +22 -22
- package/dist/{store-leaf-CKZFFFTX.mjs → store-leaf-KK7VD3P3.mjs} +5 -5
- package/dist/{suggestions-leaf-NOSJIRSD.mjs → suggestions-leaf-EJCNU3NM.mjs} +7 -7
- package/dist/sync/filesystem.d.ts +3 -3
- package/dist/sync/filesystem.mjs +8 -8
- package/dist/sync/indexeddb.browser.mjs +1 -1
- package/dist/sync/indexeddb.d.ts +3 -3
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +7 -6
- package/dist/sync.d.ts +4 -4
- package/dist/sync.mjs +12 -7
- package/dist/synonyms.browser.mjs +3 -3
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-Bpi5YNZF.d.ts → tasks-4rvZJuoN.d.ts} +8 -4
- package/dist/{thread-T5F3HSMC.mjs → thread-6BVFFMP7.mjs} +12 -12
- package/dist/{types-DGjk684l.d.ts → types-C3hkFf_3.d.ts} +2 -2
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/{worker-copies-TPEHVXPI.mjs → worker-copies-5V5JGCWU.mjs} +6 -6
- package/dist/workers/entry.mjs +9 -9
- package/openapi.json +58 -2
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-8LcdNB77.js';
|
|
2
|
-
import { A as AnyDocument, B as BM25Params, d as ScoringMode, S as SchemaDefinition, a as InsertOptions, W as WriteOptions, I as IndexConfig, P as PartitionConfig } from './schema-
|
|
2
|
+
import { A as AnyDocument, B as BM25Params, d as ScoringMode, S as SchemaDefinition, a as InsertOptions, W as WriteOptions, I as IndexConfig, P as PartitionConfig } from './schema-CPQUdJTs.js';
|
|
3
3
|
import { h as QuerySuggestionsBuildEvent, j as QuerySuggestionsWarningEvent } from './query-suggestions-CBYkrQ5T.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
@@ -476,6 +476,20 @@ interface SuggestParams {
|
|
|
476
476
|
/** The lookup returns this many completions, most widely used first, and 10 by default. */
|
|
477
477
|
limit?: number;
|
|
478
478
|
}
|
|
479
|
+
/**
|
|
480
|
+
* Everything {@link Narsil.get} and {@link Narsil.getMultiple} accept after
|
|
481
|
+
* the document IDs.
|
|
482
|
+
*
|
|
483
|
+
* @public
|
|
484
|
+
*/
|
|
485
|
+
interface GetOptions {
|
|
486
|
+
/**
|
|
487
|
+
* This chooses how much of each stored document comes back. By default a
|
|
488
|
+
* read returns every field apart from the vector fields, which come back
|
|
489
|
+
* only where {@link DocumentProjection} or the index asks for them.
|
|
490
|
+
*/
|
|
491
|
+
document?: DocumentProjection;
|
|
492
|
+
}
|
|
479
493
|
/**
|
|
480
494
|
* Everything {@link Narsil.listDocuments} accepts.
|
|
481
495
|
*
|
|
@@ -512,7 +526,11 @@ interface ListParams {
|
|
|
512
526
|
* so a sorted listing costs more than the default order on a large index.
|
|
513
527
|
*/
|
|
514
528
|
sort?: SortSpec;
|
|
515
|
-
/**
|
|
529
|
+
/**
|
|
530
|
+
* This chooses how much of each stored document comes back. By default a
|
|
531
|
+
* listing returns every field apart from the vector fields, which come back
|
|
532
|
+
* only where {@link DocumentProjection} or the index asks for them.
|
|
533
|
+
*/
|
|
516
534
|
document?: DocumentProjection;
|
|
517
535
|
}
|
|
518
536
|
|
|
@@ -750,7 +768,11 @@ interface QueryParams {
|
|
|
750
768
|
includeScores?: boolean;
|
|
751
769
|
/** Setting this returns the numbers behind each hit's score, which is what you read when a ranking surprises you. */
|
|
752
770
|
includeScoreComponents?: boolean;
|
|
753
|
-
/**
|
|
771
|
+
/**
|
|
772
|
+
* This chooses how much of each stored document comes back. By default a
|
|
773
|
+
* hit carries every field apart from the vector fields, which come back
|
|
774
|
+
* only where {@link DocumentProjection} or the index asks for them.
|
|
775
|
+
*/
|
|
754
776
|
document?: DocumentProjection;
|
|
755
777
|
}
|
|
756
778
|
/**
|
|
@@ -763,9 +785,14 @@ interface QueryParams {
|
|
|
763
785
|
* dots to name a nested field, so `author.name` addresses the `name` inside
|
|
764
786
|
* `author`, and a name that matches no field changes nothing.
|
|
765
787
|
*
|
|
766
|
-
*
|
|
767
|
-
*
|
|
768
|
-
*
|
|
788
|
+
* A read leaves every vector field out by default, because a vector of 1,536
|
|
789
|
+
* dimensions adds about 32 KB of JSON to each result. Set `vectors` to true,
|
|
790
|
+
* or list the vector field's path in `include`, to get it back on one read, and set
|
|
791
|
+
* {@link IndexConfig.returnVectors} to get the vectors back on every read of
|
|
792
|
+
* an index. `vectors: false` leaves them out even on such an index.
|
|
793
|
+
*
|
|
794
|
+
* The engine throws `SEARCH_INVALID_FIELD` when `include` or `exclude` is not
|
|
795
|
+
* a list of strings, or when `vectors` is not a boolean.
|
|
769
796
|
*
|
|
770
797
|
* @public
|
|
771
798
|
*/
|
|
@@ -774,6 +801,12 @@ type DocumentProjection = boolean | {
|
|
|
774
801
|
include?: string[];
|
|
775
802
|
/** Names the fields to drop, so every other field is kept. */
|
|
776
803
|
exclude?: string[];
|
|
804
|
+
/**
|
|
805
|
+
* Setting this to true returns every vector field, and false leaves
|
|
806
|
+
* every one out, whatever `include` and the index setting say. `include`
|
|
807
|
+
* and `exclude` then apply to the vector fields that this keeps.
|
|
808
|
+
*/
|
|
809
|
+
vectors?: boolean;
|
|
777
810
|
};
|
|
778
811
|
/**
|
|
779
812
|
* Fields a query counts values for, keyed by field name.
|
|
@@ -2545,25 +2578,30 @@ interface Narsil extends IndexLifecycleOperations, DocumentWriteOperations, Syno
|
|
|
2545
2578
|
/**
|
|
2546
2579
|
* Fetches one stored document by id, without searching.
|
|
2547
2580
|
*
|
|
2548
|
-
*
|
|
2549
|
-
*
|
|
2550
|
-
*
|
|
2551
|
-
*
|
|
2581
|
+
* The document leaves out its vector fields unless `options` or the
|
|
2582
|
+
* index's {@link IndexConfig.returnVectors} setting asks for them. A vector
|
|
2583
|
+
* field that comes back is a `Float32Array`, which `JSON.stringify` writes
|
|
2584
|
+
* as an object keyed by index, so convert it with `Array.from` before you
|
|
2585
|
+
* serialise the document yourself. The HTTP routes convert it for you.
|
|
2552
2586
|
*
|
|
2553
2587
|
* @param indexName - The index holding the document.
|
|
2554
2588
|
* @param docId - The document to fetch.
|
|
2589
|
+
* @param options - The projection that chooses which fields come back.
|
|
2555
2590
|
* @returns The document, or `undefined` when the index holds no such id.
|
|
2556
2591
|
*/
|
|
2557
|
-
get(indexName: string, docId: string): Promise<AnyDocument | undefined>;
|
|
2592
|
+
get(indexName: string, docId: string, options?: GetOptions): Promise<AnyDocument | undefined>;
|
|
2558
2593
|
/**
|
|
2559
2594
|
* Fetches many stored documents by id in one pass.
|
|
2560
2595
|
*
|
|
2561
2596
|
* @param indexName - The index holding the documents.
|
|
2562
2597
|
* @param docIds - The documents to fetch.
|
|
2598
|
+
* @param options - The projection that chooses which fields come back, as
|
|
2599
|
+
* for {@link Narsil.get}, so each document leaves out its vector fields
|
|
2600
|
+
* unless the projection or {@link IndexConfig.returnVectors} asks for them.
|
|
2563
2601
|
* @returns A map from id to document, holding an entry for each id that
|
|
2564
2602
|
* exists and nothing for the rest.
|
|
2565
2603
|
*/
|
|
2566
|
-
getMultiple(indexName: string, docIds: string[]): Promise<Map<string, AnyDocument>>;
|
|
2604
|
+
getMultiple(indexName: string, docIds: string[], options?: GetOptions): Promise<Map<string, AnyDocument>>;
|
|
2567
2605
|
/**
|
|
2568
2606
|
* Reports whether an index holds a document, without reading it.
|
|
2569
2607
|
*
|
|
@@ -2830,4 +2868,4 @@ interface Narsil extends IndexLifecycleOperations, DocumentWriteOperations, Syno
|
|
|
2830
2868
|
shutdown(): Promise<void>;
|
|
2831
2869
|
}
|
|
2832
2870
|
|
|
2833
|
-
export { type
|
|
2871
|
+
export { type FacetConfig as $, type AnalysisChange as A, type BatchResult as B, type Change as C, type DocumentProjection as D, type ErrorCode as E, type FollowChangesOptions as F, type NarsilEventMap as G, type GetOptions as H, type IndexInfo as I, type GroupResult as J, type Hit as K, type ListParams as L, type MemoryStats as M, NarsilError as N, type GroupConfig as O, type PartitionStatsResult as P, type QueryParams as Q, type AdapterRegistrationOperations as R, type ServerErrorCode as S, type AnalysisOperations as T, type ArrayFilter as U, type VectorMaintenanceResult as V, type BM25Operations as W, type ByteSource as X, type ComparisonFilter as Y, type DocumentImportResult as Z, type DocumentWriteOperations as _, type ChangePosition as a, type FacetResult as a0, type FieldFilter as a1, type FilterExpression as a2, type GeoFilter as a3, type GeoPolygonFilter as a4, type GeoRadiusFilter as a5, type GroupReducer as a6, type HeldCheckpointReport as a7, type HighlightConfig as a8, type HighlightMatch as a9, type HybridConfig as aa, type IndexLifecycleOperations as ab, type ListedDocument as ac, type PresenceFilter as ad, type ProcessMemoryReport as ae, type QueryCoverage as af, type RerankConfig as ag, type ScoreComponents as ah, type SearchMode as ai, type SortField as aj, type SortSpec as ak, type StringFilter as al, type SyncOperations as am, type SynonymOperations as an, type TermMatchPolicy as ao, type VectorMaintenanceOperations as ap, type VectorQueryConfig as aq, type WorkerCopyReport as ar, type ChangeType as b, type ChangesBatch as c, type ChangesEvent as d, type ChangesOperations as e, type ChangesResync as f, type ChangesSetting as g, type ChangesStatus as h, type ChangesSubscribed as i, type ClientErrorCode as j, ClientErrorCodes as k, ErrorCodes as l, type NarsilErrorCode as m, ServerErrorCodes as n, type SnapshotOptions as o, type SyncSetting as p, type SyncStatus as q, isNarsilError as r, type Narsil as s, type QueryResult as t, type NarsilEventHandlers as u, type ListResult as v, type SuggestParams as w, type SuggestResult as x, type PreflightResult as y, type IndexStats as z };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
2
|
-
import './browser/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-J343PP7Q.mjs';
|
|
2
|
+
import './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-
|
|
4
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-3PGIOK7Z.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { e as StopWordOverride, C as CustomTokenizer } from './schema-
|
|
2
|
-
export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig, f as FieldOptionChain, F as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, S as SchemaDefinition, d as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, b as VectorQuantizationMode, g as VectorStorageMode, W as WriteOptions } from './schema-
|
|
1
|
+
import { e as StopWordOverride, C as CustomTokenizer } from './schema-CPQUdJTs.js';
|
|
2
|
+
export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig, f as FieldOptionChain, F as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, S as SchemaDefinition, d as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, b as VectorQuantizationMode, g as VectorStorageMode, W as WriteOptions } from './schema-CPQUdJTs.js';
|
|
3
3
|
import { P as PartialWordSearch } from './partial-words-DTIHO8G4.js';
|
|
4
4
|
import { P as PatternSearch } from './pattern-Cledccbl.js';
|
|
5
5
|
import { S as SynonymSearch } from './synonyms-CpOAHPa-.js';
|
|
6
6
|
export { O as OneWaySynonymRule, a as SynonymRule, T as TwoWaySynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
7
|
import { L as LanguageModule } from './language-DB8KG1z5.js';
|
|
8
8
|
export { T as TokenizerConfig } from './language-DB8KG1z5.js';
|
|
9
|
-
import { s as Narsil } from './engine-
|
|
10
|
-
export {
|
|
11
|
-
import { N as NarsilConfig } from './config-
|
|
12
|
-
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as MemoryConfig, d as NarsilPlugin, P as PartitionContext, Q as QuerySuggestionsConfig, R as RemoveContext, S as SearchContext, e as StaleAnalysis, U as UpdateContext, W as WorkerConfig, f as WorkerContext } from './config-
|
|
9
|
+
import { s as Narsil } from './engine-DP4PrdKM.js';
|
|
10
|
+
export { R as AdapterRegistrationOperations, A as AnalysisChange, T as AnalysisOperations, U as ArrayFilter, W as BM25Operations, B as BatchResult, X as ByteSource, C as Change, a as ChangePosition, b as ChangeType, c as ChangesBatch, d as ChangesEvent, e as ChangesOperations, f as ChangesResync, g as ChangesSetting, h as ChangesStatus, i as ChangesSubscribed, j as ClientErrorCode, k as ClientErrorCodes, Y as ComparisonFilter, Z as DocumentImportResult, D as DocumentProjection, _ as DocumentWriteOperations, E as ErrorCode, l as ErrorCodes, $ as FacetConfig, a0 as FacetResult, a1 as FieldFilter, a2 as FilterExpression, F as FollowChangesOptions, a3 as GeoFilter, a4 as GeoPolygonFilter, a5 as GeoRadiusFilter, H as GetOptions, O as GroupConfig, a6 as GroupReducer, J as GroupResult, a7 as HeldCheckpointReport, a8 as HighlightConfig, a9 as HighlightMatch, K as Hit, aa as HybridConfig, I as IndexInfo, ab as IndexLifecycleOperations, z as IndexStats, L as ListParams, v as ListResult, ac as ListedDocument, M as MemoryStats, N as NarsilError, m as NarsilErrorCode, u as NarsilEventHandlers, G as NarsilEventMap, P as PartitionStatsResult, y as PreflightResult, ad as PresenceFilter, ae as ProcessMemoryReport, af as QueryCoverage, Q as QueryParams, t as QueryResult, ag as RerankConfig, ah as ScoreComponents, ai as SearchMode, S as ServerErrorCode, n as ServerErrorCodes, o as SnapshotOptions, aj as SortField, ak as SortSpec, al as StringFilter, w as SuggestParams, x as SuggestResult, am as SyncOperations, p as SyncSetting, q as SyncStatus, an as SynonymOperations, ao as TermMatchPolicy, ap as VectorMaintenanceOperations, V as VectorMaintenanceResult, aq as VectorQueryConfig, ar as WorkerCopyReport, r as isNarsilError } from './engine-DP4PrdKM.js';
|
|
11
|
+
import { N as NarsilConfig } from './config-DJFXyHMZ.js';
|
|
12
|
+
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as MemoryConfig, d as NarsilPlugin, P as PartitionContext, Q as QuerySuggestionsConfig, R as RemoveContext, S as SearchContext, e as StaleAnalysis, U as UpdateContext, W as WorkerConfig, f as WorkerContext } from './config-DJFXyHMZ.js';
|
|
13
13
|
import { N as NativeStoredValues } from './stored-values-BWIMpiT_.js';
|
|
14
14
|
export { E as EmbeddingAdapter, a as IndexedDBLocation, I as InvalidationAdapter, b as InvalidationEvent, c as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-8LcdNB77.js';
|
|
15
15
|
export { h as QuerySuggestionsBuildEvent, j as QuerySuggestionsWarningEvent } from './query-suggestions-CBYkrQ5T.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './chunk-4QNWK42S.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-BRTABNC7.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
5
5
|
import './chunk-BUMREPLU.mjs';
|
|
6
6
|
import './chunk-7T4LAYT4.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-M5RYB6FE.mjs';
|
|
8
|
+
import './chunk-7NMLFP2T.mjs';
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
10
|
import './chunk-PSZEGK6W.mjs';
|
|
11
11
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './react-native/chunks/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './react-native/chunks/chunk-QT2G6OMI.mjs';
|
|
2
2
|
import './react-native/chunks/chunk-QFPZ3VKE.mjs';
|
|
3
3
|
import './react-native/chunks/chunk-XE7AMKEW.mjs';
|
|
4
4
|
import './react-native/chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import './react-native/chunks/chunk-
|
|
5
|
+
import './react-native/chunks/chunk-BIORJHQZ.mjs';
|
|
6
6
|
import './react-native/chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './react-native/chunks/chunk-CW2ZFXSE.mjs';
|
|
8
8
|
import './react-native/chunks/chunk-DN4FT62B.mjs';
|
|
9
|
-
import './react-native/chunks/chunk-
|
|
9
|
+
import './react-native/chunks/chunk-CBG4EUYD.mjs';
|
|
10
10
|
import './react-native/chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './react-native/chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './react-native/chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-2QQCR7KF.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-IVVNKTHC.mjs';
|
|
3
|
+
import './chunk-UFDD57KD.mjs';
|
|
4
4
|
import './chunk-TACP6VK6.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-KHZ6LAFB.mjs';
|
|
6
|
+
import './chunk-I255IQTR.mjs';
|
|
7
|
+
import './chunk-ICEZRKIS.mjs';
|
|
8
8
|
import './chunk-S5QMWECL.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
10
|
+
import './chunk-L2GYY6KY.mjs';
|
|
11
|
+
import './chunk-AKLCYPUY.mjs';
|
|
12
|
+
import './chunk-HNE4HNC2.mjs';
|
|
13
13
|
import './chunk-R724DJSG.mjs';
|
|
14
14
|
import './chunk-V6EUBAIT.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-R5OFJZNI.mjs';
|
|
16
|
+
import './chunk-4QNWK42S.mjs';
|
|
17
17
|
import './chunk-2CKDCC65.mjs';
|
|
18
18
|
import './chunk-BRTABNC7.mjs';
|
|
19
19
|
import './chunk-Y7GXGJFZ.mjs';
|
|
20
20
|
import './chunk-BUMREPLU.mjs';
|
|
21
21
|
import './chunk-7T4LAYT4.mjs';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
22
|
+
import './chunk-M5RYB6FE.mjs';
|
|
23
|
+
import './chunk-7NMLFP2T.mjs';
|
|
24
24
|
import './chunk-U2BKYEC7.mjs';
|
|
25
25
|
import './chunk-PSZEGK6W.mjs';
|
|
26
26
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { restoreVectorFields, setNestedValue } from './chunk-
|
|
1
|
+
export { restoreVectorFields, setNestedValue } from './chunk-L2GYY6KY.mjs';
|
|
2
2
|
export { encodeDocument } from './chunk-2CKDCC65.mjs';
|
|
3
3
|
export { Decoder, MAP_TAGS, bindMsgpackHost, decode, decodeBoundedMessage, decodeMulti, headerAt } from './chunk-Y7GXGJFZ.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-7NMLFP2T.mjs';
|
|
5
5
|
import './chunk-ZXX5GZEX.mjs';
|
|
6
6
|
import './chunk-4PY4JYMY.mjs';
|
|
7
7
|
import './chunk-ZKOQR7EA.mjs';
|
|
@@ -3291,7 +3291,7 @@ function executeListDocuments(params, context) {
|
|
|
3291
3291
|
const signature = sortSignatureOf(params.sort);
|
|
3292
3292
|
requireSortableFields(params.sort, schema, context.strict === true);
|
|
3293
3293
|
const filters = validQueryFilter(params.filters, schema);
|
|
3294
|
-
const projection = resolveProjection(params.document);
|
|
3294
|
+
const projection = resolveProjection(params.document, context);
|
|
3295
3295
|
const binding = listBindingOf(params.filters);
|
|
3296
3296
|
let cursor = null;
|
|
3297
3297
|
if (params.cursor !== void 0) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { applyStoredIndexBm25, updateIndexBm25 } from './chunk-
|
|
2
|
-
import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-
|
|
3
|
-
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-
|
|
1
|
+
export { applyStoredIndexBm25, updateIndexBm25 } from './chunk-TNBOFWDS.mjs';
|
|
2
|
+
import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-4QNWK42S.mjs';
|
|
3
|
+
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-4QNWK42S.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-BRTABNC7.mjs';
|
|
6
6
|
import './chunk-Y7GXGJFZ.mjs';
|
|
7
7
|
import { isSyncEpoch, newSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
8
8
|
import './chunk-7T4LAYT4.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { validateSchema, validateVectorStorage, validateTextStorage } from './chunk-
|
|
9
|
+
import './chunk-M5RYB6FE.mjs';
|
|
10
|
+
import { validateSchema, validateVectorStorage, validateTextStorage } from './chunk-7NMLFP2T.mjs';
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
12
|
import './chunk-PSZEGK6W.mjs';
|
|
13
13
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { resolvePartitionId } from './chunk-
|
|
2
|
-
import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { encodeSegmentManifest, loadFailed, directoryCheckpointStore, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-
|
|
1
|
+
import { resolvePartitionId } from './chunk-N3DJTTKK.mjs';
|
|
2
|
+
import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-IALJ2X74.mjs';
|
|
3
|
+
import './chunk-UJQ2S5QU.mjs';
|
|
4
|
+
import './chunk-UGMOBSMD.mjs';
|
|
5
|
+
import { encodeSegmentManifest, loadFailed, directoryCheckpointStore, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-QWYIMVYT.mjs';
|
|
6
6
|
import { PARTITION_COPY_VECTOR_RUN_BYTES } from './chunk-JDDXV6UF.mjs';
|
|
7
|
-
import { segmentsPrefix, vectorFileKey } from './chunk-
|
|
7
|
+
import { segmentsPrefix, vectorFileKey } from './chunk-ICEZRKIS.mjs';
|
|
8
8
|
import './chunk-S5QMWECL.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
10
|
+
import './chunk-L2GYY6KY.mjs';
|
|
11
|
+
import './chunk-AKLCYPUY.mjs';
|
|
12
|
+
import './chunk-HNE4HNC2.mjs';
|
|
13
13
|
import { vectorsPerFile, isDead, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-R724DJSG.mjs';
|
|
14
14
|
import './chunk-V6EUBAIT.mjs';
|
|
15
|
-
import { HEADER_SIZE, crc32Init, crc32Final, engineVersionParts, writeHeader, RESERVED_SIZE, crc32Update } from './chunk-
|
|
16
|
-
import { generateId, isCompositePartition } from './chunk-
|
|
15
|
+
import { HEADER_SIZE, crc32Init, crc32Final, engineVersionParts, writeHeader, RESERVED_SIZE, crc32Update } from './chunk-R5OFJZNI.mjs';
|
|
16
|
+
import { generateId, isCompositePartition } from './chunk-4QNWK42S.mjs';
|
|
17
17
|
import './chunk-2CKDCC65.mjs';
|
|
18
18
|
import './chunk-BRTABNC7.mjs';
|
|
19
19
|
import { decode } from './chunk-Y7GXGJFZ.mjs';
|
|
20
20
|
import './chunk-BUMREPLU.mjs';
|
|
21
21
|
import './chunk-7T4LAYT4.mjs';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import { parseVectorDimension } from './chunk-
|
|
22
|
+
import './chunk-M5RYB6FE.mjs';
|
|
23
|
+
import { parseVectorDimension } from './chunk-7NMLFP2T.mjs';
|
|
24
24
|
import './chunk-U2BKYEC7.mjs';
|
|
25
25
|
import './chunk-PSZEGK6W.mjs';
|
|
26
26
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, DEFAULT_FUZZY_PREFIX_LENGTH, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, FNV_OFFSET_BASIS, typedRegion, regionsOverlap, mergeText, FNV_PRIME } from './browser/chunk-
|
|
2
|
-
import { fuzzyTermMatches, storedText } from './browser/chunk-
|
|
1
|
+
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, DEFAULT_FUZZY_PREFIX_LENGTH, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, FNV_OFFSET_BASIS, typedRegion, regionsOverlap, mergeText, FNV_PRIME } from './browser/chunk-J343PP7Q.mjs';
|
|
2
|
+
import { fuzzyTermMatches, storedText } from './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
|
-
import { compareCodePoints, codePointCount, NarsilError, ErrorCodes } from './browser/chunk-
|
|
4
|
+
import { compareCodePoints, codePointCount, NarsilError, ErrorCodes } from './browser/chunk-3PGIOK7Z.mjs';
|
|
5
5
|
|
|
6
6
|
// src/core/expansion/partial-bindings.ts
|
|
7
7
|
var PARTIAL_BUDGET;
|
package/dist/partial-words.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { partialWordSearchModule } from './chunk-
|
|
1
|
+
import { partialWordSearchModule } from './chunk-4QNWK42S.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-BRTABNC7.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
5
5
|
import './chunk-BUMREPLU.mjs';
|
|
6
6
|
import './chunk-7T4LAYT4.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-M5RYB6FE.mjs';
|
|
8
|
+
import './chunk-7NMLFP2T.mjs';
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
10
|
import './chunk-PSZEGK6W.mjs';
|
|
11
11
|
import './chunk-5EI5CXO6.mjs';
|
package/dist/pattern.browser.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { storedValuesOf, bitsetHas, bitsetSet, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, TYPO_CLAIM_SLOTS_PER_WORD, storedText, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, tabulatedLevenshtein } from './browser/chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes, codePointCount, exceedsCodePoints } from './browser/chunk-
|
|
1
|
+
import { storedValuesOf, bitsetHas, bitsetSet, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, TYPO_CLAIM_SLOTS_PER_WORD, storedText, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, tabulatedLevenshtein } from './browser/chunk-HIC42RBU.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes, codePointCount, exceedsCodePoints } from './browser/chunk-3PGIOK7Z.mjs';
|
|
3
3
|
|
|
4
4
|
// src/pattern/constants.ts
|
|
5
5
|
var MATCHER_TRANSITION_BYTES = 48;
|
package/dist/pattern.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { patternSearchModule } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { patternSearchModule } from './chunk-M5RYB6FE.mjs';
|
|
2
|
+
import './chunk-7NMLFP2T.mjs';
|
|
3
3
|
import './chunk-ZXX5GZEX.mjs';
|
|
4
4
|
import './chunk-4PY4JYMY.mjs';
|
|
5
5
|
import './chunk-ZKOQR7EA.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BM25FieldParams, P as PartitionConfig, d as ScoringMode, V as VectorIndexConfig } from '../../schema-
|
|
1
|
+
import { c as BM25FieldParams, P as PartitionConfig, d as ScoringMode, V as VectorIndexConfig } from '../../schema-CPQUdJTs.js';
|
|
2
2
|
import { d as QuerySuggestionsSetting, i as QuerySuggestionsSource } from '../../query-suggestions-CBYkrQ5T.js';
|
|
3
3
|
import { N as NativeStoredValues } from '../../stored-values-BWIMpiT_.js';
|
|
4
4
|
import '../../adapters-8LcdNB77.js';
|
|
@@ -219,6 +219,7 @@ interface IndexMetadata {
|
|
|
219
219
|
trackPositions?: boolean;
|
|
220
220
|
textStorage?: 'memory' | 'disk';
|
|
221
221
|
strict?: boolean;
|
|
222
|
+
returnVectors?: boolean;
|
|
222
223
|
required?: string[];
|
|
223
224
|
vectorPromotion?: VectorIndexConfig;
|
|
224
225
|
patternValueLimit?: number;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { createDurableDirectory } from '../../chunk-57HDOVEE.mjs';
|
|
2
|
-
import { writeCheckpointSegments } from '../../chunk-
|
|
3
|
-
import { directoryCheckpointStore } from '../../chunk-
|
|
2
|
+
import { writeCheckpointSegments } from '../../chunk-B6VO3BCX.mjs';
|
|
3
|
+
import { directoryCheckpointStore } from '../../chunk-QWYIMVYT.mjs';
|
|
4
4
|
import '../../chunk-5FLRXF73.mjs';
|
|
5
5
|
import '../../chunk-JDDXV6UF.mjs';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-ICEZRKIS.mjs';
|
|
7
7
|
import '../../chunk-S5QMWECL.mjs';
|
|
8
8
|
import '../../chunk-LNGE7SLY.mjs';
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-L2GYY6KY.mjs';
|
|
10
|
+
import '../../chunk-AKLCYPUY.mjs';
|
|
11
|
+
import '../../chunk-HNE4HNC2.mjs';
|
|
12
12
|
import '../../chunk-R724DJSG.mjs';
|
|
13
13
|
import '../../chunk-V6EUBAIT.mjs';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-
|
|
14
|
+
import '../../chunk-R5OFJZNI.mjs';
|
|
15
|
+
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-4QNWK42S.mjs';
|
|
16
16
|
import '../../chunk-2CKDCC65.mjs';
|
|
17
17
|
import '../../chunk-BRTABNC7.mjs';
|
|
18
18
|
import '../../chunk-Y7GXGJFZ.mjs';
|
|
19
19
|
import '../../chunk-BUMREPLU.mjs';
|
|
20
20
|
import '../../chunk-7T4LAYT4.mjs';
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import { loadMessagePack } from '../../chunk-
|
|
21
|
+
import '../../chunk-M5RYB6FE.mjs';
|
|
22
|
+
import { loadMessagePack } from '../../chunk-7NMLFP2T.mjs';
|
|
23
23
|
import '../../chunk-U2BKYEC7.mjs';
|
|
24
24
|
import '../../chunk-PSZEGK6W.mjs';
|
|
25
25
|
import '../../chunk-5EI5CXO6.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-
|
|
1
|
+
import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-4QNWK42S.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-BRTABNC7.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
5
5
|
import './chunk-BUMREPLU.mjs';
|
|
6
6
|
import './chunk-7T4LAYT4.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-M5RYB6FE.mjs';
|
|
8
|
+
import './chunk-7NMLFP2T.mjs';
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
10
|
import { answerFromOneState, requirePinnedState } from './chunk-PSZEGK6W.mjs';
|
|
11
11
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Merger } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { Merger } from '../chunk-B276ZQIH.mjs';
|
|
2
|
+
import '../chunk-CHGJGKST.mjs';
|
|
3
3
|
import '../chunk-V6EUBAIT.mjs';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-R5OFJZNI.mjs';
|
|
5
|
+
import '../chunk-4QNWK42S.mjs';
|
|
6
6
|
import '../chunk-2CKDCC65.mjs';
|
|
7
7
|
import '../chunk-BRTABNC7.mjs';
|
|
8
8
|
import '../chunk-Y7GXGJFZ.mjs';
|
|
9
9
|
import '../chunk-BUMREPLU.mjs';
|
|
10
10
|
import '../chunk-7T4LAYT4.mjs';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-M5RYB6FE.mjs';
|
|
12
|
+
import '../chunk-7NMLFP2T.mjs';
|
|
13
13
|
import '../chunk-U2BKYEC7.mjs';
|
|
14
14
|
import '../chunk-PSZEGK6W.mjs';
|
|
15
15
|
import '../chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-
|
|
2
|
-
import './browser/chunk-
|
|
1
|
+
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-J343PP7Q.mjs';
|
|
2
|
+
import './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes } from './browser/chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes } from './browser/chunk-3PGIOK7Z.mjs';
|
|
5
5
|
|
|
6
6
|
// src/query-suggestions/providers.ts
|
|
7
7
|
var providers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as Narsil } from './engine-
|
|
1
|
+
import { s as Narsil } from './engine-DP4PrdKM.js';
|
|
2
2
|
import { g as QuerySuggestions } from './query-suggestions-CBYkrQ5T.js';
|
|
3
3
|
export { M as ManualQuerySuggestion, Q as QuerySuggestionPreviewEntry, a as QuerySuggestionsBuild, h as QuerySuggestionsBuildEvent, b as QuerySuggestionsBuildTrigger, c as QuerySuggestionsPreview, d as QuerySuggestionsSetting, i as QuerySuggestionsSource, e as QuerySuggestionsStatus, j as QuerySuggestionsWarningEvent, k as QuerySuggestionsWarningReason, R as RecordQueryOutcome, f as RecordQueryResult, l as RecordedQuery } from './query-suggestions-CBYkrQ5T.js';
|
|
4
4
|
import './adapters-8LcdNB77.js';
|
|
5
|
-
import './schema-
|
|
5
|
+
import './schema-CPQUdJTs.js';
|
|
6
6
|
import './synonyms-CpOAHPa-.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { querySuggestions } from './chunk-
|
|
1
|
+
export { querySuggestions } from './chunk-5PUNOJC7.mjs';
|
|
2
2
|
import './chunk-S2POFTLN.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-4QNWK42S.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-BRTABNC7.mjs';
|
|
6
6
|
import './chunk-Y7GXGJFZ.mjs';
|
|
7
7
|
import './chunk-BUMREPLU.mjs';
|
|
8
8
|
import './chunk-7T4LAYT4.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-M5RYB6FE.mjs';
|
|
10
|
+
import './chunk-7NMLFP2T.mjs';
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
12
|
import './chunk-PSZEGK6W.mjs';
|
|
13
13
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createSurfaceRegistry, SegmentRefusal, encodeSurfaceTable, encodePartialSpellingsOf, encodeStringBlob, mergeTextAt, generateId, encodeExternalIdTableData, buildPartialWordTableFrom, wrapFrozenTokenTable, encodeDocumentTableData, topLevelMapKeys, mergeStoredFields, prepareDocumentText, recordValueSize, patternIndexOf, encodeFieldIndexes, mergeFieldRegions, sameFields, partialSpellingsOfDocuments, storedDocumentsOf, encodeFrozenTokenTableData, mergeKeywordSources, GrowingSegment, LivePostings, createSpellingTable, createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex } from './chunk-
|
|
2
|
-
import { storedText, bitsetIterator } from './chunk-
|
|
1
|
+
import { createSurfaceRegistry, SegmentRefusal, encodeSurfaceTable, encodePartialSpellingsOf, encodeStringBlob, mergeTextAt, generateId, encodeExternalIdTableData, buildPartialWordTableFrom, wrapFrozenTokenTable, encodeDocumentTableData, topLevelMapKeys, mergeStoredFields, prepareDocumentText, recordValueSize, patternIndexOf, encodeFieldIndexes, mergeFieldRegions, sameFields, partialSpellingsOfDocuments, storedDocumentsOf, encodeFrozenTokenTableData, mergeKeywordSources, GrowingSegment, LivePostings, createSpellingTable, createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex } from './chunk-QT2G6OMI.mjs';
|
|
2
|
+
import { storedText, bitsetIterator } from './chunk-BIORJHQZ.mjs';
|
|
3
3
|
import { encodeDocument } from './chunk-DN4FT62B.mjs';
|
|
4
|
-
import { schemaFieldsOf, getNestedValue, isWordIndexedBase, validateDocument, validateDocumentStrict } from './chunk-
|
|
4
|
+
import { schemaFieldsOf, getNestedValue, isWordIndexedBase, validateDocument, validateDocumentStrict } from './chunk-CBG4EUYD.mjs';
|
|
5
5
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
6
6
|
|
|
7
7
|
// src/engine/orchestration/eligibility.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requireLoadedMessagePack, getNestedValue, parsedTypeOf } from './chunk-
|
|
1
|
+
import { requireLoadedMessagePack, getNestedValue, parsedTypeOf } from './chunk-CBG4EUYD.mjs';
|
|
2
2
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
3
3
|
|
|
4
4
|
// src/core/bitset.ts
|
|
@@ -728,6 +728,21 @@ function partialFieldsOf(schema) {
|
|
|
728
728
|
partialFieldsBySchema.set(schema, frozen);
|
|
729
729
|
return frozen;
|
|
730
730
|
}
|
|
731
|
+
var vectorPathsBySchema = /* @__PURE__ */ new WeakMap();
|
|
732
|
+
function vectorFieldSegmentsOf(schema) {
|
|
733
|
+
const cached = vectorPathsBySchema.get(schema);
|
|
734
|
+
if (cached !== void 0) return cached;
|
|
735
|
+
const paths = [];
|
|
736
|
+
for (const field of schemaFieldsOf(schema)) {
|
|
737
|
+
if (field.base !== "vector") continue;
|
|
738
|
+
const segments = field.path.split(".");
|
|
739
|
+
Object.freeze(segments);
|
|
740
|
+
paths.push(segments);
|
|
741
|
+
}
|
|
742
|
+
const frozen = Object.freeze(paths);
|
|
743
|
+
vectorPathsBySchema.set(schema, frozen);
|
|
744
|
+
return frozen;
|
|
745
|
+
}
|
|
731
746
|
function extractVectorFieldsFromSchema(schema) {
|
|
732
747
|
const result = /* @__PURE__ */ new Map();
|
|
733
748
|
for (const field of schemaFieldsOf(schema)) {
|
|
@@ -866,7 +881,7 @@ var loaded = null;
|
|
|
866
881
|
var loading = null;
|
|
867
882
|
function loadMessagePack() {
|
|
868
883
|
if (loaded !== null) return Promise.resolve(loaded);
|
|
869
|
-
loading ??= import('./msgpack-leaf-
|
|
884
|
+
loading ??= import('./msgpack-leaf-Q4BPA4G7.mjs').then(
|
|
870
885
|
(code) => {
|
|
871
886
|
code.bindMsgpackHost({
|
|
872
887
|
BYTE_ORDER_MARK_WALK_BYTES_PER_HEADER,
|
|
@@ -899,4 +914,4 @@ function requireLoadedMessagePack() {
|
|
|
899
914
|
return loaded;
|
|
900
915
|
}
|
|
901
916
|
|
|
902
|
-
export { ANTIMERIDIAN_SPAN_DEGREES, DEG_TO_RAD, EARTH_RADIUS_METERS, FULL_TURN_DEGREES, LOCATION_CELLS_PER_AXIS, LOCATION_CODE_BITS_PER_AXIS, MAX_COVERING_CELLS, MAX_DOCUMENT_NESTING_DEPTH, MAX_LATITUDE_DEGREES, MAX_LONGITUDE_DEGREES, MAX_NESTING_DEPTH, MAX_PATTERN_VALUE_LIMIT, MIN_PATTERN_VALUE_LIMIT, MIN_POLYGON_POINTS, PROTOTYPE_POLLUTION_KEYS, VECTOR_PATTERN, extractVectorFieldsFromSchema, flattenSchema, getFlatSchema, getNestedValue, getOrCreateFieldNameIndex, isGeopointOrVectorType, isLatitude, isListBase, isLongitude, isPlainObject, isQuantizationMode, isSingleStringFieldType, isStorageMode, isStringValuedBase, isWordIndexedBase, isWordIndexedFieldType, loadMessagePack, loadedMessagePack, messagePackUpperBoundBytes, parseVectorDimension, parsedTypeOf, partialFieldsOf, raiseEarlierReleaseGraphSetting, requireCreatableSchema, requireDocumentWithinSizeLimit, requireLoadedMessagePack, requireValidFieldTypes, schemaFieldsOf, textFieldsChanged, tokenizeOptions, validateDocument, validateDocumentStrict, validateRequiredFields, validateSchema, validateTextStorage, validateVectorPromotion, validateVectorStorage, vectorDimensionOf, withSortableOption };
|
|
917
|
+
export { ANTIMERIDIAN_SPAN_DEGREES, DEG_TO_RAD, EARTH_RADIUS_METERS, FULL_TURN_DEGREES, LOCATION_CELLS_PER_AXIS, LOCATION_CODE_BITS_PER_AXIS, MAX_COVERING_CELLS, MAX_DOCUMENT_NESTING_DEPTH, MAX_LATITUDE_DEGREES, MAX_LONGITUDE_DEGREES, MAX_NESTING_DEPTH, MAX_PATTERN_VALUE_LIMIT, MIN_PATTERN_VALUE_LIMIT, MIN_POLYGON_POINTS, PROTOTYPE_POLLUTION_KEYS, VECTOR_PATTERN, extractVectorFieldsFromSchema, flattenSchema, getFlatSchema, getNestedValue, getOrCreateFieldNameIndex, isGeopointOrVectorType, isLatitude, isListBase, isLongitude, isPlainObject, isQuantizationMode, isSingleStringFieldType, isStorageMode, isStringValuedBase, isWordIndexedBase, isWordIndexedFieldType, loadMessagePack, loadedMessagePack, messagePackUpperBoundBytes, parseVectorDimension, parsedTypeOf, partialFieldsOf, raiseEarlierReleaseGraphSetting, requireCreatableSchema, requireDocumentWithinSizeLimit, requireLoadedMessagePack, requireValidFieldTypes, schemaFieldsOf, textFieldsChanged, tokenizeOptions, validateDocument, validateDocumentStrict, validateRequiredFields, validateSchema, validateTextStorage, validateVectorPromotion, validateVectorStorage, vectorDimensionOf, vectorFieldSegmentsOf, withSortableOption };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-
|
|
2
|
-
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-
|
|
1
|
+
import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-QZUFYRFX.mjs';
|
|
2
|
+
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-QT2G6OMI.mjs';
|
|
3
3
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/engine-hooks.ts
|