Class RecentFiles


  • public class RecentFiles
    extends Object
    Builds on top of the LuceneIndexer and the Metadata discussions in Chapter 6 to output an RSS (or RDF) feed of files crawled by the LuceneIndexer within the last N minutes.
    • Constructor Detail

      • RecentFiles

        public RecentFiles()
    • Method Detail

      • generateRSS

        public String generateRSS​(Path indexFile)
                           throws org.apache.lucene.index.CorruptIndexException,
                                  IOException
        Throws:
        org.apache.lucene.index.CorruptIndexException
        IOException
      • getRSSItem

        public String getRSSItem​(org.apache.lucene.document.Document doc)
      • getRSSHeaders

        public String getRSSHeaders()
      • getRSSFooters

        public String getRSSFooters()