@delali/narsil 0.4.6-next.332 → 0.4.6-next.333
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-DJDBJB2U.mjs → chunk-75MBWQFW.mjs} +71 -27
- 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/{optional-reads-NQO5DKM4.mjs → optional-reads-4O4CJ7TR.mjs} +1 -1
- package/dist/browser/{runtime-OMKE7DF4.mjs → runtime-AMEB4J2D.mjs} +2 -1
- package/dist/browser/{segment-codec-leaf-GXSRX5VT.mjs → segment-codec-leaf-NDVBIBJJ.mjs} +3 -0
- package/dist/browser/{storage-leaf-72PEG6IP.mjs → storage-leaf-NCOXQTXQ.mjs} +12 -0
- package/dist/{capabilities-DaJKuKlG.d.ts → capabilities-YazdElfW.d.ts} +2 -2
- package/dist/{chunk-HWIIMLLR.mjs → chunk-26AKUBDX.mjs} +6 -6
- package/dist/{react-native/chunks/chunk-NUOJ2EAK.mjs → chunk-2M55WPWK.mjs} +1 -1
- package/dist/{chunk-MUBQER6D.mjs → chunk-34QTB6O7.mjs} +1 -1
- package/dist/{chunk-WCGFMFWK.mjs → chunk-3EFLY5LQ.mjs} +2 -2
- package/dist/{chunk-AQI4DIFA.mjs → chunk-3TENTQKL.mjs} +2 -2
- package/dist/{react-native/chunks/chunk-ALSPAMEE.mjs → chunk-3UAYJW6R.mjs} +2 -2
- package/dist/{chunk-CZHAPGVH.mjs → chunk-3WYTRM24.mjs} +80 -78
- package/dist/chunk-43UYNPPC.mjs +110 -0
- package/dist/{chunk-JASE2FE6.mjs → chunk-47NXBGQG.mjs} +2 -2
- package/dist/{chunk-GTB2S2VX.mjs → chunk-5CYLXJYQ.mjs} +2 -2
- package/dist/{chunk-WRDGPEN6.mjs → chunk-5E46Y42F.mjs} +2 -2
- package/dist/{chunk-PM2UOKYB.mjs → chunk-6U4C7VAD.mjs} +37 -9
- package/dist/{chunk-EY5U4P5V.mjs → chunk-7NMLFP2T.mjs} +17 -2
- package/dist/{chunk-CN42TL6V.mjs → chunk-E6CHNSMY.mjs} +5 -5
- package/dist/{chunk-UAITBI74.mjs → chunk-FBGUKBW2.mjs} +15 -9
- package/dist/{chunk-NNRDQYBD.mjs → chunk-GYQKMYPG.mjs} +85 -38
- package/dist/{chunk-JXRMHWQU.mjs → chunk-GZ4YU36L.mjs} +1 -1
- package/dist/{chunk-RBHEMWN6.mjs → chunk-H2R4BTSO.mjs} +3 -3
- package/dist/{chunk-3GWUUKDJ.mjs → chunk-HFF2R73P.mjs} +2 -2
- package/dist/{chunk-EDZJNZKV.mjs → chunk-HJCYLTVA.mjs} +1 -1
- package/dist/{chunk-BOTZ2GSW.mjs → chunk-KFUHQC6X.mjs} +22 -12
- package/dist/{chunk-5SHWA6PE.mjs → chunk-L2GYY6KY.mjs} +1 -1
- package/dist/{chunk-ONDHZ4WW.mjs → chunk-L2W4FGTD.mjs} +2 -2
- package/dist/{chunk-4JLHHEBN.mjs → chunk-M5RYB6FE.mjs} +1 -1
- package/dist/{chunk-G6P6YTTW.mjs → chunk-NOEMVUBS.mjs} +1 -1
- package/dist/{chunk-VIHHCXBO.mjs → chunk-NSMF4OHE.mjs} +3 -3
- package/dist/{chunk-DVFCDOXW.mjs → chunk-OPWZ7PZZ.mjs} +1 -1
- package/dist/{chunk-7DW2ITZ3.mjs → chunk-PBVLCGCW.mjs} +1 -1
- package/dist/{chunk-FWZ5OK5G.mjs → chunk-U6B3HHTP.mjs} +4 -4
- package/dist/{chunk-M2Z5WVWW.mjs → chunk-UGMOBSMD.mjs} +2 -0
- package/dist/{chunk-43T3P3BE.mjs → chunk-WW3RDS57.mjs} +1 -1
- 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-2Y3JPVXT.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-6B2HXSBI.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-27NHTIAL.mjs} +5 -5
- package/dist/{paged-partition-archive-EABR3N3F.mjs → paged-partition-archive-EFCEC4TD.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-H6H54EJE.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-V2H7EDTM.mjs → chunk-7TURQEZZ.mjs} +84 -37
- 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/{chunk-AWMO3NKJ.mjs → react-native/chunks/chunk-DYAAQB5R.mjs} +1 -1
- package/dist/{chunk-57MN2UAL.mjs → react-native/chunks/chunk-GCD64RZ2.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-BGRX5SPG.mjs → chunk-UTYWL2W6.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-GPMPHDDO.mjs → chunk-XCJVLU6J.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-PTCHRZCP.mjs → chunk-YMIPG3VC.mjs} +3 -3
- 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-NYFF5NTC.mjs} +4 -4
- package/dist/react-native/chunks/{restore-queue-MLFBOOZP.mjs → restore-queue-4OXFRQ6N.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-YKUO5DU6.mjs} +4 -4
- package/dist/react-native/chunks/{segment-merge-leaf-TNHU77VW.mjs → segment-merge-leaf-HIOWV5UN.mjs} +5 -5
- package/dist/react-native/chunks/{storage-leaf-NF733K7B.mjs → storage-leaf-H64VNQKE.mjs} +20 -8
- package/dist/react-native/chunks/{store-leaf-UDKCNQB7.mjs → store-leaf-ZG5DR7QA.mjs} +5 -5
- package/dist/react-native/chunks/{suggestions-leaf-M6ITOPNM.mjs → suggestions-leaf-AJZ3SHZO.mjs} +5 -5
- package/dist/react-native/chunks/{worker-copies-GG7CKUBI.mjs → worker-copies-IY4ZIA6W.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-JTIQNROU.mjs} +25 -12
- package/dist/{restore-queue-NSA3RWF6.mjs → restore-queue-JIJW3XKK.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-LTIODLBH.mjs} +4 -4
- package/dist/{segment-merge-leaf-67Z6OMRF.mjs → segment-merge-leaf-CXOMXPAP.mjs} +4 -4
- package/dist/server.d.ts +22 -11
- package/dist/server.mjs +24 -20
- package/dist/{storage-leaf-FUH75D3X.mjs → storage-leaf-VB5OG66O.mjs} +22 -22
- package/dist/{store-leaf-CKZFFFTX.mjs → store-leaf-RBK3Y2H4.mjs} +5 -5
- package/dist/{suggestions-leaf-NOSJIRSD.mjs → suggestions-leaf-27TNMJ37.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-J32AOE3H.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-F2WVSQQO.mjs} +6 -6
- package/dist/workers/entry.mjs +9 -9
- package/openapi.json +58 -2
- package/package.json +5 -5
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { sha256 } from './chunk-H3MDVPBO.mjs';
|
|
2
2
|
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
|
-
import { openChecksummedEnvelope, HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, hasNrslMagic, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, packEnvelopeWithChecksum, checksumOfChunks, QUERY_HISTORY_FOLDER, storedStateToWire, storedStateFromWire } from './chunk-
|
|
4
|
-
import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-
|
|
5
|
-
import { deserializePartition } from './chunk-
|
|
6
|
-
import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-
|
|
7
|
-
import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, loadSchemaCodeFor, decodeStoredDocument, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, yieldToEventLoop, buildPartialWordTableFrom, configurationPayloadOf, withOpenIndex, emitSyncChange, newSyncEpoch, isCompositePartition, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, isSyncEpoch, prepareDocumentVectors, removedSurfaceSpellings, prepareConfiguredSynonyms, decodeSurfaceTable, mergeDocFrequencies, TermLookup, createFrozenRemovals, mergeKeywordSources, createSharedFrozenSegment, ARRAY_POSITION_GAP, createFrozenSegment, createPublicationGate, prepareRemovalText, prepareDocumentText, writePartitionDocument, updateDocumentVectors, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, readHeapStatistics, readProcessMemoryUse, holdSyncEpochChange, emptyPendingRegions, mergePostings2, scanPostingBlocks, SegmentRefusal, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, validQueryFilter, createPatternWorkMeter, compareScores, endOfValue, decodeEveryStoredDocument, createPartitionManager, createPartitionRouter, loadGzip, arrayPositionsAreStale, insertDocumentVectors, decodeMapWithoutFields, survivorDocumentsOf, partitionStateOf, noteDocumentChurn, removeDocumentVectors } from './chunk-
|
|
3
|
+
import { openChecksummedEnvelope, HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, hasNrslMagic, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, packEnvelopeWithChecksum, checksumOfChunks, QUERY_HISTORY_FOLDER, storedStateToWire, storedStateFromWire } from './chunk-UTYWL2W6.mjs';
|
|
4
|
+
import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-DYAAQB5R.mjs';
|
|
5
|
+
import { deserializePartition } from './chunk-GCD64RZ2.mjs';
|
|
6
|
+
import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-YMIPG3VC.mjs';
|
|
7
|
+
import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, loadSchemaCodeFor, decodeStoredDocument, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, yieldToEventLoop, buildPartialWordTableFrom, configurationPayloadOf, withOpenIndex, emitSyncChange, newSyncEpoch, isCompositePartition, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, isSyncEpoch, prepareDocumentVectors, removedSurfaceSpellings, prepareConfiguredSynonyms, decodeSurfaceTable, mergeDocFrequencies, TermLookup, createFrozenRemovals, mergeKeywordSources, createSharedFrozenSegment, ARRAY_POSITION_GAP, createFrozenSegment, createPublicationGate, prepareRemovalText, prepareDocumentText, writePartitionDocument, updateDocumentVectors, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, readHeapStatistics, readProcessMemoryUse, holdSyncEpochChange, emptyPendingRegions, mergePostings2, scanPostingBlocks, SegmentRefusal, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, validQueryFilter, createPatternWorkMeter, compareScores, endOfValue, decodeEveryStoredDocument, createPartitionManager, createPartitionRouter, loadGzip, arrayPositionsAreStale, insertDocumentVectors, decodeMapWithoutFields, survivorDocumentsOf, partitionStateOf, noteDocumentChurn, removeDocumentVectors } from './chunk-7TURQEZZ.mjs';
|
|
8
8
|
import './chunk-QFPZ3VKE.mjs';
|
|
9
9
|
import { turnsAreBudgeted, turnIsSpent, yieldTurn, isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, countWrite, collectAndReturnPages, requireBoundedUpperLists, osqRecordBytes, createFixedBuffer, magnitude, rescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, createVectorFileReader, decodeVectorIndexParts, signalOfSearch, requireSearchActive, osqQuantize, createOsqScratch, stageQueryLevels, scalarQueryProducts, readTrailer, osqEstimate, osqDistance, toDistance, decodeVectorFilePayload, DEFAULT_VECTOR_METRIC, defaultQuantizationFor, VECTOR_FILE_MAX_VECTORS, deadBytesFor, vectorsPerFile, vectorsToBytes, decodeVectorGraphPartPayload, assembleGraphParts, waitOutsideCountedWrite, fnv1a, osqBitsOf, countDead, nodeThreadId, detectRuntime, graphPartsOfEarlierPayload, decodeVectorGraphPayload } from './chunk-XE7AMKEW.mjs';
|
|
10
10
|
export { createHNSWIndex, osqBitsOf } from './chunk-XE7AMKEW.mjs';
|
|
11
11
|
import { DEFAULT_MAX_PARTITIONS, EXPORT_CHUNK_BYTES, MAX_PARTITIONS, STATISTICS_BROADCAST_INTERVAL_MS, ANALYSIS_CHANGE_MEMBERS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, FOREIGN_STATS_TTL_MS, ANALYSIS_HOLD_APPLY_INTERVAL_MS, MAX_IMPORT_REFUSALS_REPORTED, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-LX62Y4B5.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-BIORJHQZ.mjs';
|
|
13
13
|
import { nativeSearchCoreIsEnabled, loadNativeCore } from './chunk-UYKIV2KT.mjs';
|
|
14
14
|
import { reactNativeHost } from './chunk-CW2ZFXSE.mjs';
|
|
15
|
-
import { setNestedValue, restoreVectorFields } from './chunk-
|
|
15
|
+
import { setNestedValue, restoreVectorFields } from './chunk-ZSJABTIE.mjs';
|
|
16
16
|
import { decode, decodeMulti, encodeDocument } from './chunk-DN4FT62B.mjs';
|
|
17
|
-
import { flattenSchema, validateDocument, validateDocumentStrict, schemaFieldsOf, VECTOR_PATTERN, parseVectorDimension, requireValidFieldTypes, extractVectorFieldsFromSchema, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, messagePackUpperBoundBytes, partialFieldsOf, getNestedValue, MAX_DOCUMENT_NESTING_DEPTH, isQuantizationMode, isStorageMode } from './chunk-
|
|
17
|
+
import { flattenSchema, validateDocument, validateDocumentStrict, schemaFieldsOf, VECTOR_PATTERN, parseVectorDimension, requireValidFieldTypes, extractVectorFieldsFromSchema, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, messagePackUpperBoundBytes, partialFieldsOf, getNestedValue, MAX_DOCUMENT_NESTING_DEPTH, isQuantizationMode, isStorageMode } from './chunk-CBG4EUYD.mjs';
|
|
18
18
|
import { MIN_M, MAX_M, MAX_LAYER_CAP, compareCodePoints } from './chunk-HRDMIQ63.mjs';
|
|
19
19
|
import { MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-VUJCSQG5.mjs';
|
|
20
20
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
@@ -3038,6 +3038,7 @@ function readSharedConfigFields(source, reject) {
|
|
|
3038
3038
|
reject("textStorage must be 'memory' or 'disk'");
|
|
3039
3039
|
}
|
|
3040
3040
|
const strict = restoredBoolean(source.strict, "strict", reject);
|
|
3041
|
+
const returnVectors = restoredBoolean(source.returnVectors, "returnVectors", reject);
|
|
3041
3042
|
const required = restoredRequired(source.required, reject);
|
|
3042
3043
|
const vectorPromotion = restoredVectorPromotion(source.vectorPromotion, reject);
|
|
3043
3044
|
if (source.patternValueLimit !== void 0 && typeof source.patternValueLimit !== "number") {
|
|
@@ -3052,6 +3053,7 @@ function readSharedConfigFields(source, reject) {
|
|
|
3052
3053
|
...trackPositions !== void 0 ? { trackPositions } : {},
|
|
3053
3054
|
...textStorage === "memory" || textStorage === "disk" ? { textStorage } : {},
|
|
3054
3055
|
...strict !== void 0 ? { strict } : {},
|
|
3056
|
+
...returnVectors !== void 0 ? { returnVectors } : {},
|
|
3055
3057
|
...required !== void 0 ? { required } : {},
|
|
3056
3058
|
...vectorPromotion !== void 0 ? { vectorPromotion } : {},
|
|
3057
3059
|
...typeof source.patternValueLimit === "number" ? { patternValueLimit: source.patternValueLimit } : {}
|
|
@@ -11296,6 +11298,9 @@ function metadataFromConfig(indexName, config, partitionCount, documentCount, sa
|
|
|
11296
11298
|
if (config.strict !== void 0) {
|
|
11297
11299
|
metadata.strict = config.strict;
|
|
11298
11300
|
}
|
|
11301
|
+
if (config.returnVectors !== void 0) {
|
|
11302
|
+
metadata.returnVectors = config.returnVectors;
|
|
11303
|
+
}
|
|
11299
11304
|
if (config.required !== void 0) {
|
|
11300
11305
|
metadata.required = config.required;
|
|
11301
11306
|
}
|
|
@@ -11351,6 +11356,7 @@ function metadataConfigOf(entry) {
|
|
|
11351
11356
|
...entry.config.trackPositions !== void 0 ? { trackPositions: entry.config.trackPositions } : {},
|
|
11352
11357
|
...entry.config.textStorage !== void 0 ? { textStorage: entry.config.textStorage } : {},
|
|
11353
11358
|
...entry.config.strict !== void 0 ? { strict: entry.config.strict } : {},
|
|
11359
|
+
...entry.config.returnVectors !== void 0 ? { returnVectors: entry.config.returnVectors } : {},
|
|
11354
11360
|
...entry.config.required !== void 0 ? { required: entry.config.required } : {},
|
|
11355
11361
|
...entry.config.vectorPromotion !== void 0 ? { vectorPromotion: entry.config.vectorPromotion } : {},
|
|
11356
11362
|
...entry.config.patternValueLimit !== void 0 ? { patternValueLimit: entry.config.patternValueLimit } : {},
|
|
@@ -11896,6 +11902,9 @@ function metadataToWire(meta) {
|
|
|
11896
11902
|
if (meta.strict !== void 0) {
|
|
11897
11903
|
wire.strict = meta.strict;
|
|
11898
11904
|
}
|
|
11905
|
+
if (meta.returnVectors !== void 0) {
|
|
11906
|
+
wire.return_vectors = meta.returnVectors;
|
|
11907
|
+
}
|
|
11899
11908
|
if (meta.required !== void 0) {
|
|
11900
11909
|
wire.required = meta.required;
|
|
11901
11910
|
}
|
|
@@ -12022,6 +12031,9 @@ function wireToMetadata(raw) {
|
|
|
12022
12031
|
if (typeof raw.strict === "boolean") {
|
|
12023
12032
|
meta.strict = raw.strict;
|
|
12024
12033
|
}
|
|
12034
|
+
if (typeof raw.return_vectors === "boolean") {
|
|
12035
|
+
meta.returnVectors = raw.return_vectors;
|
|
12036
|
+
}
|
|
12025
12037
|
if (Array.isArray(raw.required) && raw.required.every((field) => typeof field === "string")) {
|
|
12026
12038
|
meta.required = raw.required;
|
|
12027
12039
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-XCJVLU6J.mjs';
|
|
2
2
|
export { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
|
-
export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-UTYWL2W6.mjs';
|
|
4
|
+
import './chunk-7TURQEZZ.mjs';
|
|
5
5
|
import './chunk-QFPZ3VKE.mjs';
|
|
6
6
|
import './chunk-XE7AMKEW.mjs';
|
|
7
7
|
import './chunk-LX62Y4B5.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-BIORJHQZ.mjs';
|
|
9
9
|
import './chunk-UYKIV2KT.mjs';
|
|
10
10
|
import './chunk-CW2ZFXSE.mjs';
|
|
11
11
|
import './chunk-DN4FT62B.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-CBG4EUYD.mjs';
|
|
13
13
|
import './chunk-HRDMIQ63.mjs';
|
|
14
14
|
import './chunk-VUJCSQG5.mjs';
|
|
15
15
|
import './chunk-43R4GCM7.mjs';
|
package/dist/react-native/chunks/{suggestions-leaf-M6ITOPNM.mjs → suggestions-leaf-AJZ3SHZO.mjs}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-
|
|
1
|
+
import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-XCJVLU6J.mjs';
|
|
2
2
|
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
|
-
import { attachedRuntimeOf, attachRuntime, isGroup, invalidSetting, MIN_KEY_BYTES, historyFilesOf, buildRecordKey, resolveSetting, acceptedPhrase, normaliseBan, banListFromInput, validateSetting, withState, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, isPerson, removeHistoryFolder, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, BUILD_WRITE_BATCH, MAX_TIMER_DELAY_MS, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-
|
|
4
|
-
import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-
|
|
3
|
+
import { attachedRuntimeOf, attachRuntime, isGroup, invalidSetting, MIN_KEY_BYTES, historyFilesOf, buildRecordKey, resolveSetting, acceptedPhrase, normaliseBan, banListFromInput, validateSetting, withState, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, isPerson, removeHistoryFolder, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, BUILD_WRITE_BATCH, MAX_TIMER_DELAY_MS, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-UTYWL2W6.mjs';
|
|
4
|
+
import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-7TURQEZZ.mjs';
|
|
5
5
|
import './chunk-QFPZ3VKE.mjs';
|
|
6
6
|
import './chunk-XE7AMKEW.mjs';
|
|
7
7
|
import './chunk-LX62Y4B5.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-BIORJHQZ.mjs';
|
|
9
9
|
import './chunk-UYKIV2KT.mjs';
|
|
10
10
|
import './chunk-CW2ZFXSE.mjs';
|
|
11
11
|
import { decode } from './chunk-DN4FT62B.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-CBG4EUYD.mjs';
|
|
13
13
|
import { compareCodePoints } from './chunk-HRDMIQ63.mjs';
|
|
14
14
|
import './chunk-VUJCSQG5.mjs';
|
|
15
15
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-
|
|
2
|
-
import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, encodeSegmentState, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-
|
|
1
|
+
import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-YMIPG3VC.mjs';
|
|
2
|
+
import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, encodeSegmentState, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-7TURQEZZ.mjs';
|
|
3
3
|
import './chunk-QFPZ3VKE.mjs';
|
|
4
4
|
import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-XE7AMKEW.mjs';
|
|
5
5
|
import { MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS } from './chunk-LX62Y4B5.mjs';
|
|
6
|
-
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-
|
|
6
|
+
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-BIORJHQZ.mjs';
|
|
7
7
|
import './chunk-UYKIV2KT.mjs';
|
|
8
8
|
import './chunk-CW2ZFXSE.mjs';
|
|
9
9
|
import './chunk-DN4FT62B.mjs';
|
|
10
|
-
import { schemaFieldsOf } from './chunk-
|
|
10
|
+
import { schemaFieldsOf } from './chunk-CBG4EUYD.mjs';
|
|
11
11
|
import './chunk-HRDMIQ63.mjs';
|
|
12
12
|
import './chunk-VUJCSQG5.mjs';
|
|
13
13
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, 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, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, typedRegion, regionsOverlap, mergeText } from './chunks/chunk-
|
|
1
|
+
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, 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, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, typedRegion, regionsOverlap, mergeText } from './chunks/chunk-7TURQEZZ.mjs';
|
|
2
2
|
import './chunks/chunk-QFPZ3VKE.mjs';
|
|
3
3
|
import { FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-XE7AMKEW.mjs';
|
|
4
4
|
import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH } from './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import { fuzzyTermMatches, storedText } from './chunks/chunk-
|
|
5
|
+
import { fuzzyTermMatches, storedText } from './chunks/chunk-BIORJHQZ.mjs';
|
|
6
6
|
import './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
8
|
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
-
import './chunks/chunk-
|
|
9
|
+
import './chunks/chunk-CBG4EUYD.mjs';
|
|
10
10
|
import { compareCodePoints, codePointCount } from './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { storedValuesOf, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, bitsetHas, bitsetSet, TYPO_CLAIM_SLOTS_PER_WORD, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, storedText, tabulatedLevenshtein } from './chunks/chunk-
|
|
1
|
+
import { storedValuesOf, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, bitsetHas, bitsetSet, TYPO_CLAIM_SLOTS_PER_WORD, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, storedText, tabulatedLevenshtein } from './chunks/chunk-BIORJHQZ.mjs';
|
|
2
2
|
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-UYKIV2KT.mjs';
|
|
3
3
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
4
|
-
import './chunks/chunk-
|
|
4
|
+
import './chunks/chunk-CBG4EUYD.mjs';
|
|
5
5
|
import { codePointCount, exceedsCodePoints } from './chunks/chunk-HRDMIQ63.mjs';
|
|
6
6
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-
|
|
1
|
+
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-7TURQEZZ.mjs';
|
|
2
2
|
import './chunks/chunk-QFPZ3VKE.mjs';
|
|
3
3
|
import './chunks/chunk-XE7AMKEW.mjs';
|
|
4
4
|
import './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-BIORJHQZ.mjs';
|
|
6
6
|
import './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
8
|
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
-
import './chunks/chunk-
|
|
9
|
+
import './chunks/chunk-CBG4EUYD.mjs';
|
|
10
10
|
import './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-
|
|
1
|
+
import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-7TURQEZZ.mjs';
|
|
2
2
|
import './chunks/chunk-QFPZ3VKE.mjs';
|
|
3
3
|
import './chunks/chunk-XE7AMKEW.mjs';
|
|
4
4
|
import './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-BIORJHQZ.mjs';
|
|
6
6
|
import './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
8
|
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
-
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunks/chunk-
|
|
9
|
+
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunks/chunk-CBG4EUYD.mjs';
|
|
10
10
|
import './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes, ClientErrorCodes, ServerErrorCodes, describeError } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -301,7 +301,7 @@ function createBulkOperations(transport) {
|
|
|
301
301
|
const payload = await transport.json({
|
|
302
302
|
method: "POST",
|
|
303
303
|
path,
|
|
304
|
-
body: encodeJson({ docIds }),
|
|
304
|
+
body: encodeJson(options?.document === void 0 ? { docIds } : { docIds, document: options.document }),
|
|
305
305
|
contentType: "application/json",
|
|
306
306
|
repeatable: true,
|
|
307
307
|
options
|
|
@@ -712,7 +712,11 @@ function createDocumentOperations(transport) {
|
|
|
712
712
|
},
|
|
713
713
|
async get(indexName, docId, options) {
|
|
714
714
|
const path = documentPath(indexName, docId);
|
|
715
|
-
const
|
|
715
|
+
const vectors = options?.vectors;
|
|
716
|
+
const payload = await transport.jsonOrNull(
|
|
717
|
+
{ method: "GET", path, query: { vectors: vectors === void 0 ? void 0 : String(vectors) }, options },
|
|
718
|
+
ErrorCodes.DOC_NOT_FOUND
|
|
719
|
+
);
|
|
716
720
|
if (payload === null) return void 0;
|
|
717
721
|
return readObject(payload, "document", path);
|
|
718
722
|
},
|
|
@@ -1764,7 +1768,7 @@ async function removeLocally(engine, indexName, documentId) {
|
|
|
1764
1768
|
}
|
|
1765
1769
|
}
|
|
1766
1770
|
async function holdsSameDocument(engine, indexName, documentId, encoded) {
|
|
1767
|
-
const held = await engine.get(indexName, documentId);
|
|
1771
|
+
const held = await engine.get(indexName, documentId, { document: { vectors: true } });
|
|
1768
1772
|
if (encoded === null || held === void 0) return encoded === null && held === void 0;
|
|
1769
1773
|
return bytesEqual(requireLoadedMessagePack().encodeDocument(held), encoded);
|
|
1770
1774
|
}
|
|
@@ -2429,7 +2433,8 @@ function createUploader(context, progress, session, state) {
|
|
|
2429
2433
|
let again = false;
|
|
2430
2434
|
async function serverCopyOf(write, outcome) {
|
|
2431
2435
|
if (outcome.serverDocument !== void 0) return outcome.serverDocument;
|
|
2432
|
-
|
|
2436
|
+
const options = await context.requestOptions();
|
|
2437
|
+
return await client.get(indexName, write.documentId, { ...options, vectors: true }) ?? null;
|
|
2433
2438
|
}
|
|
2434
2439
|
async function refuse(write, outcome) {
|
|
2435
2440
|
const serverDocument = await serverCopyOf(write, outcome);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-
|
|
1
|
+
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-7TURQEZZ.mjs';
|
|
2
2
|
import './chunks/chunk-QFPZ3VKE.mjs';
|
|
3
3
|
import './chunks/chunk-XE7AMKEW.mjs';
|
|
4
4
|
import './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import { storedText } from './chunks/chunk-
|
|
5
|
+
import { storedText } from './chunks/chunk-BIORJHQZ.mjs';
|
|
6
6
|
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
8
|
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
-
import { requireLoadedMessagePack } from './chunks/chunk-
|
|
9
|
+
import { requireLoadedMessagePack } from './chunks/chunk-CBG4EUYD.mjs';
|
|
10
10
|
import { compareCodePoints } from './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { s as Narsil, N as NarsilError, L as ListParams, v as ListResult, I as IndexInfo, z as IndexStats, Q as QueryParams, y as PreflightResult, t as QueryResult, w as SuggestParams, x as SuggestResult } from './engine-
|
|
2
|
-
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-
|
|
3
|
-
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-
|
|
1
|
+
import { s as Narsil, N as NarsilError, L as ListParams, v as ListResult, I as IndexInfo, z as IndexStats, Q as QueryParams, y as PreflightResult, t as QueryResult, w as SuggestParams, x as SuggestResult } from './engine-DP4PrdKM.js';
|
|
2
|
+
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-DP4PrdKM.js';
|
|
3
|
+
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-4rvZJuoN.js';
|
|
4
|
+
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-4rvZJuoN.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
7
|
-
import { A as AnyDocument } from './schema-
|
|
6
|
+
import { N as NarsilClient, I as ImportSource } from './client-B9YNYYs_.js';
|
|
7
|
+
import { A as AnyDocument } from './schema-CPQUdJTs.js';
|
|
8
8
|
import './adapters-8LcdNB77.js';
|
|
9
9
|
import './query-suggestions-CBYkrQ5T.js';
|
|
10
10
|
import './synonyms-CpOAHPa-.js';
|
|
11
|
-
import './config-
|
|
12
|
-
import './config-
|
|
13
|
-
import './index-
|
|
11
|
+
import './config-DlvP2PSi.js';
|
|
12
|
+
import './config-DJFXyHMZ.js';
|
|
13
|
+
import './index-CcivYH_R.js';
|
|
14
14
|
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { keepsAnyVectorField } from './chunk-43UYNPPC.mjs';
|
|
2
|
+
import './chunk-3WYTRM24.mjs';
|
|
3
|
+
import './chunk-UGMOBSMD.mjs';
|
|
4
|
+
import './chunk-JDDXV6UF.mjs';
|
|
5
|
+
import './chunk-S5QMWECL.mjs';
|
|
6
|
+
import './chunk-LNGE7SLY.mjs';
|
|
7
|
+
import './chunk-L2GYY6KY.mjs';
|
|
8
|
+
import './chunk-2M55WPWK.mjs';
|
|
9
|
+
import './chunk-3UAYJW6R.mjs';
|
|
10
|
+
import './chunk-R724DJSG.mjs';
|
|
11
|
+
import './chunk-V6EUBAIT.mjs';
|
|
12
|
+
import './chunk-5CYLXJYQ.mjs';
|
|
13
|
+
import { loadRerankRuntime } from './chunk-GYQKMYPG.mjs';
|
|
2
14
|
import './chunk-2CKDCC65.mjs';
|
|
3
15
|
import './chunk-BRTABNC7.mjs';
|
|
4
16
|
import './chunk-Y7GXGJFZ.mjs';
|
|
5
17
|
import './chunk-BUMREPLU.mjs';
|
|
6
18
|
import './chunk-7T4LAYT4.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
19
|
+
import './chunk-M5RYB6FE.mjs';
|
|
20
|
+
import './chunk-7NMLFP2T.mjs';
|
|
9
21
|
import './chunk-U2BKYEC7.mjs';
|
|
10
22
|
import './chunk-PSZEGK6W.mjs';
|
|
11
23
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -17,34 +29,32 @@ import { NarsilError, ErrorCodes } from './chunk-ZKOQR7EA.mjs';
|
|
|
17
29
|
import './chunk-TGPKS2UM.mjs';
|
|
18
30
|
|
|
19
31
|
// src/distribution/cluster-node/reads/rerank.ts
|
|
20
|
-
|
|
32
|
+
var TEXT_READ = { last: false, vectors: false };
|
|
33
|
+
async function rerankClusterQuery(deps, params, settings, firstStage, readDocuments, host) {
|
|
21
34
|
const startTime = host.now();
|
|
22
35
|
const core = host.engineCoreOf(deps.engine);
|
|
23
36
|
if (core === void 0) {
|
|
24
37
|
throw new NarsilError(ErrorCodes.RERANK_CONFIG_INVALID, "This cluster node holds no rerank adapters");
|
|
25
38
|
}
|
|
26
|
-
const schema = await deps.config.coordinator.getSchema(indexName);
|
|
27
|
-
if (schema === null) {
|
|
28
|
-
throw new NarsilError(ErrorCodes.INDEX_NOT_FOUND, `Index "${indexName}" does not exist`, { indexName });
|
|
29
|
-
}
|
|
30
39
|
const { rerankOnHost, rerankTextOf, runRerankedQuery } = await loadRerankRuntime();
|
|
31
40
|
const result = await runRerankedQuery(params, {
|
|
32
41
|
host,
|
|
33
|
-
schema,
|
|
42
|
+
schema: settings.schema,
|
|
43
|
+
returnVectors: settings.returnVectors,
|
|
34
44
|
maxWindow: core.rerankSettings.maxWindow,
|
|
35
45
|
binding: () => host.queryBindingOf(params),
|
|
36
46
|
clampsPins: false,
|
|
37
47
|
fusesRankings: (request) => request.vector !== void 0 && (request.term !== void 0 || request.mode === "hybrid"),
|
|
38
48
|
firstStage,
|
|
39
49
|
async texts(docIds, fields) {
|
|
40
|
-
const documents = await readDocuments(docIds,
|
|
50
|
+
const documents = await readDocuments(docIds, TEXT_READ);
|
|
41
51
|
return docIds.map((docId) => {
|
|
42
52
|
const document = documents.get(docId);
|
|
43
53
|
return document === void 0 ? "" : rerankTextOf(fields.map((field) => host.getNestedValue(document, field)));
|
|
44
54
|
});
|
|
45
55
|
},
|
|
46
56
|
async storedPins(docIds) {
|
|
47
|
-
return new Set((await readDocuments(docIds,
|
|
57
|
+
return new Set((await readDocuments(docIds, TEXT_READ)).keys());
|
|
48
58
|
},
|
|
49
59
|
score: (adapter, query, documents) => rerankOnHost(core, adapter, query, documents),
|
|
50
60
|
async fillDocuments(hits, groups, projection) {
|
|
@@ -54,7 +64,10 @@ async function rerankClusterQuery(deps, indexName, params, firstStage, readDocum
|
|
|
54
64
|
for (const hit of grouped) hit.document = {};
|
|
55
65
|
return;
|
|
56
66
|
}
|
|
57
|
-
const documents = await readDocuments([...hits.map((hit) => hit.id), ...grouped.map((hit) => hit.id)],
|
|
67
|
+
const documents = await readDocuments([...hits.map((hit) => hit.id), ...grouped.map((hit) => hit.id)], {
|
|
68
|
+
last: true,
|
|
69
|
+
vectors: keepsAnyVectorField(projection, settings)
|
|
70
|
+
});
|
|
58
71
|
const read = (docId) => {
|
|
59
72
|
const document = documents.get(docId);
|
|
60
73
|
return document === void 0 ? {} : host.applyProjection(document, projection);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-
|
|
2
|
-
export { startQuerySuggestions } from './chunk-
|
|
3
|
-
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-
|
|
4
|
-
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-
|
|
1
|
+
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-3EFLY5LQ.mjs';
|
|
2
|
+
export { startQuerySuggestions } from './chunk-3EFLY5LQ.mjs';
|
|
3
|
+
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-5CYLXJYQ.mjs';
|
|
4
|
+
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-GYQKMYPG.mjs';
|
|
5
5
|
import './chunk-2CKDCC65.mjs';
|
|
6
6
|
import './chunk-BRTABNC7.mjs';
|
|
7
7
|
import './chunk-Y7GXGJFZ.mjs';
|
|
8
8
|
import './chunk-BUMREPLU.mjs';
|
|
9
9
|
import './chunk-7T4LAYT4.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-M5RYB6FE.mjs';
|
|
11
|
+
import './chunk-7NMLFP2T.mjs';
|
|
12
12
|
import './chunk-U2BKYEC7.mjs';
|
|
13
13
|
import './chunk-PSZEGK6W.mjs';
|
|
14
14
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -326,7 +326,7 @@ async function runRerankedQuery(request, io) {
|
|
|
326
326
|
const offset = host.clampRowCount(request.offset, DEFAULT_OFFSET);
|
|
327
327
|
const cursorDepth = request.searchAfter === void 0 ? 0 : rerankCursorDepth(request.searchAfter, io.binding, host);
|
|
328
328
|
const depth = firstStageDepth(hybridDepth, plan.window, cursorDepth, offset, limit);
|
|
329
|
-
const projection = host.resolveProjection(request.document);
|
|
329
|
+
const projection = host.resolveProjection(request.document, io);
|
|
330
330
|
const { rerank: _rerank, pinned: _pinned, searchAfter: _searchAfter, highlight: _highlight, ...firstParams } = request;
|
|
331
331
|
const placesPins = request.searchAfter === void 0 && request.pinned !== void 0;
|
|
332
332
|
const countsApart = placesPins || request.vector !== void 0 && !fuses;
|
|
@@ -404,6 +404,7 @@ async function executeRerankedQuery(request, context, firstStage, host) {
|
|
|
404
404
|
const result = await runRerankedQuery(request, {
|
|
405
405
|
host,
|
|
406
406
|
schema: context.config.schema,
|
|
407
|
+
returnVectors: context.config.returnVectors,
|
|
407
408
|
maxWindow: runner.maxWindow,
|
|
408
409
|
binding: context.cursorBinding,
|
|
409
410
|
clampsPins: true,
|
|
@@ -270,6 +270,12 @@ interface IndexConfig {
|
|
|
270
270
|
* default.
|
|
271
271
|
*/
|
|
272
272
|
strict?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Setting this returns the vector fields on every search, listing, and get
|
|
275
|
+
* of this index. A read leaves them out by default, and a read that sets
|
|
276
|
+
* `document: { vectors: false }` leaves them out even here.
|
|
277
|
+
*/
|
|
278
|
+
returnVectors?: boolean;
|
|
273
279
|
/** These settings embed text fields into vector fields on every write. */
|
|
274
280
|
embedding?: EmbeddingFieldConfig;
|
|
275
281
|
/** The engine rejects an insert or an update of a document that lacks any of these fields, with `DOC_MISSING_REQUIRED_FIELD`. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-
|
|
2
|
-
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-
|
|
1
|
+
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-2M55WPWK.mjs';
|
|
2
|
+
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-GYQKMYPG.mjs';
|
|
3
3
|
import './chunk-2CKDCC65.mjs';
|
|
4
4
|
import './chunk-BRTABNC7.mjs';
|
|
5
5
|
import './chunk-Y7GXGJFZ.mjs';
|
|
6
6
|
import './chunk-BUMREPLU.mjs';
|
|
7
7
|
import './chunk-7T4LAYT4.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-M5RYB6FE.mjs';
|
|
9
|
+
import './chunk-7NMLFP2T.mjs';
|
|
10
10
|
import './chunk-U2BKYEC7.mjs';
|
|
11
11
|
import './chunk-PSZEGK6W.mjs';
|
|
12
12
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { deserializePartition, serializePartition } from './chunk-
|
|
2
|
-
export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-
|
|
1
|
+
export { deserializePartition, serializePartition } from './chunk-3UAYJW6R.mjs';
|
|
2
|
+
export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-GYQKMYPG.mjs';
|
|
3
3
|
import './chunk-2CKDCC65.mjs';
|
|
4
4
|
import './chunk-BRTABNC7.mjs';
|
|
5
5
|
import './chunk-Y7GXGJFZ.mjs';
|
|
6
6
|
import './chunk-BUMREPLU.mjs';
|
|
7
7
|
import './chunk-7T4LAYT4.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-M5RYB6FE.mjs';
|
|
9
|
+
import './chunk-7NMLFP2T.mjs';
|
|
10
10
|
import './chunk-U2BKYEC7.mjs';
|
|
11
11
|
import './chunk-PSZEGK6W.mjs';
|
|
12
12
|
import './chunk-5EI5CXO6.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-
|
|
3
|
-
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
4
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
1
|
+
import { J as GroupResult, K as Hit, Q as QueryParams, O as GroupConfig, t as QueryResult, p as SyncSetting, g as ChangesSetting, L as ListParams, w as SuggestParams, z as IndexStats, v as ListResult, y as PreflightResult, x as SuggestResult, q as SyncStatus, h as ChangesStatus, s as Narsil } from './engine-DP4PrdKM.js';
|
|
2
|
+
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-DP4PrdKM.js';
|
|
3
|
+
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-YazdElfW.js';
|
|
4
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-YazdElfW.js';
|
|
5
5
|
import { P as PersistenceAdapter } from './adapters-8LcdNB77.js';
|
|
6
|
-
import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-
|
|
7
|
-
export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-
|
|
6
|
+
import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-4rvZJuoN.js';
|
|
7
|
+
export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-4rvZJuoN.js';
|
|
8
8
|
import { d as QuerySuggestionsSetting, M as ManualQuerySuggestion, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
|
|
9
|
-
import { i as ClusterHealth } from './config-
|
|
10
|
-
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-
|
|
9
|
+
import { i as ClusterHealth } from './config-DlvP2PSi.js';
|
|
10
|
+
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-CPQUdJTs.js';
|
|
11
11
|
import './synonyms-CpOAHPa-.js';
|
|
12
|
-
import './index-
|
|
13
|
-
import './config-
|
|
12
|
+
import './index-CcivYH_R.js';
|
|
13
|
+
import './config-DJFXyHMZ.js';
|
|
14
14
|
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -149,6 +149,15 @@ type HttpCreateIndexBody = Omit<CreateIndexRequest, 'config'> & {
|
|
|
149
149
|
/** This carries the schema and settings, in the subset JSON can express. */
|
|
150
150
|
config: HttpIndexBody;
|
|
151
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* The query string of `GET /indexes/{name}/documents/{id}`.
|
|
154
|
+
*
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
interface GetDocumentQuery {
|
|
158
|
+
/** Under `true`, the document carries its vector fields, and under `false` it carries none, whatever the index setting says. */
|
|
159
|
+
vectors?: 'true' | 'false';
|
|
160
|
+
}
|
|
152
161
|
/**
|
|
153
162
|
* The query string of `DELETE /indexes/{name}/documents/{id}`.
|
|
154
163
|
*
|
|
@@ -192,6 +201,8 @@ interface HttpWireTypes {
|
|
|
192
201
|
DocumentBody: DocumentBody;
|
|
193
202
|
/** Every value that a field of an index schema accepts. */
|
|
194
203
|
FieldType: FieldType;
|
|
204
|
+
/** The query string of `GET /indexes/{name}/documents/{id}`. */
|
|
205
|
+
GetDocumentQuery: GetDocumentQuery;
|
|
195
206
|
/** The query string of `POST /indexes/{name}/documents/_import`. */
|
|
196
207
|
ImportDocumentsQuery: ImportDocumentsQuery;
|
|
197
208
|
/** The body of `POST /indexes/{name}/documents`. */
|
|
@@ -525,4 +536,4 @@ declare class InMemoryTaskStore implements TaskStore {
|
|
|
525
536
|
private prune;
|
|
526
537
|
}
|
|
527
538
|
|
|
528
|
-
export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, PersistenceTaskStore, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|
|
539
|
+
export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type GetDocumentQuery, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, PersistenceTaskStore, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|