[ 
https://issues.apache.org/jira/browse/SOLR-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070280#comment-13070280
 ] 

Robert Muir commented on SOLR-2671:
-----------------------------------

yeah, i like it: this way the surface area is less exposed.


> SchemaField.indexOptions() should return null if SchemaField.indexed() 
> returns false
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-2671
>                 URL: https://issues.apache.org/jira/browse/SOLR-2671
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>             Fix For: 3.4, 4.0
>
>         Attachments: SOLR-2671.patch
>
>
> 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

--
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