c8b295f2fb
This type is a subset of `IndexableDocument`, and is intended to be used in place of `IndexableDocument` in the frontend. Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
629 B
629 B
@backstage/plugin-search-common
| @backstage/plugin-search-common |
|---|
| patch |
- Introduce
SearchDocumenttype. This type contains the subset ofIndexableDocumentproperties relevant to the frontend, and is intended to be used for documents returned to the frontend from the search API. SearchResultSetis now a wrapper for documents of typeSearchDocument, and is intended to be used in the frontend. This isn't a breaking change, sinceIndexableDocuments are validSearchDocuments, so the old and new types are compatible.- Introduce
IndexableResultSettype, which wrapsIndexableDocumentinstances in the same way asSearchResultSet.