lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mordo, Aviran (EXP N-NANNATEK)" <aviran.mo...@lmco.com>
Subject RE: Document Get question
Date Thu, 24 Aug 2006 14:09:44 GMT
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:magawake@gmail.com] 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message