SOLR-10803: Mark all Trie/LegacyNumeric based fields @deprecated in Solr7.

This commit is contained in:
Steve Rowe 2017-08-04 19:54:41 -04:00
parent 9627d1db5d
commit f962effd12
16 changed files with 35 additions and 1 deletions

View File

@ -141,6 +141,8 @@ Jetty 9.3.14.v20161028
Upgrading from Solr 6.x
----------------------
* All Trie* numeric and date field types have been deprecated in favor of *Point field types.
* The default response type is now JSON ("wt=json") instead of XML, and line indentation is now on by default
("indent=on"). If you expect the responses to your queries to be returned in the previous format (XML
format, no indentation), you must now you must now explicitly pass in "wt=xml" and "indent=off" as query
@ -622,6 +624,8 @@ Other Changes
* SOLR-11023: Added EnumFieldType, a non-Trie-based version of EnumField, and deprecated EnumField
in favor of EnumFieldType. (hossman, Steve Rowe)
* SOLR-10803: Mark all Trie/LegacyNumeric based fields @deprecated in Solr7. (Steve Rowe)
================== 6.7.0 ==================

View File

@ -25,7 +25,9 @@ import org.apache.solr.schema.TrieDateField;
/**
* An analytics wrapper for a multi-valued {@link TrieDateField} with DocValues enabled.
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class DateMultiTrieField extends LongMultiTrieField implements CastingDateValueStream {
public DateMultiTrieField(String fieldName) {

View File

@ -30,7 +30,9 @@ import org.apache.solr.schema.TrieDoubleField;
/**
* An analytics wrapper for a multi-valued {@link TrieDoubleField} with DocValues enabled.
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class DoubleMultiTrieField extends AnalyticsField implements CastingDoubleValueStream {
private SortedSetDocValues docValues;
private int count;

View File

@ -31,7 +31,9 @@ import org.apache.solr.schema.TrieFloatField;
/**
* An analytics wrapper for a multi-valued {@link TrieFloatField} with DocValues enabled.
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class FloatMultiTrieField extends AnalyticsField implements CastingFloatValueStream {
private SortedSetDocValues docValues;
private int count;

View File

@ -32,7 +32,9 @@ import org.apache.solr.schema.TrieIntField;
/**
* An analytics wrapper for a multi-valued {@link TrieIntField} with DocValues enabled.
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class IntMultiTrieField extends AnalyticsField implements CastingIntValueStream {
private SortedSetDocValues docValues;
private int count;

View File

@ -30,7 +30,9 @@ import org.apache.solr.schema.TrieLongField;
/**
* An analytics wrapper for a multi-valued {@link TrieLongField} with DocValues enabled.
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class LongMultiTrieField extends AnalyticsField implements CastingLongValueStream {
private SortedSetDocValues docValues;
private int count;

View File

@ -81,7 +81,9 @@ import org.apache.solr.util.DateMathParser;
* </blockquote>
*
* @see TrieField
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieDateField extends TrieField implements DateValueFieldType {
{
this.type = NumberType.DATE;

View File

@ -49,7 +49,9 @@ import org.apache.lucene.util.mutable.MutableValueDouble;
*
* @see Double
* @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.3">Java Language Specification, s4.2.3</a>
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieDoubleField extends TrieField implements DoubleValueFieldType {
{
type = NumberType.DOUBLE;

View File

@ -80,7 +80,9 @@ import org.slf4j.LoggerFactory;
*
* @see org.apache.solr.legacy.LegacyNumericRangeQuery
* @since solr 1.4
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieField extends NumericFieldType {
public static final int DEFAULT_PRECISION_STEP = 8;
@ -686,6 +688,7 @@ public class TrieField extends NumericFieldType {
}
@Deprecated
class TrieDateFieldSource extends LongFieldSource {
public TrieDateFieldSource(String field) {

View File

@ -49,7 +49,9 @@ import org.apache.lucene.util.mutable.MutableValueFloat;
*
* @see Float
* @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.3">Java Language Specification, s4.2.3</a>
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieFloatField extends TrieField implements FloatValueFieldType {
{
type = NumberType.FLOAT;

View File

@ -42,7 +42,9 @@ import org.apache.lucene.util.mutable.MutableValueInt;
* </ul>
*
* @see Integer
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieIntField extends TrieField implements IntValueFieldType {
{
type = NumberType.INTEGER;

View File

@ -42,7 +42,9 @@ import org.apache.lucene.util.mutable.MutableValueLong;
* </ul>
*
* @see Long
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieLongField extends TrieField implements LongValueFieldType {
{
type = NumberType.LONG;

View File

@ -34,7 +34,9 @@ import org.junit.Test;
*
*
* @since solr 1.4
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TestTrie extends SolrTestCaseJ4 {
@BeforeClass
public static void beforeClass() throws Exception {

View File

@ -23,8 +23,10 @@ import org.apache.solr.search.QParser;
* Custom field type that overrides the prefix query behavior to map "X*" to [X TO Integer.MAX_VALUE].
* * This is used for testing overridden prefix query for custom fields in TestOverriddenPrefixQueryForCustomFieldType
*
* @see IntPointPrefixActsAsRangeQueryFieldType
* @see IntPointPrefixActsAsRangeQueryFieldType
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class TrieIntPrefixActsAsRangeQueryFieldType extends TrieIntField {
public Query getPrefixQuery(QParser parser, SchemaField sf, String termStr) {

View File

@ -20,7 +20,9 @@ import org.apache.lucene.search.SortField;
/**
* Custom field wrapping an int, to test sorting via a custom comparator.
* @deprecated Trie fields are deprecated as of Solr 7.0
*/
@Deprecated
public class WrappedTrieIntField extends TrieIntField {
@Override
public SortField getSortField(final SchemaField field, final boolean reverse) {

View File

@ -25,6 +25,7 @@ import org.apache.solr.SolrTestCaseJ4;
import org.junit.BeforeClass;
@Deprecated
public class TestTrieFacet extends SolrTestCaseJ4 {
final static int MIN_VALUE = 20;