-
-
Couldn't load subscription status.
- Fork 2.5k
Enable Lila search
-
Install elasticsearch 7.x.x
No special config is necessary. We'll use the default port 9200
-
Setup lila-search:
git clone https://github.com/lichess-org/lila-search cd lila-search sbt app/run -
Add the following line to
lila/conf/application.conf:search.enabled = true -
Either use spamdb to add and automatically index games, posts, and teams:
spamdb/spamdb.py --es--esconnects spamdb to elasticsearch (at localhost:9200) and indexes your database. You're done, you can skip the rest. -
Or create indices manually (games will only be indexed on completion or computer analysis):
-
Before playing / analyzing any games on lila, you must do this:
curl -XPOST http://localhost:9673/mapping/game -
Now you can startup lila, login as the lichess user, go to
http://localhost:9663/dev/cli, and run these commands:forum search reset team search reset study search reset
-
You should now be able to search.