# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Enums
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
Interface and Description
org.apache.solr.common.cloud.ClosableThread because this class is no longer used internally and will be removed

Deprecated Classes
Class and Description
org.apache.solr.common.util.IteratorChain This class is no longer used by Solr, and may be removed in future versions

Deprecated Enums
Enum and Description
org.apache.solr.common.params.FacetParams.FacetDateOther Use `FacetParams.FacetRangeOther`

Deprecated Fields
Field and Description
org.apache.solr.client.solrj.util.ClientUtils.fmts Use `DateUtil.DEFAULT_DATE_FORMATS`
org.apache.solr.common.params.ShardParams.SHARD_KEYS
org.apache.solr.client.solrj.util.ClientUtils.UTC Use `DateUtil.UTC`.

Deprecated Methods
Method and Description
org.apache.solr.client.solrj.SolrQuery.addSortField(String, SolrQuery.ORDER) Use `SolrQuery.addSort(SortClause)` instead, which is part of an api handling a wider range of sort specifications.
org.apache.solr.client.solrj.SolrQuery.getFacetSort() Use `SolrQuery.getFacetSortString()` instead.
org.apache.solr.client.solrj.SolrQuery.getQueryType() See `SolrQuery.getRequestHandler()`.
org.apache.solr.client.solrj.SolrQuery.getSortFields() Use `SolrQuery.getSorts()` instead, which is part of an api handling a wider range of sort specifications.
org.apache.solr.client.solrj.response.SpellCheckResponse.Suggestion.getSuggestionFrequencies()
org.apache.solr.client.solrj.response.SpellCheckResponse.Suggestion.getSuggestions()
org.apache.solr.client.solrj.util.ClientUtils.getThreadLocalDateFormat() use `DateUtil.getThreadLocalDateFormat()`
org.apache.solr.client.solrj.util.ClientUtils.parseDate(String) Use `DateUtil.parseDate(String)`
org.apache.solr.client.solrj.request.CoreAdminRequest.persist(String, SolrServer)
org.apache.solr.client.solrj.SolrQuery.removeSortField(String, SolrQuery.ORDER) Use `SolrQuery.removeSort(SortClause)` instead, which is part of an api handling a wider range of sort specifications.
org.apache.solr.client.solrj.SolrQuery.setFacetSort(boolean) Use `SolrQuery.setFacetSort(String)` instead, true corresponds to `FacetParams.FACET_SORT_COUNT` and false to `FacetParams.FACET_SORT_INDEX`.
org.apache.solr.client.solrj.SolrQuery.setMissing(String) use `SolrQuery.setFacetMissing(Boolean)`
org.apache.solr.client.solrj.SolrQuery.setQueryType(String) See `SolrQuery.setRequestHandler(String)`.
org.apache.solr.client.solrj.SolrQuery.setSortField(String, SolrQuery.ORDER) Use `SolrQuery.setSort(SortClause)` instead, which is part of an api handling a wider range of sort specifications.

Deprecated Constructors
Constructor and Description
org.apache.solr.common.params.AppendedSolrParams(SolrParams, SolrParams) (3.6) Use `SolrParams.wrapAppended(SolrParams, SolrParams)` instead.
org.apache.solr.common.cloud.ClusterState(Set<String>, Map<String, DocCollection>)
org.apache.solr.common.params.DefaultSolrParams(SolrParams, SolrParams) (3.6) Use `SolrParams.wrapDefaults(SolrParams, SolrParams)` instead.
org.apache.solr.common.util.NamedList(List Use `NamedList.NamedList(java.util.Map.Entry[])` for the NamedList instantiation
org.apache.solr.client.solrj.response.RangeFacet.Date(String, Date, Date, String, Number, Number)
org.apache.solr.client.solrj.response.RangeFacet.Numeric(String, Number, Number, Number, Number, Number)
org.apache.solr.common.util.SimpleOrderedMap(List