diff --git a/app/game/Query.scala b/app/game/Query.scala index 19344c4364..bda24e14fe 100644 --- a/app/game/Query.scala +++ b/app/game/Query.scala @@ -29,6 +29,8 @@ object Query { val notFinished: DBObject = DBObject("status" -> Status.Started.id) + val frozen: DBObject = "status" $gte Status.Mate.id + val popular: DBObject = "bm" $gt 0 def clock(c: Boolean): DBObject = "clock.l" $exists c diff --git a/app/search/Indexer.scala b/app/search/Indexer.scala index df9ab3b6ba..1c4929342c 100644 --- a/app/search/Indexer.scala +++ b/app/search/Indexer.scala @@ -52,7 +52,7 @@ final class Indexer( } private def indexQuery(query: DBObject): IO[Int] = io { - val cursor = gameRepo find (GameQuery.finished ++ query) sort GameQuery.sortCreated //limit 3000 + val cursor = gameRepo find (GameQuery.frozen ++ query) sort GameQuery.sortCreated //limit 3000 var nb = 0 for (games ← cursor grouped 5000) { //println("Indexing from %d to %d".format(nb, nb + games.size)) diff --git a/app/views/search/form.scala.html b/app/views/search/form.scala.html index ddc35e2adb..70407fe5cc 100644 --- a/app/views/search/form.scala.html +++ b/app/views/search/form.scala.html @@ -158,7 +158,10 @@ moreCss = moreCss) { @game.widgets(pager.currentPageResults) } else { -
No game found
+
+ No game found - + +
} }.getOrElse {
Search ready
diff --git a/todo b/todo index b3598c476a..0e1993688b 100644 --- a/todo +++ b/todo @@ -40,11 +40,8 @@ add more system messages to the game chat http://en.lichess.org/forum/lichess-fe chess960 second rematch random position http://en.lichess.org/forum/lichess-feedback/return-game-chess-960#1 count ai games in nb wins/losses http://en.lichess.org/@/ivym http://en.lichess.org/forum/lichess-feedback/how-do-the-game-totals-work#1 -> user_stats collection for all nb* fields -search date filter bug -stalemate filter bug index game positions integrate with google+ elo stats -permalink without results merge timeout and outoftime feedback changes to do http://en.lichess.org/forum/lichess-feedback/new-feature-landing-advanced-search#3