@delali/narsil 0.3.1-next.156 → 0.3.1-next.157
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/{analysis-change-5BQOQ4BF.mjs → analysis-change-CKEMM2MC.mjs} +9 -9
- package/dist/{react-native/chunks/analysis-change-entry-SCVWK6OU.mjs → analysis-change-entry-SEDMJ6MW.mjs} +1 -1
- package/dist/browser/{analysis-change-435CUEPZ.mjs → analysis-change-ZKGJFENM.mjs} +38 -29
- package/dist/{analysis-change-entry-TXX6JSMX.mjs → browser/analysis-change-entry-5BFUVMHJ.mjs} +1 -1
- package/dist/browser/{chunk-BHFQATSC.mjs → chunk-25MTVDYD.mjs} +1 -1
- package/dist/browser/{chunk-IZXVW2ZJ.mjs → chunk-3NLMB5CC.mjs} +2 -2
- package/dist/browser/{chunk-23XRXIBW.mjs → chunk-5YWB3E2W.mjs} +8 -1
- package/dist/browser/chunk-AI5UI46D.mjs +12 -0
- package/dist/browser/{chunk-2CFI5VVV.mjs → chunk-BLT4RHCJ.mjs} +2 -2
- package/dist/browser/{chunk-4NGKC4H4.mjs → chunk-C26SPCGQ.mjs} +7 -6
- package/dist/browser/{chunk-6LWDPLTB.mjs → chunk-C4FJ3WDY.mjs} +1 -1
- package/dist/browser/{chunk-MGI4BCXC.mjs → chunk-CXNTHHA7.mjs} +2 -2
- package/dist/browser/{chunk-STOWQFT3.mjs → chunk-DUH6QUVU.mjs} +547 -2
- package/dist/browser/chunk-EKMGCRSR.mjs +61 -0
- package/dist/browser/{chunk-SSTPBZZX.mjs → chunk-GFAZPSWK.mjs} +5 -5
- package/dist/browser/{chunk-3SSRJMFN.mjs → chunk-HUCSHDTB.mjs} +1 -1
- package/dist/browser/{chunk-K4Q6KX3R.mjs → chunk-K3IPRX6D.mjs} +48 -17
- package/dist/browser/{chunk-MOG4OVDK.mjs → chunk-MY2XKH22.mjs} +1 -12
- package/dist/browser/{chunk-3V7DNNZL.mjs → chunk-N23GL72Q.mjs} +178 -801
- package/dist/browser/{chunk-NQAME3RK.mjs → chunk-UATIJ4KU.mjs} +2 -2
- package/dist/browser/{chunk-2TI4SSUP.mjs → chunk-UKOWD2K5.mjs} +3 -3
- package/dist/browser/{chunk-7U3WVJUP.mjs → chunk-UTMHUHUV.mjs} +2 -2
- package/dist/browser/{chunk-EA63E3D2.mjs → chunk-V43N6TZO.mjs} +5 -5
- package/dist/browser/{chunk-CRE3G7F3.mjs → chunk-VY5KW3HN.mjs} +3 -3
- package/dist/browser/{chunk-WI4MR75E.mjs → chunk-X7TXYUKO.mjs} +1 -1
- package/dist/browser/{chunk-KZWSX6BH.mjs → chunk-Y6IBAUNO.mjs} +2 -86
- package/dist/browser/{cold-module-2EHCIV4K.mjs → cold-module-YNUUDNOM.mjs} +12 -10
- package/dist/browser/{durability-wiring-A7BVG2DW.mjs → durability-wiring-GVZEE46O.mjs} +64 -21
- package/dist/browser/{engine-hooks-E4UD67JD.mjs → engine-hooks-HBVS6YM4.mjs} +5 -4
- package/dist/browser/{geo-index-HHWGMNIS.mjs → geo-index-OTV7VPIR.mjs} +2 -1
- package/dist/browser/{import-DXYB6756.mjs → import-5ESVMFDJ.mjs} +6 -5
- package/dist/browser/{module-NIYMEA5R.mjs → module-NDSQLPMQ.mjs} +11 -9
- package/dist/{release-BH3DKW3T.mjs → browser/release-HYXPVJVS.mjs} +0 -1
- package/dist/browser/{restore-hooks-YPN4ZFCY.mjs → restore-hooks-IE3GGYHG.mjs} +8 -7
- package/dist/browser/{restore-queue-G3RQGL3Y.mjs → restore-queue-LQBBTODR.mjs} +3 -3
- package/dist/browser/{retention-ZWVMNC3Q.mjs → retention-TY3L3BFN.mjs} +7 -6
- package/dist/browser/{snapshot-VEQNIE6C.mjs → snapshot-5FHPPCNZ.mjs} +16 -14
- package/dist/browser/{start-BM442C6R.mjs → start-2UZTOBG5.mjs} +8 -7
- package/dist/browser/{write-2EVMZWDE.mjs → write-ULXAN5B4.mjs} +10 -8
- package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-D3AoBJoF.d.ts} +2 -2
- package/dist/{chunk-K5QFDYST.mjs → chunk-24FNVRKB.mjs} +1 -1
- package/dist/{chunk-DP5C7YFQ.mjs → chunk-2ROUFMQX.mjs} +2 -2
- package/dist/{chunk-PWC4VB3Q.mjs → chunk-4B7JIGQD.mjs} +2 -2
- package/dist/{chunk-FAKFUDZZ.mjs → chunk-4LMSZAK6.mjs} +14 -3
- package/dist/{chunk-6I6AYAXS.mjs → chunk-4ZTHGTVX.mjs} +2 -2
- package/dist/{chunk-QOW2JPUI.mjs → chunk-BNL5OPRV.mjs} +6 -6
- package/dist/{chunk-3HYC4JRF.mjs → chunk-C7XQYG6U.mjs} +2 -2
- package/dist/{chunk-WX4LAO6M.mjs → chunk-CQZXZ75V.mjs} +3 -97
- package/dist/{chunk-4KKXNJM6.mjs → chunk-CWS55TEX.mjs} +2 -2
- package/dist/{chunk-2UV4QBHW.mjs → chunk-EYD7K3H6.mjs} +5 -5
- package/dist/{chunk-EFBDHH5P.mjs → chunk-FEZVDOWX.mjs} +160 -245
- package/dist/{chunk-XAXKV65G.mjs → chunk-FUD5XSZ5.mjs} +1 -1
- package/dist/{chunk-JDJBQLRO.mjs → chunk-GPWMUPCA.mjs} +10 -10
- package/dist/{chunk-25KDNIZZ.mjs → chunk-IIRIG7H5.mjs} +1 -1
- package/dist/{chunk-TZTRKM33.mjs → chunk-JSV6OQ4C.mjs} +1 -1
- package/dist/{chunk-NF4DT3IH.mjs → chunk-JTYPJF3T.mjs} +8 -1
- package/dist/chunk-KCQYFO4K.mjs +62 -0
- package/dist/{chunk-CSLGFPFQ.mjs → chunk-LDNCLRZU.mjs} +1 -1
- package/dist/{chunk-MQOJIO5B.mjs → chunk-MW6BR4QP.mjs} +2 -2
- package/dist/{react-native/chunks/chunk-MUWD2H2S.mjs → chunk-MWD5VPN7.mjs} +2 -2
- package/dist/{chunk-XXHN7J46.mjs → chunk-ODYKO5TO.mjs} +1 -1
- package/dist/{chunk-RDXO6JST.mjs → chunk-OG7UGJ6F.mjs} +2 -2
- package/dist/{chunk-FYOVBEMM.mjs → chunk-OQLD2BSW.mjs} +2 -2
- package/dist/{chunk-I53G4JAU.mjs → chunk-OYABFKTW.mjs} +2 -2
- package/dist/{chunk-TZ3355VS.mjs → chunk-P5LANSH6.mjs} +1 -1
- package/dist/{chunk-P5ZI2P2W.mjs → chunk-PIH5SJ4N.mjs} +3 -3
- package/dist/{chunk-HFPMMRQT.mjs → chunk-PSZI4O24.mjs} +51 -4
- package/dist/{chunk-L6V6BST3.mjs → chunk-PV2CG7EJ.mjs} +3 -552
- package/dist/{chunk-SA5LOGO3.mjs → chunk-PWGYQXML.mjs} +1 -1
- package/dist/{chunk-BWZ3P4MU.mjs → chunk-QLDABJZM.mjs} +3 -3
- package/dist/{chunk-JWRUUCWD.mjs → chunk-RCX4WNLC.mjs} +2 -2
- package/dist/{chunk-DWEPMFJE.mjs → chunk-RIHIVFIQ.mjs} +5 -5
- package/dist/{chunk-FNGAM5B7.mjs → chunk-RWURUDSP.mjs} +8 -8
- package/dist/{chunk-I2KPOLOZ.mjs → chunk-SMOOSIAW.mjs} +3 -3
- package/dist/{chunk-TGS5UXBE.mjs → chunk-SOI6LTHM.mjs} +3 -3
- package/dist/{chunk-YTWZVGCB.mjs → chunk-UD5HIS4U.mjs} +1 -1
- package/dist/{chunk-46KY2PJD.mjs → chunk-UJDJB3NE.mjs} +37 -29
- package/dist/{chunk-Z2KAFCRT.mjs → chunk-VSLSGASN.mjs} +2 -2
- package/dist/{chunk-VTTRFF2C.mjs → chunk-VZ2ONHEE.mjs} +9 -5
- package/dist/chunk-W5EB5XKI.mjs +741 -0
- package/dist/{chunk-7LXHHCXZ.mjs → chunk-W7OSSKH5.mjs} +46 -16
- package/dist/{chunk-ZKP7G7TV.mjs → chunk-XXJZMTZT.mjs} +1 -1
- package/dist/{chunk-FRBFVQFN.mjs → chunk-ZPZ3YGXV.mjs} +4 -4
- package/dist/{client-DRv7UVeY.d.ts → client-kqSMevVi.d.ts} +15 -3
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -0
- package/dist/{cold-module-6MO2XJF2.mjs → cold-module-VOJXMNZB.mjs} +13 -12
- package/dist/{config-DMwffLKn.d.ts → config-B4v_Htpu.d.ts} +1 -1
- package/dist/{config-CoSig5Ox.d.ts → config-CTP01fns.d.ts} +1 -1
- package/dist/{direct-executor-FTMYY3TI.mjs → direct-executor-V5DRIECI.mjs} +5 -5
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +72 -64
- package/dist/{durability-wiring-VIF5MOSY.mjs → durability-wiring-3TD62MBI.mjs} +38 -30
- package/dist/{engine-CFxPYqEk.d.ts → engine-CkPn2PWE.d.ts} +1 -1
- package/dist/{engine-hooks-EGUGNZYE.mjs → engine-hooks-HA3SBOBR.mjs} +8 -8
- package/dist/{import-XKDPJQDP.mjs → import-GPKLTSKA.mjs} +8 -8
- package/dist/index.browser.mjs +4 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +7 -7
- package/dist/index.react-native.mjs +3 -3
- package/dist/{long-query-thread-YA4IAYSY.mjs → long-query-thread-QDFQSJD6.mjs} +13 -13
- package/dist/{module-FQ4JWNQJ.mjs → module-JYHFTVPS.mjs} +12 -11
- package/dist/{paged-partition-archive-PXW5XAYU.mjs → paged-partition-archive-RLRGOXDX.mjs} +14 -14
- package/dist/partial-words.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +13 -12
- package/dist/query-suggestions/merge-worker.mjs +9 -9
- package/dist/query-suggestions.browser.mjs +9 -8
- package/dist/query-suggestions.d.ts +1 -1
- package/dist/query-suggestions.mjs +17 -17
- package/dist/react-native/chunks/{analysis-change-LT5QBQ3H.mjs → analysis-change-QUVDNABS.mjs} +37 -29
- package/dist/{browser/analysis-change-entry-HZXKPPGV.mjs → react-native/chunks/analysis-change-entry-OC4XASBF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-KV46CT4D.mjs → chunk-4AV5PPH6.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-GXX3DQXP.mjs → chunk-4COWCEY7.mjs} +188 -163
- package/dist/react-native/chunks/{chunk-G43IPIDG.mjs → chunk-4NWR3NGS.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-3JWDECAZ.mjs → chunk-5MSX5FRT.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-6WA3C3DV.mjs → chunk-6OFDUYVX.mjs} +8 -1
- package/dist/react-native/chunks/{chunk-NB3LP33V.mjs → chunk-6ZELFCK5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-4JYO3JD2.mjs → chunk-BITYFZSZ.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZXZFN7FI.mjs → chunk-DMIFXZ3Q.mjs} +1 -1
- package/dist/{chunk-KF4EXSM4.mjs → react-native/chunks/chunk-IAENKE2D.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZLWVW734.mjs → chunk-KSBYEMCB.mjs} +1 -1
- package/dist/react-native/chunks/chunk-KU646XXT.mjs +164 -0
- package/dist/react-native/chunks/{chunk-MIP4SOR6.mjs → chunk-OCSLSH27.mjs} +164 -244
- package/dist/react-native/chunks/chunk-OXM66LO6.mjs +62 -0
- package/dist/react-native/chunks/{chunk-VWUDIOT6.mjs → chunk-TORU2OHQ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-PDRWWPKV.mjs → chunk-WVWJNUMN.mjs} +48 -18
- package/dist/react-native/chunks/{chunk-UQ4OAXKU.mjs → chunk-WW2X2AEI.mjs} +4 -4
- package/dist/react-native/chunks/{chunk-QUKQNI3H.mjs → chunk-ZNZ6CPAZ.mjs} +2 -87
- package/dist/react-native/chunks/{chunk-TP6KCKER.mjs → chunk-ZVQMBF2H.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-POPDAGH6.mjs → chunk-ZWAIN4GG.mjs} +6 -6
- package/dist/react-native/chunks/{cold-module-KVZYUGRY.mjs → cold-module-N6KFNNZA.mjs} +9 -8
- package/dist/react-native/chunks/{durability-wiring-34OYO32E.mjs → durability-wiring-RN64S2TL.mjs} +63 -21
- package/dist/react-native/chunks/{engine-hooks-M7JV46NH.mjs → engine-hooks-CWA5CKCA.mjs} +4 -4
- package/dist/react-native/chunks/{import-H6AQREWI.mjs → import-5UAWBRJP.mjs} +4 -4
- package/dist/react-native/chunks/{module-LBZPGOWH.mjs → module-6RP4ZCBW.mjs} +8 -7
- package/dist/react-native/chunks/{release-D7ZTIANM.mjs → release-2SIHZWDO.mjs} +0 -1
- package/dist/react-native/chunks/{restore-hooks-IBGIY3DR.mjs → restore-hooks-ENFMDTWC.mjs} +7 -7
- package/dist/react-native/chunks/{restore-queue-ZZX54AH7.mjs → restore-queue-4R6AASE5.mjs} +3 -3
- package/dist/react-native/chunks/{retention-EW4TTDFB.mjs → retention-5GTFT3GR.mjs} +6 -6
- package/dist/react-native/chunks/{snapshot-REYVIN3X.mjs → snapshot-5LGPQXFS.mjs} +15 -14
- package/dist/react-native/chunks/{start-BQK6KN3R.mjs → start-ZQJVZ5DN.mjs} +7 -7
- package/dist/react-native/chunks/{write-FQAYCZF5.mjs → write-6BRYIIZ7.mjs} +7 -6
- package/dist/react-native/partial-words.mjs +2 -2
- package/dist/react-native/query-suggestions.mjs +8 -8
- package/dist/react-native/sync.mjs +44 -10
- package/dist/react.d.ts +7 -7
- package/dist/{browser/release-76MXRPGV.mjs → release-SMR4WJD4.mjs} +0 -1
- package/dist/{restore-hooks-CDERDEF4.mjs → restore-hooks-HXLIEB4A.mjs} +12 -12
- package/dist/{restore-queue-7NNSTROA.mjs → restore-queue-LZH7LMLR.mjs} +3 -3
- package/dist/{retention-QSVBBNRM.mjs → retention-3K7ARGAG.mjs} +12 -12
- package/dist/server.d.ts +10 -8
- package/dist/server.mjs +37 -29
- package/dist/{snapshot-RH4NSKIZ.mjs → snapshot-O7ICP7NJ.mjs} +24 -23
- package/dist/{start-MCKCOGIW.mjs → start-S4PFP6RS.mjs} +14 -14
- package/dist/sync/filesystem.d.ts +2 -2
- package/dist/sync/indexeddb.d.ts +2 -2
- package/dist/sync.browser.mjs +44 -10
- package/dist/sync.d.ts +3 -3
- package/dist/sync.mjs +44 -10
- package/dist/{tasks-qrJojgST.d.ts → tasks-CoNjxbop.d.ts} +2 -2
- package/dist/{thread-O4SBJJJS.mjs → thread-YLJ3ZPQ3.mjs} +12 -12
- package/dist/{types-BZCGjfLn.d.ts → types-DPMjfOr_.d.ts} +1 -1
- package/dist/workers/entry.mjs +5 -5
- package/dist/{write-3FK7NG3Y.mjs → write-2OBJGLFS.mjs} +11 -10
- package/openapi.json +71 -0
- package/package.json +7 -7
- package/dist/chunk-BU4SAIC4.mjs +0 -196
- package/dist/react-native/chunks/chunk-DNXOMPAQ.mjs +0 -191
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { suggestionsIndexName, markedSuggestionIndexes, ensureSuggestionsIndex, suggestionDocument, ORIGIN_MANUAL, removeSuggestions, enabledSetting, mergeHistory, groupsToWrite, meetsMinResults } from './chunk-
|
|
2
|
-
import { normaliseBan, banListFromInput, withState } from './chunk-
|
|
3
|
-
import { invalidSetting, resolveSetting, validateSetting, requireFieldsInSchema } from './chunk-
|
|
1
|
+
import { suggestionsIndexName, markedSuggestionIndexes, ensureSuggestionsIndex, suggestionDocument, ORIGIN_MANUAL, removeSuggestions, enabledSetting, mergeHistory, groupsToWrite, meetsMinResults } from './chunk-EYD7K3H6.mjs';
|
|
2
|
+
import { normaliseBan, banListFromInput, withState } from './chunk-ODYKO5TO.mjs';
|
|
3
|
+
import { invalidSetting, resolveSetting, validateSetting, requireFieldsInSchema } from './chunk-UD5HIS4U.mjs';
|
|
4
4
|
import { isGroup, GROUP_FORMAT, acceptedPhrase } from './chunk-GQPTDQCL.mjs';
|
|
5
5
|
import { MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT } from './chunk-5YNRKI2C.mjs';
|
|
6
6
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isGroup } from './chunk-GQPTDQCL.mjs';
|
|
2
2
|
import { MAX_MIN_PEOPLE, MIN_MIN_PEOPLE, DEFAULT_MIN_PEOPLE, MAX_MIN_RESULTS, MIN_MIN_RESULTS, DEFAULT_MIN_RESULTS, MAX_RETENTION_DAYS, MIN_RETENTION_DAYS, DEFAULT_RETENTION_DAYS, MAX_MAX_PHRASES_PER_DAY, DEFAULT_MAX_PHRASES_PER_DAY, MAX_MAX_PHRASES_PER_PERSON, DEFAULT_MAX_PHRASES_PER_PERSON, MAX_MAX_PEOPLE_PER_DAY, DEFAULT_MAX_PEOPLE_PER_DAY, MAX_MAX_GROUPS, DEFAULT_MAX_GROUPS, MAX_MAX_LENGTH, DEFAULT_MAX_LENGTH, DEFAULT_MIN_LETTERS, MAX_MAX_WORDS, DEFAULT_MAX_WORDS, DEFAULT_MAX_DIGITS, MAX_MAX_MERGE_PHRASES, DEFAULT_MAX_MERGE_PHRASES, MAX_MERGE_MEMORY_BYTES, MIN_MERGE_MEMORY_BYTES, DEFAULT_MERGE_MEMORY_BYTES, MAX_SAVE_INTERVAL_MS, MIN_SAVE_INTERVAL_MS, DEFAULT_SAVE_INTERVAL_MS, MAX_RESULT_CHECKS_PER_SECOND, DEFAULT_RESULT_CHECKS_PER_SECOND, MAX_SCHEDULE_LENGTH, SCHEDULE_LOOKAHEAD_DAYS, DEFAULT_TIME_ZONE, DEFAULT_SCHEDULE, MAX_FIELDS, SCHEDULE_OFF, MAX_SETTING_BYTES, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_PERSON_PAIRS_PER_DAY, MAX_FILE_PEOPLE_PER_DAY, MAX_MERGE_PEOPLE, DAY_MS } from './chunk-5YNRKI2C.mjs';
|
|
3
|
-
import { flattenSchema } from './chunk-
|
|
3
|
+
import { flattenSchema } from './chunk-W5EB5XKI.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
5
5
|
import { encode } from '@msgpack/msgpack';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { requireAnalysisRebuildMemory } from './chunk-
|
|
2
|
-
import { requireConfigurationWithinSizeLimit, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, prepareConfiguredSynonyms, REBALANCE_CHUNK_SIZE, yieldToEventLoop, prepareDocumentVectors, removeDocumentVectors, insertDocumentVectors, vectorsEqual, rebuildTextIndexes, holdSyncEpochChange, textRebuildTargetOf, extractVectorFromDoc, deleteNestedValue } from './chunk-
|
|
1
|
+
import { requireAnalysisRebuildMemory } from './chunk-RCX4WNLC.mjs';
|
|
2
|
+
import { requireConfigurationWithinSizeLimit, DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, prepareConfiguredSynonyms, REBALANCE_CHUNK_SIZE, yieldToEventLoop, prepareDocumentVectors, removeDocumentVectors, insertDocumentVectors, vectorsEqual, rebuildTextIndexes, holdSyncEpochChange, textRebuildTargetOf, extractVectorFromDoc, deleteNestedValue } from './chunk-FEZVDOWX.mjs';
|
|
3
3
|
import { ANALYSIS_CHANGE_MEMBERS, ANALYSIS_HOLD_APPLY_INTERVAL_MS } from './chunk-EEBCDP36.mjs';
|
|
4
|
-
import { resolvePartialWordAnalysis } from './chunk-
|
|
5
|
-
import { createPartitionIndex } from './chunk-
|
|
4
|
+
import { resolvePartialWordAnalysis } from './chunk-VZ2ONHEE.mjs';
|
|
5
|
+
import { createPartitionIndex } from './chunk-PIH5SJ4N.mjs';
|
|
6
6
|
import { configUnderAnalysis, targetOfPending } from './chunk-I5B7RXU7.mjs';
|
|
7
7
|
import { getLanguage, resolveIndexAnalysis } from './chunk-RZWWB2XR.mjs';
|
|
8
8
|
import { ARRAY_POSITION_GAP } from './chunk-FB6463IN.mjs';
|
|
@@ -359,6 +359,15 @@ async function replayEntry(manager, indexName, entry, ctx) {
|
|
|
359
359
|
manager.remove(entry.docId, removedSpellings);
|
|
360
360
|
}
|
|
361
361
|
manager.insert(entry.docId, partitionDoc);
|
|
362
|
+
const replicated = {
|
|
363
|
+
indexName,
|
|
364
|
+
docId: entry.docId,
|
|
365
|
+
document: entry.document,
|
|
366
|
+
requestId: `replicate-insert-${entry.docId}`
|
|
367
|
+
};
|
|
368
|
+
ctx.orchestrator.recordMainWrite(
|
|
369
|
+
overwrote ? { type: "update", ...replicated, removedSpellings } : { type: "insert", ...replicated }
|
|
370
|
+
);
|
|
362
371
|
if (extractedVectors.size > 0) {
|
|
363
372
|
insertDocumentVectors(entry.docId, extractedVectors, vecIndexes, manager.partitionIdOf(entry.docId));
|
|
364
373
|
for (const fieldPath of extractedVectors.keys()) {
|
|
@@ -370,44 +379,49 @@ async function replayEntry(manager, indexName, entry, ctx) {
|
|
|
370
379
|
} catch (err) {
|
|
371
380
|
warnHookError("afterInsert", err);
|
|
372
381
|
}
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
docId: entry.docId,
|
|
376
|
-
document: entry.document,
|
|
377
|
-
requestId: `replicate-insert-${entry.docId}`
|
|
378
|
-
};
|
|
379
|
-
await ctx.orchestrator.replicateToWorkers(
|
|
380
|
-
overwrote ? { type: "update", ...replicated, removedSpellings } : { type: "insert", ...replicated }
|
|
381
|
-
);
|
|
382
|
+
const roomForCopies = ctx.orchestrator.settleMainWrites(indexName);
|
|
383
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
382
384
|
return;
|
|
383
385
|
}
|
|
384
386
|
if (entry.action === "remove") {
|
|
385
387
|
const removedSpellings = manager.removedSpellingsOf(entry.docId);
|
|
386
388
|
manager.remove(entry.docId, removedSpellings);
|
|
387
|
-
|
|
388
|
-
try {
|
|
389
|
-
await ctx.pluginRegistry.runHook("afterRemove", { indexName, docId: entry.docId });
|
|
390
|
-
} catch (err) {
|
|
391
|
-
warnHookError("afterRemove", err);
|
|
392
|
-
}
|
|
393
|
-
await ctx.orchestrator.replicateToWorkers({
|
|
389
|
+
ctx.orchestrator.recordMainWrite({
|
|
394
390
|
type: "remove",
|
|
395
391
|
indexName,
|
|
396
392
|
docId: entry.docId,
|
|
397
393
|
requestId: `replicate-remove-${entry.docId}`,
|
|
398
394
|
removedSpellings
|
|
399
395
|
});
|
|
396
|
+
removeDocumentVectors(entry.docId, vecIndexes);
|
|
397
|
+
try {
|
|
398
|
+
await ctx.pluginRegistry.runHook("afterRemove", { indexName, docId: entry.docId });
|
|
399
|
+
} catch (err) {
|
|
400
|
+
warnHookError("afterRemove", err);
|
|
401
|
+
}
|
|
402
|
+
const roomForCopies = ctx.orchestrator.settleMainWrites(indexName, "none");
|
|
403
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
400
404
|
return;
|
|
401
405
|
}
|
|
402
406
|
if (entry.action === "update" && entry.document) {
|
|
403
407
|
const oldDocument = manager.get(entry.docId);
|
|
404
408
|
const { updateDoc, updateVectors } = applyReplayUpdateVectors(entry, vectorFieldPaths);
|
|
405
409
|
const removedSpellings = manager.removedSpellingsOf(entry.docId);
|
|
406
|
-
|
|
410
|
+
const held = manager.has(entry.docId);
|
|
411
|
+
if (held) {
|
|
407
412
|
manager.update(entry.docId, updateDoc, void 0, removedSpellings);
|
|
408
413
|
} else {
|
|
409
414
|
manager.insert(entry.docId, updateDoc);
|
|
410
415
|
}
|
|
416
|
+
const replicated = {
|
|
417
|
+
indexName,
|
|
418
|
+
docId: entry.docId,
|
|
419
|
+
document: entry.document,
|
|
420
|
+
requestId: `replicate-update-${entry.docId}`
|
|
421
|
+
};
|
|
422
|
+
ctx.orchestrator.recordMainWrite(
|
|
423
|
+
held ? { type: "update", ...replicated, removedSpellings } : { type: "insert", ...replicated }
|
|
424
|
+
);
|
|
411
425
|
for (const [fieldPath, newVec] of updateVectors) {
|
|
412
426
|
const vecIndex = vecIndexes.get(fieldPath);
|
|
413
427
|
if (!vecIndex) continue;
|
|
@@ -436,14 +450,8 @@ async function replayEntry(manager, indexName, entry, ctx) {
|
|
|
436
450
|
} catch (err) {
|
|
437
451
|
warnHookError("afterUpdate", err);
|
|
438
452
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
indexName,
|
|
442
|
-
docId: entry.docId,
|
|
443
|
-
document: entry.document,
|
|
444
|
-
requestId: `replicate-update-${entry.docId}`,
|
|
445
|
-
removedSpellings
|
|
446
|
-
});
|
|
453
|
+
const roomForCopies = ctx.orchestrator.settleMainWrites(indexName);
|
|
454
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
447
455
|
}
|
|
448
456
|
}
|
|
449
457
|
async function replayQueued(manager, indexName, waq, ctx) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { installSuggestionHooks } from './chunk-
|
|
1
|
+
import { installSuggestionHooks } from './chunk-OG7UGJ6F.mjs';
|
|
2
2
|
import { attachedRuntimeOf, attachRuntime } from './chunk-S5LN746F.mjs';
|
|
3
|
-
import { keyBytesOf, QuerySuggestionsRuntime, createLocalHost } from './chunk-
|
|
3
|
+
import { keyBytesOf, QuerySuggestionsRuntime, createLocalHost } from './chunk-EYD7K3H6.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/start.ts
|
|
6
6
|
var starting = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { requirePatternSearchFor, requirePartialWordSearchFor, createPartitionIndex, cloneProjected, projectIncludedPaths, valueWithOwnBuffers, buildPartialWordTableFrom, createSurfaceRegistry, encodePartialSpellingsOf, recordValueSize, patternIndexOf, encodeFieldIndexes, countPartialSpelling, documentWithOwnBuffers, readProjectedPath, copyVectorsInto, isCompositePartition, partialSpellingsOfDocuments, createFrozenPartialWords, requirePatternSearch, documentValueBytes, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, createNumericIndex, createBooleanIndex, createEnumIndex, ValueAffixes, readResidentMemory, createCompositePartition } from './chunk-
|
|
1
|
+
import { requirePatternSearchFor, requirePartialWordSearchFor, createPartitionIndex, cloneProjected, projectIncludedPaths, valueWithOwnBuffers, buildPartialWordTableFrom, createSurfaceRegistry, encodePartialSpellingsOf, recordValueSize, patternIndexOf, encodeFieldIndexes, countPartialSpelling, documentWithOwnBuffers, readProjectedPath, copyVectorsInto, isCompositePartition, partialSpellingsOfDocuments, createFrozenPartialWords, requirePatternSearch, documentValueBytes, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, createNumericIndex, createBooleanIndex, createEnumIndex, ValueAffixes, readResidentMemory, createCompositePartition } from './chunk-PIH5SJ4N.mjs';
|
|
2
2
|
import { readHeapStatistics } from './chunk-IPN7S4KX.mjs';
|
|
3
3
|
import { fnv1a } from './chunk-KAKQ74LS.mjs';
|
|
4
4
|
import { GrowableUint32 } from './chunk-RLOES5SX.mjs';
|
|
5
|
-
import {
|
|
6
|
-
import { partialFieldsOf, schemaFieldsOf, encodeDocument, extractVectorFieldsFromSchema } from './chunk-
|
|
5
|
+
import { sameFields, visitDocumentSurfaceSpellings, visitDocumentSpellings } from './chunk-PV2CG7EJ.mjs';
|
|
6
|
+
import { partialFieldsOf, getNestedValue, schemaFieldsOf, tokenizeOptions, encodeDocument, validateDocument, validateDocumentStrict, extractVectorFieldsFromSchema } from './chunk-W5EB5XKI.mjs';
|
|
7
7
|
import { fuzzyPrefixOf, boundedLevenshtein } from './chunk-GES7U2PM.mjs';
|
|
8
8
|
import { isWordIndexedBase } from './chunk-I54T6CQP.mjs';
|
|
9
9
|
import { synonymSearchModule } from './chunk-I5B7RXU7.mjs';
|
|
@@ -3251,7 +3251,7 @@ async function attachSegments(entry, action) {
|
|
|
3251
3251
|
growPartitionsTo(entry.manager, segment.partitionId);
|
|
3252
3252
|
const surfaceForms = segment.survivingSurfaceForms;
|
|
3253
3253
|
const spellings = surfaceForms === void 0 ? void 0 : NO_REMOVED_SPELLINGS;
|
|
3254
|
-
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-
|
|
3254
|
+
const frozen = isPagedSnapshot(segment.snapshot) ? (await import('./module-JYHFTVPS.mjs')).createPagedFrozenSegment(segment.snapshot) : createSharedFrozenSegment(segment.snapshot, surfaceForms);
|
|
3255
3255
|
for (const docId of segment.tombstonedDocIds ?? []) frozen.tombstoneDocument(docId, spellings);
|
|
3256
3256
|
entry.manager.attachFrozenSegment(segment.partitionId, frozen);
|
|
3257
3257
|
}
|
|
@@ -3306,7 +3306,7 @@ function runSegmentAction(entry, action) {
|
|
|
3306
3306
|
case "attachSegments":
|
|
3307
3307
|
return attachSegments(entry, action);
|
|
3308
3308
|
case "adoptDiskSegments":
|
|
3309
|
-
return import('./module-
|
|
3309
|
+
return import('./module-JYHFTVPS.mjs').then((code) => code.adoptSegmentsOnWorker(entry.manager, action));
|
|
3310
3310
|
case "compactSegments": {
|
|
3311
3311
|
const partition = requireComposite(entry, action.indexName, action.partitionId, "compact");
|
|
3312
3312
|
return mergeFrozenSegments(
|
|
@@ -3597,16 +3597,19 @@ function createDirectExecutor(options) {
|
|
|
3597
3597
|
case "insert": {
|
|
3598
3598
|
const entry = requireIndex(action.indexName);
|
|
3599
3599
|
entry.manager.insert(action.docId, action.document, action.skipClone ? { skipClone: true } : void 0);
|
|
3600
|
+
options?.onDocumentWrite?.(action);
|
|
3600
3601
|
return void 0;
|
|
3601
3602
|
}
|
|
3602
3603
|
case "remove": {
|
|
3603
3604
|
const entry = requireIndex(action.indexName);
|
|
3604
3605
|
entry.manager.remove(action.docId, action.removedSpellings);
|
|
3606
|
+
options?.onDocumentWrite?.(action);
|
|
3605
3607
|
return void 0;
|
|
3606
3608
|
}
|
|
3607
3609
|
case "update": {
|
|
3608
3610
|
const entry = requireIndex(action.indexName);
|
|
3609
3611
|
entry.manager.update(action.docId, action.document, void 0, action.removedSpellings);
|
|
3612
|
+
options?.onDocumentWrite?.(action);
|
|
3610
3613
|
return void 0;
|
|
3611
3614
|
}
|
|
3612
3615
|
case "query":
|
|
@@ -3653,6 +3656,7 @@ function createDirectExecutor(options) {
|
|
|
3653
3656
|
entry.manager.resetVectorIndexes(vectorIndexesFor(action.indexName, entry.config));
|
|
3654
3657
|
entry.vectorIndexes = entry.manager.getVectorIndexes();
|
|
3655
3658
|
entry.vectorCopies = createHeldVectorCopies();
|
|
3659
|
+
options?.onDocumentWrite?.(action);
|
|
3656
3660
|
return void 0;
|
|
3657
3661
|
}
|
|
3658
3662
|
case "serialize": {
|