Hi ,

I am trying to see how the External File Field functionality works.

In the "solrconfig.xml",  I added below listeners.

 <listener event="newSearcher" class="org.apache.solr.schema.
ExternalFileFieldReloader"/>
 <listener event="firstSearcher" class="org.apache.solr.schema.
ExternalFileFieldReloader"/>

In the schema.xml i defined field type and field

<fieldType name="testFieldlType" keyField="id" defVal="0" stored="false"
indexed="false" class="solr.ExternalFileField" valType="pfloat"/>
<field name="testField"  type="testFieldlType" />

In my SOLR data directory(example\solr\collection1\data), I created a file
"external_testField"

After server start up, I am able to see the values using below URL:

 http://localhost:8983/solr/select?q={!func}testField&fl=id,score

But, when i changed the values.while the server is up and when refreshed
the above URL..I am not able to see updated values.

I tried adding below request handler and invoked reload cache with URL
http://localhost:8983/solr/reloadCache

<requestHandler name="/reloadCache" class="org.apache.solr.search.
function.FileFloatSource$ReloadCacheRequestHandler" />

I have also tried commit with below:
  http://localhost:8983/solr/update?commit=true

Still, I am not able to see the updated values. Please let me know how to
reload the external file field values when the server is up.

Thanks,
Ramana.

Reply via email to