Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lichess-org/lila-search
Keep elasticsearch threads out of your web facing app, kids
https://github.com/lichess-org/lila-search
cats-effect chess elasticsearch functional-programming lichess scala scala3 smithy smithy4s typelevel
Last synced: 1 day ago
JSON representation
Keep elasticsearch threads out of your web facing app, kids
- Host: GitHub
- URL: https://github.com/lichess-org/lila-search
- Owner: lichess-org
- License: agpl-3.0
- Created: 2015-08-31T13:53:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-21T17:59:35.000Z (6 days ago)
- Last Synced: 2024-12-23T09:25:44.120Z (5 days ago)
- Topics: cats-effect, chess, elasticsearch, functional-programming, lichess, scala, scala3, smithy, smithy4s, typelevel
- Language: Scala
- Homepage: http://lichess.org
- Size: 1010 KB
- Stars: 45
- Watchers: 9
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Search service for lichess.org
> "Keep elasticsearch threads out of your web facing app, kids" -- W. Churchill
## Developement
### Start sbt
Copy default settings
```sh
cp .sbtops.example .sbtopts
```Start sbt:
```sh
sbt
```### Inside sbt console
Start server:
```sh
app/run
```Run tests:
```sh
test
```Run code format and auto code refactor with scalafmt & scalafix:
```sh
prepare
```Start ingestor service:
```sh
ingestor/runMain lila.search.ingestor.App
```Start ingestor cli tool
```sh
ingestor/runMain lila.search.ingestor.cli --help
```#### CLI tool
```sh
# index all documents for specific index
sbt 'ingestor/runMain lila.search.ingestor.cli index --index team --since 0'# index all documents for all indexes
sbt 'ingestor/runMain lila.search.ingestor.cli index --all --since 0'
```### release
```bash
sbt release with-defaults
```