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).

Randy 

-----Original Message-----
From: Aditya Liviandi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 30, 2006 1:32 AM
To: java-dev@lucene.apache.org
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.

OR

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: [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