mirror of https://github.com/apache/lucene.git
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:
parent
5bf7de1f56
commit
b016188d22
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue