lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: Using example Lucene 2.0 index class
Date Fri, 22 Sep 2006 17:54:52 GMT
> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message