lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Lucene index content
Date Fri, 01 Jun 2007 12:15:29 GMT
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 <farag_ahmed@yahoo.com> 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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message