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 18:41:08 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

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message