> From: icewind [mailto:[EMAIL PROTECTED]]
> 
> --- Vadim Gritsenko <[EMAIL PROTECTED]>
> wrote:
> 
> Vadim,
> 
> I looked at the characters method. I want to be able
> to see what it does when it executes this, but I
> assume I just cant stick system.oit.println() calls in
> there

You can. You will see messages in the console window of servlet engine,
I usually use tomcat (under *nix console output will be in catalina.out
file) or resin.

Other option is to run servlet engine with debug enabled and connect to
the engine from the IDE debugger.


> to see what the values of various variables are
> when it runs. Is there some way I could produce some
> debugging information so I could watch this method
> run? Is there a way to output to the cocoon log?

Usually you use getLogger().debug("message") to put some debug info into
the log, but LuceneIndexContentHandler is not log enabled.


Vadim


> 
> 
> >
> > Look into LuceneIndexContentHandler, characters()
> > method.
> >
> > Ok, I see that it appends text only to bodyText and
> > current tag...
> > Simple solution would be to add text to every field
> > in stack (in
> > characters(), for(;;) instead of if()), but better
> > solution is to have
> > not stack of StringBuffers (see this.elementStack),
> > but stack of indexes
> > in single string buffer (this.bodyText). This
> > solution will utilize
> > memory more efficiently.
> >
> >
> > Vadim
> >
> >
> > >   Suggestions appreciated. I imagine someone has
> > > run
> > > into this and has already come up with a workable
> > > solution.
> >


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to