-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds: documentation updates and code cleanup
- Loading branch information
1 parent
c3b74da
commit 3eb9587
Showing
5 changed files
with
44 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Search Service | ||
|
||
The Search Service provides a direct querying controller which interfaces with our ELK stack. | ||
|
||
## Install | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
# normal mode | ||
npm start | ||
``` | ||
|
||
By default the server is running on http://localhost:4445/. | ||
|
||
### Examples | ||
|
||
- `GET /query?text=Telescope&filter=post&page=0` - Returns the search results of posts containing the keyword "Telescope" | ||
- `GET /query?text=SenecaCDOT?filter=author&page=0` - Returns the search results of authors which relate to the keyword "SenecaCDOT" | ||
- `GET /healthcheck` - returns `{ "status": "ok" }` if everything is running properly | ||
|
||
## Docker / Docker-Compose | ||
|
||
### Docker | ||
|
||
- To build and tag: `docker build . -t telescope_search_svc:latest` | ||
- To run locally: `docker run -p 4445:4445 telescope_search_svc:latest` | ||
|
||
### Docker-Compose | ||
|
||
_Commands to be run from the `~/src/api` directory_ | ||
|
||
- To build and run: `docker-compose -f docker-compose-api-production.yml up --build search` |
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