@delali/narsil 0.3.1-next.131 → 0.3.1-next.140

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.
Files changed (113) hide show
  1. package/dist/adapters/filesystem.mjs +1 -1
  2. package/dist/adapters/indexeddb.mjs +1 -1
  3. package/dist/analysis-change-JN23AZQP.mjs +43 -0
  4. package/dist/analysis-change-entry-5JSIMEKG.mjs +1 -0
  5. package/dist/browser/analysis-change-57MIRJWR.mjs +499 -0
  6. package/dist/browser/analysis-change-entry-ICGRR3IN.mjs +1 -0
  7. package/dist/browser/{chunk-UDGB2MWT.mjs → chunk-35B42UFM.mjs} +4 -0
  8. package/dist/browser/{chunk-VBBLTD7O.mjs → chunk-3EYDURFD.mjs} +39 -27
  9. package/dist/browser/{chunk-AIIJDWMG.mjs → chunk-4MFH226Q.mjs} +1 -1
  10. package/dist/browser/{chunk-D7WQF6DV.mjs → chunk-5LYWZJE2.mjs} +2 -2
  11. package/dist/browser/chunk-67KSBUYR.mjs +173 -0
  12. package/dist/browser/{chunk-M5UAAXGU.mjs → chunk-6BSB4N6B.mjs} +2 -2
  13. package/dist/browser/{chunk-NSCSR6MA.mjs → chunk-CGVBGHBX.mjs} +81 -6
  14. package/dist/browser/chunk-E5SFTOQR.mjs +21 -0
  15. package/dist/browser/{chunk-VEGHFP2P.mjs → chunk-MZI3TEOW.mjs} +4 -2
  16. package/dist/browser/chunk-OIZS5KIX.mjs +6 -0
  17. package/dist/browser/chunk-QHNNULPW.mjs +265 -0
  18. package/dist/browser/chunk-XVMOQQ34.mjs +384 -0
  19. package/dist/browser/{chunk-2Y3CO4EQ.mjs → chunk-ZAIZQOTM.mjs} +256 -777
  20. package/dist/browser/{durability-wiring-FNZSRH4N.mjs → durability-wiring-MTIAN6VT.mjs} +145 -50
  21. package/dist/browser/import-Q7MXD6BS.mjs +8 -0
  22. package/dist/browser/{module-4HIMOQM5.mjs → module-5J3PEUEB.mjs} +7 -6
  23. package/dist/browser/{phrase-module-WESYVU7K.mjs → phrase-module-HGVBO24W.mjs} +1 -1
  24. package/dist/{restore-queue-JAMNRC6T.mjs → browser/restore-queue-DISFECE4.mjs} +8 -2
  25. package/dist/browser/{runtime-3X7ZJ5T3.mjs → runtime-VEUH674B.mjs} +2 -2
  26. package/dist/browser/{snapshot-V7VF6BN6.mjs → snapshot-YBJ5MF2M.mjs} +36 -167
  27. package/dist/browser/{write-YIC2MKRY.mjs → write-RTWI5MXL.mjs} +8 -6
  28. package/dist/{capabilities-B6WxrWxt.d.ts → capabilities-DXAmysqJ.d.ts} +10 -3
  29. package/dist/{chunk-NMXRXFGZ.mjs → chunk-4GCN34JV.mjs} +2 -2
  30. package/dist/{chunk-SOHMMNCH.mjs → chunk-6VHWXAOI.mjs} +4 -4
  31. package/dist/{chunk-2C3WXBQS.mjs → chunk-74XB2SXI.mjs} +1 -1
  32. package/dist/{chunk-OGLV4I3L.mjs → chunk-B5I3IL4H.mjs} +12 -7
  33. package/dist/chunk-BDIDUW2B.mjs +387 -0
  34. package/dist/{chunk-5LX6MOIB.mjs → chunk-C3YDYX6C.mjs} +1 -1
  35. package/dist/{chunk-Y4BVTQ53.mjs → chunk-CCCGEPJM.mjs} +2 -2
  36. package/dist/{chunk-2JWNJSNE.mjs → chunk-CPCGEIOM.mjs} +11 -8
  37. package/dist/chunk-CZQ33DLW.mjs +78 -0
  38. package/dist/{chunk-4GDLFDPZ.mjs → chunk-DD2673TX.mjs} +3 -2
  39. package/dist/{chunk-RNSC4NFI.mjs → chunk-EEBCDP36.mjs} +3 -1
  40. package/dist/{chunk-HCGJKDZV.mjs → chunk-FFVLPCLH.mjs} +1 -1
  41. package/dist/{chunk-WVRDRLIC.mjs → chunk-FKARMUWH.mjs} +6 -6
  42. package/dist/{chunk-PATMDIMN.mjs → chunk-HJJWY6PT.mjs} +1 -1
  43. package/dist/chunk-HMDT3I63.mjs +21 -0
  44. package/dist/{chunk-CZ7ISLXA.mjs → chunk-HNHCNTVG.mjs} +4 -0
  45. package/dist/{chunk-RWESFSJI.mjs → chunk-IBATGS3J.mjs} +87 -61
  46. package/dist/{chunk-Y2U5VVWX.mjs → chunk-ICW45TTU.mjs} +1 -1
  47. package/dist/{chunk-T4OFG4IQ.mjs → chunk-IP4HJOGC.mjs} +90 -16
  48. package/dist/{chunk-EUCX5K74.mjs → chunk-J3EHATEZ.mjs} +3 -3
  49. package/dist/{chunk-X5CNUKD5.mjs → chunk-K3AQOZVM.mjs} +37 -20
  50. package/dist/chunk-LK3MOTXF.mjs +174 -0
  51. package/dist/{chunk-7OIQ2SIO.mjs → chunk-LLDFIKGP.mjs} +4 -4
  52. package/dist/{chunk-K77FJXKS.mjs → chunk-MTQTX4BP.mjs} +81 -8
  53. package/dist/{chunk-ZR4VM4A6.mjs → chunk-N37VMC62.mjs} +1 -18
  54. package/dist/{chunk-2WBY4Y4M.mjs → chunk-NOT5QOHU.mjs} +1 -1
  55. package/dist/{chunk-D5TFRB5G.mjs → chunk-NPNK57CA.mjs} +1 -1
  56. package/dist/{chunk-6SSVIW7Y.mjs → chunk-O4LJQI4G.mjs} +31 -5
  57. package/dist/{chunk-JJ6EUMXB.mjs → chunk-PNNVTKMT.mjs} +2 -2
  58. package/dist/{chunk-2SEL6SBS.mjs → chunk-RKAVHNRW.mjs} +2 -2
  59. package/dist/{chunk-RCMNL7RI.mjs → chunk-SBMAWTRG.mjs} +41 -4
  60. package/dist/chunk-TCWQJL7O.mjs +188 -0
  61. package/dist/{chunk-2MKX2SCO.mjs → chunk-U4X4AWKL.mjs} +7 -7
  62. package/dist/{chunk-PU6SKH7O.mjs → chunk-UBXJQJII.mjs} +2 -2
  63. package/dist/chunk-UEV53BBO.mjs +480 -0
  64. package/dist/{chunk-NNO7CO3A.mjs → chunk-UIKN2OTQ.mjs} +1 -1
  65. package/dist/{chunk-F6AAXI7T.mjs → chunk-VSUYTPME.mjs} +3 -3
  66. package/dist/{chunk-TGHNXN7W.mjs → chunk-W2XDK66Z.mjs} +180 -541
  67. package/dist/{chunk-7X5JST5L.mjs → chunk-WNBRW4Q2.mjs} +16 -2
  68. package/dist/{chunk-6M6SDH3S.mjs → chunk-XMQNOD5V.mjs} +8 -8
  69. package/dist/{chunk-SZGRYEIC.mjs → chunk-XS2VM7UE.mjs} +3 -3
  70. package/dist/{chunk-JT3YZGCE.mjs → chunk-XXKWEG53.mjs} +3 -188
  71. package/dist/{chunk-5W7AEVTH.mjs → chunk-ZMBFWQXN.mjs} +2 -2
  72. package/dist/{chunk-7XY6VD7B.mjs → chunk-ZSWHPKGM.mjs} +1 -1
  73. package/dist/{client-gNAfaHcE.d.ts → client-DApBeLbk.d.ts} +17 -2
  74. package/dist/client.d.ts +5 -5
  75. package/dist/client.mjs +11 -1
  76. package/dist/{config-D1cDv3sE.d.ts → config-B0H-vp4U.d.ts} +4 -0
  77. package/dist/{config-CmYJO34X.d.ts → config-Brysl9NO.d.ts} +1 -1
  78. package/dist/{direct-executor-HQ4QVDX7.mjs → direct-executor-J5UDLPL3.mjs} +14 -14
  79. package/dist/distribution/coordinator/etcd.mjs +1 -1
  80. package/dist/distribution/transport/grpc.mjs +1 -1
  81. package/dist/distribution.d.ts +21 -5
  82. package/dist/distribution.mjs +882 -192
  83. package/dist/{durability-wiring-S7OX2MAI.mjs → durability-wiring-AYOTAPNQ.mjs} +165 -70
  84. package/dist/embeddings/openai.mjs +2 -2
  85. package/dist/{engine-m_Ddr1bz.d.ts → engine-CuLMbH1-.d.ts} +63 -6
  86. package/dist/import-QRZAQ5RH.mjs +43 -0
  87. package/dist/index.browser.mjs +4 -4
  88. package/dist/index.d.ts +4 -4
  89. package/dist/index.mjs +20 -20
  90. package/dist/{long-query-thread-BSL25PD6.mjs → long-query-thread-U7K5A72G.mjs} +14 -14
  91. package/dist/{module-2E4XYSGT.mjs → module-L2OZO5PQ.mjs} +11 -11
  92. package/dist/partial-words.mjs +5 -5
  93. package/dist/pattern.mjs +3 -3
  94. package/dist/persistence/durability/checkpoint-worker.d.ts +11 -0
  95. package/dist/persistence/durability/checkpoint-worker.mjs +23 -23
  96. package/dist/{phrase-module-JERF2IDG.mjs → phrase-module-5QHBD2VJ.mjs} +1 -1
  97. package/dist/react.d.ts +7 -7
  98. package/dist/react.mjs +4 -0
  99. package/dist/{rerank-DMMT4FZA.mjs → rerank-KTLC3E6N.mjs} +5 -5
  100. package/dist/rerankers/http.mjs +2 -2
  101. package/dist/{browser/restore-queue-GEZ54CA5.mjs → restore-queue-RYSRRFS4.mjs} +8 -2
  102. package/dist/{runtime-7MLQ7J64.mjs → runtime-DYV75DCB.mjs} +6 -6
  103. package/dist/server.d.ts +10 -8
  104. package/dist/server.mjs +51 -19
  105. package/dist/{snapshot-DOQLGGEX.mjs → snapshot-BTRZ3MZK.mjs} +59 -190
  106. package/dist/synonyms.mjs +6 -4
  107. package/dist/{tasks-Co8HfRD7.d.ts → tasks-DjGjK70Y.d.ts} +22 -6
  108. package/dist/{thread-SKO7CN3R.mjs → thread-USB3GOPY.mjs} +13 -13
  109. package/dist/vector/search-worker.mjs +5 -5
  110. package/dist/workers/entry.mjs +7 -7
  111. package/dist/{write-ZKR7SNRT.mjs → write-GHTA56OW.mjs} +25 -22
  112. package/openapi.json +101 -6
  113. package/package.json +7 -7
