@silvermine/quarry 0.1.0 → 0.1.1

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 CHANGED
@@ -60,6 +60,9 @@ const response = await quarry.search({ index: 'articles', tokens: { exact: [ 'ha
60
60
  folders, as the [`quarry` command][command]
61
61
  does. The binding has no [allow list][allow-list],
62
62
  so the host selects the buckets.
63
+ * **A process that only searches.** `readOnlyServing` makes the binding request
64
+ [read-only sessions][read-only-sessions] on the serving bucket. Then `build` and `gc`
65
+ reject.
63
66
  * **JSON.** Documents, schemas, requests, responses, and records are the JSON that the
64
67
  Quarry documents specify. The binding sends them to Rust as text and does not rename
65
68
  a field.
@@ -86,6 +89,7 @@ response, and which indexes it copies at start.
86
89
  [types]: https://github.com/silvermine/quarry/blob/master/crates/quarry-node/index.d.ts
87
90
  [reader-protocol]: https://github.com/silvermine/quarry/blob/master/docs/query.md#reader-protocol
88
91
  [command]: https://github.com/silvermine/quarry/blob/master/docs/run-modes.md#the-command-line-tool
92
+ [read-only-sessions]: https://github.com/silvermine/quarry/blob/master/docs/storage.md#s3-adapter
89
93
  [allow-list]: https://github.com/silvermine/quarry/blob/master/docs/run-modes.md#the-safety-allow-list
90
94
  [rebuild-modes]: https://github.com/silvermine/quarry/blob/master/docs/builder.md#rebuild-modes
91
95
  [lambda]: https://github.com/silvermine/quarry/blob/master/docs/lambda.md
package/index.d.ts CHANGED
@@ -93,6 +93,13 @@ export interface QuarryOptions {
93
93
  /** Connections to the serving bucket (the Lambda hosts' `MAX_SOCKETS`); 64 when omitted. */
94
94
  maxSockets?: number;
95
95
 
96
+ /**
97
+ * Ask for read-only S3 Express sessions on the serving bucket (the Lambda query host's
98
+ * `READ_ONLY_SERVING`), for a process that only searches. Needs `servingBucket`. Then
99
+ * `build` and `gc` reject, because they write to the serving bucket.
100
+ */
101
+ readOnlyServing?: boolean;
102
+
96
103
  /** Compress the parts a transaction writes with gzip, for a slow link to storage. */
97
104
  compressParts?: boolean;
98
105
  }
package/lambda/bootstrap CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silvermine/quarry",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Node.js binding for Quarry, a serverless hybrid search engine that keeps its index in object storage",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file