lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "DataImportHandler" by ShalinMangar
Date Thu, 14 Jul 2011 20:39:54 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "DataImportHandler" page has been changed by ShalinMangar:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=288&rev2=289

Comment:
Added note that $deleteDocById can only delete committed documents

   * '''`$skipDoc`''' : Skip the current document . Do not add it to Solr. The value can be
String true/false
   * '''`$skipRow`''' : Skip the current row. The document will be added with rows from other
entities. The value can be String true/false
   * '''`$docBoost`''' : Boost the current doc. The value can be a number or the toString
of a number
-  * '''`$deleteDocById`''' : Delete a doc from Solr with this id. The value hast to be the
uniqueKey value of the document <!> [[Solr1.4]]
+  * '''`$deleteDocById`''' : Delete a doc from Solr with this id. The value has to be the
uniqueKey value of the document. Note that this command can only delete docs already committed
to the index. <!> [[Solr1.4]]
   * '''`$deleteDocByQuery`''' :Delete docs from Solr by this query. The value must be a Solr
Query <!> [[Solr1.4]]
  Note: prior to Solr 3.4, $deleteDocById and $deleteDocByQuery do not increment the "# deletes
processed" statistic.  Also, if a component ''only'' deletes documents using these special
commands, DIH will not commit the changes.  With Solr 3.4 and later, "commit" is always called
as expected and the "# deletes processed" statistic is incremented by 1 for each call to $deleteDocById
and/or $deleteDocByQuery.  This may not accurately reflect the actual number of documents
deleted as these commands (especially $deleteDocByQuery) can delete more than 1 document (or
no documents) per call.  See [[https://issues.apache.org/jira/browse/SOLR-2492|https://issues.apache.org/jira/browse/SOLR-2492]]
for a more information.
  

Mime
View raw message