lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert A. Decker" <>
Subject What do reader-valued Fields do?
Date Fri, 29 Mar 2002 03:15:54 GMT
What should I use to store and add to my Document a long
String? (thousands of characters)

I'm still having difficulty understanding what it means to create a field
with a reader value:

String aString = "fieldName";
String aStringReader = new StringReader(someLongText);
Field field = Field.Text(aString, aStringReader);

The documentation says that this will be "tokenized and indexed, but is
not stored in the index verbatim." 

I'm using this to store a long text field - an entire document.

However, in my case, nothing appears to be stored in the index! What do
they mean by not being stored verbatim? I assumed this to mean that it
would run the text through my analyzer, at the least, and perhaps,
further, store it as a serialized form.


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

View raw message