@lde/search 0.24.4 → 0.25.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.
@@ -1 +1 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAkBL,KAAK,eAAe,EAEpB,KAAK,QAAQ,EAEb,KAAK,YAAY,EACjB,KAAK,UAAU,EAEhB,MAAM,aAAa,CAAC;AAErB;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAkB,SAAQ,OAAO,CAChD,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAC1C;IACC,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAKD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,CAAC,EAAE,YAAY,EACrB,OAAO,GAAE,iBAAyC,GACjD,cAAc,CAgBhB;AAsHD;;;;;;;;;;;;GAYG;AACH,wBAAuB,YAAY,CACjC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,EACrB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,QAAQ,EACpB,OAAO,GAAE,iBAAyC,GACjD,aAAa,CAAC,cAAc,CAAC,CAc/B"}
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAkBL,KAAK,eAAe,EAEpB,KAAK,QAAQ,EAEb,KAAK,YAAY,EACjB,KAAK,UAAU,EAEhB,MAAM,aAAa,CAAC;AAErB;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAkB,SAAQ,OAAO,CAChD,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAC1C;IACC,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAKD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,CAAC,EAAE,YAAY,EACrB,OAAO,GAAE,iBAAyC,GACjD,cAAc,CAgBhB;AAuHD;;;;;;;;;;;;GAYG;AACH,wBAAuB,YAAY,CACjC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,EACrB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,QAAQ,EACpB,OAAO,GAAE,iBAAyC,GACjD,aAAa,CAAC,cAAc,CAAC,CAc/B"}
package/dist/project.js CHANGED
@@ -69,11 +69,11 @@ function pruneInternalFields(document, searchType, schema) {
69
69
  * Pruning is deferred to a single recursive pass ({@link pruneInternalFields})
70
70
  * once the whole nested structure is projected, so a derive at any depth can
71
71
  * still read an internal field before it is removed. */
72
- function projectFields(node, searchType, schema, context) {
72
+ function projectFields(node, searchType, schema, context, nested = false) {
73
73
  const id = documentIdOf(node, searchType);
74
74
  const document = id === undefined ? {} : { id };
75
75
  for (const field of searchType.fields) {
76
- applyField(document, node, field, searchType, schema, context);
76
+ applyField(document, node, field, searchType, schema, context, nested);
77
77
  }
78
78
  return document;
79
79
  }
@@ -145,7 +145,7 @@ export async function* projectRoots(quads, roots, schema, searchType, context =
145
145
  yield projectDocument(node, searchType, schema, context);
146
146
  }
147
147
  }
148
- function applyField(document, node, field, searchType, schema, context) {
148
+ function applyField(document, node, field, searchType, schema, context, nested) {
149
149
  // The three value sources, mutually exclusive by declaration
150
150
  // (`validateSearchType`): a projection value, a computed value, a graph path.
151
151
  if ((field.kind === 'keyword' || field.kind === 'reference') &&
@@ -201,7 +201,7 @@ function applyField(document, node, field, searchType, schema, context) {
201
201
  // project nothing rather than fall through and emit the referent IRIs under
202
202
  // the field name (the wrong shape).
203
203
  if (schema !== undefined) {
204
- applyInlineReference(document, node, alias, field, schema, context);
204
+ applyInlineReference(document, node, alias, field, schema, context, nested);
205
205
  }
206
206
  return;
207
207
  }
@@ -217,7 +217,7 @@ function applyField(document, node, field, searchType, schema, context) {
217
217
  // a filter can reach – an engine welds conditions on an entry's LEAF
218
218
  // fields only. `filterable` therefore fans out the id beside the object,
219
219
  // exactly as an inline reference's identity companion does.
220
- applyLocalIdentity(document, endpoints, field, schema);
220
+ applyLocalIdentity(document, endpoints, field, schema, nested);
221
221
  return;
222
222
  }
223
223
  }
@@ -473,7 +473,7 @@ function applyProjectionValue(document, field, from, context, schema) {
473
473
  * the schema’s declared depth. The referent type is guaranteed declared by
474
474
  * {@link searchSchema}.
475
475
  */
476
- function applyInlineReference(document, node, alias, field, schema, context) {
476
+ function applyInlineReference(document, node, alias, field, schema, context, nested) {
477
477
  // Resolves for a schema that declares the referent (always so for the schema a
478
478
  // type is projected through); a type framed against a foreign schema that
479
479
  // omits it simply contributes no nesting.
@@ -482,7 +482,7 @@ function applyInlineReference(document, node, alias, field, schema, context) {
482
482
  return;
483
483
  }
484
484
  const referents = applyNestedReferents(document, valuesOf(node, alias), field, referenceType, schema, context);
485
- applyIdentityCompanion(document, referents, field, schema);
485
+ applyIdentityCompanion(document, referents, field, schema, nested);
486
486
  }
487
487
  /**
488
488
  * Write the {@link ReferenceStrategy.identity identity companion} of an inline
@@ -500,7 +500,7 @@ function applyInlineReference(document, node, alias, field, schema, context) {
500
500
  * `id`. Both are read here, because which one a deployment declares is about
501
501
  * how much of the referent it wants to display – not about what identifies it.
502
502
  */
503
- function applyIdentityCompanion(document, referents, field, schema) {
503
+ function applyIdentityCompanion(document, referents, field, schema, nested) {
504
504
  const names = physicalFields(field, schema);
505
505
  if (names.identity === undefined) {
506
506
  return;
@@ -518,15 +518,45 @@ function applyIdentityCompanion(document, referents, field, schema) {
518
518
  if (ids.length === 0) {
519
519
  return;
520
520
  }
521
- setArray(document, names.identity, ids);
521
+ setIdentity(document, names.identity, ids, field, nested);
522
522
  // Same rule as every other facetable reference: where the target declares a
523
523
  // facet policy, the facet reads a narrowed companion of its own, so an
524
524
  // excluded id is never seen by the engine rather than merely unlabelled.
525
525
  const policy = inheritedFacetKeys(field, schema);
526
526
  if (policy !== undefined) {
527
- setArray(document, names.facet, ids.filter(policy.only));
527
+ setIdentity(document, names.facet, ids.filter(policy.only), field, nested);
528
528
  }
529
529
  }
530
+ /**
531
+ * Write an identity companion under the arity of the reference it belongs to –
532
+ * `array` decides the shape here exactly as it does for every other kind
533
+ * ({@link applyFacet}).
534
+ *
535
+ * It matters most where the companion is a **nested** leaf. That is the field a
536
+ * weld actually names – the endpoint's own id is a level deeper than a weld can
537
+ * reach – and a weld asks whether ONE entry satisfies every condition. A
538
+ * companion holding a list inside an entry stands for each of its ids at once,
539
+ * so the entry answers the weld with none of them; a Typesense 30.2 engine does
540
+ * not answer at all, and hangs (ADR 26). The entry fans out instead
541
+ * ({@link tuplesOf}), which leaves exactly one id per entry for this to write.
542
+ *
543
+ * A top-level companion is unaffected: it is a flat field standing for the whole
544
+ * document rather than for one entry, so an `array` reference's companion holds
545
+ * every id its entries reference, as it always has.
546
+ */
547
+ function setIdentity(document, name, ids, field, nested) {
548
+ // `filterable` is the whole condition, and it is about the COMPANION rather
549
+ // than about the split. `tuplesOf` splits the identity field whatever Role
550
+ // earned it, so an entry holds one id either way – but only a `filterable`
551
+ // reference has a weld to serve, and only there is the single value worth the
552
+ // narrower declared type the collection then matches. A `facetable`-only
553
+ // companion stays a list, which is what a facet reads.
554
+ if (!nested || field.array === true || field.filterable !== true) {
555
+ setArray(document, name, ids);
556
+ return;
557
+ }
558
+ setString(document, name, ids[0]);
559
+ }
530
560
  /**
531
561
  * Write the identity companion of a {@link ReferenceStrategy.local local}
532
562
  * lookup: the ids of the endpoints just stored, under the flat physical name an
@@ -535,7 +565,7 @@ function applyIdentityCompanion(document, referents, field, schema) {
535
565
  * Nothing to do where the field is not `filterable`: without that Role there is
536
566
  * no companion, and the endpoint is display weight like every other nesting.
537
567
  */
538
- function applyLocalIdentity(document, endpoints, field, schema) {
568
+ function applyLocalIdentity(document, endpoints, field, schema, nested) {
539
569
  const names = physicalFields(field, schema);
540
570
  if (names.identity === undefined) {
541
571
  return;
@@ -547,9 +577,7 @@ function applyLocalIdentity(document, endpoints, field, schema) {
547
577
  const ids = dedupe(stored
548
578
  .map((endpoint) => endpoint.id)
549
579
  .filter((id) => typeof id === 'string'));
550
- if (ids.length > 0) {
551
- setArray(document, names.identity, ids);
552
- }
580
+ setIdentity(document, names.identity, ids, field, nested);
553
581
  }
554
582
  /** The id a value under an identity field carries: the value itself when the
555
583
  * field stores bare ids, its `id` when it stores nested documents. */
@@ -575,20 +603,90 @@ function identityValue(value) {
575
603
  * target’s collection files it under, and the lookup can find it.
576
604
  */
577
605
  function applyNestedReferents(document, values, field, nestedType, schema, context) {
606
+ // One node may stand for several entries: a weldable leaf is single-valued,
607
+ // so an edge the graph gave several roles or several endpoints fans out into
608
+ // one entry per combination BEFORE it is projected (ADR 26).
578
609
  const referents = values
579
610
  .filter(isObject)
580
- .map((referent) => projectFields(referent, nestedType, schema, context))
611
+ .flatMap((value) => tuplesOf(value, nestedType, field))
612
+ .map((tuple) => projectFields(tuple, nestedType, schema, context, true))
581
613
  // Fields, not identity, are what makes something a referent: a literal
582
614
  // value object under the alias (dirty source data), or a node this
583
615
  // reference type reads nothing from, projects nothing and is no referent.
584
616
  // Nesting it would hand the writer a content-free document – and, for a
585
617
  // single-valued reference, let it win the slot over a real referent.
586
618
  .filter((referent) => Object.keys(referent).length > 0);
587
- if (referents.length === 0) {
588
- return referents;
589
- }
590
- document[field.name] = field.array === true ? referents : referents[0];
591
- return referents;
619
+ // Fan-out splits RAW framed values, and two distinct ones can still collapse
620
+ // downstream – a `transform` mapping two spellings onto one canonical value,
621
+ // or a keyed target re-keying two referent IRIs to the same document key. The
622
+ // pre-fan-out shape deduped, because those values met inside one entry and
623
+ // `applyFacet` deduped them there; split across entries they would reach the
624
+ // index and the API as byte-identical duplicates instead.
625
+ const distinct = dedupeBy(referents, (referent) => JSON.stringify(referent));
626
+ if (distinct.length === 0) {
627
+ return distinct;
628
+ }
629
+ document[field.name] = field.array === true ? distinct : distinct[0];
630
+ return distinct;
631
+ }
632
+ /**
633
+ * Split one framed edge node into the entries it stands for: the cartesian
634
+ * product of its **weldable** leaves’ values, one value each.
635
+ *
636
+ * A weld asks whether ONE entry satisfies every condition, so a leaf a weld can
637
+ * name (`filterable` – `searchSchema` refuses `array` on one) states a single
638
+ * value. An edge the graph gave two roles and two endpoints is therefore four
639
+ * entries rather than one entry holding two lists, which stands for all four at
640
+ * once and answers the weld with none of them. See
641
+ * [ADR 26](../../docs/decisions/0026-fan-out-a-qualified-edge-into-one-entry-per-tuple.md).
642
+ *
643
+ * Done on the **framed node**, before projection, so each leaf reaches
644
+ * {@link applyField} single-valued and passes through `transform`, folding and
645
+ * the facet companion exactly as a single-valued field always has – no
646
+ * downstream step learns that fan-out happened. Only the weldable aliases are
647
+ * split: an `output`-only leaf keeps its list, because nothing welds it, and it
648
+ * is shared unchanged across the entries the node fans out to.
649
+ *
650
+ * Inline references only. A {@link ReferenceStrategy.local local} lookup runs
651
+ * through this same body but nests the endpoint’s **own Root Type**, whose
652
+ * fields are multi-valued for reasons of their own – fanning one out would
653
+ * split a person across their `sameAs` values. What a weld names there is the
654
+ * flat `${name}_id` companion, which {@link applyLocalIdentity} already writes
655
+ * beside the object.
656
+ *
657
+ * **Unbounded, deliberately and only for now.** The product grows with the
658
+ * edge's own values, which ADR 12 says is no bound at all. The bound belongs
659
+ * where the data enters memory – the CONSTRUCT already paid for those values,
660
+ * the subject index already holds them, and the framed node already
661
+ * materialised them – not here, at the last and cheapest step to skip. See
662
+ * [#826](https://github.com/ldelements/lde/issues/826).
663
+ */
664
+ function tuplesOf(node, nestedType, field) {
665
+ if (!isInlineReference(field)) {
666
+ return [node];
667
+ }
668
+ // `filterable` names the leaves a weld can condition on directly. The
669
+ // reference's `identity` field joins them: nothing welds it by name, but the
670
+ // flat companion harvested FROM it is the leaf a weld uses to name the
671
+ // endpoint ({@link applyIdentityCompanion}). An entry whose identity field
672
+ // holds three ids stands for three endpoints at once – the same tuple
673
+ // problem, one field further in – so it is a tuple position like any other.
674
+ const identity = field.ref.identity;
675
+ const weldable = nestedType.fields
676
+ .filter((nested) => nested.filterable === true || nested.name === identity)
677
+ .map((nested) => irAlias(nestedType, nested))
678
+ // A leaf the frame carries at most one value for is already a tuple
679
+ // position; splitting it would copy the node to no purpose.
680
+ .filter((alias) => valuesOf(node, alias).length > 1);
681
+ if (weldable.length === 0) {
682
+ return [node];
683
+ }
684
+ let tuples = [node];
685
+ for (const alias of weldable) {
686
+ const values = valuesOf(node, alias);
687
+ tuples = tuples.flatMap((tuple) => values.map((value) => ({ ...tuple, [alias]: value })));
688
+ }
689
+ return tuples;
592
690
  }
593
691
  function langValuesOf(node, key) {
594
692
  return valuesOf(node, key)
@@ -696,6 +794,18 @@ function setNumber(document, field, value) {
696
794
  function dedupe(values) {
697
795
  return [...new Set(values)];
698
796
  }
797
+ /** Keep the first of each distinct `key`, in order. */
798
+ function dedupeBy(values, key) {
799
+ const seen = new Set();
800
+ return values.filter((value) => {
801
+ const identity = key(value);
802
+ if (seen.has(identity)) {
803
+ return false;
804
+ }
805
+ seen.add(identity);
806
+ return true;
807
+ });
808
+ }
699
809
  function setString(document, field, value) {
700
810
  if (value !== undefined && value !== '') {
701
811
  document[field] = value;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGrE;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GACnB,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/E;oEACoE;AACpE,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC;AAcnD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,GAAG,SAAS,CAE7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,WAAW,GACrB,SAAS,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAE1E,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B;wCACoC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;+EAC2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;mEAK+D;IAC/D,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB;;yCAEqC;IACrC,QAAQ,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EAAE,WAAW,EAClB,MAAM,CAAC,EAAE,YAAY,GACpB,cAAc,CAsChB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,SAAS,GAAG,SAAS,CAcvB"}
package/dist/schema.js CHANGED
@@ -519,10 +519,19 @@ function assertNoInlineCycle(referenceType, referenceTypes, onPath) {
519
519
  * Field}, the reading device that is the other half of an inline reference’s
520
520
  * job.
521
521
  *
522
+ * **`filterable` with `array` is refused**, for a reason about meaning rather
523
+ * than about any engine: a weld asks whether ONE entry satisfies every
524
+ * condition, so a leaf a weld can name states one value per entry. A leaf
525
+ * holding a list stands for every combination at once and answers the weld with
526
+ * none of them. Multiplicity belongs to the entry list instead – the projection
527
+ * emits one entry per combination. An `output`-only nested
528
+ * leaf is untouched: nothing welds it, so it may carry a list for display.
529
+ *
522
530
  * Checked schema-wide, like the label sources and for the same reason: a single
523
531
  * declaration cannot see whether it is a Reference Type at all.
524
532
  *
525
- * See [ADR 24](../../docs/decisions/0024-carry-data-on-a-reference-edge.md).
533
+ * See [ADR 24](../../docs/decisions/0024-carry-data-on-a-reference-edge.md) and
534
+ * [ADR 26](../../docs/decisions/0026-fan-out-a-qualified-edge-into-one-entry-per-tuple.md).
526
535
  */
527
536
  function assertServiceableNestedFields(referenceTypes) {
528
537
  for (const referenceType of referenceTypes.values()) {
@@ -536,6 +545,9 @@ function assertServiceableNestedFields(referenceTypes) {
536
545
  if (field.labelSource !== undefined) {
537
546
  throw new Error(`Nested field “${referenceType.name}.${field.name}” declares a label source, which an inline reference cannot serve; declare a “lookup” on the nested reference instead of resolving a label for it.`);
538
547
  }
548
+ if (field.filterable === true && field.array === true) {
549
+ throw new Error(`Nested field “${referenceType.name}.${field.name}” declares both “filterable” and “array”: a weld asks whether ONE entry satisfies every condition, and an entry holding a list has no single value to test – it stands for each combination at once, so the weld degenerates into the cross-product it exists to exclude. Declare the field single-valued; the projection emits one entry per combination.`);
550
+ }
539
551
  }
540
552
  }
541
553
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lde/search",
3
- "version": "0.24.4",
3
+ "version": "0.25.0",
4
4
  "description": "Engine- and domain-agnostic core for RDF-backed search: a unified declarative field model (SearchField/SearchType/SearchSchema), a neutral query IR, the SearchEngine port with logical result types, and a streaming CONSTRUCT-to-document projection. Bakes in no engine, protocol, or domain.",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/ldelements/lde.git",