-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(search): Add search functionalities
- Loading branch information
Showing
14 changed files
with
356 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/****************************************************************************** | ||
* SearchController.ts * | ||
* * | ||
* Copyright (c) 2022-2023 Robin Ferch * | ||
* https://robinferch.me * | ||
* This project is released under the MIT license. * | ||
******************************************************************************/ | ||
|
||
import Core from "../Core"; | ||
import {MeiliSearch} from "meilisearch"; | ||
|
||
class S3Controller { | ||
|
||
private core: Core; | ||
|
||
private readonly meiliInstance: MeiliSearch; | ||
|
||
|
||
constructor(core: Core) { | ||
this.core = core; | ||
this.meiliInstance = new MeiliSearch({host: process.env.MEILISEARCH_HOST, apiKey: process.env.MEILISEARCH_KEY}); | ||
this.core.getLogger().debug("Started Search Controller.") | ||
} | ||
|
||
|
||
public getMeiliInstance(): any { | ||
return this.meiliInstance; | ||
} | ||
} | ||
|
||
|
||
export default S3Controller; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
VITE_WS_HOST=https://map.bte-germany.de | ||
VITE_SEARCH_URL=https://search.bte-germany.de | ||
VITE_SEARCH_KEY=ac0f027dadb439dbf0d4fc7f3e00da433aa872dae2f75417ba01ad0d0e6b0035 | ||
VITE_SEARCH_INDEX=map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.