0
當搜索文檔的協方差具有很大的支持,如下所述:彈性搜索:協變在DocumentApi
https://www.elastic.co/guide/en/elasticsearch/client/net-api/2.x/covariant-search-results.html
但對於文檔API? - 它是否支持協變?從檢測
例子,其中所有作品:
PUT demo_covariant/car/1
{
"carname":"ford"
}
PUT demo_covariant/boat/2
{
"boatname":"speedy"
}
GET demo_covariant/boat,car/_search
{
"query": {"match_all": {}}
}
GET demo_covariant/boat/2
GET demo_covariant/car/1
但是,當涉及到查詢多個索引,這將不會產生任何結果:
GET demo_covariant/boat,car/2