wip composable result list

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Emma Indal
2021-05-21 09:45:54 +02:00
committed by Eric Peterson
parent b614549b3e
commit 8829e8228e
3 changed files with 43 additions and 7 deletions
@@ -146,7 +146,7 @@ export class LunrSearchEngine implements SearchEngine {
// Translate results into SearchResultSet
const resultSet: SearchResultSet = {
results: results.map(d => {
return { document: this.docStore[d.ref] };
return { type: 'techdocs', document: this.docStore[d.ref] };
}),
};