時發生意外的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