package/openapi.json CHANGED
@@ -1552,6 +1552,51 @@
1552
1552
  }
1553
1553
  }
1554
1554
  },
1555
+ "/indexes/{name}/_change-analysis": {
1556
+ "post": {
1557
+ "operationId": "changeAnalysis",
1558
+ "summary": "Change the language, stop words, or tokeniser of an index, as a task",
1559
+ "tags": [
1560
+ "Maintenance"
1561
+ ],
1562
+ "parameters": [
1563
+ {
1564
+ "name": "name",
1565
+ "in": "path",
1566
+ "required": true,
1567
+ "description": "The name of the index.",
1568
+ "schema": {
1569
+ "type": "string"
1570
+ }
1571
+ }
1572
+ ],
1573
+ "requestBody": {
1574
+ "required": false,
1575
+ "content": {
1576
+ "application/json": {
1577
+ "schema": {
1578
+ "$ref": "#/components/schemas/ChangeAnalysisBody"
1579
+ }
1580
+ }
1581
+ }
1582
+ },
1583
+ "responses": {
1584
+ "202": {
1585
+ "description": "The server accepted the work and started a task.",
1586
+ "content": {
1587
+ "application/json": {
1588
+ "schema": {
1589
+ "$ref": "#/components/schemas/TaskRecord"
1590
+ }
1591
+ }
1592
+ }
1593
+ },
1594
+ "default": {
1595
+ "$ref": "#/components/responses/Error"
1596
+ }
1597
+ }
1598
+ }
1599
+ },
1555
1600
  "/indexes/{name}/snapshot": {
1556
1601
  "get": {
1557
1602
  "operationId": "snapshot",
@@ -2259,6 +2304,44 @@
2259
2304
  ],
2260
2305
  "description": "What a server announces at `/capabilities`, which is how a client finds out whether an optional route or mode is available before it sends a request. A server that answers 404 here predates the endpoint, so treat every optional capability as absent."
2261
2306
  },
