@findlane/server 0.30.0 → 0.31.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/dist/index.d.cts CHANGED
@@ -67,6 +67,14 @@ export type IndexSettings = {
67
67
  /** Searches say which words typo tolerance corrected, and `suggest()` offers a corrected query for a
68
68
  * search that finds nothing. Off by default. */
69
69
  didYouMean?: boolean;
70
+ /** Learn from clicks (0.31.0): each search with 10+ clicks in 30 days puts its up to 5 most clicked and
71
+ * bought products first within their rank first group, after rules; learned daily. Off by default. */
72
+ learnedRanking?: boolean;
73
+ /** Searches (as typed, any case) and product IDs that learning from clicks leaves out, applied at once. */
74
+ learnedExclusions?: {
75
+ queries?: string[];
76
+ products?: string[];
77
+ };
70
78
  /** Compound words find each other written as one word or apart, in any language: a query word that the
71
79
  * index's words show is a compound also matches its parts written apart ("sjóræningjabúningur" finds
72
80
  * "Sjóræningja búningur"), and neighbouring query words the word they make ("face paint" finds "facepaint").
package/dist/index.d.ts CHANGED
@@ -67,6 +67,14 @@ export type IndexSettings = {
67
67
  /** Searches say which words typo tolerance corrected, and `suggest()` offers a corrected query for a
68
68
  * search that finds nothing. Off by default. */
69
69
  didYouMean?: boolean;
70
+ /** Learn from clicks (0.31.0): each search with 10+ clicks in 30 days puts its up to 5 most clicked and
71
+ * bought products first within their rank first group, after rules; learned daily. Off by default. */
72
+ learnedRanking?: boolean;
73
+ /** Searches (as typed, any case) and product IDs that learning from clicks leaves out, applied at once. */
74
+ learnedExclusions?: {
75
+ queries?: string[];
76
+ products?: string[];
77
+ };
70
78
  /** Compound words find each other written as one word or apart, in any language: a query word that the
71
79
  * index's words show is a compound also matches its parts written apart ("sjóræningjabúningur" finds
72
80
  * "Sjóræningja búningur"), and neighbouring query words the word they make ("face paint" finds "facepaint").
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findlane/server",
3
- "version": "0.30.0",
3
+ "version": "0.31.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",