Skip to content

Commit

Permalink
send game source to search index
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Sep 4, 2015
1 parent b72525d commit 3ce449b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gameSearch/src/main/GameSearchApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ final class GameSearchApi(client: ESClient) extends SearchReadApi[Game, Query] {
Fields.opening -> (game.opening map (_.code.toLowerCase)),
Fields.analysed -> analysed,
Fields.whiteUser -> game.whitePlayer.userId,
Fields.blackUser -> game.blackPlayer.userId
Fields.blackUser -> game.blackPlayer.userId,
Fields.source -> game.source.map(_.id)
).noNull

def reset(max: Option[Int]): Funit = client match {
Expand Down

0 comments on commit 3ce449b

Please sign in to comment.