2307
+ "ChangeAnalysisBody": {
2308
+ "type": "object",
2309
+ "properties": {
2310
+ "language": {
2311
+ "type": "string",
2312
+ "description": "This is the name of a language registered on the server."
2313
+ },
2314
+ "tokenizer": {
2315
+ "anyOf": [
2316
+ {
2317
+ "type": "null"
2318
+ },
2319
+ {
2320
+ "type": "string"
2321
+ }
2322
+ ],
2323
+ "description": "This is a name registered on the server, or `null` for the language default."
2324
+ },
2325
+ "stopWords": {
2326
+ "anyOf": [
2327
+ {
2328
+ "type": "null"
2329
+ },
2330
+ {
2331
+ "type": "string"
2332
+ },
2333
+ {
2334
+ "type": "array",
2335
+ "items": {
2336
+ "type": "string"
2337
+ }
2338
+ }
2339
+ ],
2340
+ "description": "This is a name registered on the server, a list of words, or `null` for the language default."
2341
+ }
2342
+ },
2343
+ "description": "The body of `POST /indexes/{name}/_change-analysis`, where a key that you leave out keeps its current value."
2344
+ },
2262
2345
  "ClusterAllocationResponse": {
2263
2346
  "type": "object",
2264
2347
  "properties": {
@@ -3123,12 +3206,23 @@
3123
3206
  ],
3124
3207
  "description": "A query scores this way unless it asks for another mode."
3125
3208
  },
