【问题标题】:Elasticsearch 5.4, Is there a way not set the document type when doing search?Elasticsearch 5.4,有没有办法在搜索时不设置文档类型?
【发布时间】:2017-07-22 02:13:31
【问题描述】:

我现在要做的是在两个索引中搜索两种文档类型。但是在 C#、Nest 中,您需要在搜索功能中添加一个类型,例如“Client.Search”。由于在其他索引上搜索此类型时有不同的类型,因此没有结果集。有没有办法在以下端点中搜索? http://ess01:9200/indexa,indexb/_search 请注意,没有设置类型。我尝试向上述端点发起查询,它运行良好。但我找不到在 C# 中执行此操作的方法。任何想法将不胜感激!

【问题讨论】:

标签: c# elasticsearch


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2021-03-24
  • 2020-09-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-04-02
  • 1970-01-01
  • 2015-05-26
相关资源
最近更新 更多