Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 888 Bytes

README.md

File metadata and controls

61 lines (45 loc) · 888 Bytes

Search service for lichess.org

"Keep elasticsearch threads out of your web facing app, kids" -- W. Churchill

Developement

Start sbt

Copy default settings

cp .env.example .env
cp .sbtops.example .sbtopts

Start sbt:

sbt

Inside sbt console

Start server:

app/run

Run tests:

test

Run code format and auto code refactor with scalafmt & scalafix:

prepare

Start ingestor service:

ingestor/runMain lila.search.ingestor.App

Start ingestor cli tool

ingestor/runMain lila.search.ingestor.cli --help

CLI tool

# 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

sbt release with-defaults