lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alex <>
Subject Add a document in a single pass?
Date Sat, 18 Nov 2006 17:02:16 GMT

I have a stream-based document parser that extracts contents (as a character
stream) as well as document metadata (as strings) from a file, in a single
pass. From these data I want to create a Lucene document. The problem is
that the metadata are available not until the complete document has been
parsed, i.e. after IndexWriter.addDocument returned.

Is there a way to affect the order the document fields are processed in
IndexWriter.addDocument or another way to build the index efficiently?
Thanks in advance

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