[Groonga-commit] groonga/groonga-query-log at 6db2c9b [master] Relax random score detection

Back to archive index

Kouhei Sutou null+****@clear*****
Mon May 30 18:29:39 JST 2016


Kouhei Sutou	2016-05-30 18:29:39 +0900 (Mon, 30 May 2016)

  New Revision: 6db2c9be37b089b5fefac4d15956e281db70639e
  https://github.com/groonga/groonga-query-log/commit/6db2c9be37b089b5fefac4d15956e281db70639e

  Message:
    Relax random score detection

  Modified files:
    lib/groonga/query-log/response-comparer.rb

  Modified: lib/groonga/query-log/response-comparer.rb (+1 -1)
===================================================================
--- lib/groonga/query-log/response-comparer.rb    2016-05-27 14:27:16 +0900 (28461bd)
+++ lib/groonga/query-log/response-comparer.rb    2016-05-30 18:29:39 +0900 (f4501d7)
@@ -78,7 +78,7 @@ module Groonga
 
       def random_score?
         return false unles****@comma*****_to?(:scorer)
-        @command.scorer == "_score=rand()"
+        /\A_score\s*=\s*rand\(\)\z/ ===****@comma*****
       end
 
       def random_sort?
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index