3209
+ "tokenizer": {
3210
+ "type": "string",
3211
+ "description": "This is the name of a tokeniser registered on the server, which then splits text in place of the language's own rules."
3212
+ },
3126
3213
  "stopWords": {
3127
- "type": "array",
3128
- "items": {
3129
- "type": "string"
3130
- },
3131
- "description": "This list replaces the language's stop words."
3214
+ "anyOf": [
3215
+ {
3216
+ "type": "string"
3217
+ },
3218
+ {
3219
+ "type": "array",
3220
+ "items": {
3221
+ "type": "string"
3222
+ }
3223
+ }
3224
+ ],
3225
+ "description": "This name of a stop word set registered on the server, or this list, replaces the language's stop words."
3132
3226
  },
3133
3227
  "trackPositions": {
3134
3228
  "type": "boolean",
@@ -4918,7 +5012,8 @@
4918
5012
  "restore",
4919
5013
  "import",
4920
5014
  "importExport",
4921
- "rebuildAnalysis"
5015
+ "rebuildAnalysis",
5016
+ "changeAnalysis"
4922
5017
  ],
4923
5018
  "description": "Which long-running operation a task record tracks."
4924
5019
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delali/narsil",
3
- "version": "0.3.1-next.131",
3
+ "version": "0.3.1-next.140",
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)",
@@ -279,11 +279,11 @@
279
279
  }
280
280
  },
281
281
  "optionalDependencies": {
282
- "@delali/narsil-native-darwin-arm64": "0.3.1-next.131",
283
- "@delali/narsil-native-darwin-x64": "0.3.1-next.131",
284
- "@delali/narsil-native-linux-arm64": "0.3.1-next.131",
285
- "@delali/narsil-native-linux-x64": "0.3.1-next.131",
286
- "@delali/narsil-native-win32-arm64": "0.3.1-next.131",
287
- "@delali/narsil-native-win32-x64": "0.3.1-next.131"
282
+ "@delali/narsil-native-darwin-arm64": "0.3.1-next.140",
283
+ "@delali/narsil-native-darwin-x64": "0.3.1-next.140",
284
+ "@delali/narsil-native-linux-arm64": "0.3.1-next.140",
285
+ "@delali/narsil-native-linux-x64": "0.3.1-next.140",
286
+ "@delali/narsil-native-win32-arm64": "0.3.1-next.140",
287
+ "@delali/narsil-native-win32-x64": "0.3.1-next.140"
288
288
  }
289
289
  }