Skip to content

lichess-org/lila-search

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