Add support for _delete_ option of modifying a document. This requires patches from SOLR-139 that are not committed to Solr

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@569952 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-08-27 01:31:09 +00:00
parent 5bf7de1f56
commit b016188d22
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Solr::Request::ModifyDocument < Solr::Request::Update
def initialize(update_data)
modes = []
@doc = {}
[:overwrite, :append, :distinct, :increment].each do |mode|
[:overwrite, :append, :distinct, :increment, :delete].each do |mode|
field_data = update_data[mode]
if field_data
field_data.each do |field_name, field_value|