Atomic Angular — Doc interne

Missing Terms

Which of the query's terms this particular document doesn't contain, struck through, each a link to re-run the search requiring all of them.

A document can match a multi-term query without containing every term — <missing-terms> reads article.termspresence and shows the ones absent from this specific document, each one a link that re-runs the search with that term required.

Minimal example

On a result row
result-row.component.ts
import { Component, input } from "@angular/core";
import { MissingTermsComponent } from "@sinequa/atomic-angular";
import type { Article } from "@sinequa/atomic";

@Component({
  selector: "result-row",
  imports: [MissingTermsComponent],
  template: `<missing-terms [article]="article()" />`,
})
export class ResultRowComponent {
  readonly article = input.required<Article>();
}

How it works

current query article().termspresence Keep entries with presence = missing QueryParamsStore Build a search link per missing term missingTerms computed Struck-through terms, each clickable

Each rendered term's query params force that term into the search (rather than replacing it), so clicking one broadens the current query instead of starting a new one.

Options

Prop

Type

Pitfalls

What's next

On this page