Santosh,

please have a look to the lucene demo package. There are several samples (IndexFiles.java) showing how to add a document to a writer.

regards
Bernhard

Santosh wrote:

I dont know how to add lucene document to index, i know how to add given
directory.
any body please tell me how to add lucene document to index
----- Original Message -----
From: "Ben Litchfield" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 23, 2004 8:13 PM
Subject: Re: integration of lucene with pdfbox




If you can use lucene on its own then you already know how to add a lucene
Document to the index.  So you need to be able to take a PDF and get a
lucene Document.

org.pdfbox.searchengine.lucene.LucenePDFDocument.getDocument()

does that for you.

Ben


On Mon, 23 Aug 2004, Santosh wrote:



I have downloaded pdfbox and lucene and kept jar files in the class


path, I am able to work with both of them independently but how can I
integrate both


regards
Santosh kumar

-----------------------SOFTPRO DISCLAIMER------------------------------

Information contained in this E-MAIL and any attachments are
confidential being  proprietary to SOFTPRO SYSTEMS  is 'privileged'
and 'confidential'.

If you are not an intended or authorised recipient of this E-MAIL or
have received it in error, You are notified that any use, copying or
dissemination  of the information contained in this E-MAIL in any
manner whatsoever is strictly prohibited. Please delete it immediately
and notify the sender by E-MAIL.

In such a case reading, reproducing, printing or further dissemination
of this E-MAIL is strictly prohibited and may be unlawful.

SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment
hereto is free from computer viruses or other defects.

The opinions expressed in this E-MAIL and any ATTACHEMENTS may be
those of the author and are not necessarily those of SOFTPRO SYSTEMS.
------------------------------------------------------------------------



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





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






Reply via email to