It is up to you. What ever you put in the document during indexing you'll get back. If you'll add a field of just the document name you can retrieve that, or just parse the file name from the path.
Aviran http://www.aviransplace.com -----Original Message----- From: Mag Gam [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 9:55 AM To: java-user@lucene.apache.org Subject: Document Get question Is it possible to get Document Name, instead of its entire path? Currently, i have something like this: out.println (doc.get ("path")); // Which gives me /documents/file.txt Is it possible to get "file.txt" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]