@lde/search-typesense 0.43.1 → 0.43.2

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/documents.js CHANGED
@@ -159,7 +159,7 @@ export function assertWritableType(searchType, options) {
159
159
  }
160
160
  else if (options.requireFacetable &&
161
161
  physicalFields(declared, options.schema).facet !== declared.name) {
162
- problems.push('it inherits a facet policy from the type it names, so the engine facets only the datasets the policy admits, and the membership sweep enumerates the indexed datasets by faceting it');
162
+ problems.push('the engine facets a companion in its place – one narrowed by a facet policy inherited from the type it names, or the identity companion of a nested object – while the membership sweep enumerates the indexed datasets by faceting the field itself');
163
163
  }
164
164
  if (problems.length > 0) {
165
165
  throw new Error(`SearchType “${searchType.name}” declares “${declared.name}” over the indexed dataset, which this writer keeps its provenance bookkeeping on, but ${problems.join('; and ')}.`);
@@ -176,12 +176,12 @@ function assertReferencesAndFacetCompanionsPresent(name, fields, facetCompanions
176
176
  if (missingCompanions.length > 0) {
177
177
  throw new Error(`Typesense collection “${name}” exists without the facet field(s) ${missingCompanions
178
178
  .map((companion) => `“${companion}”`)
179
- .join(', ')} its search type facets on – the companion of a reference to a type that declares a facet policy (“facetKeys”). A facet field cannot be added to a live collection here: drop “${name}” (and the collections that join to it) and let the next run rebuild them.`);
179
+ .join(', ')} its search type facets on in place of the field itself – an identity companion, or one narrowed by a facet policy (“facetKeys”). A facet field cannot be added to a live collection here: drop “${name}” (and the collections that join to it) and let the next run rebuild them.`);
180
180
  }
181
181
  }
182
- /** The `${name}_facet` companions a type’s facets read instead of the fields
183
- * themselves – one per facetable reference inheriting a facet policy
184
- * ({@link physicalFields}). */
182
+ /** The companions a type’s facets read instead of the fields themselves – one
183
+ * per facetable reference that stores a nested object or inherits a facet
184
+ * policy ({@link physicalFields}). */
185
185
  function facetCompanionsOf(searchType, schema) {
186
186
  return facetableFields(searchType).flatMap((field) => {
187
187
  // A facetable field always has a facet field.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lde/search-typesense",
3
- "version": "0.43.1",
3
+ "version": "0.43.2",
4
4
  "description": "Typesense implementation of the @lde/search SearchEngine port: collection-schema builder, query compiler, label-resolving result reconstruction, and blue/green index lifecycle. Engine-specific (Typesense) but domain-agnostic.",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/ldelements/lde.git",
@@ -25,7 +25,7 @@
25
25
  "!**/*.tsbuildinfo"
26
26
  ],
27
27
  "dependencies": {
28
- "@lde/search": "^0.36.1",
28
+ "@lde/search": "^0.36.2",
29
29
  "@lde/text-normalization": "^0.3.0",
30
30
  "tslib": "^2.3.0",
31
31
  "typesense": "^3.1.1"