[
https://issues.apache.org/jira/browse/SOLR-6326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129648#comment-14129648
]
Ramana commented on SOLR-6326:
------------------------------
Hi,
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:
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 values when the server is up.
Thanks,
Ramana.
> ExternalFileFieldReloader and commits
> -------------------------------------
>
> Key: SOLR-6326
> URL: https://issues.apache.org/jira/browse/SOLR-6326
> 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]