Hi Sundar,

Oddly, I have 10 docs in the index, as indicated by NumDocs and MaxNumDocs

However, in the Update Handlers section:

commits : 0
autocommits : 0
optimizes : 0
docsPending : 0
....

All 0s...

Any ideas?

I also tried to follow the instructions at:
http://wiki.apache.org/solr/LoggingInDefaultJettySetup

To see wtf is going on, but they don't seem to work, nothing happens. I
wonder if they are for jetty5...

Best,
jacob

sundar shankar wrote:
> Look at the update handlers section of the Solr stats page. I guess the url 
> is /admi/stats.jsp. This woudld give u an idea of how many docs are pending 
> commit.
> 
>> Date: Thu, 7 Aug 2008 14:53:02 -0700> From: [EMAIL PROTECTED]> To: 
>> solr-user@lucene.apache.org> Subject: Re: How do I configure commit to run 
>> after updates> > Hi folks,> > Thanks for the replies. I think I'm getting 
>> closer now.> > I'm using the PHP library provided in JIRA, and I am calling 
>> commit()> from it. Unfortunately, I can't see if it is working or not...> > 
>> I'm trying to get logging working in jetty for a multi-instance server,> but 
>> that's a separate nightmare.> > To understand correctly:> If you don't 
>> commit after making an update, you shouldn't see those> documents you've 
>> added in the index when you search. Is that correct?> > If so, than I am 
>> committing just fine, as they show up, but the commit> script is still not 
>> being called.> > Best,> jacob> Alexander Ramos Jardim wrote:> > You can 
>> configure the autocommit feature in solrconfig.xml to get commit to> > work 
>> from time to time or based in the number of documents added to your> > 
>> index.> > > > 2008/8/7 Jacob
 Singh <[EMAIL PROTECTED]>> > > >> Hi,> >>> >> I'm using the XML based update 
interface, and feeding requests to update> >> the index via jetty. It all works 
great, however now I'm trying to get> >> replication running, and here's what I 
understand:> >>> >> 1. An index update comes in.> >> 2. Solr runs the commit 
script> >> 3. a post-commit event is specified in solrconfig.xml:> >>> >> 
<listener event="postCommit" class="solr.RunExecutableListener">> >> <str 
name="exe">snapshooter</str>> >> ....> >>> >> 4. This creates a snapshot of the 
index and puts it in data/SNAPSHOT...> >> 5. The slaves run on cron, ssh in to 
the master, and basically just ls> >> the data dir, find if there is a new 
snapshot and rsync it> >> 6. the slaves "warm" the index and swap it.> >> 7. 
snapcleaner runs on both machines to clear out old snapshots.> >>> >> Okay... 
so this all makes sense, and I can sorta make it work, however,> >> the commit 
is never run by itself when the index is updated. I have
 to> >> manually call the commit script from the command line to get it to 
happen.> >>> >> Do I have to call something additional via the webservice?> >>> 
>> Am I missing a config option in solrconfig.xml? (I'm using the example,> >> 
so I wouldn't think so).> >>> >> Thanks a lot!> >> Jacob> >>> > > > > > > 
> _________________________________________________________________
> Searching for the best deals on travel? Visit MSN Travel.
> http://msn.coxandkings.co.in/cnk/cnk.do

Reply via email to