@findlane/server 0.1.1 → 0.2.0

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
@@ -44,7 +44,7 @@ The workspace ID is under Settings in the dashboard, and keys are under API keys
44
44
  | `delete(objectID)` | Delete a record. |
45
45
  | `getRecord(objectID)` | A record and its version. |
46
46
  | `upsertOne(record, { expectedVersion })`, `deleteOne(objectID, { expectedVersion })` | Write only if the record is still at `expectedVersion` (0 for one that never existed); retried with one idempotency key. |
47
- | `getSettings()`, `replaceSettings(settings)`, `waitForSettings()` | Read and change searchable fields, facets, filters, sorts, custom ranking, synonyms, typo tolerance, and text normalization. |
47
+ | `getSettings()`, `replaceSettings(settings)`, `waitForSettings()` | Read and change searchable fields, facets, filters, sorts, custom ranking, synonyms, languages, typo tolerance, and text normalization. |
48
48
  | `getIndexingStatus()`, `waitUntilIndexed(revision)` | Writes return an accepted revision and are searchable when accepted, so `waitUntilIndexed` returns at once. |
49
49
  | `getPublicSearchAccess()`, `setPublicSearchPolicy(policy)`, `usePublicIndexDefaults()` | Restrict what browser search may read and query. |
50
50
 
package/dist/index.d.ts CHANGED
@@ -26,6 +26,8 @@ export type IndexSettings = {
26
26
  customRanking?: SortRule[];
27
27
  /** Groups of interchangeable words or phrases (up to four words each). */
28
28
  synonyms?: string[][];
29
+ /** Languages whose common words queries drop, and whose plurals and alternative spellings match. */
30
+ languages?: Array<"da" | "de" | "en" | "is" | "no" | "sv">;
29
31
  normalizationProfile?: "default-v2" | "default-v1" | "icelandic-ascii-v1";
30
32
  [key: string]: unknown;
31
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findlane/server",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Findlane server SDK: upload catalogs, manage index settings, and search with a secret workspace API key.",
5
5
  "keywords": ["findlane", "search", "full-text search", "typo tolerance", "ecommerce search", "search api", "sdk"],
6
6
  "license": "MIT",