Ah, ok, so i cannot use PostingsHighlighter as it requires stored fields, right? Regards Mirko
Gesendet: Montag, 24. März 2014 um 16:01 Uhr Von: "Uwe Schindler" <u...@thetaphi.de> An: java-user@lucene.apache.org Betreff: RE: Indexing and storing very large documents Stored fields do not support Readers at the moment. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Mirko Sertic [mailto:mirko.ser...@web.de] > Sent: Monday, March 24, 2014 3:03 PM > To: java-user@lucene.apache.org > Subject: Indexing and storing very large documents > > Hi there > > I am searching for a way to store very large documents in a Lucene 4.7 index > and keep them ready to use the PostingsHighlighter for search result > highlighting. > > I do not want to read the whole document into memory, as this would > consume too much memory or could cause an OutOHeapSpace. So i have to > use a Reader. Unfortunately i cannot pass a Reader to a Field with > FieldType.stored() = true. Any ideas? Code examples would be very cool :-) > > Thanks in advance > Mirko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org