lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramana (JIRA)" <>
Subject [jira] [Commented] (SOLR-6326) ExternalFileFieldReloader and commits
Date Thu, 11 Sep 2014 05:26:33 GMT


Ramana commented on SOLR-6326:

I am trying to replicate the issue. I have configure below in schema.xml

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"/>

<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, I created a file "external_testField"

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


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="$ReloadCacheRequestHandler"

I have also tried commit with below:

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


> ExternalFileFieldReloader and commits
> -------------------------------------
>                 Key: SOLR-6326
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Peter Keegan
>              Labels: difficulty-medium, externalfilefield, impact-medium
> When there are multiple 'external file field' files available, Solr will reload the last
one (lexicographically) with a commit, but only if changes were made to the index. Otherwise,
it skips the reload and logs: "No uncommitted changes. Skipping IW.commit." 
> IndexWriter.hasUncommittedChanges() returns false, but new external files should be reloaded
with commits.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message