LUCENE-2048 introduced a SchemaField.indexOptions method which returns an IndexOptions object based on the omitTermFreqAndPosition and omitPosition boolean properties – but after some consideration it was decided that it was not a good idea to expose that expert level class at this level of the Solr internal APIs, and that SchemaField should instead only expose direct accessors for the specific properties.
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Summary||SchemaField.indexOptions() should return null if SchemaField.indexed() returns false||SchemaField.indexOptions() should return removed to decrease visibility of expert & experimental IndexOptions class|
|Assignee||Hoss Man [ hossman ]|
It doesn't make sense for SchemaField.indexOptions() to return any of the values from the IndexOptions enum if the field is not going to be indexed at all.
we should return null to prevent missleading any code that calls that method