On 3/20/07, Ryan McKinley <[EMAIL PROTECTED]> wrote:
I'm revisiting SOLR-162 (the luke stuff) and run into a few questions
about field specification...
What is the difference between:
SchemaField.isTokenized() and
FieldType.isTokenized()
Is the lucene Field tokenized if either is true?
One should imply the other, unless the SchemaField was
programmatically-constructed in a strange way. During indexing, only
the FieldType method is used (see FieldType.java:206)
How should I ask if a field is binary? (SchemaField.isBinary() is
package protected and never called)
Good question. I believe it is impossible to create a binary field in
Solr currently.
Is there a per field way to specify "isLazy"? If
"enableLazyFieldLoading" is set to true, are all stored fields lazy?
"lazy" is purely a property of reading fields--it is not inherent to
the field type (that particular option enables some possible
optimizations when reading a subset of stored fields).
It is possibly misdocumented. If our most prolific contributor is
confused, everyone else must be completely lost :)
-Mike