Class RecentFiles

java.lang.Object
org.apache.tika.example.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 Details

    • RecentFiles

      public RecentFiles()
  • Method Details

    • 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()