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 JamesDyer
Date Wed, 13 Jul 2011 14:29:31 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 JamesDyer:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=287&rev2=288

Comment:
Updated $deleteBy... note to reflect SOLR-2492 being committed to 3.4 and 4.x .

   * '''`$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.
+ 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.
  
  == Adding datasource in solrconfig.xml ==
  <<Anchor(solrconfigdatasource)>>

Mime
View raw message