Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```