mirror of https://github.com/apache/lucene.git
SOLR-1930: remove solr deprecations
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1053107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f16706f50d
commit
88fd3cc410
|
@ -93,43 +93,6 @@ public class SolrException extends RuntimeException {
|
||||||
this.code=code;
|
this.code=code;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #SolrException(ErrorCode,String,boolean)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public SolrException(int code, String msg, boolean alreadyLogged) {
|
|
||||||
super(msg);
|
|
||||||
this.code=code;
|
|
||||||
this.logged=alreadyLogged;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #SolrException(ErrorCode,String,Throwable,boolean)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public SolrException(int code, String msg, Throwable th, boolean alreadyLogged) {
|
|
||||||
super(msg,th);
|
|
||||||
this.code=code;
|
|
||||||
logged=alreadyLogged;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #SolrException(ErrorCode,String,Throwable)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public SolrException(int code, String msg, Throwable th) {
|
|
||||||
this(code,msg,th,true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #SolrException(ErrorCode,Throwable)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public SolrException(int code, Throwable th) {
|
|
||||||
super(th);
|
|
||||||
this.code=code;
|
|
||||||
logged=true;
|
|
||||||
}
|
|
||||||
|
|
||||||
int code=0;
|
int code=0;
|
||||||
public int code() { return code; }
|
public int code() { return code; }
|
||||||
|
|
|
@ -249,16 +249,6 @@ public abstract class SolrParams implements Serializable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** how to transform a String into a boolean... more flexible than
|
|
||||||
* Boolean.parseBoolean() to enable easier integration with html forms.
|
|
||||||
* @deprecated Use org.apache.solr.common.util.StrUtils.parseBool
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
protected boolean parseBool(String s) {
|
|
||||||
return StrUtils.parseBool(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Create a Map<String,String> from a NamedList given no keys are repeated */
|
/** Create a Map<String,String> from a NamedList given no keys are repeated */
|
||||||
public static Map<String,String> toMap(NamedList params) {
|
public static Map<String,String> toMap(NamedList params) {
|
||||||
HashMap<String,String> map = new HashMap<String,String>();
|
HashMap<String,String> map = new HashMap<String,String>();
|
||||||
|
|
|
@ -89,10 +89,7 @@ public interface DocSet /* extends Collection<Integer> */ {
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* An OpenBitSet with the bit number of every docid set in the set.
|
* An OpenBitSet with the bit number of every docid set in the set.
|
||||||
*
|
|
||||||
* @deprecated Use {@link #iterator()} to access all docs instead.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public OpenBitSet getBits();
|
public OpenBitSet getBits();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -94,14 +94,6 @@ public class SolrIndexSearcher extends IndexSearcher implements SolrInfoMBean {
|
||||||
private final Collection<String> fieldNames;
|
private final Collection<String> fieldNames;
|
||||||
private Collection<String> storedHighlightFieldNames;
|
private Collection<String> storedHighlightFieldNames;
|
||||||
|
|
||||||
/** Creates a searcher searching the index in the named directory.
|
|
||||||
*
|
|
||||||
* @deprecated use alternate constructor
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public SolrIndexSearcher(SolrCore core, IndexSchema schema, String name, String path, boolean enableCache) throws IOException {
|
|
||||||
this(core, schema,name, core.getIndexReaderFactory().newReader(core.getDirectoryFactory().open(path), false), true, enableCache);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creates a searcher searching the index in the provided directory. Note:
|
* Creates a searcher searching the index in the provided directory. Note:
|
||||||
|
|
|
@ -41,18 +41,11 @@ import java.util.Collections;
|
||||||
*/
|
*/
|
||||||
public abstract class ValueSource implements Serializable {
|
public abstract class ValueSource implements Serializable {
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public DocValues getValues(IndexReader reader) throws IOException {
|
|
||||||
return getValues(null, reader);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the values for this reader and the context that was previously
|
* Gets the values for this reader and the context that was previously
|
||||||
* passed to createWeight()
|
* passed to createWeight()
|
||||||
*/
|
*/
|
||||||
public DocValues getValues(Map context, IndexReader reader) throws IOException {
|
public abstract DocValues getValues(Map context, IndexReader reader) throws IOException;
|
||||||
return getValues(reader);
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract boolean equals(Object o);
|
public abstract boolean equals(Object o);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue