First a minor nit. The server.add(doc, time) is a hard commit, not a soft one.

But the rest of it. When you add your 70 docs, do they all have the same id
(i.e. the <uniqueKey> field). If so, there will be only one document, the last
one since all the earlier ones will be overwritten.

Not quite sure why your first example doesn't work, it should. Although
killing the process before the commit complete will lose documents in the
uncommitted segments.

Best
Erick

On Mon, Jul 22, 2013 at 8:45 PM, tskom <tsiedlac...@hotmail.co.uk> wrote:
> Hi,
>
> I use solr 4.3.1.
> I tried to index about 70 documents using sofCommit as below:
> ....
>         SolrInputDocument doc = new SolrInputDocument();
>         result = fillMetaData(request, doc); // custom one
>         int softCommit = 10000;
>         solrServer.add(doc, softCommit);
> ....
> Process ran very fast but there is nothing in the index neither after 10sec
> nor after restarting server application
> In the solr log I got something like that:
> 2013-07-23 01:58:01,543 INFO
> [org.apache.solr.update.processor.LogUpdateProcessor]
> (http-127.0.0.1-8090-5) [collection1] webapp=/solr path=/update
> params={wt=javabin&version=2} {add=[Rep_CA_FairyCakes
> (1441307014244335616)]} 0 3
> 2013-07-23 01:58:01,546 INFO  [org.apache.solr.update.UpdateHandler]
> (http-127.0.0.1-8090-5) start rollback{}
> 2013-07-23 01:58:01,547 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-5) Creating new IndexWriter...
> 2013-07-23 01:58:01,547 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-5) Waiting until IndexWriter is unused...
> core=collection1
> 2013-07-23 01:58:01,547 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-5) Rollback old IndexWriter... core=collection1
> 2013-07-23 01:58:01,617 INFO  [org.apache.solr.core.SolrCore]
> (http-127.0.0.1-8090-5) SolrDeletionPolicy.onInit: commits:num=1
>
> commit{dir=NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@C:\solr\data\index
> lockFactory=org.apache.lucene.store.NativeFSLockFactory@7ed1f882;
> maxCacheMB=48.0
> maxMergeSizeMB=4.0),segFN=segments_ew,generation=536,filenames=[_ah_Lucene41_0.tim,
> _9d.fdt, _a5.fdx, _ag_Lucene41_0.pos, _9l.si, _a7.nvd, _a0_Lucene41_0.pos,
> _ah_Lucene41_0.tip, _9d.fdx, _a5.fdt, _9r.fnm, _97_Lucene41_0.doc,
> _9k_Lucene41_0.tim, _a7.nvm, _ad.fnm, _9k_Lucene41_0.tip, _a9.fnm, _9g.nvm,
> _ao_Lucene41_0.tim, _ao_Lucene41_0.tip, _9i_Lucene41_0.doc, _a2.nvm,
> _az_Lucene41_0.tim, _az_Lucene41_0.tip, _af_Lucene41_0.pos, _9t.nvm,
> _9w.fnm, _9z.si, _a9_Lucene41_0.tim, _9h.fnm, _9g.nvd, _a9_Lucene41_0.tip,
> _9d_Lucene41_0.pos, _9t.nvd, _a3.fdx, _aw.nvm, _9i_Lucene41_0.pos, _98.fnm,
> _a3.fdt, _a8_Lucene41_0.tim, _am.nvd, _aw.nvd, _a8_Lucene41_0.tip, _9f.si,
> _ap.fdt, _ag.fdt, _au.fnm, _aq.nvm, _ap.fdx, _av.fdt, _a0.si,
> _ac_Lucene41_0.doc, _a9_Lucene41_0.doc, _at_Lucene41_0.doc, _9u.fdx,
> _9z.fnm, _9d.si, _af.nvd, _9j_Lucene41_0.doc, _9u.fdt, _ag.fdx, _9b.si,
> _af.nvm, _9q.fnm, _aw_Lucene41_0.tim, _aw_Lucene41_0.tip, _ao.fnm, _9f.fnm,
> _a1.fdt, _9l_Lucene41_0.pos, _ad_Lucene41_0.pos, _a1.fdx,
> _aa_Lucene41_0.tip, _aa_Lucene41_0.tim, _9j_Lucene41_0.pos, _a2.nvd,
> _aj.nvd, _9o.fnm, _am.fnm, _9t_Lucene41_0.doc, _av.fdx, _ab.fdt, _an.nvd,
> _at.nvd, _ao_Lucene41_0.doc, _al.fnm, _9e_Lucene41_0.doc, _ab.fdx, _9x.fnm,
> _aj.nvm, _at.nvm, _ai.fnm, _9a_Lucene41_0.tim, _ak.nvm, _a2_Lucene41_0.doc,
> _an.nvm, _ah.nvd, _aw.fnm, _al_Lucene41_0.doc, _9a_Lucene41_0.tip,
> _9f_Lucene41_0.tim, _aq.fnm, _ah.nvm, _9k.nvd, _9b.nvm, _9c.fnm,
> _9f_Lucene41_0.tip, _9y_Lucene41_0.pos, _ax_Lucene41_0.doc,
> _av_Lucene41_0.tip, _ar_Lucene41_0.tim, _9c.si, _av_Lucene41_0.tim, _9b.nvd,
> _ar_Lucene41_0.tip, _as_Lucene41_0.tip, _as_Lucene41_0.tim,
> _ae_Lucene41_0.pos, _9j.si, _9z.nvd, _9y_Lucene41_0.doc, _a6_Lucene41_0.doc,
> _9d_Lucene41_0.doc, _ao.nvd, _9m.fdx, _ac.fdx, _a6.si, _aa_Lucene41_0.doc,
> _9m.fdt, _ac.fdt, _a3_Lucene41_0.pos, _av_Lucene41_0.doc, _9k.nvm,
> _ay_Lucene41_0.pos, _9z.nvm, _ai_Lucene41_0.tim, _aq.si, _ap_Lucene41_0.pos,
> _ai_Lucene41_0.tip, _96.si, _ab_Lucene41_0.pos, _9e.fnm, _as_Lucene41_0.doc,
> _9h.si, _96.nvm, _96.nvd, _ae.fdt, _9f_Lucene41_0.pos, _a4.fdx, _ae.fdx,
> _a4.fdt, _9j.fnm, _9z_Lucene41_0.doc, _9p.nvm, _aw.si, _a8.nvm, _9p.nvd,
> _9s.fdx, _9v.fnm, _a8.nvd, _9f_Lucene41_0.doc, _9s.fdt, _a2.si, _ai.si,
> _9o_Lucene41_0.tip, _a3.si, _9o_Lucene41_0.tim, _aj_Lucene41_0.tip,
> _aj_Lucene41_0.tim, _99.si, _9k_Lucene41_0.pos, _97.fdt, _9w.fdx, _a5.si,
> _9s_Lucene41_0.pos, _9w.fdt, _aj.fnm, _97.fdx, _9p.fdx, _9t.fnm, _9j.fdx,
> _9j.fdt, _ar_Lucene41_0.pos, _au_Lucene41_0.doc, _9p_Lucene41_0.doc,
> _9a.fdx, _9j_Lucene41_0.tip, _9q.nvd, _at_Lucene41_0.tip, _an.si,
> _9j_Lucene41_0.tim, _at_Lucene41_0.tim, _ad.fdx, _az_Lucene41_0.doc,
> _ad.fdt, _9q.nvm, _9g.fdx, _ax_Lucene41_0.pos, _9r.fdt, _9g.fdt, _9r.fdx,
> _9a.fdt, _a7.si, _98.nvm, _au_Lucene41_0.tim, _ag.nvm, _az.si,
> _au_Lucene41_0.tip, _ag.nvd, _ao.nvm, _9o.fdx, _9q_Lucene41_0.tip, _ax.si,
> _9p_Lucene41_0.pos, _9q_Lucene41_0.tim, _az.fdx, _a1.si, _98.nvd, _az.fdt,
> _9w_Lucene41_0.doc, _aa_Lucene41_0.pos, _ag.fnm, _a9.nvm, _aa.nvm, _a2.fnm,
> _9b_Lucene41_0.tip, _ak.nvd, _9b_Lucene41_0.tim, _a9.nvd, _ai.nvm, _9i.fdx,
> _a3.fnm, _9e_Lucene41_0.pos, _a7_Lucene41_0.tip, _9z.fdx,
> _a7_Lucene41_0.tim, _ai.nvd, _aa.nvd, _9i.fdt, _9z.fdt, _ae_Lucene41_0.doc,
> _9t_Lucene41_0.pos, _ak.si, _97_Lucene41_0.pos, _al_Lucene41_0.tim, _ax.nvm,
> _9x.nvm, _ap.fnm, _9c_Lucene41_0.pos, _ah.si, _ax.nvd, _af.fdx, _af.fdt,
> _a6.fdx, _ac.fnm, _9r_Lucene41_0.pos, _al_Lucene41_0.tip,
> _a1_Lucene41_0.pos, _9t_Lucene41_0.tip, _a4.fnm, _ak_Lucene41_0.pos,
> _96_Lucene41_0.tip, _aa.fnm, _aq_Lucene41_0.pos, _9x.nvd, _9f.fdx, _a6.fdt,
> _9f.fdt, _9w_Lucene41_0.tim, _9m_Lucene41_0.doc, _9w_Lucene41_0.tip,
> _9i_Lucene41_0.tim, _9i_Lucene41_0.tip, _al.fdt, _ay.fnm, _9x.si, _al.fdx,
> _9v.fdx, _9l.fdt, _9l_Lucene41_0.doc, _9n.nvm, _9l.fdx, _ap_Lucene41_0.tip,
> _9v.si, _ae.si, _ap_Lucene41_0.tim, _9n.nvd, _9v.fdt, _aj_Lucene41_0.doc,
> _ad.si, _9s.fnm, _ab.si, _ar.fnm, _al.si, _ap_Lucene41_0.doc,
> _9y_Lucene41_0.tip, _9h.nvm, _9y_Lucene41_0.tim, _aj.si, _ar.si, _9p.fdt,
> _96_Lucene41_0.tim, _9w_Lucene41_0.pos, _9t_Lucene41_0.tim,
> _9e_Lucene41_0.tim, _a3_Lucene41_0.tim, _9h.nvd, _a5_Lucene41_0.pos,
> _a3_Lucene41_0.tip, _9i.si, _9y.si, _an_Lucene41_0.pos, _as.fdt, _9p.si,
> _ak.fnm, _as.fdx, _9y.fdx, _a4.si, _9e_Lucene41_0.tip, segments_ew, _9y.fdt,
> _9j.nvm, _97.fnm, _9p.fnm, _aw.fdx, _a2.fdt, _a1.nvd, _ab.nvm, _9s.nvd,
> _a2.fdx, _aj.fdx, _ah_Lucene41_0.doc, _a2_Lucene41_0.pos, _ab.nvd, _an.fdx,
> _aj.fdt, _an.fdt, _9s.nvm, _a7.fdt, _9h_Lucene41_0.tip, _9c.fdx,
> _9r_Lucene41_0.tip, _9r_Lucene41_0.tim, _a7.fdx, _9h_Lucene41_0.tim,
> _9c.fdt, _a0_Lucene41_0.doc, _ao_Lucene41_0.pos, _9g_Lucene41_0.pos,
> _ap.nvd, _96.fdx, _a6_Lucene41_0.pos, _ar.fdt, _ay_Lucene41_0.doc,
> _9v_Lucene41_0.pos, _aw.fdt, _ar.fdx, _a6.nvm, _9j.nvd, _96.fdt, _a6.nvd,
> _99.fdx, _9w.si, _av_Lucene41_0.pos, _ao.fdt, _ax_Lucene41_0.tim, _ao.fdx,
> _a8.fdx, _9e.nvm, _au_Lucene41_0.pos, _an.fnm, _9e.si, _ax_Lucene41_0.tip,
> _ak_Lucene41_0.tip, _ak_Lucene41_0.tim, _9r_Lucene41_0.doc,
> _ab_Lucene41_0.doc, _99.fdt, _am.fdt, _am.fdx, _ai_Lucene41_0.doc,
> _aw_Lucene41_0.pos, _9t.fdt, _al.nvd, _9t.fdx, _ay.nvd, _at.fdx,
> _9m_Lucene41_0.tim, _at.si, _at.fdt, _99_Lucene41_0.doc, _ay.nvm,
> _a7_Lucene41_0.doc, _at_Lucene41_0.pos, _9m_Lucene41_0.tip,
> _a3_Lucene41_0.doc, _a1.nvm, _9c_Lucene41_0.doc, _9e.nvd, _aq.fdt,
> _9n_Lucene41_0.tim, _a0.fdx, _a8.fdt, _ad_Lucene41_0.doc, _9e.fdt, _a0.fdt,
> _a1_Lucene41_0.doc, _9z_Lucene41_0.tip, _9e.fdx, _as.nvm,
> _9n_Lucene41_0.tip, _9h_Lucene41_0.pos, _9z_Lucene41_0.tim, _aq.fdx, _af.si,
> _a6.fnm, _9o.fdt, _9n_Lucene41_0.pos, _az.fnm, _9d_Lucene41_0.tim, _9a.nvm,
> _9d_Lucene41_0.tip, _a8.si, _9n.fnm, _9s_Lucene41_0.doc, _aa.fdx,
> _9m_Lucene41_0.pos, _ac_Lucene41_0.pos, _aa.fdt, _9q_Lucene41_0.doc,
> _ab_Lucene41_0.tim, _9a.nvd, _9d.nvm, _af_Lucene41_0.doc,
> _ab_Lucene41_0.tip, _as_Lucene41_0.pos, _9q.fdt, _ae.nvd,
> _a1_Lucene41_0.tip, _a1_Lucene41_0.tim, _97_Lucene41_0.tim, _a3.nvm,
> _97_Lucene41_0.tip, _9d.nvd, _ae.nvm, _a4_Lucene41_0.pos, _al.nvm,
> _9k_Lucene41_0.doc, _9b.fdx, _af_Lucene41_0.tip, _a0_Lucene41_0.tim,
> _9b.fdt, _a0_Lucene41_0.tip, _9o_Lucene41_0.doc, _ag_Lucene41_0.doc,
> _af_Lucene41_0.tim, _a4.nvd, _9x_Lucene41_0.tim, _a9_Lucene41_0.pos,
> _ac.nvm, _9x_Lucene41_0.tip, _9h_Lucene41_0.doc, _9g.si, _9i.nvd, _a4.nvm,
> _98_Lucene41_0.pos, _9u.si, _ac.nvd, _99_Lucene41_0.pos, _9l_Lucene41_0.tim,
> _av.nvm, _ad_Lucene41_0.tim, _9c_Lucene41_0.tim, _9v_Lucene41_0.tip,
> _a3.nvd, _9c_Lucene41_0.tip, _ax.fnm, _ad_Lucene41_0.tip, _ap.nvm, _af.fnm,
> _9l_Lucene41_0.tip, _av.nvd, _ag_Lucene41_0.tim, _a8_Lucene41_0.pos,
> _ag_Lucene41_0.tip, _9p_Lucene41_0.tim, _a8_Lucene41_0.doc, _ah.fdx,
> _9b_Lucene41_0.doc, _9p_Lucene41_0.tip, _9q_Lucene41_0.pos, _9r.si, _au.fdx,
> _9i.nvm, _9b_Lucene41_0.pos, _9l.fnm, _au.fdt, _ah.fdt, _96_Lucene41_0.doc,
> _9y.fnm, _a1.fnm, _9a_Lucene41_0.doc, _ak.fdx, _as.fnm, _9u_Lucene41_0.tim,
> _ak.fdt, _9f.nvd, _99_Lucene41_0.tim, _au.nvm, _99_Lucene41_0.tip, _9u.fnm,
> _a2_Lucene41_0.tip, _ax.fdt, _96.fnm, _ac_Lucene41_0.tim,
> _9n_Lucene41_0.doc, _a2_Lucene41_0.tim, _au.nvd, _ac_Lucene41_0.tip,
> _9o.nvm, _am.nvm, _9k.fdx, _ax.fdx, _9k.fdt, _a4_Lucene41_0.tim,
> _am_Lucene41_0.tip, _9g_Lucene41_0.tip, _9g_Lucene41_0.tim,
> _a4_Lucene41_0.tip, _a5_Lucene41_0.doc, _9o.nvd, _a5.fnm, _98.fdt, _a8.fnm,
> _9f.nvm, _9v_Lucene41_0.tim, _9u_Lucene41_0.tip, _a6_Lucene41_0.tim,
> _al_Lucene41_0.pos, _am_Lucene41_0.tim, _a6_Lucene41_0.tip,
> _ak_Lucene41_0.doc, _a0.fnm, _ar.nvm, _98.fdx, _96_Lucene41_0.pos,
> _ay_Lucene41_0.tip, _aq_Lucene41_0.tip, _9q.fdx, _9x_Lucene41_0.pos,
> _aq_Lucene41_0.tim, _ay_Lucene41_0.tim, _9b.fnm, _ay.fdt, _ac.si,
> _an_Lucene41_0.tim, _a9.si, _a9.fdx, _an_Lucene41_0.tip, _9a_Lucene41_0.pos,
> _9l.nvd, _9u_Lucene41_0.pos, _9s.si, _9n.fdt, _a7.fnm, _9l.nvm,
> _aj_Lucene41_0.pos, _9x_Lucene41_0.doc, _9w.nvd, _au.si, _9k.si,
> _an_Lucene41_0.doc, _9o_Lucene41_0.pos, _9u_Lucene41_0.doc, _99.fnm,
> _9x.fdt, _9z_Lucene41_0.pos, _a9.fdt, _az.nvd, _av.si, _ay.fdx, _9w.nvm,
> _ab.fnm, _98.si, _az.nvm, _9x.fdx, _99.nvm, _aq.nvd, _ai.fdt,
> _9v_Lucene41_0.doc, _ah_Lucene41_0.pos, _9i.fnm, _9o.si, _ay.si, _9y.nvm,
> _ar_Lucene41_0.doc, _9s_Lucene41_0.tip, _9s_Lucene41_0.tim, _a0.nvd,
> _aw_Lucene41_0.doc, _9y.nvd, _9n.si, _ae.fnm, _a5.nvd, _as.nvd, _am.si,
> _ai.fdx, _9g_Lucene41_0.doc, _99.nvd, _ag.si, _aa.si, _ai_Lucene41_0.pos,
> _a5.nvm, _9d.fnm, _9v.nvd, _9a.si, _at.fnm, _9u.nvm, _ap.si, _ao.si,
> _9n.fdx, _am_Lucene41_0.pos, _97.si, _9u.nvd, _a5_Lucene41_0.tip, _9m.fnm,
> _9m.nvd, _9q.si, _9m.si, _a4_Lucene41_0.doc, _9v.nvm, _9m.nvm,
> _a5_Lucene41_0.tim, _98_Lucene41_0.tim, _9t.si, _9g.fnm, _9c.nvm, _9h.fdt,
> _98_Lucene41_0.tip, _a7_Lucene41_0.pos, _9h.fdx, _ar.nvd,
> _98_Lucene41_0.doc, _9r.nvm, _as.si, _ad.nvd, _aq_Lucene41_0.doc, _ah.fnm,
> _ad.nvm, _9r.nvd, _ae_Lucene41_0.tim, _9a.fnm, _am_Lucene41_0.doc, _9k.fnm,
> _97.nvd, _av.fnm, _ae_Lucene41_0.tip, _az_Lucene41_0.pos, _9c.nvd, _a0.nvm,
> _97.nvm]
> 2013-07-23 01:58:01,632 INFO  [org.apache.solr.core.SolrCore]
> (http-127.0.0.1-8090-5) newest commit = 536[_ah_Lucene41_0.tim, _9d.fdt,
> _a5.fdx, _ag_Lucene41_0.pos, _9l.si, _a7.nvd, _a0_Lucene41_0.pos,
> _ah_Lucene41_0.tip, _9d.fdx, _a5.fdt, _9r.fnm, _97_Lucene41_0.doc,
> _9k_Lucene41_0.tim, _a7.nvm, _ad.fnm, _9k_Lucene41_0.tip, _a9.fnm, _9g.nvm,
> _ao_Lucene41_0.tim, _ao_Lucene41_0.tip, _9i_Lucene41_0.doc, _a2.nvm,
> _az_Lucene41_0.tim, _az_Lucene41_0.tip, _af_Lucene41_0.pos, _9t.nvm,
> _9w.fnm, _9z.si, _a9_Lucene41_0.tim, _9h.fnm, _9g.nvd, _a9_Lucene41_0.tip,
> _9d_Lucene41_0.pos, _9t.nvd, _a3.fdx, _aw.nvm, _9i_Lucene41_0.pos, _98.fnm,
> _a3.fdt, _a8_Lucene41_0.tim, _am.nvd, _aw.nvd, _a8_Lucene41_0.tip, _9f.si,
> _ap.fdt, _ag.fdt, _au.fnm, _aq.nvm, _ap.fdx, _av.fdt, _a0.si,
> _ac_Lucene41_0.doc, _a9_Lucene41_0.doc, _at_Lucene41_0.doc, _9u.fdx,
> _9z.fnm, _9d.si, _af.nvd, _9j_Lucene41_0.doc, _9u.fdt, _ag.fdx, _9b.si,
> _af.nvm, _9q.fnm, _aw_Lucene41_0.tim, _aw_Lucene41_0.tip, _ao.fnm, _9f.fnm,
> _a1.fdt, _9l_Lucene41_0.pos, _ad_Lucene41_0.pos, _a1.fdx,
> _aa_Lucene41_0.tip, _aa_Lucene41_0.tim, _9j_Lucene41_0.pos, _a2.nvd,
> _aj.nvd, _9o.fnm, _am.fnm, _9t_Lucene41_0.doc, _av.fdx, _ab.fdt, _an.nvd,
> _at.nvd, _ao_Lucene41_0.doc, _al.fnm, _9e_Lucene41_0.doc, _ab.fdx, _9x.fnm,
> _aj.nvm, _at.nvm, _ai.fnm, _9a_Lucene41_0.tim, _ak.nvm, _a2_Lucene41_0.doc,
> _an.nvm, _ah.nvd, _aw.fnm, _al_Lucene41_0.doc, _9a_Lucene41_0.tip,
> _9f_Lucene41_0.tim, _aq.fnm, _ah.nvm, _9k.nvd, _9b.nvm, _9c.fnm,
> _9f_Lucene41_0.tip, _9y_Lucene41_0.pos, _ax_Lucene41_0.doc,
> _av_Lucene41_0.tip, _ar_Lucene41_0.tim, _9c.si, _av_Lucene41_0.tim, _9b.nvd,
> _ar_Lucene41_0.tip, _as_Lucene41_0.tip, _as_Lucene41_0.tim,
> _ae_Lucene41_0.pos, _9j.si, _9z.nvd, _9y_Lucene41_0.doc, _a6_Lucene41_0.doc,
> _9d_Lucene41_0.doc, _ao.nvd, _9m.fdx, _ac.fdx, _a6.si, _aa_Lucene41_0.doc,
> _9m.fdt, _ac.fdt, _a3_Lucene41_0.pos, _av_Lucene41_0.doc, _9k.nvm,
> _ay_Lucene41_0.pos, _9z.nvm, _ai_Lucene41_0.tim, _aq.si, _ap_Lucene41_0.pos,
> _ai_Lucene41_0.tip, _96.si, _ab_Lucene41_0.pos, _9e.fnm, _as_Lucene41_0.doc,
> _9h.si, _96.nvm, _96.nvd, _ae.fdt, _9f_Lucene41_0.pos, _a4.fdx, _ae.fdx,
> _a4.fdt, _9j.fnm, _9z_Lucene41_0.doc, _9p.nvm, _aw.si, _a8.nvm, _9p.nvd,
> _9s.fdx, _9v.fnm, _a8.nvd, _9f_Lucene41_0.doc, _9s.fdt, _a2.si, _ai.si,
> _9o_Lucene41_0.tip, _a3.si, _9o_Lucene41_0.tim, _aj_Lucene41_0.tip,
> _aj_Lucene41_0.tim, _99.si, _9k_Lucene41_0.pos, _97.fdt, _9w.fdx, _a5.si,
> _9s_Lucene41_0.pos, _9w.fdt, _aj.fnm, _97.fdx, _9p.fdx, _9t.fnm, _9j.fdx,
> _9j.fdt, _ar_Lucene41_0.pos, _au_Lucene41_0.doc, _9p_Lucene41_0.doc,
> _9a.fdx, _9j_Lucene41_0.tip, _9q.nvd, _at_Lucene41_0.tip, _an.si,
> _9j_Lucene41_0.tim, _at_Lucene41_0.tim, _ad.fdx, _az_Lucene41_0.doc,
> _ad.fdt, _9q.nvm, _9g.fdx, _ax_Lucene41_0.pos, _9r.fdt, _9g.fdt, _9r.fdx,
> _9a.fdt, _a7.si, _98.nvm, _au_Lucene41_0.tim, _ag.nvm, _az.si,
> _au_Lucene41_0.tip, _ag.nvd, _ao.nvm, _9o.fdx, _9q_Lucene41_0.tip, _ax.si,
> _9p_Lucene41_0.pos, _9q_Lucene41_0.tim, _az.fdx, _a1.si, _98.nvd, _az.fdt,
> _9w_Lucene41_0.doc, _aa_Lucene41_0.pos, _ag.fnm, _a9.nvm, _aa.nvm, _a2.fnm,
> _9b_Lucene41_0.tip, _ak.nvd, _9b_Lucene41_0.tim, _a9.nvd, _ai.nvm, _9i.fdx,
> _a3.fnm, _9e_Lucene41_0.pos, _a7_Lucene41_0.tip, _9z.fdx,
> _a7_Lucene41_0.tim, _ai.nvd, _aa.nvd, _9i.fdt, _9z.fdt, _ae_Lucene41_0.doc,
> _9t_Lucene41_0.pos, _ak.si, _97_Lucene41_0.pos, _al_Lucene41_0.tim, _ax.nvm,
> _9x.nvm, _ap.fnm, _9c_Lucene41_0.pos, _ah.si, _ax.nvd, _af.fdx, _af.fdt,
> _a6.fdx, _ac.fnm, _9r_Lucene41_0.pos, _al_Lucene41_0.tip,
> _a1_Lucene41_0.pos, _9t_Lucene41_0.tip, _a4.fnm, _ak_Lucene41_0.pos,
> _96_Lucene41_0.tip, _aa.fnm, _aq_Lucene41_0.pos, _9x.nvd, _9f.fdx, _a6.fdt,
> _9f.fdt, _9w_Lucene41_0.tim, _9m_Lucene41_0.doc, _9w_Lucene41_0.tip,
> _9i_Lucene41_0.tim, _9i_Lucene41_0.tip, _al.fdt, _ay.fnm, _9x.si, _al.fdx,
> _9v.fdx, _9l.fdt, _9l_Lucene41_0.doc, _9n.nvm, _9l.fdx, _ap_Lucene41_0.tip,
> _9v.si, _ae.si, _ap_Lucene41_0.tim, _9n.nvd, _9v.fdt, _aj_Lucene41_0.doc,
> _ad.si, _9s.fnm, _ab.si, _ar.fnm, _al.si, _ap_Lucene41_0.doc,
> _9y_Lucene41_0.tip, _9h.nvm, _9y_Lucene41_0.tim, _aj.si, _ar.si, _9p.fdt,
> _96_Lucene41_0.tim, _9w_Lucene41_0.pos, _9t_Lucene41_0.tim,
> _9e_Lucene41_0.tim, _a3_Lucene41_0.tim, _9h.nvd, _a5_Lucene41_0.pos,
> _a3_Lucene41_0.tip, _9i.si, _9y.si, _an_Lucene41_0.pos, _as.fdt, _9p.si,
> _ak.fnm, _as.fdx, _9y.fdx, _a4.si, _9e_Lucene41_0.tip, segments_ew, _9y.fdt,
> _9j.nvm, _97.fnm, _9p.fnm, _aw.fdx, _a2.fdt, _a1.nvd, _ab.nvm, _9s.nvd,
> _a2.fdx, _aj.fdx, _ah_Lucene41_0.doc, _a2_Lucene41_0.pos, _ab.nvd, _an.fdx,
> _aj.fdt, _an.fdt, _9s.nvm, _a7.fdt, _9h_Lucene41_0.tip, _9c.fdx,
> _9r_Lucene41_0.tip, _9r_Lucene41_0.tim, _a7.fdx, _9h_Lucene41_0.tim,
> _9c.fdt, _a0_Lucene41_0.doc, _ao_Lucene41_0.pos, _9g_Lucene41_0.pos,
> _ap.nvd, _96.fdx, _a6_Lucene41_0.pos, _ar.fdt, _ay_Lucene41_0.doc,
> _9v_Lucene41_0.pos, _aw.fdt, _ar.fdx, _a6.nvm, _9j.nvd, _96.fdt, _a6.nvd,
> _99.fdx, _9w.si, _av_Lucene41_0.pos, _ao.fdt, _ax_Lucene41_0.tim, _ao.fdx,
> _a8.fdx, _9e.nvm, _au_Lucene41_0.pos, _an.fnm, _9e.si, _ax_Lucene41_0.tip,
> _ak_Lucene41_0.tip, _ak_Lucene41_0.tim, _9r_Lucene41_0.doc,
> _ab_Lucene41_0.doc, _99.fdt, _am.fdt, _am.fdx, _ai_Lucene41_0.doc,
> _aw_Lucene41_0.pos, _9t.fdt, _al.nvd, _9t.fdx, _ay.nvd, _at.fdx,
> _9m_Lucene41_0.tim, _at.si, _at.fdt, _99_Lucene41_0.doc, _ay.nvm,
> _a7_Lucene41_0.doc, _at_Lucene41_0.pos, _9m_Lucene41_0.tip,
> _a3_Lucene41_0.doc, _a1.nvm, _9c_Lucene41_0.doc, _9e.nvd, _aq.fdt,
> _9n_Lucene41_0.tim, _a0.fdx, _a8.fdt, _ad_Lucene41_0.doc, _9e.fdt, _a0.fdt,
> _a1_Lucene41_0.doc, _9z_Lucene41_0.tip, _9e.fdx, _as.nvm,
> _9n_Lucene41_0.tip, _9h_Lucene41_0.pos, _9z_Lucene41_0.tim, _aq.fdx, _af.si,
> _a6.fnm, _9o.fdt, _9n_Lucene41_0.pos, _az.fnm, _9d_Lucene41_0.tim, _9a.nvm,
> _9d_Lucene41_0.tip, _a8.si, _9n.fnm, _9s_Lucene41_0.doc, _aa.fdx,
> _9m_Lucene41_0.pos, _ac_Lucene41_0.pos, _aa.fdt, _9q_Lucene41_0.doc,
> _ab_Lucene41_0.tim, _9a.nvd, _9d.nvm, _af_Lucene41_0.doc,
> _ab_Lucene41_0.tip, _as_Lucene41_0.pos, _9q.fdt, _ae.nvd,
> _a1_Lucene41_0.tip, _a1_Lucene41_0.tim, _97_Lucene41_0.tim, _a3.nvm,
> _97_Lucene41_0.tip, _9d.nvd, _ae.nvm, _a4_Lucene41_0.pos, _al.nvm,
> _9k_Lucene41_0.doc, _9b.fdx, _af_Lucene41_0.tip, _a0_Lucene41_0.tim,
> _9b.fdt, _a0_Lucene41_0.tip, _9o_Lucene41_0.doc, _ag_Lucene41_0.doc,
> _af_Lucene41_0.tim, _a4.nvd, _9x_Lucene41_0.tim, _a9_Lucene41_0.pos,
> _ac.nvm, _9x_Lucene41_0.tip, _9h_Lucene41_0.doc, _9g.si, _9i.nvd, _a4.nvm,
> _98_Lucene41_0.pos, _9u.si, _ac.nvd, _99_Lucene41_0.pos, _9l_Lucene41_0.tim,
> _av.nvm, _ad_Lucene41_0.tim, _9c_Lucene41_0.tim, _9v_Lucene41_0.tip,
> _a3.nvd, _9c_Lucene41_0.tip, _ax.fnm, _ad_Lucene41_0.tip, _ap.nvm, _af.fnm,
> _9l_Lucene41_0.tip, _av.nvd, _ag_Lucene41_0.tim, _a8_Lucene41_0.pos,
> _ag_Lucene41_0.tip, _9p_Lucene41_0.tim, _a8_Lucene41_0.doc, _ah.fdx,
> _9b_Lucene41_0.doc, _9p_Lucene41_0.tip, _9q_Lucene41_0.pos, _9r.si, _au.fdx,
> _9i.nvm, _9b_Lucene41_0.pos, _9l.fnm, _au.fdt, _ah.fdt, _96_Lucene41_0.doc,
> _9y.fnm, _a1.fnm, _9a_Lucene41_0.doc, _ak.fdx, _as.fnm, _9u_Lucene41_0.tim,
> _ak.fdt, _9f.nvd, _99_Lucene41_0.tim, _au.nvm, _99_Lucene41_0.tip, _9u.fnm,
> _a2_Lucene41_0.tip, _ax.fdt, _96.fnm, _ac_Lucene41_0.tim,
> _9n_Lucene41_0.doc, _a2_Lucene41_0.tim, _au.nvd, _ac_Lucene41_0.tip,
> _9o.nvm, _am.nvm, _9k.fdx, _ax.fdx, _9k.fdt, _a4_Lucene41_0.tim,
> _am_Lucene41_0.tip, _9g_Lucene41_0.tip, _9g_Lucene41_0.tim,
> _a4_Lucene41_0.tip, _a5_Lucene41_0.doc, _9o.nvd, _a5.fnm, _98.fdt, _a8.fnm,
> _9f.nvm, _9v_Lucene41_0.tim, _9u_Lucene41_0.tip, _a6_Lucene41_0.tim,
> _al_Lucene41_0.pos, _am_Lucene41_0.tim, _a6_Lucene41_0.tip,
> _ak_Lucene41_0.doc, _a0.fnm, _ar.nvm, _98.fdx, _96_Lucene41_0.pos,
> _ay_Lucene41_0.tip, _aq_Lucene41_0.tip, _9q.fdx, _9x_Lucene41_0.pos,
> _aq_Lucene41_0.tim, _ay_Lucene41_0.tim, _9b.fnm, _ay.fdt, _ac.si,
> _an_Lucene41_0.tim, _a9.si, _a9.fdx, _an_Lucene41_0.tip, _9a_Lucene41_0.pos,
> _9l.nvd, _9u_Lucene41_0.pos, _9s.si, _9n.fdt, _a7.fnm, _9l.nvm,
> _aj_Lucene41_0.pos, _9x_Lucene41_0.doc, _9w.nvd, _au.si, _9k.si,
> _an_Lucene41_0.doc, _9o_Lucene41_0.pos, _9u_Lucene41_0.doc, _99.fnm,
> _9x.fdt, _9z_Lucene41_0.pos, _a9.fdt, _az.nvd, _av.si, _ay.fdx, _9w.nvm,
> _ab.fnm, _98.si, _az.nvm, _9x.fdx, _99.nvm, _aq.nvd, _ai.fdt,
> _9v_Lucene41_0.doc, _ah_Lucene41_0.pos, _9i.fnm, _9o.si, _ay.si, _9y.nvm,
> _ar_Lucene41_0.doc, _9s_Lucene41_0.tip, _9s_Lucene41_0.tim, _a0.nvd,
> _aw_Lucene41_0.doc, _9y.nvd, _9n.si, _ae.fnm, _a5.nvd, _as.nvd, _am.si,
> _ai.fdx, _9g_Lucene41_0.doc, _99.nvd, _ag.si, _aa.si, _ai_Lucene41_0.pos,
> _a5.nvm, _9d.fnm, _9v.nvd, _9a.si, _at.fnm, _9u.nvm, _ap.si, _ao.si,
> _9n.fdx, _am_Lucene41_0.pos, _97.si, _9u.nvd, _a5_Lucene41_0.tip, _9m.fnm,
> _9m.nvd, _9q.si, _9m.si, _a4_Lucene41_0.doc, _9v.nvm, _9m.nvm,
> _a5_Lucene41_0.tim, _98_Lucene41_0.tim, _9t.si, _9g.fnm, _9c.nvm, _9h.fdt,
> _98_Lucene41_0.tip, _a7_Lucene41_0.pos, _9h.fdx, _ar.nvd,
> _98_Lucene41_0.doc, _9r.nvm, _as.si, _ad.nvd, _aq_Lucene41_0.doc, _ah.fnm,
> _ad.nvm, _9r.nvd, _ae_Lucene41_0.tim, _9a.fnm, _am_Lucene41_0.doc, _9k.fnm,
> _97.nvd, _av.fnm, _ae_Lucene41_0.tip, _az_Lucene41_0.pos, _9c.nvd, _a0.nvm,
> _97.nvm]
> 2013-07-23 01:58:01,649 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-5) New IndexWriter is ready to be used.
> 2013-07-23 01:58:01,649 INFO  [org.apache.solr.update.UpdateHandler]
> (http-127.0.0.1-8090-5) end_rollback
> 2013-07-23 01:58:01,649 INFO
> [org.apache.solr.update.processor.LogUpdateProcessor]
> (http-127.0.0.1-8090-5) [collection1] webapp=/solr path=/update
> params={rollback=true&wt=javabin&version=2} {rollback=} 0 103
>
> When I try little bit different:
> ....
>         SolrInputDocument doc = new SolrInputDocument();
>         result = fillMetaData(request, doc); // custom one
>         boolean softCommit = true;
>         boolean waitFlush = false;
>         boolean waitSearcher = false;
>         solrServer.add(doc);
>         solrServer.Commit(waitFlush, waitSearcher, softCommit);
> ....
> There is only one document (from 70) available in the index.
> In this case log looks like repeatable pairs of start commit and start
> rollback:
> 2013-07-23 02:12:37,600 INFO
> [org.apache.solr.update.processor.LogUpdateProcessor]
> (http-127.0.0.1-8090-2) [collection1] webapp=/solr path=/update
> params={wt=javabin&version=2} {add=[Rep_CA_EricLanlardKeyLimeCupcakes
> (1441307932856680448)]} 0 2
> 2013-07-23 02:12:37,604 INFO  [org.apache.solr.update.UpdateHandler]
> (http-127.0.0.1-8090-2) start
> commit{,optimize=false,openSearcher=true,waitSearcher=false,expungeDeletes=false,softCommit=true,prepareCommit=false}
> 2013-07-23 02:12:37,608 INFO  [org.apache.solr.search.SolrIndexSearcher]
> (http-127.0.0.1-8090-2) Opening Searcher@3f274683 main
> 2013-07-23 02:12:37,609 INFO  [org.apache.solr.update.UpdateHandler]
> (http-127.0.0.1-8090-2) end_commit_flush
> 2013-07-23 02:12:37,609 INFO  [org.apache.solr.core.SolrCore]
> (searcherExecutor-4-thread-1) QuerySenderListener sending requests to
> Searcher@3f274683 main{StandardDirectoryReader(segments_1:3:nrt
> _0(4.3.1):C1)}
> 2013-07-23 02:12:37,610 INFO  [org.apache.solr.core.SolrCore]
> (searcherExecutor-4-thread-1) QuerySenderListener done.
>
> 2013-07-23 02:12:37,609 INFO
> [org.apache.solr.update.processor.LogUpdateProcessor]
> (http-127.0.0.1-8090-2) [collection1] webapp=/solr path=/update
> params={waitSearcher=false&commit=true&wt=javabin&version=2&softCommit=true}
> {commit=} 0 5
> 2013-07-23 02:12:37,612 INFO  [org.apache.solr.core.SolrCore]
> (searcherExecutor-4-thread-1) [collection1] Registered new searcher
> Searcher@3f274683 main{StandardDirectoryReader(segments_1:3:nrt
> _0(4.3.1):C1)}
> 2013-07-23 02:12:37,614 INFO  [org.apache.solr.update.UpdateHandler]
> (http-127.0.0.1-8090-2) start rollback{}
> 2013-07-23 02:12:37,615 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-2) Creating new IndexWriter...
> 2013-07-23 02:12:37,615 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-2) Waiting until IndexWriter is unused...
> core=collection1
> 2013-07-23 02:12:37,616 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-2) Rollback old IndexWriter... core=collection1
> 2013-07-23 02:12:37,619 INFO  [org.apache.solr.core.SolrCore]
> (http-127.0.0.1-8090-2) SolrDeletionPolicy.onInit: commits:num=1
>
> commit{dir=NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@C:\solr\data\index
> lockFactory=org.apache.lucene.store.NativeFSLockFactory@59e2377e;
> maxCacheMB=48.0
> maxMergeSizeMB=4.0),segFN=segments_1,generation=1,filenames=[segments_1]
> 2013-07-23 02:12:37,620 INFO  [org.apache.solr.core.SolrCore]
> (http-127.0.0.1-8090-2) newest commit = 1[segments_1]
> 2013-07-23 02:12:37,620 INFO  [org.apache.solr.update.DefaultSolrCoreState]
> (http-127.0.0.1-8090-2) New IndexWriter is ready to be used.
> 2013-07-23 02:12:37,621 INFO  [org.apache.solr.update.UpdateHandler]
> (http-127.0.0.1-8090-2) end_rollback
> 2013-07-23 02:12:37,622 INFO
> [org.apache.solr.update.processor.LogUpdateProcessor]
> (http-127.0.0.1-8090-2) [collection1] webapp=/solr path=/update
> params={rollback=true&wt=javabin&version=2} {rollback=} 0 8
>
>
>
> My solrconfig.xml:
> <updateHandler class="solr.DirectUpdateHandler2">
>     <updateLog>
>        <str name="dir">${solr.ulog.dir:}</str>
>     </updateLog>
>     <autoCommit>
>        <maxTime>100000</maxTime>
>     </autoCommit>
>     <autoSoftCommit>
>        <maxTime>10000</maxTime>
>     </autoSoftCommit>
> </updateHandler>
>
> Could you pass any advice if possible please ?
>
> Thanks in advance,
> tskom
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/softCommit-doesn-t-work-tp4079578.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to