【发布时间】:2015-12-07 10:48:07
【问题描述】:
我是 solr.solr 查询的新手,我正在获取类似的数据
{
"responseHeader": {
"status": 0,
"QTime": 0,
"params": {
"indent": "true",
"q": "*:*",
"_": "1449483445811",
"wt": "json",
"fq": "id:0553573403"
}
},
"response": {
"numFound": 1,
"start": 0,
"docs": [
{
"id": "0553573403",
"cat": [
"book",
"book1"
],
"name": "Cyberpunk",
"price": 7.99,
"price_c": "7.99,USD",
"inStock": true,
"author": "George R.R. Martin",
"author_s": "George R.R. Martin",
"series_t": "A Song of Ice and Fire",
"sequence_i": 1,
"genre_s": "fantasy1111",
"labelRequest_j_12536_matching_profile": "1",
"_version_": 1519893543721631700
}
]
}
}
schema.xml 是
<field name="cat" type="string" indexed="true" stored="true" multiValued="true"/>
然后我正在尝试使用 postman、post 方法和内容类型 json 删除数据
url-http://localhost:8983/solr/collection1/update/json?commit=true
{
"id" : "0553573403",
"cat" : {"remove":"book1"}
}
然后回复
{"responseHeader":{"status":0,"QTime":616}}
但它没有删除数据..
【问题讨论】: