lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Shannon" <lshan...@futurebrand.com>
Subject Combining Documents
Date Tue, 01 Feb 2005 22:28:40 GMT
Hello;

I have a situation where I need to combine the fields returned from one
document to an existing document.

Is there something in the API for this that I'm missing or is this the best
way:

//add the fields contained in the PDF document to the existing doc Document
Document attachedDoc = LucenePDFDocument.getDocument(attached);
            Enumeration docFields = attachedDoc.fields();
             while (docFields.hasMoreElements()) {
                     doc.add((Field)docFields.nextElement());
              }

Luke



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message