Agree with you. In this case dummy docs makes sense, definitely.
Don't consider it as a pitch, but there is a prototype of commit-free eff
https://issues.apache.org/jira/browse/SOLR-4085 It might be useful for some
extreme usecases.


On Wed, Aug 6, 2014 at 5:20 PM, Peter Keegan <peterlkee...@gmail.com> wrote:

> The use case is:
>
> 1. A SolrJ client updates the main index (and replicas) and issues a commit
> at regular intervals.
> 2. Another component updates the external files at other intervals.
>
> Usually, the commits result in a new searcher which triggers the
> org.apache.solr.schema.ExternalFileFieldReloader, but only if there were
> changes to the main index.
>
> Using ReloadCacheRequestHandler in (2) above would result in the loss of
> index/replica synchronization provided by the commit in (1), and reloading
> the core is slow and overkill. I think it would be easier to have the SolrJ
> client in (1) always update a dummy document during each commit interval to
> force a new searcher.
>
> Thanks,
> Peter
>
>
> On Wed, Aug 6, 2014 at 8:43 AM, Mikhail Khludnev <
> mkhlud...@griddynamics.com
> > wrote:
>
> > Peter,
> >
> > Providing SOLR-6326 is about a bug in ExternalFileFieldReloader, I'm
> asking
> > here:
> > Did you try to use
> >
> org.apache.solr.search.function.FileFloatSource.ReloadCacheRequestHandler ?
> > Let's me know if you need help with it.
> > As a workaround you can reload the core via REST or click a button at
> > SolrAdmin, your questions are welcome.
> >
> >
> >
> > On Wed, Aug 6, 2014 at 4:02 PM, Peter Keegan <peterlkee...@gmail.com>
> > wrote:
> >
> > > I entered SOLR-6326 <https://issues.apache.org/jira/browse/SOLR-6326>
> > >
> > > thanks,
> > > Peter
> > >
> > >
> > > On Tue, Aug 5, 2014 at 6:50 PM, Koji Sekiguchi <k...@r.email.ne.jp>
> > wrote:
> > >
> > > > Hi Peter,
> > > >
> > > > It seems like a bug to me, too. Please file a JIRA ticket if you can
> > > > so that someone can take it.
> > > >
> > > > Koji
> > > > --
> > > >
> > http://soleami.com/blog/comparing-document-classification-functions-of-
> > > > lucene-and-mahout.html
> > > >
> > > >
> > > > (2014/08/05 22:34), Peter Keegan wrote:
> > > >
> > > >> 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."  Has anyone else noticed
> > this?
> > > >> It
> > > >> seems like a bug to me. (yes, I do have firstSearcher and
> newSearcher
> > > >> event
> > > >> listeners in solrconfig.xml)
> > > >>
> > > >> Peter
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Sincerely yours
> > Mikhail Khludnev
> > Principal Engineer,
> > Grid Dynamics
> >
> > <http://www.griddynamics.com>
> >  <mkhlud...@griddynamics.com>
> >
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to