lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Puttick" <ra...@zillow.com>
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).

Randy 

-----Original Message-----
From: Aditya Liviandi [mailto:adityal@i2r.a-star.edu.sg] 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


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


Mime
View raw message