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:
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user