3
PostgreSQL的查詢是這樣的:我如何使這個查詢在Elasticsearch?
select * from equipment where production_day < now() + interval '-1 years' * endurance_period + interval '1 month'
endurance_period是在表的列名。 如何將此查詢轉換爲ElasticSearch中的查詢DSL(JSON)?
'*'操作符做什麼? – Roger
它應該倍增。在發佈之前,我嘗試了幾個虛擬查詢,對我來說工作得很好。 – user3775217
你能告訴我一些示例查詢嗎? – star4689