我想用 NEST 索引 JsonObjects,在發(fā)布屬性在索引中但值為空“[]”之后。當我用 Postman 發(fā)布相同的 json 時,結(jié)果是正確的。指數(shù):string indexName = "testindex"; IIndexResponse response = client.Index<JObject>(docItem, i => i.Type("my_type").Index(indexName));docItem 中的 json:{ "Source":"test", "CreatedAt": "2018-05-26 12:23:33", "SessionId":"1234", "ResponseParam":{ "ItemA":"bla", "ItemB": 123 }}搜索查詢:http://[IP]:9200/testindex/_search搜索結(jié)果{ "took": 8, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 4, "max_score": 1, "hits": [ { "_index": "testindex", "_type": "my_type", "_id": "u44ucmMB687Uyj7O8xKY", "_score": 1, "_source": { "Source": [], "CreatedAt": [], "SessionId": [], "ResponseParam": { "ItemA": [], "ItemB": [] } } },
- 1 回答
- 0 關(guān)注
- 144 瀏覽
添加回答
舉報
0/150
提交
取消