Let's say you indexed the filename in "fname", as in
doc.add(new Field("fname", "blah.txt", Field.Store.Yes,
Field.Index.TOKENIZED).

Something like dok.get("fname") should do it.

Erick

On 6/1/07, starz10de <[EMAIL PROTECTED]> wrote:


Hello all,
I am printing luecene index content and I successed but I don't know how
to
print the indexed file names.


System.out.println(dok.doc() );

here it printed the doc ID , but I need the document name. for exxample
doc
ID =1 , the file name = F1, how to print the file name F1.

thanks in advance

--
View this message in context:
http://www.nabble.com/Lucene-index-content-tf3851690.html#a10911002
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to