From: Christiaan F. <chr...@ad...> - 2007-02-16 11:37:59
|
Phillip Rhodes wrote: > I have the crawler working. Now whenever something is crawled (new or > changed), I would like to update my lucene index with the contents of > the document. > > I think the following two methods(objectNew and objectChanged) are the > ones that I want. However, how do I get access to the information that > is contained in each crawled document? I created a method called > "showData" that I call in objectNew and objectChanged to see if I could > see any data. It appears my method "hangs" Your code looks fine to me. The only think I can think of is that in another part of the system or in an outer loop in which this code is embedded, you already have a CloseableIterator open that has not been closed yet. The iterator in this code will then wait for that iterator to be closed first. If this explanation doesn't help, I would advise you to wait just a little longer until Sesame 2 beta 1 has arrived. We will then update the Aperture example code accordingly. Chances are that your problem will disappear. Chris -- |