时发生意外的BoolQuery我正在使用ongr/elasticsearch-dsl软件包来构建我的查询,并且需要在不同的地方撰写搜索对象。当我在同一个地方做它,它按预期工作。 use ONGR\ElasticsearchDSL\Search;
use ONGR\ElasticsearchDSL\Query\Compound\BoolQuery;
use ONGR\ElasticsearchD
请阅读注释以了解问题。 job(buildV2PerfTest) {
displayName('Performance Test')
steps {
//I am loading a value into a properties file using the shell command. The name of the variable is callbackU
我做在水晶一个DSL,而我试图让一个语法像~{do_something} 我想是这样的: def ~(&block)
block.call
end
def my_func
puts "hello"
end
~ { my_func }
但我得到的是这样的错误: Error in line 11: undefined method '~' for Tuple(Nil