Jonathan,

Please note the openSearcher=false part of your configuration.  This is why you 
don't see documents.  The commits are occurring, and being written to segments 
on disk, but they are not visible to the search engine because a Solr searcher 
class has not opened them for visibility.

You can either change the value to true, or alternatively call a deterministic 
commit call at the end of your load (a solr/update?commit=true will default to 
openSearcher=true).  

Hope that's of use!

Jason


On Jul 15, 2013, at 9:52 AM, Jonathan Rochkind <rochk...@jhu.edu> wrote:

> I have a solr 4.3 instance I am in the process of standing up. It started out 
> with an empty index.
> 
> I have in it's solrconfig.xml,
> 
>  <updateHandler class="solr.DirectUpdateHandler2">
>    <autoCommit>
>      <maxDocs>100000</maxDocs>
>      <openSearcher>false</openSearcher>
>    </autoCommit>
>  <updateHandler>
> 
> I have an index process running, that has currently added around 400k 
> documents to Solr.
> 
> I had expected that a 'commit' would be run every 100k documents, from the 
> above configuration, so 4 commits would have been run by now, and I'd see 
> documents in the index.
> 
> However, when I look in the Solr admin interface, at my core's 'overview' 
> page, it still says num docs 0, segment count 0.  When I expected num docs 
> 400k at this point.
> 
> Is there something I'm misunderstanding about the configuration or the admin 
> interface? Or am I right in my expectations, but something else must be going 
> wrong?
> 
> Thanks for any advice,
> 
> Jonathan

Reply via email to