lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Puttick" <>
Subject RE: Developper Question - Highlighting
Date Thu, 30 Mar 2006 17:00:43 GMT
Actually, it's a very small tweak to the Field class to permit Reader values other than through
the Text helper function.  DocumentWriter (which actually extracts and tokenizes the field
data doesn't care about the artificial restriction in Field).


-----Original Message-----
From: Aditya Liviandi [] 
Sent: Thursday, March 30, 2006 1:32 AM
Subject: RE: Developper Question - Highlighting

Lucene offers a method in Field that indexes and stores, but it works
for String, not Reader. You might want to use that.


You might just want to add an extra (stored but not indexed) Field using
new Field(String name, byte[] contents, Field.Store store)

I think you can use the same Field name, so your searching code will
still be the same.

--------------------------------------------------- I²R Disclaimer ------------------------------
This email is confidential and may be privileged.  If you are not the intended recipient,
please delete it and notify us immediately. Please do not copy or use it for any purpose,
or disclose its contents to any other person. Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message