0
我正在使用solr 4來存儲我的詳細信息。
在我的收藏中有超過1cr的記錄。
每個記錄有近2000個索引字段。
我solr的索引大小差不多是18GB。索引字段刪除不影響索引大小
前幾天我刪除超過15cr索引動態字段由 使用下面的代碼。
data_json = [{"id": 12, "field_to_be_removed": {"set": null}}]
req = urllib2.Request(url="http://stg.solr.freshersworld.com/solr/collection1/update/json'",data=data_json)
req.add_header('Content-type', 'application/json')
f = urllib2.urlopen(req)
字段從我的records.But它不是影響到指數的大小刪除。索引大小仍然是18GB。
爲什麼?
請給我一個解決方案,以減少我的索引大小。