[ 
https://issues.apache.org/jira/browse/SOLR-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated SOLR-2671:
---------------------------

    Description: 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.  (was: 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)
       Assignee: Hoss Man
        Summary: SchemaField.indexOptions() should return removed to decrease 
visibility of expert & experimental IndexOptions class  (was: 
SchemaField.indexOptions() should return null if SchemaField.indexed() returns 
false)

> SchemaField.indexOptions() should return removed to decrease visibility of 
> expert & experimental IndexOptions class
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2671
>                 URL: https://issues.apache.org/jira/browse/SOLR-2671
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 3.4, 4.0
>
>         Attachments: SOLR-2671.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to