> > I have been using the Lucene 2.0 distro Index to index my > > files, currently it indexes filepath and contents. I want > > to index, lastModified() (Returns the time that the file > > denoted by this abstract pathname was last > > modified.), and file length, length(). > > > > Can someone please show me how to do that? I am not > > too strong with Java, some example code would be nice! > > IndexFiles in Lucene Demo shows how to index the lastModified info > http://lucene.apache.org/java/docs/api/org/apache/lucene/demo/IndexFiles.html
> http://lucene.apache.> org/java/docs/api/org/apache/lucene/demo/FileDocument.html Forgot to mention, if you don't have the sources already, you can see the demo sources in http://svn.apache.org/viewvc/lucene/java/tags/lucene_2_0_0/src/demo/org/apache/lucene/demo/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]