|
|
@@ -13,7 +13,7 @@ import PrivateLegacyPagesDelegator from './search-delegator/private-legacy-pages
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
import { PageModel } from '../models/page';
|
|
|
import { serializeUserSecurely } from '../models/serializers/user-serializer';
|
|
|
-import { IPageHasId } from '~/interfaces/page';
|
|
|
+import { IPageSearchResultData } from '~/interfaces/search';
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
const logger = loggerFactory('growi:service:search');
|
|
|
@@ -35,16 +35,7 @@ const normalizeQueryString = (_queryString: string): string => {
|
|
|
};
|
|
|
|
|
|
export type FormattedSearchResult = {
|
|
|
- data: {
|
|
|
- pageData: IPageHasId
|
|
|
- pageMeta: {
|
|
|
- bookmarkCount?: number
|
|
|
- elasticsearchResult?: {
|
|
|
- snippet: string
|
|
|
- highlightedPath: string
|
|
|
- }
|
|
|
- }
|
|
|
- }[]
|
|
|
+ data: IPageSearchResultData[]
|
|
|
|
|
|
totalCount: number
|
|
|
|