@delali/narsil 0.3.1-next.73 → 0.3.1-next.74
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/{capabilities-CYeAWYxQ.d.ts → capabilities-CAMzmkAg.d.ts} +2 -2
- package/dist/{chunk-PU43WDY4.mjs → chunk-2E35UM3G.mjs} +1 -13
- package/dist/chunk-3DDUNI6N.mjs +48 -0
- package/dist/{chunk-THMSFOJO.mjs → chunk-BVBIQQKG.mjs} +576 -547
- package/dist/{chunk-ZULSEZCE.mjs → chunk-CTOSGRM7.mjs} +100 -19
- package/dist/{chunk-CVFAFZSN.mjs → chunk-CUZOX6CN.mjs} +23 -15
- package/dist/chunk-I23G3IZC.mjs +593 -0
- package/dist/chunk-KEHK2O6P.mjs +13 -0
- package/dist/{chunk-AFKH4ZK3.mjs → chunk-LX4JERXI.mjs} +1 -1
- package/dist/{chunk-LPBWCHBE.mjs → chunk-NOZUQM7J.mjs} +2 -2
- package/dist/{chunk-WVDFG45M.mjs → chunk-PO53FV4Q.mjs} +2 -1
- package/dist/chunk-T5ZWEWVD.mjs +658 -0
- package/dist/{chunk-2WLD2NFW.mjs → chunk-TVFLHM7M.mjs} +2 -2
- package/dist/{chunk-3YKWSO54.mjs → chunk-VKX2BPXD.mjs} +147 -647
- package/dist/{chunk-AK3BLGCI.mjs → chunk-Z3DQPOJQ.mjs} +15 -48
- package/dist/{client-D698E5ge.d.ts → client-C-I70ArH.d.ts} +3 -3
- package/dist/client.d.ts +8 -8
- package/dist/{config-Bv8etwUZ.d.ts → config-C6Iw5rCX.d.ts} +2 -2
- package/dist/{config-QXU3HMpq.d.ts → config-DJPH3IQB.d.ts} +2 -2
- package/dist/direct-executor-KFAGILJC.mjs +17 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution.d.ts +8 -8
- package/dist/distribution.mjs +19 -9
- package/dist/{engine-D_OzKZ-6.d.ts → engine-B8eRPO7m.d.ts} +2 -2
- package/dist/index.browser.mjs +1200 -808
- package/dist/index.d.ts +27 -8
- package/dist/index.mjs +12 -8
- package/dist/{memory-B4jMmygw.d.ts → memory-DJEwWoCi.d.ts} +1205 -1180
- package/dist/partial-words-DTIHO8G4.d.ts +19 -0
- package/dist/partial-words.d.ts +22 -0
- package/dist/partial-words.mjs +11 -0
- package/dist/persistence/durability/checkpoint-worker.d.ts +33 -13
- package/dist/persistence/durability/checkpoint-worker.mjs +12 -8
- package/dist/react.d.ts +7 -7
- package/dist/{schema-BBOCdhND.d.ts → schema-DgyDijhf.d.ts} +6 -2
- package/dist/server.d.ts +10 -10
- package/dist/server.mjs +8 -6
- package/dist/{tasks-DpgCpW1x.d.ts → tasks-BVmAKYBh.d.ts} +1 -1
- package/dist/{thread-3LNVA43V.mjs → thread-W6DPKEF6.mjs} +8 -5
- package/dist/{types-BiUmaiWT.d.ts → types-ChrVy4lH.d.ts} +1 -1
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +3 -2
- package/dist/workers/entry.mjs +3 -3
- package/package.json +15 -7
- package/dist/direct-executor-5SRDFZAS.mjs +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { b as StopWordOverride, C as CustomTokenizer } from './schema-
|
|
2
|
-
export { A as AnyDocument, B as BM25Params, E as EmbeddingFieldConfig, F as FieldOptionChain, c as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, S as SchemaDefinition, d as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, e as VectorQuantizationMode, f as VectorStorageMode, W as WriteOptions } from './schema-
|
|
1
|
+
import { b as StopWordOverride, C as CustomTokenizer } from './schema-DgyDijhf.js';
|
|
2
|
+
export { A as AnyDocument, B as BM25Params, E as EmbeddingFieldConfig, F as FieldOptionChain, c as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, S as SchemaDefinition, d as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, e as VectorQuantizationMode, f as VectorStorageMode, W as WriteOptions } from './schema-DgyDijhf.js';
|
|
3
|
+
import { P as PartialWordSearch } from './partial-words-DTIHO8G4.js';
|
|
3
4
|
import { P as PatternSearch } from './pattern-Cledccbl.js';
|
|
4
5
|
import { L as LanguageModule } from './language-DB8KG1z5.js';
|
|
5
6
|
export { T as TokenizerConfig } from './language-DB8KG1z5.js';
|
|
6
|
-
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HighlightConfig, x as HighlightMatch, y as Hit, z as HybridConfig, I as IndexInfo, g as IndexStats, L as ListParams, h as ListResult, J as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, P as PartitionStatsResult, j as PreflightResult, K as PresenceFilter, O as ProcessMemoryReport, R as QueryCoverage, Q as QueryParams, e as QueryResult, T as ScoreComponents, U as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, W as SortField, X as SortSpec, Y as StringFilter, k as SuggestParams, l as SuggestResult, Z as TermMatchPolicy, V as VectorMaintenanceResult, _ as VectorQueryConfig, $ as WorkerCopyReport, i as isNarsilError } from './memory-
|
|
7
|
-
import { N as NarsilConfig } from './config-
|
|
8
|
-
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-
|
|
9
|
-
import { N as Narsil } from './engine-
|
|
10
|
-
export { B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations } from './engine-
|
|
7
|
+
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HighlightConfig, x as HighlightMatch, y as Hit, z as HybridConfig, I as IndexInfo, g as IndexStats, L as ListParams, h as ListResult, J as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, P as PartitionStatsResult, j as PreflightResult, K as PresenceFilter, O as ProcessMemoryReport, R as QueryCoverage, Q as QueryParams, e as QueryResult, T as ScoreComponents, U as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, W as SortField, X as SortSpec, Y as StringFilter, k as SuggestParams, l as SuggestResult, Z as TermMatchPolicy, V as VectorMaintenanceResult, _ as VectorQueryConfig, $ as WorkerCopyReport, i as isNarsilError } from './memory-DJEwWoCi.js';
|
|
8
|
+
import { N as NarsilConfig } from './config-DJPH3IQB.js';
|
|
9
|
+
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-DJPH3IQB.js';
|
|
10
|
+
import { N as Narsil } from './engine-B8eRPO7m.js';
|
|
11
|
+
export { B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations } from './engine-B8eRPO7m.js';
|
|
11
12
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter } from './adapters-79OIa4xm.js';
|
|
12
13
|
export { i as isSimdAvailable } from './simd-DW5AtJ6B.js';
|
|
13
14
|
|
|
@@ -82,6 +83,24 @@ declare function getTokenizer(name: string): CustomTokenizer;
|
|
|
82
83
|
*/
|
|
83
84
|
declare function getStopWords(name: string): StopWordOverride;
|
|
84
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Call this to give the engine the partial-word search code, so that it can
|
|
88
|
+
* create and load an index with a field whose type includes `partial`.
|
|
89
|
+
*
|
|
90
|
+
* A Node process loads that code by itself, so only a browser app has to
|
|
91
|
+
* make this call. In a browser, import `partialWordSearch` from
|
|
92
|
+
* `@delali/narsil/partial-words` and pass it here before the app creates or
|
|
93
|
+
* loads an index with a `partial` field.
|
|
94
|
+
*
|
|
95
|
+
* @param module - Pass the `partialWordSearch` object that
|
|
96
|
+
* `@delali/narsil/partial-words` exports.
|
|
97
|
+
* @throws The engine throws a `NarsilError` with `CONFIG_INVALID` for any
|
|
98
|
+
* other object.
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
declare function registerPartialWordSearch(module: PartialWordSearch): void;
|
|
103
|
+
|
|
85
104
|
/**
|
|
86
105
|
* This makes pattern search available to every index whose schema declares a
|
|
87
106
|
* pattern field, meaning a `verbatim` field or a text field whose type
|
|
@@ -197,4 +216,4 @@ declare function createNarsil(config?: NarsilConfig): Promise<Narsil>;
|
|
|
197
216
|
*/
|
|
198
217
|
declare const VERSION = "0.1.0";
|
|
199
218
|
|
|
200
|
-
export { CustomTokenizer, LanguageModule, Narsil, NarsilConfig, PatternSearch, StopWordOverride, VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPatternSearch, registerStopWords, registerTokenizer, resetNormalizationCache };
|
|
219
|
+
export { CustomTokenizer, LanguageModule, Narsil, NarsilConfig, PartialWordSearch, PatternSearch, StopWordOverride, VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerTokenizer, resetNormalizationCache };
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
export { VERSION, createNarsil } from './chunk-
|
|
1
|
+
export { VERSION, createNarsil } from './chunk-CUZOX6CN.mjs';
|
|
2
|
+
import './chunk-CTOSGRM7.mjs';
|
|
2
3
|
import './chunk-GCM3JFVA.mjs';
|
|
3
|
-
import './chunk-
|
|
4
|
-
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerPatternSearch, registerStopWords, registerTokenizer } from './chunk-
|
|
4
|
+
import './chunk-LX4JERXI.mjs';
|
|
5
|
+
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerTokenizer } from './chunk-BVBIQQKG.mjs';
|
|
6
|
+
import './chunk-VKX2BPXD.mjs';
|
|
5
7
|
export { getLanguage, registerLanguage } from './chunk-4MQ5F4IL.mjs';
|
|
6
|
-
import './chunk-
|
|
7
|
-
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-3YKWSO54.mjs';
|
|
8
|
-
import './chunk-AK3BLGCI.mjs';
|
|
8
|
+
import './chunk-3DDUNI6N.mjs';
|
|
9
9
|
import './chunk-TGP5M5R7.mjs';
|
|
10
|
-
export { isSimdAvailable } from './chunk-
|
|
10
|
+
export { isSimdAvailable } from './chunk-PO53FV4Q.mjs';
|
|
11
11
|
import './chunk-ZJ4CSAB2.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-2E35UM3G.mjs';
|
|
13
13
|
import './chunk-XW25X6AU.mjs';
|
|
14
14
|
import './chunk-ZKRV5M2P.mjs';
|
|
15
|
+
import './chunk-T5ZWEWVD.mjs';
|
|
16
|
+
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-I23G3IZC.mjs';
|
|
17
|
+
import './chunk-Z3DQPOJQ.mjs';
|
|
18
|
+
import './chunk-KEHK2O6P.mjs';
|
|
15
19
|
import './chunk-U2BKYEC7.mjs';
|
|
16
20
|
import './chunk-LJYTW7GT.mjs';
|
|
17
21
|
import './chunk-POWOTUKJ.mjs';
|