I hope I understand your question well. so I had the same problem. This is
what I did:

1. Create a file:
solr_home/PROJECT/multicore/core1/data/external_popularProducts.txt

The file should contain values like this:
uniqueID_in_core=count

Example:
873728721=19
842728342=20

2. Update schema.xml, add this under <types>  </types>
<fieldType name="popularProductsFile" keyField="key" defVal="0"
stored="true" indexed="true" class="solr.ExternalFileField" valType="float"
/>

Here, key is the column name for the primaryID of solr core.
Add this under <fields></fields>
<field name="popularProducts" type="popularProductsFile" indexed="true"
stored="true" />

3. Reload the core. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/update-external-file-tp4165563p4165572.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to