SOLR-3850: rename "cachePk" back to "cacheKey"

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1387681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Dyer 2012-09-19 17:12:39 +00:00
parent dc84d8b49f
commit 4130617f69
4 changed files with 7 additions and 6 deletions

View File

@ -248,6 +248,9 @@ Bug Fixes
* SOLR-3777: Dataimport-UI does not send unchecked checkboxes (Glenn MacStravic
via steffkes)
* SOLR-3850: DataImportHandler "cacheKey" parameter was incorrectly renamed "cachePk"
(James Dyer)
Other Changes
----------------------

View File

@ -238,15 +238,13 @@ public class DIHCacheSupport {
*/
public static final String CACHE_FOREIGN_KEY = "cacheLookup";
/**
* <p>
* Specify the Primary Key field from this Entity to map the input records
* with
* </p>
*/
public static final String CACHE_PRIMARY_KEY = "cachePk";
public static final String CACHE_PRIMARY_KEY = "cacheKey";
/**
* <p>
* If true, a pre-existing cache is re-opened for read-only access.

View File

@ -20,7 +20,7 @@
processor="SqlEntityProcessor"
dataSource="hsqldb"
cacheImpl="SortedMapBackedCache"
cachePk="CODE"
cacheKey="CODE"
cacheLookup="People.COUNTRY_CODE"
query="SELECT CODE, COUNTRY_NAME FROM COUNTRIES"

View File

@ -101,7 +101,7 @@ public class TestEphemeralCache extends AbstractDataImportHandlerTestCase {
" processor=\"SqlEntityProcessor\"" +
" cacheImpl=\"org.apache.solr.handler.dataimport.DestroyCountCache\"" +
" cacheName=\"CHILD\"" +
" cachePk=\"id\"" +
" cacheKey=\"id\"" +
" cacheLookup=\"PARENT.id\"" +
" fieldNames=\"id, child1a_mult_s, child1b_s\"" +
" fieldTypes=\"BIGDECIMAL, STRING, STRING\"" +
@ -111,7 +111,7 @@ public class TestEphemeralCache extends AbstractDataImportHandlerTestCase {
" name=\"CHILD_2\"" +
" processor=\"SqlEntityProcessor\"" +
" cacheImpl=\"org.apache.solr.handler.dataimport.DestroyCountCache\"" +
" cachePk=\"id\"" +
" cacheKey=\"id\"" +
" cacheLookup=\"PARENT.id\"" +
" query=\"SELECT * FROM CHILD_2\" " +
" />" +