YUKI Hiroshi
null+****@clear*****
Tue Oct 7 12:24:41 JST 2014
YUKI Hiroshi 2014-10-07 12:24:41 +0900 (Tue, 07 Oct 2014) New Revision: b93586f3342c3e52e90f6cca597df056c6730dad https://github.com/droonga/droonga-engine/commit/b93586f3342c3e52e90f6cca597df056c6730dad Message: Support "allowLeadingNot" option for query syntax search conditions Modified files: lib/droonga/searcher.rb Modified: lib/droonga/searcher.rb (+4 -0) =================================================================== --- lib/droonga/searcher.rb 2014-10-07 12:12:30 +0900 (851330a) +++ lib/droonga/searcher.rb 2014-10-07 12:24:41 +0900 (3cea166) @@ -267,6 +267,7 @@ module Droonga options[:syntax] = :query options[:allow_pragma] = true options[:allow_column] = true + options[:allow_leading_not] = false if condition["defaultOperator"] default_operator_string = condition["defaultOperator"] default_operator = OPERATOR_CONVERSION_TABLE[default_operator_string] @@ -281,6 +282,9 @@ module Droonga unless condition["allowColumn"].nil? options[:allow_column] = condition["allowColumn"] ? true : false end + unless condition["allowLeadingNot"].nil? + options[:allow_leading_not] = condition["allowLeadingNot"] ? true : false + end syntax_errors = [ Groonga::SyntaxError, Groonga::InvalidArgument, -------------- next part -------------- HTML����������������������������... Download