chore: Fix install instructions

Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
Adam Harvey
2023-02-11 09:58:08 -05:00
parent e8f2ac13e7
commit 9fc1e58a5d
2 changed files with 6 additions and 7 deletions
+5 -6
View File
@@ -76,10 +76,9 @@ To index explore tools you will need to register the search collator in the
```diff
+import { ToolDocumentCollatorFactory } from '@backstage/plugin-explore-backend';
async function createSearchEngine(
env: PluginEnvironment,
): Promise<SearchEngine> {
...
...
+ // collator gathers entities from explore.
+ indexBuilder.addCollator({
+ schedule,
+ factory: ToolDocumentCollatorFactory.fromConfig(env.config, {
@@ -87,8 +86,8 @@ async function createSearchEngine(
+ logger: env.logger,
+ }),
+ });
...
}
...
```
### Wire up the Frontend