SOLR-11135: remove cwiki.apache.org references in javadocs

This commit is contained in:
Cassandra Targett 2017-10-25 08:50:18 -05:00
parent 15e2729d32
commit 01b8cd8d44
7 changed files with 31 additions and 33 deletions

View File

@ -43,7 +43,7 @@ import org.apache.solr.search.SyntaxError;
/**
* This feature allows you to reuse any Solr query as a feature. The value
* of the feature will be the score of the given query for the current document.
* See <a href="https://cwiki.apache.org/confluence/display/solr/Other+Parsers">Solr documentation of other parsers</a> you can use as a feature.
* See <a href="https://lucene.apache.org/solr/guide/other-parsers.html">Solr documentation of other parsers</a> you can use as a feature.
* Example configurations:
* <pre>[{ "name": "isBook",
"class": "org.apache.solr.ltr.feature.SolrFeature",

View File

@ -176,7 +176,7 @@ public class SolrXmlConfig {
if (config.getVal(xPath, false) != null) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Should not have found " + xPath +
"\n. Please upgrade your solr.xml: https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml");
"\n. Please upgrade your solr.xml: https://lucene.apache.org/solr/guide/format-of-solr-xml.html");
}
}
@ -543,4 +543,3 @@ public class SolrXmlConfig {
return (node == null) ? null : new PluginInfo(node, "transientCoreCacheFactory", false, true);
}
}

View File

@ -45,8 +45,8 @@ import org.noggit.JSONWriter;
* based on this class within the client applications.</p>
* <p>This class is experimental and it is subject to change.</p>
*
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Schema+API">Solr Schema API</a>
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Managed+Resources">Solr managed resources</a>
* @see <a href="https://lucene.apache.org/solr/guide/schema-api.html">Solr Schema API</a>
* @see <a href="https://lucene.apache.org/solr/guide/managed-resources.html">Solr managed resources</a>
* @since solr 5.3
*/
public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
@ -366,7 +366,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
* Creates a new instance of the request.
*
* @param fieldAttributes field type attributes that can be used to enrich the field definition.
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Defining+Fields">Defining Solr fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/defining-fields.html">Defining Solr fields</a>
*/
public AddField(Map<String, Object> fieldAttributes) {
this(fieldAttributes, null);
@ -389,7 +389,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
* will not partially modify a field's definition. If the field does not exist in the schema the method call
* {@link #process(SolrClient, String)} will fail.
*
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Defining+Fields">Defining Solr fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/defining-fields.html">Defining Solr fields</a>
*/
public static class ReplaceField extends SingleUpdate {
/**
@ -445,8 +445,8 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
/**
* Adds a new dynamic field rule to the schema of the specified collection.
*
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Defining+Fields">Defining Solr fields</a>
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Dynamic+Fields">Solr dynamic fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/defining-fields.html">Defining Solr fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/dynamic-fields.html">Solr dynamic fields</a>
*/
public static class AddDynamicField extends SingleUpdate {
/**
@ -482,8 +482,8 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
* Creates a new instance of the request.
*
* @param dynamicFieldAttributes field type attributes that can be used to enrich the field definition.
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Defining+Fields">Defining Solr fields</a>
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Dynamic+Fields">Solr dynamic fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/defining-fields.html">Defining Solr fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/dynamic-fields.html">Solr dynamic fields</a>
*/
public ReplaceDynamicField(Map<String, Object> dynamicFieldAttributes) {
this(dynamicFieldAttributes, null);
@ -538,7 +538,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
* Creates a new instance of the request.
*
* @param fieldTypeDefinition the field type definition
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Solr+Field+Types">Solr field types</a>
* @see <a href="https://lucene.apache.org/solr/guide/solr-field-types.html">Solr field types</a>
*/
public AddFieldType(FieldTypeDefinition fieldTypeDefinition) {
this(fieldTypeDefinition, null);
@ -567,7 +567,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
* Creates a new instance of the request.
*
* @param fieldTypeDefinition the field type definition
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Solr+Field+Types">Solr field types</a>
* @see <a href="https://lucene.apache.org/solr/guide/solr-field-types.html">Solr field types</a>
*/
public ReplaceFieldType(FieldTypeDefinition fieldTypeDefinition) {
this(fieldTypeDefinition, null);
@ -623,7 +623,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
*
* @param source the source field name
* @param dest the collection of the destination field names
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Copying+Fields">Copying fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/copying-fields.html">Copying fields</a>
*/
public AddCopyField(String source, List<String> dest) {
this(source, dest, (SolrParams) null);
@ -636,7 +636,7 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
* @param dest the collection of the destination field names
* @param maxChars the number of characters to be copied from the source to the dest. Specifying
* 0 as value, means that all the source characters will be copied to the dest.
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Copying+Fields">Copying fields</a>
* @see <a href="https://lucene.apache.org/solr/guide/copying-fields.html">Copying fields</a>
*/
public AddCopyField(String source, List<String> dest, Integer maxChars) {
this(source, dest, maxChars, null);
@ -830,4 +830,3 @@ public class SchemaRequest extends AbstractSchemaRequest<SchemaResponse> {
}
}
}

View File

@ -18,6 +18,6 @@
/**
* Convenience classes for making Schema API requests.
* <p>
* See &lt;a href="https://cwiki.apache.org/confluence/display/solr/Schema+API"&gt;Schema API&lt;/a&gt;
* See &lt;a href="https://lucene.apache.org/solr/guide/schema-api.html"&gt;Schema API&lt;/a&gt;
*/
package org.apache.solr.client.solrj.request.schema;
package org.apache.solr.client.solrj.request.schema;

View File

@ -29,7 +29,7 @@ import org.apache.solr.common.util.NamedList;
/**
* This class is used to wrap the response messages retrieved from Solr Schema API.
*
* @see <a href="https://cwiki.apache.org/confluence/display/solr/Schema+API">Solr Schema API</a>
* @see <a href="https://lucene.apache.org/solr/guide/schema-api.html">Solr Schema API</a>
* @since solr 5.3
*/
public class SchemaResponse extends SolrResponseBase {

View File

@ -18,6 +18,6 @@
/**
* Convenience classes for dealing with Schema API responses.
* <p>
* See &lt;a href="https://cwiki.apache.org/confluence/display/solr/Schema+API"&gt;Schema API&lt;/a&gt;
* See &lt;a href="https://lucene.apache.org/solr/guide/schema-api.html"&gt;Schema API&lt;/a&gt;
*/
package org.apache.solr.client.solrj.response.schema;
package org.apache.solr.client.solrj.response.schema;

View File

@ -60,17 +60,17 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
/** The slice's state. */
public enum State {
/** The normal/default state of a shard. */
ACTIVE,
/**
* A shard is put in that state after it has been successfully split. See
* <a href="https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api3">
* <a href="https://lucene.apache.org/solr/guide/collections-api.html#splitshard">
* the reference guide</a> for more details.
*/
INACTIVE,
/**
* When a shard is split, the new sub-shards are put in that state while the
* split operation is in progress. It's also used when the shard is undergoing data restoration.
@ -79,7 +79,7 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
* in distributed search.
*/
CONSTRUCTION,
/**
* Sub-shards of a split shard are put in that state, when they need to
* create replicas in order to meet the collection's replication factor. A
@ -96,18 +96,18 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
* update requests from the parent shard leader, nor participate in distributed search.
*/
RECOVERY_FAILED;
@Override
public String toString() {
return super.toString().toLowerCase(Locale.ROOT);
}
/** Converts the state string to a State instance. */
public static State getState(String stateStr) {
return State.valueOf(stateStr.toUpperCase(Locale.ROOT));
}
}
public static final String REPLICAS = "replicas";
public static final String RANGE = "range";
public static final String LEADER = "leader"; // FUTURE: do we want to record the leader as a slice property in the JSON (as opposed to isLeader as a replica property?)
@ -163,7 +163,7 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
// add the replicas *after* the other properties (for aesthetics, so it's easy to find slice properties in the JSON output)
this.replicas = replicas != null ? replicas : makeReplicas((Map<String,Object>)propMap.get(REPLICAS));
propMap.put(REPLICAS, this.replicas);
Map<String, Object> rules = (Map<String, Object>) propMap.get("routingRules");
if (rules != null) {
this.routingRules = new HashMap<>();
@ -232,7 +232,7 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
public List<Replica> getReplicas(Predicate<Replica> pred) {
return replicas.values().stream().filter(pred).collect(Collectors.toList());
}
/**
* Gets the list of replicas that have a type present in s
*/
@ -250,7 +250,7 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
public Map<String,Replica> getReplicasCopy() {
return new LinkedHashMap<>(replicas);
}
public Replica getLeader() {
return leader;
}
@ -284,5 +284,5 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {
public void write(JSONWriter jsonWriter) {
jsonWriter.write(propMap);
}
}