@delali/narsil 0.4.2 → 0.4.3-next.293
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{capabilities-BoWiLNv7.d.ts → capabilities-BL8i4YGL.d.ts} +1 -1
- package/dist/{chunk-ZTB7AWTW.mjs → chunk-3YPBBOSS.mjs} +1 -1
- package/dist/{chunk-35RWLUVY.mjs → chunk-FGOGPDZF.mjs} +1 -1
- package/dist/{chunk-YGRJLI2Z.mjs → chunk-K34UNLP6.mjs} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/{long-query-thread-KPN7NSOC.mjs → long-query-thread-7KO3GFHX.mjs} +3 -3
- package/dist/server.d.ts +2 -2
- package/dist/server.mjs +4 -4
- package/dist/{thread-VLVPAUWC.mjs → thread-RRSEKJWU.mjs} +2 -2
- package/dist/workers/entry.mjs +4 -4
- package/package.json +5 -7
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Narsil is an open source search engine with full-text, vector, hybrid, and geose
|
|
|
15
15
|
The engine partitions large indexes across workers and merges the results of the partitions into a single ranked list. This TypeScript package is the reference implementation of the `.nrsl` format, and [a Rust crate and a Go module](#other-languages) hold the same engine for programs in those languages.
|
|
16
16
|
|
|
17
17
|
<!-- BENCH:headline START -->
|
|
18
|
-
On BEIR SciFact, Narsil's BM25 ranking scores 0.681 nDCG@10, which is within 0.002 of the Anserini reference of 0.679. Elasticsearch scores 0.679 and OpenSearch scores 0.679 on the same queries. On SciFact, Narsil answers 4,200 keyword queries a second at its peak, and OpenSearch follows with 3,027. On DBpedia entities 1M with every engine held at 0.99 recall, Narsil answers 670 vector queries a second at its peak, while OpenSearch leads with 869. With each engine's recommended production settings on the same set, Narsil answers 1,154 vector queries a second at its peak, and OpenSearch follows with 1,111. Narsil has the highest peak throughput in 16 of the 20 keyword, vector, and hybrid comparisons in the newest recorded run: 8 of 12 with every engine on equal settings, and all 8 with each engine's recommended production settings. The harness recorded these figures on 2026-09-28 in run `20260928T002255Z`. GCP c3-standard-8 hardware in us-central1-a, us-east1-b, and us-west1-a hosted the engines. You'll find every dataset, every engine's settings, and the full method in [`BENCHMARKS.md`](https://github.com/assetcorp/narsil/blob/main/BENCHMARKS.md).
|
|
18
|
+
On BEIR SciFact, Narsil's BM25 ranking scores 0.681 nDCG@10, which is within 0.002 of the Anserini reference of 0.679. Elasticsearch scores 0.679 and OpenSearch scores 0.679 on the same queries. A paired significance test over those queries finds no significant difference between Narsil, Elasticsearch, and OpenSearch. On SciFact, Narsil answers 4,200 keyword queries a second at its peak, and OpenSearch follows with 3,027. On DBpedia entities 1M with every engine held at 0.99 recall, Narsil answers 670 vector queries a second at its peak, while OpenSearch leads with 869. With each engine's recommended production settings on the same set, Narsil answers 1,154 vector queries a second at its peak, and OpenSearch follows with 1,111. Narsil has the highest peak throughput in 16 of the 20 keyword, vector, and hybrid comparisons in the newest recorded run: 8 of 12 with every engine on equal settings, and all 8 with each engine's recommended production settings. The harness recorded these figures on 2026-09-28 in run `20260928T002255Z`. GCP c3-standard-8 hardware in us-central1-a, us-east1-b, and us-west1-a hosted the engines. You'll find every dataset, every engine's settings, and the full method in [`BENCHMARKS.md`](https://github.com/assetcorp/narsil/blob/main/BENCHMARKS.md).
|
|
19
19
|
<!-- BENCH:headline END -->
|
|
20
20
|
|
|
21
21
|
Try it in your browser at [narsil.sondelali.com/demo](https://narsil.sondelali.com/demo). Read the full documentation at [narsil.sondelali.com/docs](https://narsil.sondelali.com/docs).
|
|
@@ -167,7 +167,7 @@ interface ServerLimits {
|
|
|
167
167
|
* from the first byte of a body until its request finishes. The server
|
|
168
168
|
* answers 429 to a body that can take the total past this fraction before it
|
|
169
169
|
* buffers any more of that body, unless no other body is in flight. The
|
|
170
|
-
* fraction is 0.
|
|
170
|
+
* fraction is 0.1 by default, and 0 removes the bound. */
|
|
171
171
|
maxBodyBytesInFlightFraction?: number;
|
|
172
172
|
/** Ceiling for a search's `limit`, `offset`, and `group.maxPerGroup`, so one
|
|
173
173
|
* request cannot ask for an unbounded result set. Excess → 400. Defaults to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bindResponseStop, toHttpError, sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-
|
|
1
|
+
import { bindResponseStop, toHttpError, sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-K34UNLP6.mjs';
|
|
2
2
|
import { rm } from 'fs/promises';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { responseStopOf, sendRelayed, readQueryBody, withServerQueryLimits, requestSignal, respondJson, encodeQueryResult, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, registerServerRoutes, closeWhenTheProcessExits, acknowledgeThreadClose, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, LeavingResponse, refuseAndClose, serverRoutes, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, threadCloseRequested, departureConfirmed, serverCloseDeadline, REQUEST_THREAD_DRAIN_DEADLINE_MS, departureConfirmation, serverCloseSignalled, stopResponse, parseJsonObject, validateSuggest, rejectInvalid, isMainFeedNote, SEARCH_CLOCK_SAMPLE_UNITS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, awaitDepartureConfirmation } from './chunk-
|
|
1
|
+
import { responseStopOf, sendRelayed, readQueryBody, withServerQueryLimits, requestSignal, respondJson, encodeQueryResult, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, registerServerRoutes, closeWhenTheProcessExits, acknowledgeThreadClose, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, LeavingResponse, refuseAndClose, serverRoutes, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, threadCloseRequested, departureConfirmed, serverCloseDeadline, REQUEST_THREAD_DRAIN_DEADLINE_MS, departureConfirmation, serverCloseSignalled, stopResponse, parseJsonObject, validateSuggest, rejectInvalid, isMainFeedNote, SEARCH_CLOCK_SAMPLE_UNITS, REQUEST_THREAD_DEPARTURE_DRAIN_MS, awaitDepartureConfirmation } from './chunk-K34UNLP6.mjs';
|
|
2
2
|
import { SYNC_CLOSE_GOING_AWAY } from './chunk-TACP6VK6.mjs';
|
|
3
3
|
import { importOptionalReads, loadSortingFor, holdsQuotedText, loadQueryCode, executeQuery, lazyQueryBinding, executePreflight, resolveProjection, projectionKeepsField, loadRerankRuntime, setNestedValue } from './chunk-WYH3QHBK.mjs';
|
|
4
4
|
import { loadedMessagePack, loadMessagePack, extractVectorFieldsFromSchema } from './chunk-EY5U4P5V.mjs';
|
|
@@ -338,7 +338,7 @@ var DEFAULT_MAX_LINE_BYTES = 4 * BYTES_PER_MB;
|
|
|
338
338
|
var DEFAULT_IMPORT_BATCH_SIZE = 1e3;
|
|
339
339
|
var IMPORT_FLUSHES_IN_FLIGHT = 4;
|
|
340
340
|
var DEFAULT_MAX_CONCURRENT_REQUESTS = 0;
|
|
341
|
-
var DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION = 0.
|
|
341
|
+
var DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION = 0.1;
|
|
342
342
|
var MAX_BODY_BYTES_IN_FLIGHT_FRACTION = 1;
|
|
343
343
|
var PARSE_HEAP_BLOCK_FRACTION = 0.9;
|
|
344
344
|
var PARSE_HEAP_READ_BLOCK_FRACTION = 0.95;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { B as BackupListing, a as BackupSummary, D as DamagedBackup } from './config-DL_nkguq.js';
|
|
2
2
|
export { C as Change, a as ChangePosition, b as ChangeType, c as ChangesBatch, d as ChangesEvent, e as ChangesOperations, f as ChangesResync, g as ChangesSetting, h as ChangesStatus, i as ChangesSubscribed, j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, F as FollowChangesOptions, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, o as SnapshotOptions, p as SyncSetting, q as SyncStatus, r as isNarsilError } from './engine-DGG_yX0p.js';
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-BL8i4YGL.js';
|
|
4
4
|
export { B as BackupListResponse, C as CapabilitiesResponse, a as ChangeAnalysisBody, b as CreateIndexEmbedding, E as ErrorDetail, H as HttpIndexConfig, I as ImportError, c as ImportResult, M as MemoryStatsResponse, R as RestoreBackupBody, T as TaskListPage, d as TaskListQuery, e as TaskProgress, f as TaskRecord, g as TaskStatus, h as TaskStepProgress, i as TaskType } from './tasks-B2MDjPL0.js';
|
|
5
5
|
export { M as ManualQuerySuggestion, Q as QuerySuggestionPreviewEntry, a as QuerySuggestionsBuild, b as QuerySuggestionsBuildTrigger, c as QuerySuggestionsPreview, d as QuerySuggestionsSetting, e as QuerySuggestionsStatus, R as RecordQueryOutcome, f as RecordQueryResult } from './query-suggestions-CBYkrQ5T.js';
|
|
6
6
|
export { A as AdminOperations, B as BackupOperations, a as BulkOperations, C as ChangeFeedOptions, b as ChangeSubscription, c as ChangesClientOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, d as IndexOperations, N as NarsilClient, e as NarsilClientOptions, P as PutResult, Q as QuerySuggestionOperations, R as RequestOptions, S as SearchOperations, f as ServerOperations, g as ServerVersion, h as SyncSettingOperations, i as SyncSnapshotDownload, j as SyncSnapshotResume, T as TaskOperations, W as WaitForTaskOptions, k as createNarsilClient } from './client-B0NPZSKY.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-FGOGPDZF.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-3YPBBOSS.mjs';
|
|
3
|
+
import './chunk-K34UNLP6.mjs';
|
|
4
4
|
import './chunk-TACP6VK6.mjs';
|
|
5
5
|
import './chunk-ACNHJOGC.mjs';
|
|
6
6
|
import './chunk-LRIJ7U3T.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { G as GroupResult, H as Hit, Q as QueryParams, J 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-DGG_yX0p.js';
|
|
2
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-DGG_yX0p.js';
|
|
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-
|
|
3
|
+
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-BL8i4YGL.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-BL8i4YGL.js';
|
|
5
5
|
import { P as PersistenceAdapter } from './adapters-8LcdNB77.js';
|
|
6
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-B2MDjPL0.js';
|
|
7
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-B2MDjPL0.js';
|
package/dist/server.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { answerRequest } from './chunk-
|
|
1
|
+
import { answerRequest } from './chunk-3YPBBOSS.mjs';
|
|
2
2
|
import { resolveVectorText } from './chunk-NJJN4FMM.mjs';
|
|
3
|
-
import { DEFAULT_MAX_RETAINED_TASKS, isTerminalTaskStatus, TASK_RECORD_LOAD_CONCURRENCY, loadUWebSockets, SERVER_CLOSE_DRAIN_DEADLINE_MS, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, isTaskType, isTaskStatus, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, createSyncSnapshotHandler, acceptorOf, createServerCloseSignal, signalServerClose, LeavingResponse, refuseAndClose, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, createCloseAtExitWords, createDepartureWord, departureConfirmed, threadCloseAcknowledgedWithin, SERVER_CLOSE_ACKNOWLEDGE_GRACE_MS, threadCloseAcknowledged, refusedRegex, toHttpError, parseJsonObject, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJsonObject, validateDocumentBody, validateSuggest, readQueryBody, withServerQueryLimits, requestSignal, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, parseJson, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, isThreadFeedNote, clearGateSlot, clearBodyBudgetSlot, confirmDeparture, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-
|
|
4
|
-
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-
|
|
3
|
+
import { DEFAULT_MAX_RETAINED_TASKS, isTerminalTaskStatus, TASK_RECORD_LOAD_CONCURRENCY, loadUWebSockets, SERVER_CLOSE_DRAIN_DEADLINE_MS, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, isTaskType, isTaskStatus, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, createSyncSnapshotHandler, acceptorOf, createServerCloseSignal, signalServerClose, LeavingResponse, refuseAndClose, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, createCloseAtExitWords, createDepartureWord, departureConfirmed, threadCloseAcknowledgedWithin, SERVER_CLOSE_ACKNOWLEDGE_GRACE_MS, threadCloseAcknowledged, refusedRegex, toHttpError, parseJsonObject, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJsonObject, validateDocumentBody, validateSuggest, readQueryBody, withServerQueryLimits, requestSignal, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, parseJson, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, isThreadFeedNote, clearGateSlot, clearBodyBudgetSlot, confirmDeparture, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-K34UNLP6.mjs';
|
|
4
|
+
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-K34UNLP6.mjs';
|
|
5
5
|
import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-QNZJYMCF.mjs';
|
|
6
6
|
import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, SYNC_CLOSE_POLICY, MAX_DEVICE_MESSAGE_BYTES, SYNC_CLOSE_TOO_LARGE, deviceMessageOf, SYNC_CLOSE_SERVER_ERROR, positionList, positionsByPartition, CHANGES_CLOSE_RESYNC, CHANGES_CLOSE_POLICY, MAX_SUBSCRIBER_MESSAGE_BYTES, CHANGES_CLOSE_TOO_LARGE, closeReasonOf, CHANGES_CLOSE_CREDENTIAL_EXPIRED, CHANGES_CLOSE_SETTING, CHANGES_CLOSE_SERVER_ERROR, CHANGES_CLOSE_GOING_AWAY, SYNC_CLOSE_GOING_AWAY } from './chunk-TACP6VK6.mjs';
|
|
7
7
|
import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-SPA7GXST.mjs';
|
|
@@ -1411,7 +1411,7 @@ function assertAllowRegex(allowRegex) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
1413
1413
|
// package.json
|
|
1414
|
-
var version = "0.4.
|
|
1414
|
+
var version = "0.4.3-next.293";
|
|
1415
1415
|
|
|
1416
1416
|
// src/server/package-version.ts
|
|
1417
1417
|
function publishedPackageVersion() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-FGOGPDZF.mjs';
|
|
2
|
+
import './chunk-K34UNLP6.mjs';
|
|
3
3
|
import './chunk-TACP6VK6.mjs';
|
|
4
4
|
import './chunk-ACNHJOGC.mjs';
|
|
5
5
|
import './chunk-LRIJ7U3T.mjs';
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -32,9 +32,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
32
32
|
await import(moduleUrl);
|
|
33
33
|
}
|
|
34
34
|
async function stopServingRequests(refuseNewRequests) {
|
|
35
|
-
const { drainRequestThread } = await import('../thread-
|
|
35
|
+
const { drainRequestThread } = await import('../thread-RRSEKJWU.mjs');
|
|
36
36
|
await drainRequestThread(refuseNewRequests);
|
|
37
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
37
|
+
const { closeLongQueryThread } = await import('../long-query-thread-7KO3GFHX.mjs');
|
|
38
38
|
closeLongQueryThread();
|
|
39
39
|
}
|
|
40
40
|
function holdsCopies(executor) {
|
|
@@ -91,7 +91,7 @@ function createActionHandler(executor) {
|
|
|
91
91
|
if (!holdsCopies(executor)) {
|
|
92
92
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
93
93
|
}
|
|
94
|
-
const starting = import('../thread-
|
|
94
|
+
const starting = import('../thread-RRSEKJWU.mjs').then(
|
|
95
95
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
96
96
|
);
|
|
97
97
|
serving.start = starting.then(
|
|
@@ -108,7 +108,7 @@ function createActionHandler(executor) {
|
|
|
108
108
|
if (!holdsCopies(executor)) {
|
|
109
109
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
110
110
|
}
|
|
111
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
111
|
+
const { serveLongQueries } = await import('../long-query-thread-7KO3GFHX.mjs');
|
|
112
112
|
serveLongQueries(executor, action.settings);
|
|
113
113
|
servingRequests = true;
|
|
114
114
|
post(buildSuccessResponse(action.requestId, void 0));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delali/narsil",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3-next.293",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
|
|
6
6
|
"author": "Delali (https://sondelali.com)",
|
|
@@ -656,11 +656,9 @@
|
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
658
|
"optionalDependencies": {
|
|
659
|
-
"@delali/narsil-native-
|
|
660
|
-
"@delali/narsil-native-
|
|
661
|
-
"@delali/narsil-native-
|
|
662
|
-
"@delali/narsil-native-
|
|
663
|
-
"@delali/narsil-native-win32-arm64": "0.4.2",
|
|
664
|
-
"@delali/narsil-native-win32-x64": "0.4.2"
|
|
659
|
+
"@delali/narsil-native-linux-arm64": "0.4.3-next.293",
|
|
660
|
+
"@delali/narsil-native-linux-x64": "0.4.3-next.293",
|
|
661
|
+
"@delali/narsil-native-win32-arm64": "0.4.3-next.293",
|
|
662
|
+
"@delali/narsil-native-win32-x64": "0.4.3-next.293"
|
|
665
663
|
}
|
|
666
664
|
}
|