From b016188d2227fd4902ca78b47c489ec34fadb472 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Mon, 27 Aug 2007 01:31:09 +0000 Subject: [PATCH] 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 --- client/ruby/solr-ruby/lib/solr/request/modify_document.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ruby/solr-ruby/lib/solr/request/modify_document.rb b/client/ruby/solr-ruby/lib/solr/request/modify_document.rb index e4c798897d4..6276d979c1e 100755 --- a/client/ruby/solr-ruby/lib/solr/request/modify_document.rb +++ b/client/ruby/solr-ruby/lib/solr/request/modify_document.rb @@ -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|