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=323&rev2=324

Comment:
SOLR-3850:  cacheKey/cacheLookup

  
  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.
  
+ An alternate syntax to Example 2 above uses the "cacheKey" and "cacheLookup" 
parameters:
+ {{{
+ <entity name="x" query="select * from x">
+     <entity name="y" query="select * from y" 
processor="CachedSqlEntityProcessor" cacheKey="xid" cacheLookup="x.id">
+     </entity>
+ <entity>
+ }}}
+ /!\ In Solr 3.6, 3.6.1, 4.0-Alpha & 4.0-Beta, the "cacheKey" parameter was 
re-named "cachePk".  This is renamed back for 4.0 (& 3.6.2, if released).  See 
[[https://issues.apache.org/jira/browse/SOLR-3850|SOLR-3850]]
+ 
  ----
  For more caching options with DIH see 
[[https://issues.apache.org/jira/browse/SOLR-2382|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.  Some of these features are currently available 
[[Solr3.6]] [[Solr4.0]]
  

Reply via email to