Forgot to send to the list. 

---------- Forwarded message ----------
From: Pablo Gomes Ludermir <[EMAIL PROTECTED]>
Date: May 3, 2005 9:07 PM
Subject: Re: getting document metadata
To: Luke Shannon <[EMAIL PROTECTED]>


I actually would like to have a single field on the Document object,
named CONTENTS. My question would be if it is possible to retrieve the
document with its "number". e.g. IndexReader.document (n); And "n"
would be provided by the Hits.id(...) from the search results. Is it a
reliable approach?

Regards

On 5/3/05, Luke Shannon <[EMAIL PROTECTED]> wrote:
> Hi Pablo;
>
> Can you give a little more detail? I don't understand what you mean when you
> say "indexing the path when adding the document to the index".
>
> If you get a Lucene document using  LucenePDFDocument class
> (http://www.pdfbox.org/javadoc/index.html), the document returned will
> contain a field called path. This will have the location of the document on
> the system. Is this what you are after?
>
> Luke
>
> ----- Original Message -----
> From: "Pablo Gomes Ludermir" <[EMAIL PROTECTED]>
> To: "Lucene user list" <java-user@lucene.apache.org>
> Sent: Tuesday, May 03, 2005 2:23 PM
> Subject: getting document metadata
>
> Hello all,
>
> I would like to retrieve some document metadata after the search, i.e.
> the documents that are returned in the Hits would be PDFs and I would
> be able to get some info using PDFBox.
> But I am not sure about indexing the path when adding the document to
> the index (I do some processing with the contents of the index, and I
> would like to have only one field: the body contents). Is there
> another way to get the document's path if we don't index it? Or just
> with magic? :)
>
> Regards,
>
> --
> Pablo Gomes Ludermir
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Pablo Gomes Ludermir
[EMAIL PROTECTED]


-- 
Pablo Gomes Ludermir
[EMAIL PROTECTED]

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

Reply via email to