mirror of https://github.com/apache/lucene.git
SOLR-489: Add in deprecation comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@684908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e545d6c45e
commit
cc9e4dd3de
|
@ -588,6 +588,8 @@ Other Changes
|
||||||
|
|
||||||
21. SOLR-682: Scripts now support FreeBSD (Richard Trey Hyde via gsingers)
|
21. SOLR-682: Scripts now support FreeBSD (Richard Trey Hyde via gsingers)
|
||||||
|
|
||||||
|
22. SOLR-489: Added in deprecation comments. (Sean Timm, Lars Kothoff via gsingers)
|
||||||
|
|
||||||
Build
|
Build
|
||||||
1. SOLR-411. Changed the names of the Solr JARs to use the defacto standard JAR names based on
|
1. SOLR-411. Changed the names of the Solr JARs to use the defacto standard JAR names based on
|
||||||
project-name-version.jar. This yields, for example:
|
project-name-version.jar. This yields, for example:
|
||||||
|
|
|
@ -176,12 +176,24 @@ final class WordDelimiterFilter extends TokenFilter {
|
||||||
public WordDelimiterFilter(TokenStream in, int generateWordParts, int generateNumberParts, int catenateWords, int catenateNumbers, int catenateAll, int splitOnCaseChange, int preserveOriginal) {
|
public WordDelimiterFilter(TokenStream in, int generateWordParts, int generateNumberParts, int catenateWords, int catenateNumbers, int catenateAll, int splitOnCaseChange, int preserveOriginal) {
|
||||||
this(in, defaultWordDelimTable, generateWordParts, generateNumberParts, catenateWords, catenateNumbers, catenateAll, splitOnCaseChange, preserveOriginal);
|
this(in, defaultWordDelimTable, generateWordParts, generateNumberParts, catenateWords, catenateNumbers, catenateAll, splitOnCaseChange, preserveOriginal);
|
||||||
}
|
}
|
||||||
/** Compatibility constructor */
|
/**
|
||||||
|
* Compatibility constructor
|
||||||
|
*
|
||||||
|
* @deprecated Use
|
||||||
|
* {@link #WordDelimiterFilter(TokenStream, int, int, int, int, int, int, int)}
|
||||||
|
* instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public WordDelimiterFilter(TokenStream in, byte[] charTypeTable, int generateWordParts, int generateNumberParts, int catenateWords, int catenateNumbers, int catenateAll) {
|
public WordDelimiterFilter(TokenStream in, byte[] charTypeTable, int generateWordParts, int generateNumberParts, int catenateWords, int catenateNumbers, int catenateAll) {
|
||||||
this(in, charTypeTable, generateWordParts, generateNumberParts, catenateWords, catenateNumbers, catenateAll, 1, 0);
|
this(in, charTypeTable, generateWordParts, generateNumberParts, catenateWords, catenateNumbers, catenateAll, 1, 0);
|
||||||
}
|
}
|
||||||
/** Compatibility constructor */
|
/**
|
||||||
|
* Compatibility constructor
|
||||||
|
*
|
||||||
|
* @deprecated Use
|
||||||
|
* {@link #WordDelimiterFilter(TokenStream, int, int, int, int, int, int, int)}
|
||||||
|
* instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public WordDelimiterFilter(TokenStream in, int generateWordParts, int generateNumberParts, int catenateWords, int catenateNumbers, int catenateAll) {
|
public WordDelimiterFilter(TokenStream in, int generateWordParts, int generateNumberParts, int catenateWords, int catenateNumbers, int catenateAll) {
|
||||||
this(in, defaultWordDelimTable, generateWordParts, generateNumberParts, catenateWords, catenateNumbers, catenateAll, 1, 0);
|
this(in, defaultWordDelimTable, generateWordParts, generateNumberParts, catenateWords, catenateNumbers, catenateAll, 1, 0);
|
||||||
|
|
|
@ -45,6 +45,9 @@ public class Config {
|
||||||
private final String name;
|
private final String name;
|
||||||
private final SolrResourceLoader loader;
|
private final SolrResourceLoader loader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #Config(SolrResourceLoader, String, InputStream, String)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Config(String name, InputStream is, String prefix) throws ParserConfigurationException, IOException, SAXException
|
public Config(String name, InputStream is, String prefix) throws ParserConfigurationException, IOException, SAXException
|
||||||
{
|
{
|
||||||
|
@ -254,31 +257,49 @@ public class Config {
|
||||||
// The following functions were moved to ResourceLoader
|
// The following functions were moved to ResourceLoader
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link SolrResourceLoader#getConfigDir()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getConfigDir() {
|
public String getConfigDir() {
|
||||||
return loader.getConfigDir();
|
return loader.getConfigDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link SolrResourceLoader#openResource(String)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public InputStream openResource(String resource) {
|
public InputStream openResource(String resource) {
|
||||||
return loader.openResource(resource);
|
return loader.openResource(resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link SolrResourceLoader#getLines(String)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public List<String> getLines(String resource) throws IOException {
|
public List<String> getLines(String resource) throws IOException {
|
||||||
return loader.getLines(resource);
|
return loader.getLines(resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link SolrResourceLoader#findClass(String, String[])} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Class findClass(String cname, String... subpackages) {
|
public Class findClass(String cname, String... subpackages) {
|
||||||
return loader.findClass(cname, subpackages);
|
return loader.findClass(cname, subpackages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link SolrResourceLoader#newInstance(String, String[])} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Object newInstance(String cname, String ... subpackages) {
|
public Object newInstance(String cname, String ... subpackages) {
|
||||||
return loader.newInstance(cname, subpackages);
|
return loader.newInstance(cname, subpackages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link SolrResourceLoader#getInstanceDir()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getInstanceDir() {
|
public String getInstanceDir() {
|
||||||
return loader.getInstanceDir();
|
return loader.getInstanceDir();
|
||||||
|
|
|
@ -52,7 +52,10 @@ public class SolrConfig extends Config {
|
||||||
|
|
||||||
public static final String DEFAULT_CONF_FILE = "solrconfig.xml";
|
public static final String DEFAULT_CONF_FILE = "solrconfig.xml";
|
||||||
|
|
||||||
// Compatibility feature for single-core (pre-solr{215,350} patch); should go away at solr-2.0
|
/**
|
||||||
|
* Compatibility feature for single-core (pre-solr{215,350} patch); should go away at solr-2.0
|
||||||
|
* @deprecated Use {@link SolrCore#getSolrConfig()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static SolrConfig config = null;
|
public static SolrConfig config = null;
|
||||||
|
|
||||||
|
@ -180,7 +183,10 @@ public class SolrConfig extends Config {
|
||||||
return httpCachingConfig;
|
return httpCachingConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ping query request parameters
|
/**
|
||||||
|
* ping query request parameters
|
||||||
|
* @deprecated Use {@link PingRequestHandler} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
private final NamedList pingQueryParams;
|
private final NamedList pingQueryParams;
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,9 @@ public final class SolrCore {
|
||||||
|
|
||||||
public long getStartTime() { return startTime; }
|
public long getStartTime() { return startTime; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link MultiCore#getCore(String)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
private static SolrCore instance;
|
private static SolrCore instance;
|
||||||
|
|
||||||
|
@ -125,7 +128,7 @@ public final class SolrCore {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the configuration resource name used by this core instance.
|
* Gets the configuration resource name used by this core instance.
|
||||||
* @see #getConfigResource()
|
* @deprecated Use {@link #getConfigResource()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getConfigFile() {
|
public String getConfigFile() {
|
||||||
|
@ -148,7 +151,7 @@ public final class SolrCore {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the schema resource name used by this core instance.
|
* Gets the schema resource name used by this core instance.
|
||||||
* @see #getSchemaResource()
|
* @deprecated Use {@link #getSchemaResource()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getSchemaFile() {
|
public String getSchemaFile() {
|
||||||
|
@ -341,6 +344,8 @@ public final class SolrCore {
|
||||||
/**
|
/**
|
||||||
* @return the last core initialized. If you are using multiple cores,
|
* @return the last core initialized. If you are using multiple cores,
|
||||||
* this is not a function to use.
|
* this is not a function to use.
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link MultiCore#getCore(String)} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static SolrCore getSolrCore() {
|
public static SolrCore getSolrCore() {
|
||||||
|
@ -1162,6 +1167,9 @@ public final class SolrCore {
|
||||||
(int)(rsp.getEndTime() - req.getStartTime()));*/
|
(int)(rsp.getEndTime() - req.getStartTime()));*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #execute(SolrRequestHandler, SolrQueryRequest, SolrQueryResponse)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void execute(SolrQueryRequest req, SolrQueryResponse rsp) {
|
public void execute(SolrQueryRequest req, SolrQueryResponse rsp) {
|
||||||
SolrRequestHandler handler = getRequestHandler(req.getQueryType());
|
SolrRequestHandler handler = getRequestHandler(req.getQueryType());
|
||||||
|
|
|
@ -374,6 +374,10 @@ public class XmlUpdateRequestHandler extends RequestHandlerBase
|
||||||
* success or failure from an XML formated Update (from the Reader)
|
* success or failure from an XML formated Update (from the Reader)
|
||||||
*
|
*
|
||||||
* @since solr 1.2
|
* @since solr 1.2
|
||||||
|
*
|
||||||
|
* @deprecated Use
|
||||||
|
* {@link #processUpdate(UpdateRequestProcessor, XMLStreamReader)}
|
||||||
|
* instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void doLegacyUpdate(Reader input, Writer output) {
|
public void doLegacyUpdate(Reader input, Writer output) {
|
||||||
|
|
|
@ -193,6 +193,9 @@ public class ShowFileRequestHandler extends RequestHandlerBase
|
||||||
*
|
*
|
||||||
* It is only used so that we can get rid of "/admin/get-file.jsp" and include
|
* It is only used so that we can get rid of "/admin/get-file.jsp" and include
|
||||||
* "admin-extra.html" in "/admin/index.html" using jsp scriptlets
|
* "admin-extra.html" in "/admin/index.html" using jsp scriptlets
|
||||||
|
*
|
||||||
|
* @deprecated This functionality is implemented in
|
||||||
|
* {@link #handleRequestBody(SolrQueryRequest, SolrQueryResponse)}.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static String getFileContents( String path )
|
public static String getFileContents( String path )
|
||||||
|
|
|
@ -19,6 +19,7 @@ package org.apache.solr.request;
|
||||||
|
|
||||||
import org.apache.solr.search.SolrIndexSearcher;
|
import org.apache.solr.search.SolrIndexSearcher;
|
||||||
import org.apache.solr.schema.IndexSchema;
|
import org.apache.solr.schema.IndexSchema;
|
||||||
|
import org.apache.solr.common.params.CommonParams;
|
||||||
import org.apache.solr.common.params.SolrParams;
|
import org.apache.solr.common.params.SolrParams;
|
||||||
import org.apache.solr.common.util.ContentStream;
|
import org.apache.solr.common.util.ContentStream;
|
||||||
import org.apache.solr.core.SolrCore;
|
import org.apache.solr.core.SolrCore;
|
||||||
|
@ -66,6 +67,7 @@ public interface SolrQueryRequest {
|
||||||
* Returns the input parameter value for the specified name
|
* Returns the input parameter value for the specified name
|
||||||
* @return the value, or the first value if the parameter was
|
* @return the value, or the first value if the parameter was
|
||||||
* specified more then once; may be null.
|
* specified more then once; may be null.
|
||||||
|
* @deprecated Use {@link #getParams()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getParam(String name);
|
public String getParam(String name);
|
||||||
|
@ -73,12 +75,14 @@ public interface SolrQueryRequest {
|
||||||
/**
|
/**
|
||||||
* Returns the input parameter values for the specified name
|
* Returns the input parameter values for the specified name
|
||||||
* @return the values; may be null or empty depending on implementation
|
* @return the values; may be null or empty depending on implementation
|
||||||
|
* @deprecated Use {@link #getParams()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String[] getParams(String name);
|
public String[] getParams(String name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the primary query string parameter of the request
|
* Returns the primary query string parameter of the request
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#Q} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getQueryString();
|
public String getQueryString();
|
||||||
|
@ -86,15 +90,20 @@ public interface SolrQueryRequest {
|
||||||
/**
|
/**
|
||||||
* Signifies the syntax and the handler that should be used
|
* Signifies the syntax and the handler that should be used
|
||||||
* to execute this query.
|
* to execute this query.
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#QT} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getQueryType();
|
public String getQueryType();
|
||||||
|
|
||||||
/** starting position in matches to return to client */
|
/** starting position in matches to return to client
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#START} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getStart();
|
public int getStart();
|
||||||
|
|
||||||
/** number of matching documents to return */
|
/** number of matching documents to return
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#ROWS} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getLimit();
|
public int getLimit();
|
||||||
|
|
||||||
|
|
|
@ -98,16 +98,24 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
|
||||||
this.params = params;
|
this.params = params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getParams()} instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public String getParam(String name) {
|
public String getParam(String name) {
|
||||||
return params.get(name);
|
return params.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getParams()} instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public String[] getParams(String name) {
|
public String[] getParams(String name) {
|
||||||
return params.getParams(name);
|
return params.getParams(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use getParams().required().getInt( name ) instead
|
* @deprecated use getParams().required().getInt( name ) instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getIntParam(String name) {
|
public int getIntParam(String name) {
|
||||||
|
@ -119,7 +127,7 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use getParams().required().getInt( name ) instead
|
* @deprecated use getParams().required().getInt( name ) instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getIntParam(String name, int defval) {
|
public int getIntParam(String name, int defval) {
|
||||||
|
@ -128,7 +136,7 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use getParams().required().getParam( name ) instead
|
* @deprecated use getParams().required().getParam( name ) instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getStrParam(String name) {
|
public String getStrParam(String name) {
|
||||||
|
@ -140,7 +148,7 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use getParams().required().getParam( name ) instead
|
* @deprecated use getParams().required().getParam( name ) instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getStrParam(String name, String defval) {
|
public String getStrParam(String name, String defval) {
|
||||||
|
@ -148,23 +156,35 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
|
||||||
return s==null ? defval : s;
|
return s==null ? defval : s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#Q} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getQueryString() {
|
public String getQueryString() {
|
||||||
return params.get(CommonParams.Q);
|
return params.get(CommonParams.Q);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#QT} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getQueryType() {
|
public String getQueryType() {
|
||||||
return params.get(CommonParams.QT);
|
return params.get(CommonParams.QT);
|
||||||
}
|
}
|
||||||
|
|
||||||
// starting position in matches to return to client
|
/**
|
||||||
|
* starting position in matches to return to client
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#START} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getStart() {
|
public int getStart() {
|
||||||
return params.getInt(CommonParams.START, 0);
|
return params.getInt(CommonParams.START, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// number of matching documents to return
|
/**
|
||||||
|
* number of matching documents to return
|
||||||
|
* @deprecated Use {@link #getParams()} and {@link CommonParams#ROWS} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getLimit() {
|
public int getLimit() {
|
||||||
return params.getInt(CommonParams.ROWS, 10);
|
return params.getInt(CommonParams.ROWS, 10);
|
||||||
|
|
|
@ -67,6 +67,7 @@ public final class IndexSchema {
|
||||||
* Config path directory searching rules.
|
* Config path directory searching rules.
|
||||||
*
|
*
|
||||||
* @see Config#openResource
|
* @see Config#openResource
|
||||||
|
* @deprecated Use {@link #IndexSchema(SolrConfig, String, InputStream)} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public IndexSchema(SolrConfig solrConfig, String name) {
|
public IndexSchema(SolrConfig solrConfig, String name) {
|
||||||
|
@ -121,6 +122,8 @@ public final class IndexSchema {
|
||||||
/**
|
/**
|
||||||
* Direct access to the InputStream for the schemaFile used by this instance.
|
* Direct access to the InputStream for the schemaFile used by this instance.
|
||||||
* @see Config#openResource
|
* @see Config#openResource
|
||||||
|
* @deprecated Use {@link #getSolrConfig()} and open a resource input stream
|
||||||
|
* for {@link #getResourceName()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public InputStream getInputStream() {
|
public InputStream getInputStream() {
|
||||||
|
@ -128,7 +131,7 @@ public final class IndexSchema {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Gets the name of the schema file.
|
/** Gets the name of the schema file.
|
||||||
* @see IndexSchema#getResourceName
|
* @deprecated Use {@link #getResourceName()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getSchemaFile() {
|
public String getSchemaFile() {
|
||||||
|
@ -136,7 +139,7 @@ public final class IndexSchema {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The Name of this schema (as specified in the schema file)
|
/** The Name of this schema (as specified in the schema file)
|
||||||
* @see IndexSchema#getSchemaName
|
* @deprecated Use {@link #getSchemaName()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getName() { return name; }
|
public String getName() { return name; }
|
||||||
|
@ -249,6 +252,7 @@ public final class IndexSchema {
|
||||||
* Name of the default search field specified in the schema file
|
* Name of the default search field specified in the schema file
|
||||||
* @deprecated use getSolrQueryParser().getField()
|
* @deprecated use getSolrQueryParser().getField()
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public String getDefaultSearchFieldName() {
|
public String getDefaultSearchFieldName() {
|
||||||
return defaultSearchFieldName;
|
return defaultSearchFieldName;
|
||||||
}
|
}
|
||||||
|
@ -257,6 +261,7 @@ public final class IndexSchema {
|
||||||
* default operator ("AND" or "OR") for QueryParser
|
* default operator ("AND" or "OR") for QueryParser
|
||||||
* @deprecated use getSolrQueryParser().getDefaultOperator()
|
* @deprecated use getSolrQueryParser().getDefaultOperator()
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public String getQueryParserDefaultOperator() {
|
public String getQueryParserDefaultOperator() {
|
||||||
return queryParserDefaultOperator;
|
return queryParserDefaultOperator;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,6 +83,8 @@ 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
|
@Deprecated
|
||||||
public OpenBitSet getBits();
|
public OpenBitSet getBits();
|
||||||
|
|
|
@ -36,6 +36,8 @@ import org.apache.solr.request.SolrQueryRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
*
|
||||||
|
* @deprecated Test against the real request handlers instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class OldRequestHandler implements SolrRequestHandler {
|
public class OldRequestHandler implements SolrRequestHandler {
|
||||||
|
|
|
@ -40,6 +40,8 @@ import org.apache.solr.request.SolrQueryResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
*
|
||||||
|
* @deprecated Test against the real request handlers instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class TestRequestHandler implements SolrRequestHandler {
|
public class TestRequestHandler implements SolrRequestHandler {
|
||||||
|
|
|
@ -24,6 +24,7 @@ import java.util.logging.Logger;
|
||||||
/**
|
/**
|
||||||
* A collection on common params, both for Plugin initialization and
|
* A collection on common params, both for Plugin initialization and
|
||||||
* for Requests.
|
* for Requests.
|
||||||
|
* @deprecated Use {@link org.apache.solr.common.params.CommonParams} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class CommonParams implements org.apache.solr.common.params.CommonParams {
|
public class CommonParams implements org.apache.solr.common.params.CommonParams {
|
||||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.solr.common.util.NamedList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is scheduled for deletion. Please update your code to the moved package.
|
* This class is scheduled for deletion. Please update your code to the moved package.
|
||||||
|
* @deprecated Use {@link org.apache.solr.common.params.DisMaxParams} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class DisMaxParams extends CommonParams implements org.apache.solr.common.params.DisMaxParams {
|
public class DisMaxParams extends CommonParams implements org.apache.solr.common.params.DisMaxParams {
|
||||||
|
|
|
@ -35,6 +35,10 @@ import org.apache.solr.request.SolrQueryResponse;
|
||||||
import org.apache.solr.request.SolrRequestHandler;
|
import org.apache.solr.request.SolrRequestHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated Register a standard request handler instead of using this
|
||||||
|
* servlet. Add <requestHandler name="standard"
|
||||||
|
* class="solr.StandardRequestHandler" default="true"> to
|
||||||
|
* solrconfig.xml.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
Loading…
Reference in New Issue