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:24:21 UTC

[Solr Wiki] Trivial 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=284&rev2=285

  The difference with the previous one is the 'where' attribute. In this case the query fetches all the rows from the table and stores all the rows in the cache. The magic is in the 'where' value. The cache stores the values with the 'xid' value in 'y' as the key. The value for 'x.id' is evaluated every time the entity has to be run and the value is looked up in the cache an the rows are returned.
  
  In the where the lhs (the part before '=') is the column in y and the rhs (the part after '=') is the value to be computed for looking up the cache.
- 
+ ----
  For more caching options with DIH see [[https://issues.apache.org/jira/browse/SOLR-2382|https://issues.apache.org/jira/browse/SOLR-2382]].  These additional options include:  using caches with non-sql entities, pluggable cache implementations, persistent caches, writing DIH output to a cache rather than directly to solr, using a previously-created cache as a DIH entity's input & delta updates on cached data.
- 
+ ----
  === PlainTextEntityProcessor ===
  <<Anchor(plaintext)>>
  <!> [[Solr1.4]]