我使用sdk接口修改了文档后,调用查询接口查询返回的还是修改之前的数据。为此我还重建了索引,但依然没解决问题。
修改文档的报文:
{
tableName=goodsbrand,
jsonData=[
{
"cmd": "update",
"fields": {
"id": "8aafdb4751a951700151a98058bf0002",
"discountflag": "1.1",
"b_name": "卓玛",
"recommand": "0"
}
}
]
}
查询结果报文
{
total=1,
viewtotal=1,
num=1,
itemList=[{
spec=1.52*30(米/卷),
sort=3,
remark=,
status=1,
img=,
brandid=8aafdb4751a951700151a98058bf0002,
pid=ff8080814f73b2b4014f82eee5b41159,
type=<em>ZM-8809</em>,
c_name=太阳膜,
id=ff808081519fc4ef0151a45b1d7e4c80,
index_name=mallsearch_test,
discountflag=1.5,
salenums=31,
b_name=卓玛,
categoryid=ff80808153a7241a0153a7cfa3c90014,
isshow=1,
price=30.0,
name=卓玛汽车·楼宇隔热膜,
recommand=0,
goodsparams=侧挡
$$ }] }{ "data": { "maxPage": "1", "type": "AliSearchUtil", "itemList": [{ "spec": "1.52*30(米/卷)", "sort": "3", "remark": "", "status": "1", "img": "", "brandid": "8aafdb4751a951700151a98058bf0002", "pid": "ff8080814f73b2b4014f82eee5b41159", "type": "ZM-8809", "c_name": "太阳膜", "id": "ff808081519fc4ef0151a45b1d7e4c80", "index_name": "mallsearch_test", "discountflag": "1.5", "salenums": "31", "b_name": "卓玛", "categoryid": "ff80808153a7241a0153a7cfa3c90014", "isshow": "1", "price": "30.0", "name": "卓玛汽车·楼宇隔热膜", "recommand": "0", "goodsparams": "侧挡 $$
"
}]
},
"state": "0"
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。