GET product_info/product/ivAJ2YIBDm18sYJYw3uK
GET product_info/_doc/ivAJ2YIBDm18sYJYw3uK
说明:查询单个文档的API格式为 GET <_index>/<_type>/<_id>,其中<_index>为索引名称;<_type>为类型名称,7.0及以上版本时类型名称为_doc;<_id>为文档id。
查询成功后,返回结果如下:
{ "_index" : "product_info", "_type" : "_doc", "_id" : "ivAJ2YIBDm18sYJYw3uK", "_version" : 1, "_seq_no" : 0, "_primary_term" : 1, "found" : true, "_source" : { "productName" : "产品A", "productType" : "自营", "describe" : "自营类产品A" } }
GET product_info/product/_search
GET product_info/_doc/_search
查询成功后,返回结果如下:
{ "took" : 815, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 5, "relation" : "eq" }, "max_score" : 1.0, "hits" : [ { "_index" : "product_info", "_type" : "_doc", "_id" : "ivAJ2YIBDm18sYJYw3uK", "_score" : 1.0, "_source" : { "productName" : "产品A", "productType" : "自营", "describe" : "自营类产品A" } }, { "_index" : "product_info", "_type" : "_doc", "_id" : "Z4IP2YIBTzT-TSjL5KvV", "_score" : 1.0, "_source" : { "productName" : "产品C", "productType" : "第三方", "describe" : "第三方类产品C" } }, { "_index" : "product_info", "_type" : "_doc", "_id" : "aIIP2YIBTzT-TSjL5KvV", "_score" : 1.0, "_source" : { "productName" : "产品D", "productType" : "第三方", "describe" : "第三方类产品D" } }, { "_index" : "product_info", "_type" : "_doc", "_id" : "ZYIP2YIBTzT-TSjL5KvV", "_score" : 1.0, "_source" : { "productName" : "产品A", "productType" : "自营", "describe" : "自营类产品A" } }, { "_index" : "product_info", "_type" : "_doc", "_id" : "ZoIP2YIBTzT-TSjL5KvV", "_score" : 1.0, "_source" : { "productName" : "产品B", "productType" : "自营", "describe" : "自营类产品B" } } ] } }
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通