[Groonga-commit] droonga/fluent-plugin-droonga at 65a69da [master] Add FIXME for keyword scan problem

Back to archive index

Yoji Shidara null+****@clear*****
Mon Oct 21 14:37:34 JST 2013


Yoji Shidara	2013-10-21 14:37:34 +0900 (Mon, 21 Oct 2013)

  New Revision: 65a69daca221d793cee841d857d57a18f2575502
  https://github.com/droonga/fluent-plugin-droonga/commit/65a69daca221d793cee841d857d57a18f2575502

  Message:
    Add FIXME for keyword scan problem

  Modified files:
    lib/droonga/plugin/handler_watch.rb

  Modified: lib/droonga/plugin/handler_watch.rb (+1 -0)
===================================================================
--- lib/droonga/plugin/handler_watch.rb    2013-10-17 18:21:37 +0900 (65d9245)
+++ lib/droonga/plugin/handler_watch.rb    2013-10-21 14:37:34 +0900 (647954e)
@@ -104,6 +104,7 @@ module Droonga
     def scan_body(hits, body)
       trimmed = body.strip
       candidates = {}
+      # FIXME scan reports the longest keyword matched only
       @context["Keyword"].scan(trimmed).each do |keyword, word, start, length|
         @context["Query"].select do |query|
           query.keywords =~ keyword
-------------- next part --------------
HTML����������������������������...
Download 



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