You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/07/11 18:15:53 UTC

[Solr Wiki] Update of "DataImportHandler" by JamesDyer

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 JamesDyer:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=282&rev2=283

Comment:
add caveat about special commands

   * '''`$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]]
   * '''`$deleteDocByQuery`''' :Delete docs from Solr by this query. The value must be a Solr Query <!> [[Solr1.4]]
- 
+ Note that $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.  See [[https://issues.apache.org/jira/browse/SOLR-2492|https://issues.apache.org/jira/browse/SOLR-2492]] for a patch that enables increments & commits in this case.
  
  == Adding datasource in solrconfig.xml ==
  <<Anchor(solrconfigdatasource)>>