Clean up query types, ensure we've got room to expand on the result items.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-02-19 18:27:15 +01:00
parent ed6508d06c
commit 2c759b452a
+8 -3
View File
@@ -14,15 +14,20 @@
* limitations under the License.
*/
import { JsonObject } from '@backstage/config';
import { IndexableDocument } from '@backstage/plugin-search-indexer-backend';
export interface SearchQuery {
term: string;
filters?: Record<string, any>;
filters?: JsonObject;
pageIndex?: number;
pageSize?: number;
}
export interface SearchResultSet {
results: IndexableDocument[];
export interface SearchResult {
document: IndexableDocument;
}
export interface SearchResultSet {
results: SearchResult[];
}