Search code examples
solrweb-crawlerdocumentnutchlast-modified

How to get the last-modified or the creation time of a document crawled and indexed by nutch+solr?


I need to get the last-modified or the creation time of a document under some intranet crawled and indexed by nutch+solr? I tried using the Metadata.LAST_MODIFIED field but it returned me null. I need them while displaying my search results. The Date is returning the date of crawling. I am not very experienced on this, so any help is welcome! Thank you very much. Regards, Alex


Solution

  • I have found here a possible answer, but is not exactly what I am searching for, it's more complicated than this, but can be helpful for others: www.ryanpfister.com/2009/04/how-to-sort-by-date-with-nutch/