lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Types of field in index
Date Mon, 29 Dec 2003 16:26:59 GMT
I believe Digester is smart enough to call that method when it reaches
the end, even if the document contain only one of those elements you
mentioned.  I just saw this the other day when I used Digester to parse
some XML.

Otis


--- Thomas_Krämer <kraemert@smail.uni-koeln.de> wrote:
> Hello,
> 
>  >> *sorry* for previous mail, sometimes shortkeys are not that
> helpful... >>
> 
> Thanks for that hint, Otis.
> Digester is a very comfortable way to customize the indexing of xml
> using lucene.
> And it works fine except one thing:
> 
> According to the example in the article is set the addDocument (here:
> addRecord) method when reading 
> the last element:
> 
> // call 'addContact' method when the next 'oaidc:dc' pattern is seen
>      digester.addSetNext(("oaidc:dc", "addRecord");
> 
> but as each file contains only one opening <oaidc:dc> tag (and not as
> in the example: on 
> adressbook-file contains various contact elements), how do i decide
> when to call the addRecord method?
> 
> i tried empty String and null, but it didn´t work.
> is there a posibility to tell Digester what to to at endoffile?
> 
> Thanks a lot !
> 
> 
> 
> Otis Gospodnetic schrieb:
> > I suggest you look at the Articles section of Lucene's site, in
> > particular an article about XML, Lucene, and Digester. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message