【问题标题】:How indexing work for dictionary in Elastic Search?Elastic Search 中的字典索引如何工作?
【发布时间】:2021-10-24 21:38:22
【问题描述】:

我在每个文档中有一个包含字典的弹性索引。

Docs: 
{
    "name" : "name1", 
    "paymentDict":
     { 
           "card1": { "CardType": "Credit", "CardName": "Axis"}, 
           "card2": { "CardType": "Debit", "CardName": "Axis"}
     }
}

字典类型:Dictionary<int,object>

我期待在此弹性索引上进行大量写入,并希望测试性能方面,但在弹性文档中没有发现任何有用的东西,明确解释了字典索引。在以下查询中需要帮助

  1. 索引如何为字典工作?
  2. 此索引是否与List<object> 相同?

【问题讨论】:

    标签: elasticsearch nest


    【解决方案1】:

    这将是 Elasticsearch 中的一个对象 - https://www.elastic.co/guide/en/elasticsearch/reference/7.14/object.html

    你也可以让这个超级简单,每张卡片都有一个文档,这样你就可以把事情弄平

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-15
      • 2013-01-11
      • 1970-01-01
      • 2014-11-16
      • 2012-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多