${this.lastSearchParams}
${this.lastAggregationParams}
| Identifier | Title | ${this.snippetsHeaderTemplate}
|---|---|
| ${hit.identifier} | ${hit.title?.value ?? '(Untitled)'} | ${this.snippetTemplate(hit)}
${JSON.stringify(this.searchResults, null, 2)}
`
: nothing}
`;
}
private get aggregationsTemplate(): TemplateResult {
return html`
${agg.buckets .map((bucket: number | Bucket) => { if (typeof bucket === 'number') { return bucket; } else { return `${bucket.key} (${bucket.doc_count})`; } }) .join(', ')}
`; })}