Apache Solr open-source search software
SOLR-17026: gradle tidy after google java format update for jdk 21
Kevin Risden8b9954317690
diff --git a/solr/api/src/java/org/apache/solr/client/api/model/CreateCollectionRequestBody.java b/solr/api/src/java/org/apache/solr/client/api/model/CreateCollectionRequestBody.javaindex 5881708ee34..5dce5840102 100644--- a/solr/api/src/java/org/apache/solr/client/api/model/CreateCollectionRequestBody.java+++ b/solr/api/src/java/org/apache/solr/client/api/model/CreateCollectionRequestBody.java@@ -54,9 +54,11 @@ public class CreateCollectionRequestBody {// V1 API uses createNodeSet@JsonProperty("nodeSet")public List<String> nodeSet;+// v1 API uses createNodeSet=EMPTY@JsonProperty("createReplicas")public Boolean createReplicas;+// V1 API uses 'createNodeSet.shuffle'@JsonProperty("shuffleNodes")public Boolean shuffleNodes;diff --git a/solr/benchmark/src/java/org/apache/solr/bench/generators/IntegersDSL.java b/solr/benchmark/src/java/org/apache/solr/bench/generators/IntegersDSL.javaindex b3ffc588c10..6a41c10c317 100644--- a/solr/benchmark/src/java/org/apache/solr/bench/generators/IntegersDSL.java+++ b/solr/benchmark/src/java/org/apache/solr/bench/generators/IntegersDSL.java@@ -114,6 +114,7 @@ public class IntegersDSL {private static class IntegerMaxCardinalitySolrGen extends SolrGen<Integer> {private final int maxCardinality;private final Gen<Integer> integers;+/** The Cardinality start. */Integer cardinalityStart;diff --git a/solr/benchmark/src/java/org/apache/solr/bench/generators/SolrGen.java b/solr/benchmark/src/java/org/apache/solr/bench/generators/SolrGen.javaindex 1661283840f..b670787ce1c 100644--- a/solr/benchmark/src/java/org/apache/solr/bench/generators/SolrGen.java+++ b/solr/benchmark/src/java/org/apache/solr/bench/generators/SolrGen.java@@ -78,6 +78,7 @@ public class SolrGen<T> implements Gen<T> {private String description;private String collectKey;+/** The constant COUNTS. */public static final Map<String, RandomDataHistogram.Counts> COUNTS = new NonBlockingHashMap<>(64);diff --git a/solr/core/src/java/org/apache/solr/analysis/TokenizerChain.java b/solr/core/src/java/org/apache/solr/analysis/TokenizerChain.javaindex 535787eaf00..46ed5e20fa6 100644--- a/solr/core/src/java/org/apache/solr/analysis/TokenizerChain.java+++ b/solr/core/src/java/org/apache/solr/analysis/TokenizerChain.java@@ -89,12 +89,14 @@ public final class TokenizerChain extends SolrAnalyzer {public CharFilterFactory[] getCharFilterFactories() {return charFilters;}+/*** @return the TokenizerFactory in use, will never be null*/public TokenizerFactory getTokenizerFactory() {return tokenizer;}+/*** @return array of TokenFilterFactories, may be empty but never null*/diff --git a/solr/core/src/java/org/apache/solr/cli/SolrCLI.java b/solr/core/src/java/org/apache/solr/cli/SolrCLI.javaindex d7a424f6215..3741672a952 100755--- a/solr/core/src/java/org/apache/solr/cli/SolrCLI.java+++ b/solr/core/src/java/org/apache/solr/cli/SolrCLI.java@@ -490,6 +490,7 @@ public class SolrCLI implements CLIO {}return solrUrl;}+/*** Get the base URL of a live Solr instance from either the solrUrl command-line option or from* ZooKeeper.diff --git a/solr/core/src/java/org/apache/solr/cloud/DistributedClusterStateUpdater.java b/solr/core/src/java/org/apache/solr/cloud/DistributedClusterStateUpdater.javaindex bc565ad97e8..8b789ea7f09 100644--- a/solr/core/src/java/org/apache/solr/cloud/DistributedClusterStateUpdater.java+++ b/solr/core/src/java/org/apache/solr/cloud/DistributedClusterStateUpdater.java@@ -660,8 +660,10 @@ public class DistributedClusterStateUpdater {*/public static class StateChangeRecorder {final List<Pair<MutatingCommand, ZkNodeProps>> mutations;+/** The collection name for which are all recorded commands */final String collectionName;+/*** {@code true} if recorded commands assume creation of the collection {@code state.json} file.* <br>diff --git a/solr/core/src/java/org/apache/solr/cloud/ExclusiveSliceProperty.java b/solr/core/src/java/org/apache/solr/cloud/ExclusiveSliceProperty.javaindex 18c21e93d66..20a71e8da38 100644--- a/solr/core/src/java/org/apache/solr/cloud/ExclusiveSliceProperty.java+++ b/solr/core/src/java/org/apache/solr/cloud/ExclusiveSliceProperty.java@@ -349,6 +349,7 @@ class ExclusiveSliceProperty {}return replica;}+// Main entry point for carrying out the action. Returns "true" if we have actually moved// properties around.diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java b/solr/core/src/java/org/apache/solr/cloud/ZkCLI.javaindex c224e7e5c57..a8d0a5f24c7 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java@@ -110,8 +110,12 @@ public class ZkCLI implements CLIO {* machine, multi node tests.*/public static void main(String[] args)- throws InterruptedException, TimeoutException, IOException, ParserConfigurationException,- SAXException, KeeperException {+ throws InterruptedException,+ TimeoutException,+ IOException,+ ParserConfigurationException,+ SAXException,+ KeeperException {CommandLineParser parser = new PosixParser();Options options = new Options();diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkConfigSetService.java b/solr/core/src/java/org/apache/solr/cloud/ZkConfigSetService.javaindex 1718edbf56a..f02404d636d 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkConfigSetService.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkConfigSetService.java@@ -50,6 +50,7 @@ public class ZkConfigSetService extends ConfigSetService {private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());private final ZkController zkController;private final SolrZkClient zkClient;+/** ZkNode where named configs are stored */public static final String CONFIGS_ZKNODE = "/configs";diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkDistributedLock.java b/solr/core/src/java/org/apache/solr/cloud/ZkDistributedLock.javaindex ca29d53e9d7..b9fedc5e076 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkDistributedLock.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkDistributedLock.java@@ -39,8 +39,10 @@ import org.apache.zookeeper.Watcher;abstract class ZkDistributedLock implements DistributedLock {/** End of the lock node name prefix before the sequential part */static final char LOCK_PREFIX_SUFFIX = '_';+/** Prefix of EPHEMERAL read lock node names */static final String READ_LOCK_PREFIX = "R" + LOCK_PREFIX_SUFFIX;+/** Prefix of EPHEMERAL write lock node names */static final String WRITE_LOCK_PREFIX = "W" + LOCK_PREFIX_SUFFIX;diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkShardTerms.java b/solr/core/src/java/org/apache/solr/cloud/ZkShardTerms.javaindex 796e7961a93..18424708446 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkShardTerms.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkShardTerms.java@@ -125,6 +125,7 @@ public class ZkShardTerms implements AutoCloseable {public ShardTerms getShardTerms() {return terms.get();}+/*** Can this replica become leader?*diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.javaindex 9accbf4dc69..6a07970953e 100644--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/CreateCollectionCmd.java@@ -541,6 +541,7 @@ public class CreateCollectionCmd implements CollApiCmds.CollectionApiCommand {}return replicaPositions;}+// the cloud manager should reflect the latest internal cluster stateprivate static SolrCloudManager wrapCloudManager(ClusterState clusterState, SolrCloudManager solrCloudManager) {diff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/DistributedCollectionConfigSetCommandRunner.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/DistributedCollectionConfigSetCommandRunner.javaindex 726d13812bf..e6959c08458 100644--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/DistributedCollectionConfigSetCommandRunner.java+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/DistributedCollectionConfigSetCommandRunner.java@@ -81,6 +81,7 @@ public class DistributedCollectionConfigSetCommandRunner {private static final String ZK_ASYNC_ROOT = ZK_DISTRIBUTED_API_ROOT + "/async";private final ExecutorService distributedCollectionApiExecutorService;+/*** All Collection API commands are executed as if they are asynchronous to stick to the same* behavior as the Overseer based Collection API execution. The difference between sync and asyncdiff --git a/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.java b/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.javaindex c833217d6b1..3e5ad4c52a3 100644--- a/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.java+++ b/solr/core/src/java/org/apache/solr/cloud/api/collections/TimeRoutedAlias.java@@ -93,6 +93,7 @@ public class TimeRoutedAlias extends RoutedAlias {public static final String ROUTER_AUTO_DELETE_AGE = ROUTER_PREFIX + "autoDeleteAge";public static final String ROUTER_PREEMPTIVE_CREATE_MATH = ROUTER_PREFIX + "preemptiveCreateMath";+// plus TZ and NAME/** Parameters required for creating a routed alias */diff --git a/solr/core/src/java/org/apache/solr/cloud/overseer/ZkStateWriter.java b/solr/core/src/java/org/apache/solr/cloud/overseer/ZkStateWriter.javaindex 234fbdbd31d..f61b9a28ece 100644--- a/solr/core/src/java/org/apache/solr/cloud/overseer/ZkStateWriter.java+++ b/solr/core/src/java/org/apache/solr/cloud/overseer/ZkStateWriter.java@@ -222,6 +222,7 @@ public class ZkStateWriter {public ClusterState writePendingUpdates() throws KeeperException, InterruptedException {return writePendingUpdates(updates, true);}+/*** Writes all pending updates to ZooKeeper and returns the modified cluster state*diff --git a/solr/core/src/java/org/apache/solr/cluster/placement/impl/ReplicaMetricImpl.java b/solr/core/src/java/org/apache/solr/cluster/placement/impl/ReplicaMetricImpl.javaindex 5deaf97d027..799f8f75566 100644--- a/solr/core/src/java/org/apache/solr/cluster/placement/impl/ReplicaMetricImpl.java+++ b/solr/core/src/java/org/apache/solr/cluster/placement/impl/ReplicaMetricImpl.java@@ -32,6 +32,7 @@ public class ReplicaMetricImpl<T> extends MetricImpl<T> implements ReplicaMetric/** 1-min query rate of the /select handler. */public static final ReplicaMetricImpl<Double> QUERY_RATE_1MIN =new ReplicaMetricImpl<>("queryRate", "QUERY./select.requestTimes:1minRate");+/** 1-min update rate of the /update handler. */public static final ReplicaMetricImpl<Double> UPDATE_RATE_1MIN =new ReplicaMetricImpl<>("updateRate", "UPDATE./update.requestTimes:1minRate");diff --git a/solr/core/src/java/org/apache/solr/cluster/placement/impl/SimpleClusterAbstractionsImpl.java b/solr/core/src/java/org/apache/solr/cluster/placement/impl/SimpleClusterAbstractionsImpl.javaindex c685e25303c..cb86dc304e5 100644--- a/solr/core/src/java/org/apache/solr/cluster/placement/impl/SimpleClusterAbstractionsImpl.java+++ b/solr/core/src/java/org/apache/solr/cluster/placement/impl/SimpleClusterAbstractionsImpl.java@@ -153,6 +153,7 @@ class SimpleClusterAbstractionsImpl {static class SolrCollectionImpl implements SolrCollection {private final String collectionName;+/** Map from {@link Shard#getShardName()} to {@link Shard} */private final Map<String, Shard> shards;diff --git a/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.java b/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.javaindex 2622082a296..addbb94b3f7 100644--- a/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.java+++ b/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.java@@ -106,6 +106,7 @@ public class AffinityPlacementConfig implements PlacementPluginConfig {* acceptable node types).*/@JsonProperty public Map<String, String> collectionNodeType;+/*** Same as {@link AffinityPlacementConfig#withCollection} but ensures shard to shard* correspondence. should be disjoint with {@link AffinityPlacementConfig#withCollection}.diff --git a/solr/core/src/java/org/apache/solr/core/CloseHook.java b/solr/core/src/java/org/apache/solr/core/CloseHook.javaindex 3b1ffeeb895..6aa2fae8a1c 100644--- a/solr/core/src/java/org/apache/solr/core/CloseHook.java+++ b/solr/core/src/java/org/apache/solr/core/CloseHook.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.core;+/*** Used to request notification when the core is closed.*diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.javaindex cdf90bdc7a4..8e86167749b 100644--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java@@ -1512,6 +1512,7 @@ public class CoreContainer {}final Set<String> inFlightCreations = ConcurrentHashMap.newKeySet(); // See SOLR-14969+/*** Creates a new core in a specified instance directory, publishing the core state to the cluster*@@ -2232,6 +2233,7 @@ public class CoreContainer {public SolrCore getCore(String name) {return getCore(name, null);}+/*** Gets a core by name and increase its refcount.*diff --git a/solr/core/src/java/org/apache/solr/core/FileSystemConfigSetService.java b/solr/core/src/java/org/apache/solr/core/FileSystemConfigSetService.javaindex 7631edc9809..1f1a42b15e1 100644--- a/solr/core/src/java/org/apache/solr/core/FileSystemConfigSetService.java+++ b/solr/core/src/java/org/apache/solr/core/FileSystemConfigSetService.java@@ -49,6 +49,7 @@ import org.slf4j.LoggerFactory;*/public class FileSystemConfigSetService extends ConfigSetService {private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());+/** .metadata.json hidden file where metadata is stored */public static final String METADATA_FILE = ".metadata.json";diff --git a/solr/core/src/java/org/apache/solr/core/NodeConfig.java b/solr/core/src/java/org/apache/solr/core/NodeConfig.javaindex 387fe3beafb..75e570b2235 100644--- a/solr/core/src/java/org/apache/solr/core/NodeConfig.java+++ b/solr/core/src/java/org/apache/solr/core/NodeConfig.java@@ -770,6 +770,7 @@ public class NodeConfig {this.replayUpdatesThreads = replayUpdatesThreads;return this;}+// Remove in Solr 10.0@Deprecateddiff --git a/solr/core/src/java/org/apache/solr/core/SolrInfoBean.java b/solr/core/src/java/org/apache/solr/core/SolrInfoBean.javaindex c0d1a6b5c8d..6957bb76f1b 100644--- a/solr/core/src/java/org/apache/solr/core/SolrInfoBean.java+++ b/solr/core/src/java/org/apache/solr/core/SolrInfoBean.java@@ -59,8 +59,10 @@ public interface SolrInfoBean extends SolrMetricProducer {/** Simple common usage name, e.g. BasicQueryHandler, or fully qualified class name. */String getName();+/** Simple one or two line description */String getDescription();+/** Category of this component */Category getCategory();}diff --git a/solr/core/src/java/org/apache/solr/core/SolrPaths.java b/solr/core/src/java/org/apache/solr/core/SolrPaths.javaindex 535f1715722..7906c1e219f 100644--- a/solr/core/src/java/org/apache/solr/core/SolrPaths.java+++ b/solr/core/src/java/org/apache/solr/core/SolrPaths.java@@ -35,6 +35,7 @@ public final class SolrPaths {/** Special path which means to accept all paths. */public static final Path ALL_PATH = Paths.get("_ALL_");+/** Special singleton path set containing only {@link #ALL_PATH}. */private static final Set<Path> ALL_PATHS = Collections.singleton(ALL_PATH);diff --git a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.javaindex ec41662956e..438682fdd43 100644--- a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java+++ b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java@@ -885,6 +885,7 @@ public class SolrResourceLoaderpublic List<SolrInfoBean> getInfoMBeans() {return Collections.unmodifiableList(infoMBeans);}+/*** Load a class using an appropriate {@link SolrResourceLoader} depending of the package on that* classdiff --git a/solr/core/src/java/org/apache/solr/core/snapshots/SolrSnapshotMetaDataManager.java b/solr/core/src/java/org/apache/solr/core/snapshots/SolrSnapshotMetaDataManager.javaindex a969ea4e843..0608be5b41e 100644--- a/solr/core/src/java/org/apache/solr/core/snapshots/SolrSnapshotMetaDataManager.java+++ b/solr/core/src/java/org/apache/solr/core/snapshots/SolrSnapshotMetaDataManager.java@@ -111,6 +111,7 @@ public class SolrSnapshotMetaDataManager {/** Used to map snapshot name to snapshot meta-data. */protected final Map<String, SnapshotMetaData> nameToDetailsMapping = new LinkedHashMap<>();+/** Used to figure out the *current* index data directory path */private final SolrCore solrCore;diff --git a/solr/core/src/java/org/apache/solr/filestore/DistribPackageStore.java b/solr/core/src/java/org/apache/solr/filestore/DistribPackageStore.javaindex 8bd0f2c71ea..1538a64b639 100644--- a/solr/core/src/java/org/apache/solr/filestore/DistribPackageStore.java+++ b/solr/core/src/java/org/apache/solr/filestore/DistribPackageStore.java@@ -65,6 +65,7 @@ import org.slf4j.LoggerFactory;public class DistribPackageStore implements PackageStore {static final long MAX_PKG_SIZE =Long.parseLong(System.getProperty("max.file.store.size", String.valueOf(100 * 1024 * 1024)));+/** This is where al the files in the package store are listed */static final String ZK_PACKAGESTORE = "/packagestore";diff --git a/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java b/solr/core/src/java/org/apache/solr/handler/IndexFetcher.javaindex 18a9c60fad7..3015afb6900 100644--- a/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java+++ b/solr/core/src/java/org/apache/solr/handler/IndexFetcher.java@@ -1219,6 +1219,7 @@ public class IndexFetcher {// -----------START----------------------static BooleanSupplier testWait = () -> true;static Function<String, Long> usableDiskSpaceProvider = dir -> getUsableSpace(dir);+// ------------ END---------------------private static Long getUsableSpace(String dir) {diff --git a/solr/core/src/java/org/apache/solr/handler/MoreLikeThisHandler.java b/solr/core/src/java/org/apache/solr/handler/MoreLikeThisHandler.javaindex 2e3f2fb1114..7ebe55355aa 100644--- a/solr/core/src/java/org/apache/solr/handler/MoreLikeThisHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/MoreLikeThisHandler.java@@ -459,6 +459,7 @@ public class MoreLikeThisHandler extends RequestHandlerBase {}return results;}+/*** Yields terms with boosts from the boosted MLT query.*diff --git a/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.javaindex 39f687516cc..f7eaa97db78 100644--- a/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java@@ -319,6 +319,7 @@ public class PingRequestHandler extends RequestHandlerBase implements SolrCoreAw}}}+//////////////////////// SolrInfoMBeans methods //////////////////////@Overridediff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.javaindex 096f81ee492..fdb272709ba 100644--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java@@ -165,6 +165,7 @@ public class ReplicationHandler extends RequestHandlerBasegeneration = g;version = v;}+/*** builds a CommitVersionInfo data for the specified IndexCommit. Will never be null, ut version* and generation may be zero if there are problems extracting them from the commit datadiff --git a/solr/core/src/java/org/apache/solr/handler/admin/ConfigSetsHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/ConfigSetsHandler.javaindex e5bd2945b43..ff69b1ee147 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/ConfigSetsHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/ConfigSetsHandler.java@@ -64,6 +64,7 @@ public class ConfigSetsHandler extends RequestHandlerBase implements PermissionNprivate static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());protected final CoreContainer coreContainer;public static long CONFIG_SET_TIMEOUT = 300 * 1000;+/*** Overloaded ctor to inject CoreContainer into the handler.*diff --git a/solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.javaindex da247e6e05a..318f6d0842b 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java@@ -772,6 +772,7 @@ public class LukeRequestHandler extends RequestHandlerBase {_buckets[idx] = buckets[idx];}}+// TODO? should this be a list or a map?public NamedList<Integer> toNamedList() {NamedList<Integer> nl = new NamedList<>();@@ -781,6 +782,7 @@ public class LukeRequestHandler extends RequestHandlerBase {return nl;}}+/** Private internal class that counts up frequent terms */private static class TopTermQueue extends PriorityQueue<TopTermQueue.TermInfo> {static class TermInfo {diff --git a/solr/core/src/java/org/apache/solr/handler/admin/api/CoreAdminAPIBase.java b/solr/core/src/java/org/apache/solr/handler/admin/api/CoreAdminAPIBase.javaindex 69fe4c993ce..79f0a4d71f5 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/api/CoreAdminAPIBase.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/api/CoreAdminAPIBase.java@@ -114,6 +114,7 @@ public abstract class CoreAdminAPIBase extends JerseyResource {return solrJerseyResponse;}+/*** Helper RuntimeException to allow passing checked exceptions to the caller of the handle method.*/diff --git a/solr/core/src/java/org/apache/solr/handler/component/PhrasesIdentificationComponent.java b/solr/core/src/java/org/apache/solr/handler/component/PhrasesIdentificationComponent.javaindex 5d8cf03849a..ce21c658747 100644--- a/solr/core/src/java/org/apache/solr/handler/component/PhrasesIdentificationComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/PhrasesIdentificationComponent.java@@ -845,11 +845,13 @@ public class PhrasesIdentificationComponent extends SearchComponent {/** NOTE: Indexed phrases of length 1 are the (sole) individual terms of themselves */private final List<Phrase> individualIndexedTerms = new ArrayList<>(7);+/*** NOTE: Indexed phrases of length less then the max indexed length are the (sole) largest* sub-phrases of themselves*/private final List<Phrase> largestIndexedSubPhrases = new ArrayList<>(7);+/** Phrases larger then this phrase which are indexed and fully contain it */private final List<Phrase> indexedSuperPhrases = new ArrayList<>(7);@@ -897,6 +899,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {}return checksum;}+/** The characters from the original input that corrispond with this Phrase */public CharSequence getSubSequence() {return subSequence;@@ -909,6 +912,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {public List<Phrase> getIndividualIndexedTerms() {return individualIndexedTerms;}+/*** Returns the list of (overlapping) sub phrases that have the largest possible size based on* the effective value of {@link PhrasesContextData#maxIndexedPositionLength}. NOTE: Indexed@@ -918,6 +922,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {public List<Phrase> getLargestIndexedSubPhrases() {return largestIndexedSubPhrases;}+/*** Returns all phrases larger then this phrase, which fully include this phrase, and are* indexed. NOTE: A Phrase is <em>never</em> the super phrase of itself.@@ -930,6 +935,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {public int getPositionStart() {return position_start;}+/** NOTE: positions start at '1' */public int getPositionEnd() {return position_end;@@ -938,6 +944,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {public int getPositionLength() {return position_end - position_start;}+/** Each set bit identifies a position filled by this Phrase */public BitSet getPositionsBitSet() {final BitSet result = new BitSet();@@ -964,6 +971,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {public double getTotalScore() {return total_score;}+/*** Returns the score for this Phrase in this given field. In the current implementation, the* only garuntee made regarding the range of possible values is that 0 (or less) means it is not@@ -988,6 +996,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {}return phrase_ttf.getOrDefault(field, 0L);}+/*** Returns the number of documents that contain <em>all</em> of the {@link* #getIndividualIndexedTerms} that make up this Phrase, in the specified field. NOTE: behavior@@ -997,6 +1006,7 @@ public class PhrasesIdentificationComponent extends SearchComponent {public long getConjunctionDocCount(String field) {return subTerms_conjunctionCounts.getOrDefault(field, 0L);}+/*** Returns the number of documents that contain this (indexed) Phrase <em>as term</em> in the* specified field. NOTE: behavior of calling this method is undefined unless one of the {@linkdiff --git a/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java b/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.javaindex 61816a7c5f1..8407b452f7d 100644--- a/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java@@ -122,6 +122,7 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore* configured order (so-called priority).*/public static final String BOOSTED = "BOOSTED";+/** Key to {@link SolrQueryRequest#getContext()} for a {@code Set<BytesRef>} of excluded IDs. */public static final String EXCLUDED = "EXCLUDED";@@ -137,29 +138,35 @@ public class QueryElevationComponent extends SearchComponent implements SolrCoreprotected Analyzer queryAnalyzer;protected SchemaField uniqueKeyField;+/*** @see QueryElevationParams#FORCE_ELEVATION*/protected boolean forceElevation;+/*** @see QueryElevationParams#USE_CONFIGURED_ELEVATED_ORDER*/protected boolean useConfiguredElevatedOrder;+/** If {@link #inform(SolrCore)} completed without error. */protected boolean initialized;private final Object LOCK = new Object(); // for cache*+/*** Cached IndexReader associated with {@link #cacheElevationProvider}. Must be accessed under* lock.*/private WeakReference<IndexReader> cacheIndexReader = NULL_REF;+/*** Cached elevation provider. Must be accessed under lock. {@link* #handleConfigLoadingException(Exception)} has the lock when called and may access this if it* wishes to return a previous good result.*/protected ElevationProvider cacheElevationProvider = null; // keep null+/*** Cached version / timestamp of the data underlying {@link #cacheElevationProvider}. -1 means* unsupported. Must be accessed under lock.@@ -1134,6 +1141,7 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore* null</code>. The order is retained.*/private LinkedHashSet<BytesRef> elevatedIds;+/*** The ids of the excluded documents that should not appear in search results; can be <code>null* </code>.diff --git a/solr/core/src/java/org/apache/solr/handler/component/RangeFacetRequest.java b/solr/core/src/java/org/apache/solr/handler/component/RangeFacetRequest.javaindex c405b7a1f21..03b60965d92 100644--- a/solr/core/src/java/org/apache/solr/handler/component/RangeFacetRequest.java+++ b/solr/core/src/java/org/apache/solr/handler/component/RangeFacetRequest.java@@ -65,8 +65,10 @@ public class RangeFacetRequest extends FacetComponent.FacetBase {/** The computed start value of this range */protected final Object startObj;+/** The computed end value of this range taking into account facet.range.hardend */protected final Object endObj;+/** The computed gap between each range */protected final Object gapObj;diff --git a/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java b/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.javaindex a34cd99d8be..1f098bd8ca0 100644--- a/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java@@ -1427,6 +1427,7 @@ public class RealTimeGetComponent extends SearchComponent {private static final class IdsRequested {/** An List (which may be empty but will never be null) of the uniqueKeys requested. */public final List<String> allIds;+/*** true if the params provided by the user indicate that a single doc response structure should* be used. Value is meaningless if <code>ids</code> is empty.diff --git a/solr/core/src/java/org/apache/solr/handler/component/ShardDoc.java b/solr/core/src/java/org/apache/solr/handler/component/ShardDoc.javaindex 3936e298703..ad204a0904b 100644--- a/solr/core/src/java/org/apache/solr/handler/component/ShardDoc.java+++ b/solr/core/src/java/org/apache/solr/handler/component/ShardDoc.java@@ -45,6 +45,7 @@ public class ShardDoc extends FieldDoc {// retrieval stage.public int positionInResponse;+// the ordinal position in the merged response arraylistpublic ShardDoc(float score, Object[] fields, Object uniqueId, String shard) {diff --git a/solr/core/src/java/org/apache/solr/handler/component/StatsField.java b/solr/core/src/java/org/apache/solr/handler/component/StatsField.javaindex af1738bcfb5..e74e00f015b 100644--- a/solr/core/src/java/org/apache/solr/handler/component/StatsField.java+++ b/solr/core/src/java/org/apache/solr/handler/component/StatsField.java@@ -664,6 +664,7 @@ public class StatsField {this.regwidth = regwidth;this.hasher = hasher;}+/*** Creates an HllOptions based on the (local) params specified (if appropriate).*@@ -778,18 +779,21 @@ public class StatsField {// if we're still here, then we need an HLL...return new HllOptions(log2m, regwidth, hasher);}+/*** @see HLL*/public int getLog2m() {return log2m;}+/*** @see HLL*/public int getRegwidth() {return regwidth;}+/** May be null if user has indicated that field values are pre-hashed */public HashFunction getHasher() {return hasher;diff --git a/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java b/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.javaindex cdea5a4ae2f..8be684e3efa 100644--- a/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java+++ b/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java@@ -109,6 +109,7 @@ public class StatsValuesFactory {/** may be null if we are collecting stats directly from a function ValueSource */protected final SchemaField sf;+/** may be null if we are collecting stats directly from a function ValueSource */protected final FieldType ft;@@ -128,11 +129,13 @@ public class StatsValuesFactory {* called at least once*/private ValueSource valueSource;+/*** Context to use when retrieving FunctionValues, will be null until/unless {@link* #setNextReader} is called at least once*/private Map<Object, Object> vsContext;+/*** Values to collect, will be null until/unless {@link #setNextReader} is called at least once*/@@ -147,6 +150,7 @@ public class StatsValuesFactory {/** Hash function that must be used by implementations of {@link #hash} */protected final HashFunction hasher;+// if null, no HLL logic can be computed; not final because of "union" optimization (see below)private HLL hll;diff --git a/solr/core/src/java/org/apache/solr/handler/tagger/OffsetCorrector.java b/solr/core/src/java/org/apache/solr/handler/tagger/OffsetCorrector.javaindex ee919872cc8..d5ad59fab97 100644--- a/solr/core/src/java/org/apache/solr/handler/tagger/OffsetCorrector.java+++ b/solr/core/src/java/org/apache/solr/handler/tagger/OffsetCorrector.java@@ -53,6 +53,7 @@ public abstract class OffsetCorrector {/** offsets of parent tag id change (ascending order) */protected final IntArrayList parentChangeOffsets;+/** tag id; parallel array to parentChangeOffsets */protected final IntArrayList parentChangeIds;diff --git a/solr/core/src/java/org/apache/solr/handler/tagger/TaggerRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/tagger/TaggerRequestHandler.javaindex d8a6b6172d1..c85aeafedcb 100644--- a/solr/core/src/java/org/apache/solr/handler/tagger/TaggerRequestHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/tagger/TaggerRequestHandler.java@@ -83,14 +83,19 @@ public class TaggerRequestHandler extends RequestHandlerBase {/** Request parameter. */public static final String OVERLAPS = "overlaps";+/** Request parameter. */public static final String TAGS_LIMIT = "tagsLimit";+/** Request parameter. */public static final String MATCH_TEXT = "matchText";+/** Request parameter. */public static final String SKIP_ALT_TOKENS = "skipAltTokens";+/** Request parameter. */public static final String IGNORE_STOPWORDS = "ignoreStopwords";+/** Request parameter. */public static final String XML_OFFSET_ADJUST = "xmlOffsetAdjust";diff --git a/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.java b/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.javaindex 9d6d477532d..a5495a31106 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/CSVParser.java@@ -53,10 +53,13 @@ public class CSVParser {// the token types/** Token has no valid content, i.e. is in its initialized state. */protected static final int TT_INVALID = -1;+/** Token with content, at beginning or in the middle of a line. */protected static final int TT_TOKEN = 0;+/** Token (which can have content) when end of file is reached. */protected static final int TT_EOF = 1;+/** Token with content when end of a line is reached. */protected static final int TT_EORECORD = 2;@@ -84,8 +87,10 @@ public class CSVParser {static class Token {/** Token type, see TT_xxx constants. */int type = TT_INVALID;+/** The content buffer. */CharBuffer content = new CharBuffer(INITIAL_TOKEN_LENGTH);+/** Token ready flag: indicates a valid token with content (ready for the parser). */boolean isReady;diff --git a/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java b/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.javaindex 1378ee560cd..fb7621490ea 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java@@ -34,13 +34,16 @@ class ExtendedBufferedReader extends BufferedReader {/** the end of stream symbol */public static final int END_OF_STREAM = -1;+/** undefined state for the lookahead char */public static final int UNDEFINED = -2;/** the lookahead chars */private int lookaheadChar = UNDEFINED;+/** the last char returned */private int lastChar = UNDEFINED;+/** the line counter */private int lineCounter = 0;diff --git a/solr/core/src/java/org/apache/solr/legacy/LegacyNumericTokenStream.java b/solr/core/src/java/org/apache/solr/legacy/LegacyNumericTokenStream.javaindex d115eb4fcdc..5f72628402c 100644--- a/solr/core/src/java/org/apache/solr/legacy/LegacyNumericTokenStream.java+++ b/solr/core/src/java/org/apache/solr/legacy/LegacyNumericTokenStream.java@@ -99,11 +99,13 @@ public final class LegacyNumericTokenStream extends TokenStream {public interface LegacyNumericTermAttribute extends Attribute {/** Returns current shift value, undefined before first token */int getShift();+/*** Returns current token's raw value as {@code long} with all {@link #getShift} applied,* undefined before first token*/long getRawValue();+/*** Returns value size in bits (32 for {@code float}, {@code int}; 64 for {@code double}, {@code* long})diff --git a/solr/core/src/java/org/apache/solr/metrics/MetricSuppliers.java b/solr/core/src/java/org/apache/solr/metrics/MetricSuppliers.javaindex 497be19d7f1..e128fbd5fc8 100644--- a/solr/core/src/java/org/apache/solr/metrics/MetricSuppliers.java+++ b/solr/core/src/java/org/apache/solr/metrics/MetricSuppliers.java@@ -81,8 +81,10 @@ public class MetricSuppliers {/** Clock type parameter. */public static final String CLOCK = "clock";+/** User-time clock. */public static final String CLOCK_USER = "user";+/** CPU-time clock. */public static final String CLOCK_CPU = "cpu";@@ -139,10 +141,13 @@ public class MetricSuppliers {* the implementations available in metrics-core.*/public static final String RESERVOIR = "reservoir";+/** Size of reservoir. */public static final String RESERVOIR_SIZE = "size";+/** Alpha parameter of {@link ExponentiallyDecayingReservoir}. */public static final String RESERVOIR_EDR_ALPHA = "alpha";+/** Time window in seconds of {@link SlidingTimeWindowReservoir}. */public static final String RESERVOIR_WINDOW = "window";diff --git a/solr/core/src/java/org/apache/solr/metrics/MetricsMap.java b/solr/core/src/java/org/apache/solr/metrics/MetricsMap.javaindex 969f27860e8..aec6f3e352e 100644--- a/solr/core/src/java/org/apache/solr/metrics/MetricsMap.java+++ b/solr/core/src/java/org/apache/solr/metrics/MetricsMap.java@@ -144,7 +144,9 @@ public class MetricsMap implements Gauge<Map<String, Object>>, MapWriter, Dynami@Overridepublic void setAttribute(Attribute attribute)- throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException,+ throws AttributeNotFoundException,+ InvalidAttributeValueException,+ MBeanException,ReflectionException {initJmxAttributes();jmxAttributes.put(attribute.getName(), String.valueOf(attribute.getValue()));diff --git a/solr/core/src/java/org/apache/solr/metrics/reporters/SolrSlf4jReporter.java b/solr/core/src/java/org/apache/solr/metrics/reporters/SolrSlf4jReporter.javaindex 4455478cc08..346e3e8588e 100644--- a/solr/core/src/java/org/apache/solr/metrics/reporters/SolrSlf4jReporter.java+++ b/solr/core/src/java/org/apache/solr/metrics/reporters/SolrSlf4jReporter.java@@ -107,6 +107,7 @@ public class SolrSlf4jReporter extends FilteringSolrMetricReporter {delegate.close();}}+/*** Create a SLF4J reporter for metrics managed in a named registry.*diff --git a/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/JmxMetricsReporter.java b/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/JmxMetricsReporter.javaindex 772a56094e0..34059b562a6 100644--- a/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/JmxMetricsReporter.java+++ b/solr/core/src/java/org/apache/solr/metrics/reporters/jmx/JmxMetricsReporter.java@@ -166,6 +166,7 @@ public class JmxMetricsReporter implements Reporter, Closeable {// MBean interfaces and base classespublic interface MetricMBean {ObjectName objectName();+// this strange-looking method name is used for producing "_instanceTag" attribute nameString get_instanceTag();}diff --git a/solr/core/src/java/org/apache/solr/metrics/reporters/solr/SolrReporter.java b/solr/core/src/java/org/apache/solr/metrics/reporters/solr/SolrReporter.javaindex cc4544a49c3..4ee771c730b 100644--- a/solr/core/src/java/org/apache/solr/metrics/reporters/solr/SolrReporter.java+++ b/solr/core/src/java/org/apache/solr/metrics/reporters/solr/SolrReporter.java@@ -170,6 +170,7 @@ public class SolrReporter extends ScheduledReporter {this.params = params;return this;}+/*** If true then use {@link org.apache.solr.client.solrj.impl.CloudSolrClient} for communication.* Default is false.diff --git a/solr/core/src/java/org/apache/solr/parser/SolrQueryParserBase.java b/solr/core/src/java/org/apache/solr/parser/SolrQueryParserBase.javaindex 9f3f393bbf0..bdea4869e12 100644--- a/solr/core/src/java/org/apache/solr/parser/SolrQueryParserBase.java+++ b/solr/core/src/java/org/apache/solr/parser/SolrQueryParserBase.java@@ -126,6 +126,7 @@ public abstract class SolrQueryParserBase extends QueryBuilder {// the nested class:/** Alternative form of QueryParser.Operator.AND */public static final Operator AND_OPERATOR = Operator.AND;+/** Alternative form of QueryParser.Operator.OR */public static final Operator OR_OPERATOR = Operator.OR;@@ -230,6 +231,7 @@ public abstract class SolrQueryParserBase extends QueryBuilder {protected SolrQueryParserBase() {super(null);}+// the generated parser will create these in QueryParserpublic abstract void ReInit(CharStream stream);@@ -288,6 +290,7 @@ public abstract class SolrQueryParserBase extends QueryBuilder {}protected String explicitField;+/** Handles the default field if null is passed */public String getField(String fieldName) {explicitField = fieldName;@@ -1254,6 +1257,7 @@ public abstract class SolrQueryParserBase extends QueryBuilder {SchemaField sf = schema.getField(field);return sf.getType().getRangeQuery(parser, sf, part1, part2, startInclusive, endInclusive);}+// called from parserprotected Query getPrefixQuery(String field, String termStr) throws SyntaxError {checkNullField(field);@@ -1264,6 +1268,7 @@ public abstract class SolrQueryParserBase extends QueryBuilder {// scoring by default.return newPrefixQuery(new Term(field, termStr));}+// called from parserprotected Query getExistenceQuery(String field) {checkNullField(field);diff --git a/solr/core/src/java/org/apache/solr/pkg/PackageListeningClassLoader.java b/solr/core/src/java/org/apache/solr/pkg/PackageListeningClassLoader.javaindex 2c75b79ac5d..df598a5c60d 100644--- a/solr/core/src/java/org/apache/solr/pkg/PackageListeningClassLoader.java+++ b/solr/core/src/java/org/apache/solr/pkg/PackageListeningClassLoader.java@@ -40,6 +40,7 @@ public class PackageListeningClassLoader implements SolrClassLoader, PackageListprivate final CoreContainer coreContainer;private final SolrClassLoader fallbackClassLoader;private final Function<String, String> pkgVersionSupplier;+/** package name and the versions that we are tracking */private Map<String, PackageAPI.PkgVersion> packageVersions = new ConcurrentHashMap<>(1);diff --git a/solr/core/src/java/org/apache/solr/query/SolrRangeQuery.java b/solr/core/src/java/org/apache/solr/query/SolrRangeQuery.javaindex 412e88dbf09..9aa323ea6ad 100644--- a/solr/core/src/java/org/apache/solr/query/SolrRangeQuery.java+++ b/solr/core/src/java/org/apache/solr/query/SolrRangeQuery.java@@ -362,6 +362,7 @@ public final class SolrRangeQuery extends ExtendedQueryBase implements DocSetProreturn docs.iterator(ctx);}}+// adapted from MultiTermQueryConstantScoreWrapperclass ConstWeight extends ConstantScoreWeight {diff --git a/solr/core/src/java/org/apache/solr/request/SimpleFacets.java b/solr/core/src/java/org/apache/solr/request/SimpleFacets.javaindex 207db54e130..276626123f5 100644--- a/solr/core/src/java/org/apache/solr/request/SimpleFacets.java+++ b/solr/core/src/java/org/apache/solr/request/SimpleFacets.java@@ -109,8 +109,10 @@ public class SimpleFacets {/** The main set of documents all facet counts should be relative to */protected DocSet docsOrig;+/** Configuration params behavior should be driven by */protected final SolrParams global;+/** Searcher to use for all calculations */protected final SolrIndexSearcher searcher;diff --git a/solr/core/src/java/org/apache/solr/response/JacksonJsonWriter.java b/solr/core/src/java/org/apache/solr/response/JacksonJsonWriter.javaindex 611223fd216..415d1f9169b 100644--- a/solr/core/src/java/org/apache/solr/response/JacksonJsonWriter.java+++ b/solr/core/src/java/org/apache/solr/response/JacksonJsonWriter.java@@ -60,6 +60,7 @@ public class JacksonJsonWriter extends BinaryResponseWriter {public String getContentType(SolrQueryRequest request, SolrQueryResponse response) {return JSONResponseWriter.CONTENT_TYPE_JSON_UTF8;}+// So we extend JSONWriter and override the relevant methodspublic static class WriterImpl extends JSONWriter {diff --git a/solr/core/src/java/org/apache/solr/response/RawResponseWriter.java b/solr/core/src/java/org/apache/solr/response/RawResponseWriter.javaindex eb4a12736e2..20c257fc25f 100644--- a/solr/core/src/java/org/apache/solr/response/RawResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/RawResponseWriter.java@@ -40,6 +40,7 @@ import org.apache.solr.request.SolrQueryRequest;public class RawResponseWriter implements BinaryQueryResponseWriter {public static final String CONTENT_TYPE = "application/vnd.apache.solr.raw";+/*** The key that should be used to add a ContentStream to the SolrQueryResponse if you intend to* use this Writer.diff --git a/solr/core/src/java/org/apache/solr/response/TextResponseWriter.java b/solr/core/src/java/org/apache/solr/response/TextResponseWriter.javaindex 830cadb505a..734dd2bea1b 100644--- a/solr/core/src/java/org/apache/solr/response/TextResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/TextResponseWriter.java@@ -94,6 +94,7 @@ public abstract class TextResponseWriter implements TextWriter {this.rawReturnFields = returnFields;}}+// only for test purposesTextResponseWriter(Writer writer, boolean indent) {this.writer = writer == null ? null : FastWriter.wrap(writer);@@ -212,6 +213,7 @@ public abstract class TextResponseWriter implements TextWriter {TextWriter.super.writeVal(name, val, raw);}}+// names are passed when writing primitives like writeInt to allow many different// types of formats, including those where the name may come after the value (like// some XML formats).diff --git a/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java b/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.javaindex 36ce27f5765..c93d49ee619 100644--- a/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java+++ b/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java@@ -36,6 +36,7 @@ import org.apache.solr.search.SolrIndexSearcher;*/public abstract class DocTransformer {protected ResultContext context;+/*** @return The name of the transformer*/diff --git a/solr/core/src/java/org/apache/solr/schema/AbstractSpatialFieldType.java b/solr/core/src/java/org/apache/solr/schema/AbstractSpatialFieldType.javaindex d94e4fc32b3..d92acef8233 100644--- a/solr/core/src/java/org/apache/solr/schema/AbstractSpatialFieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/AbstractSpatialFieldType.java@@ -80,6 +80,7 @@ public abstract class AbstractSpatialFieldType<T extends SpatialStrategy> extend* ({@link DistanceUnits#getSupportedUnits()}.*/public static final String SCORE_PARAM = "score";+/*** A local-param boolean that can be set to false to only return the FunctionQuery (score), and* thus not do filtering.diff --git a/solr/core/src/java/org/apache/solr/schema/CoordinateFieldType.java b/solr/core/src/java/org/apache/solr/schema/CoordinateFieldType.javaindex a502bcad9b2..60c21fb3f99 100644--- a/solr/core/src/java/org/apache/solr/schema/CoordinateFieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/CoordinateFieldType.java@@ -34,6 +34,7 @@ package org.apache.solr.schema;public abstract class CoordinateFieldType extends AbstractSubTypeFieldType {/** The dimension of the coordinate system */protected int dimension;+/** 2 dimensional by default */public static final int DEFAULT_DIMENSION = 2;diff --git a/solr/core/src/java/org/apache/solr/schema/CurrencyFieldType.java b/solr/core/src/java/org/apache/solr/schema/CurrencyFieldType.javaindex 3fb6f59c058..dc4cc1eac79 100644--- a/solr/core/src/java/org/apache/solr/schema/CurrencyFieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/CurrencyFieldType.java@@ -610,6 +610,7 @@ public class CurrencyFieldType extends FieldType implements SchemaAware, Resourcreturn currencies.strVal(doc);}}+/** throws a (Server Error) SolrException if the code is not valid */private Currency getDocCurrency(int doc, int currencyOrd) throws IOException {String code = getDocCurrencyCode(doc, currencyOrd);diff --git a/solr/core/src/java/org/apache/solr/schema/DenseVectorField.java b/solr/core/src/java/org/apache/solr/schema/DenseVectorField.javaindex feda6169ea1..9581d105601 100644--- a/solr/core/src/java/org/apache/solr/schema/DenseVectorField.java+++ b/solr/core/src/java/org/apache/solr/schema/DenseVectorField.java@@ -74,11 +74,13 @@ public class DenseVectorField extends FloatPointField {private int dimension;private VectorSimilarityFunction similarityFunction;private String knnAlgorithm;+/*** This parameter is coupled with the hnsw algorithm. Controls how many of the nearest neighbor* candidates are connected to the new node. See {@link HnswGraph} for more details.*/private int hnswMaxConn;+/*** This parameter is coupled with the hnsw algorithm. The number of candidate neighbors to track* while searching the graph for each newly inserted node. See {@link HnswGraph} for details.diff --git a/solr/core/src/java/org/apache/solr/schema/FieldType.java b/solr/core/src/java/org/apache/solr/schema/FieldType.javaindex 8666b971b78..edd01895f6c 100644--- a/solr/core/src/java/org/apache/solr/schema/FieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/FieldType.java@@ -98,10 +98,13 @@ public abstract class FieldType extends FieldProperties {/** The name of the type (not the name of the field) */protected String typeName;+/** additional arguments specified in the field type declaration */protected Map<String, String> args;+/** properties explicitly set to true */protected int trueProperties;+/** properties explicitly set to false */protected int falseProperties;diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.javaindex 56ce20b8b04..c395a2c8928 100644--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java@@ -161,6 +161,7 @@ public class IndexSchema {private Map<FieldType, PayloadDecoder> decoders =new HashMap<>(); // cache to avoid scanning token filters repeatedly, unnecessarily+/** keys are all fields copied to, count is num of copyField directives that target them. */protected Map<SchemaField, Integer> copyFieldTargetCounts = new HashMap<>();diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchemaFactory.java b/solr/core/src/java/org/apache/solr/schema/IndexSchemaFactory.javaindex f688bc1c5ce..0300f9bba03 100644--- a/solr/core/src/java/org/apache/solr/schema/IndexSchemaFactory.java+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchemaFactory.java@@ -56,6 +56,7 @@ public abstract class IndexSchemaFactory implements NamedListInitializedPlugin {public static IndexSchema buildIndexSchema(String resourceName, SolrConfig config) {return buildIndexSchema(resourceName, config, null);}+/** Instantiates the configured schema factory, then calls create on it. */public static IndexSchema buildIndexSchema(String resourceName, SolrConfig config, ConfigSetService configSetService) {diff --git a/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java b/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.javaindex 73187383bd8..a4e737d364f 100644--- a/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java+++ b/solr/core/src/java/org/apache/solr/schema/ManagedIndexSchemaFactory.java@@ -177,6 +177,7 @@ public class ManagedIndexSchemaFactory extends IndexSchemaFactory implements Solreturn managedSchemaPath;}+/*** First, try to locate the managed schema file named in the managedSchemaResourceName param. If* the managed schema file exists and is accessible, it is used to instantiate an IndexSchema.diff --git a/solr/core/src/java/org/apache/solr/schema/NumberType.java b/solr/core/src/java/org/apache/solr/schema/NumberType.javaindex 2f12231fe98..a1703c352fb 100644--- a/solr/core/src/java/org/apache/solr/schema/NumberType.java+++ b/solr/core/src/java/org/apache/solr/schema/NumberType.java@@ -28,6 +28,7 @@ public enum NumberType {/** The SortField type that corrisponds with this NumberType */public final SortField.Type sortType;+/*** The effective value to use when sorting on this field should result in docs w/o a value sorting* "low" (which may be "first" or "last" depending on sort direction)@@ -35,6 +36,7 @@ public enum NumberType {* @see SortField#setMissingValue*/public final Object sortMissingLow;+/*** The effective value to use when sorting on this field should result in docs w/o a value sorting* "low" (which may be "first" or "last" depending on sort direction)diff --git a/solr/core/src/java/org/apache/solr/schema/OpenExchangeRatesOrgProvider.java b/solr/core/src/java/org/apache/solr/schema/OpenExchangeRatesOrgProvider.javaindex 58e4d9f2f85..6438af1ffe6 100644--- a/solr/core/src/java/org/apache/solr/schema/OpenExchangeRatesOrgProvider.java+++ b/solr/core/src/java/org/apache/solr/schema/OpenExchangeRatesOrgProvider.java@@ -285,6 +285,7 @@ public class OpenExchangeRatesOrgProvider implements ExchangeRateProvider {public long getTimestamp() {return timestamp;}+/*** Package protected method for test purposes*diff --git a/solr/core/src/java/org/apache/solr/schema/SchemaAware.java b/solr/core/src/java/org/apache/solr/schema/SchemaAware.javaindex fd6a4017443..c49a6eb7123 100644--- a/solr/core/src/java/org/apache/solr/schema/SchemaAware.java+++ b/solr/core/src/java/org/apache/solr/schema/SchemaAware.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.schema;+/*** An interface that can be extended to provide a callback mechanism for informing an {@link* IndexSchema} instance of changes to it, dynamically performed at runtime.diff --git a/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.javaindex 09965406d99..c64bd4bf9fc 100644--- a/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java+++ b/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java@@ -234,6 +234,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {* for MIN/MAX, a sort string for SORT, "score" for SCORE). Will never be null.*/public final String selectorText;+/** The type for this selector, will never be null */public final GroupHeadSelectorType type;@@ -1553,6 +1554,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {delegateCollect();}}+/** Immediately delegate the collection of the current doc */protected void delegateCollect() throws IOException {// ensure we have the 'correct' scorer@@ -1774,6 +1776,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {}}}+/*** A block based score collector that uses a field's numeric value as the group ids*@@ -2003,6 +2006,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {}}}+/*** A block based score collector that uses a field's numeric value as the group ids*@@ -3530,12 +3534,14 @@ public class CollapsingQParserPlugin extends QParserPlugin {public void setScorer(Scorable s) throws IOException {inner.setScorer(s);}+/*** @see SortFieldsCompare#setGroupValues*/public void setGroupValues(int contextDoc) throws IOException {inner.setNullGroupValues(contextDoc);}+/*** @see SortFieldsCompare#testAndSetGroupValues*/diff --git a/solr/core/src/java/org/apache/solr/search/EarlyTerminatingCollectorException.java b/solr/core/src/java/org/apache/solr/search/EarlyTerminatingCollectorException.javaindex b222d9fe7c6..b6a04468612 100644--- a/solr/core/src/java/org/apache/solr/search/EarlyTerminatingCollectorException.java+++ b/solr/core/src/java/org/apache/solr/search/EarlyTerminatingCollectorException.java@@ -33,6 +33,7 @@ public class EarlyTerminatingCollectorException extends RuntimeException {this.numberCollected = numberCollected;this.numberScanned = numberScanned;}+/*** The total number of documents in the index that were "scanned" by the index when collecting the* {@link #getNumberCollected()} documents that triggered this exception.@@ -48,6 +49,7 @@ public class EarlyTerminatingCollectorException extends RuntimeException {public int getNumberScanned() {return numberScanned;}+/** The number of documents collected that resulted in early termination */public int getNumberCollected() {return numberCollected;diff --git a/solr/core/src/java/org/apache/solr/search/EarlyTerminatingSortingCollector.java b/solr/core/src/java/org/apache/solr/search/EarlyTerminatingSortingCollector.javaindex abaaef4bd3e..fe35719a128 100644--- a/solr/core/src/java/org/apache/solr/search/EarlyTerminatingSortingCollector.java+++ b/solr/core/src/java/org/apache/solr/search/EarlyTerminatingSortingCollector.java@@ -68,6 +68,7 @@ final class EarlyTerminatingSortingCollector extends FilterCollector {/** Sort used to sort the search results */private final Sort sort;+/** Number of documents to collect in each segment */private final int numDocsToCollect;diff --git a/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParser.java b/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParser.javaindex 836d8402d60..3d593669ed5 100644--- a/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParser.java+++ b/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParser.java@@ -1767,6 +1767,7 @@ public class ExtendedDismaxQParser extends QParser {solrParams.getBool(QueryParsing.SPLIT_ON_WHITESPACE, SolrQueryParser.DEFAULT_SPLIT_ON_WHITESPACE);}+/*** @return true if there are valid multiplicative boost queries*/@@ -1780,6 +1781,7 @@ public class ExtendedDismaxQParser extends QParser {public boolean hasBoostFunctions() {return null != boostFuncs && 0 != boostFuncs.length;}+/*** @return true if there are valid boost params*/diff --git a/solr/core/src/java/org/apache/solr/search/FieldParams.java b/solr/core/src/java/org/apache/solr/search/FieldParams.javaindex 0ae55c2e262..a737a39ed3b 100644--- a/solr/core/src/java/org/apache/solr/search/FieldParams.java+++ b/solr/core/src/java/org/apache/solr/search/FieldParams.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.search;+/** A class to hold "phrase slop" and "boost" parameters for pf, pf2, pf3 parameters */public class FieldParams {private final int wordGrams; // make bigrams if 2, trigrams if 3, or all if 0diff --git a/solr/core/src/java/org/apache/solr/search/JoinQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/JoinQParserPlugin.javaindex d77dd5e0367..6bf843f8c30 100644--- a/solr/core/src/java/org/apache/solr/search/JoinQParserPlugin.java+++ b/solr/core/src/java/org/apache/solr/search/JoinQParserPlugin.java@@ -36,6 +36,7 @@ import org.apache.solr.util.RefCounted;public class JoinQParserPlugin extends QParserPlugin {public static final String NAME = "join";+/** Choose the internal algorithm */private static final String METHOD = "method";@@ -233,6 +234,7 @@ public class JoinQParserPlugin extends QParserPlugin {private static final EnumSet<Method> JOIN_METHOD_ALLOWLIST =EnumSet.of(Method.index, Method.topLevelDV, Method.dvWithScore);+/*** A helper method for other plugins to create (non-scoring) JoinQueries wrapped around arbitrary* queries against the same core.diff --git a/solr/core/src/java/org/apache/solr/search/QueryParsing.java b/solr/core/src/java/org/apache/solr/search/QueryParsing.javaindex 4819023b3e9..2abe8b8f6d3 100644--- a/solr/core/src/java/org/apache/solr/search/QueryParsing.java+++ b/solr/core/src/java/org/apache/solr/search/QueryParsing.java@@ -221,6 +221,7 @@ public class QueryParsing {private static int FLAG_BOOSTED = 0x01;private static int FLAG_IS_CLAUSE = 0x02;+/*** @see #toString(Query,IndexSchema)*/diff --git a/solr/core/src/java/org/apache/solr/search/SolrCache.java b/solr/core/src/java/org/apache/solr/search/SolrCache.javaindex 5b09399f295..433c9267b41 100644--- a/solr/core/src/java/org/apache/solr/search/SolrCache.java+++ b/solr/core/src/java/org/apache/solr/search/SolrCache.java@@ -60,6 +60,7 @@ public interface SolrCache<K, V> extends SolrInfoBean {* item in the new cache from an entry in the old cache.*/public Object init(Map<String, String> args, Object persistence, CacheRegenerator regenerator);+// I don't think we need a factory for faster creation given that these// will be associated with slow-to-create SolrIndexSearchers.// change to NamedList when other plugins do?@@ -149,6 +150,7 @@ public interface SolrCache<K, V> extends SolrInfoBean {* <code>this</code> and <code>old</code> will have the same concrete type.*/void warm(SolrIndexSearcher searcher, SolrCache<K, V> old);+// Q: an alternative to passing the searcher here would be to pass it in// init and have the cache implementation save it.diff --git a/solr/core/src/java/org/apache/solr/search/facet/FacetFieldProcessor.java b/solr/core/src/java/org/apache/solr/search/facet/FacetFieldProcessor.javaindex 528f7a0ba1f..7e4cd041ea6 100644--- a/solr/core/src/java/org/apache/solr/search/facet/FacetFieldProcessor.java+++ b/solr/core/src/java/org/apache/solr/search/facet/FacetFieldProcessor.java@@ -565,6 +565,7 @@ abstract class FacetFieldProcessor extends FacetProcessor<FacetField> {/** Filled in if and only if needed for resorting, deferred stats, or subfacets */Query bucketFilter;+// TODO: we could potentially store the bucket's (DocSet)subDomain as well,// but that's much bigger object to hang onto for every slot at the sametime// Probably best to just trust the filterCache to do it's jobdiff --git a/solr/core/src/java/org/apache/solr/search/facet/FacetRangeProcessor.java b/solr/core/src/java/org/apache/solr/search/facet/FacetRangeProcessor.javaindex 7a2f5f7155c..3bcb5349ff2 100644--- a/solr/core/src/java/org/apache/solr/search/facet/FacetRangeProcessor.java+++ b/solr/core/src/java/org/apache/solr/search/facet/FacetRangeProcessor.java@@ -68,6 +68,7 @@ class FacetRangeProcessor extends FacetProcessor<FacetRange> {/** Build by {@link #createRangeList} if and only if needed for basic faceting */List<Range> rangeList;+/** Build by {@link #createRangeList} if and only if needed for basic faceting */List<Range> otherList;@@ -725,6 +726,7 @@ class FacetRangeProcessor extends FacetProcessor<FacetRange> {e);}}+/*** Adds the String gap param to a low Range endpoint value to determine the corresponding high* Range endpoint value. Can throw a low level format exception as needed.diff --git a/solr/core/src/java/org/apache/solr/search/facet/FacetRequest.java b/solr/core/src/java/org/apache/solr/search/facet/FacetRequest.javaindex 65b2f3f5ea3..5b8fec842c9 100644--- a/solr/core/src/java/org/apache/solr/search/facet/FacetRequest.java+++ b/solr/core/src/java/org/apache/solr/search/facet/FacetRequest.java@@ -81,6 +81,7 @@ public abstract class FacetRequest {/** Commonly Re-used "count desc" (default) */public static final FacetSort COUNT_DESC = new FacetSort("count", SortDirection.desc);+/** Commonly Re-used "index asc" (index order / streaming) */public static final FacetSort INDEX_ASC = new FacetSort("index", SortDirection.asc);}@@ -121,6 +122,7 @@ public abstract class FacetRequest {public static enum RefineMethod {NONE,SIMPLE;+// NONE is distinct from null since we may want to know if refinement was explicitly turned off.public static FacetRequest.RefineMethod fromObj(Object method) {if (method == null) return null;@@ -150,6 +152,7 @@ public abstract class FacetRequest {* format. Mutually exclusive to {@link #excludeTags}*/public List<Object> explicitQueries; // list of symbolic filters (JSON query format)+/*** Specifies query/filter tags that should be excluded to re-compute the domain from the parent* context. Mutually exclusive to {@link #explicitQueries}diff --git a/solr/core/src/java/org/apache/solr/search/facet/FacetRequestSorted.java b/solr/core/src/java/org/apache/solr/search/facet/FacetRequestSorted.javaindex b162c0b8c84..1a73dfef776 100644--- a/solr/core/src/java/org/apache/solr/search/facet/FacetRequestSorted.java+++ b/solr/core/src/java/org/apache/solr/search/facet/FacetRequestSorted.java@@ -21,11 +21,13 @@ package org.apache.solr.search.facet;abstract class FacetRequestSorted extends FacetRequest {long offset;long limit;+/*** Number of buckets to request beyond the limit to do internally during initial distributed* search. -1 means default heuristic.*/int overrequest = -1;+/*** Number of buckets to fill in beyond the limit to do internally during refinement of distributed* search. -1 means default heuristic.@@ -33,12 +35,14 @@ abstract class FacetRequestSorted extends FacetRequest {int overrefine = -1;long mincount;+/*** The basic sorting to do on buckets, defaults to {@link FacetRequest.FacetSort#COUNT_DESC}** @see #prelim_sort*/FacetSort sort;+/*** An optional "Pre-Sort" that defaults to null. If specified, then the <code>prelim_sort</code>* is used as an optimization in place of {@link #sort} during collection, and the full {@linkdiff --git a/solr/core/src/java/org/apache/solr/search/facet/RelatednessAgg.java b/solr/core/src/java/org/apache/solr/search/facet/RelatednessAgg.javaindex 3c358785f40..daba3e5ec0e 100644--- a/solr/core/src/java/org/apache/solr/search/facet/RelatednessAgg.java+++ b/solr/core/src/java/org/apache/solr/search/facet/RelatednessAgg.java@@ -514,11 +514,13 @@ public class RelatednessAgg extends AggValueSource {* @see #getRelatedness*/private double relatedness = Double.NaN;+/*** @see #computeDerivedValues* @see #getForegroundPopularity*/private double fg_pop;+/*** @see #computeDerivedValues* @see #getBackgroundPopularity@@ -551,6 +553,7 @@ public class RelatednessAgg extends AggValueSource {fg_count += fgInc;bg_count += bgInc;}+/*** Increment both the foreground & background <em>sizes</em> for the current bucket,* reseting any derived values that may be cached@@ -769,6 +772,7 @@ public class RelatednessAgg extends AggValueSource {+ 0.2 * sigmoidHelper(z, 80, 50);return roundTo5Digits(result);}+/*** Helper function for rounding/truncating relatedness & popularity values to 5 decimal* digits, since these values are all probabilistic more then 5 digits aren't really relevant anddiff --git a/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java b/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.javaindex e269e8051e8..9ea0df74159 100644--- a/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java+++ b/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java@@ -666,6 +666,7 @@ public abstract class SlotAcc implements Closeable {this.isBase = t.isBase;this.countAcc = t.countAcc;}+/*** Because sweep collection offloads "collect" methods to count accumulation code, it is helpful* to provide a read-only view over the backing {@link CountSlotAcc}@@ -814,6 +815,7 @@ public abstract class SlotAcc implements Closeable {}return new SweepCountAccStruct(processor.fcontext.base, true, processor.countAcc);}+/*** Helper method for code that wants to operating in a sweeping manner even if the current* processor is not using sweepingdiff --git a/solr/core/src/java/org/apache/solr/search/function/DualDoubleFunction.java b/solr/core/src/java/org/apache/solr/search/function/DualDoubleFunction.javaindex 922851bc495..718e81d9528 100644--- a/solr/core/src/java/org/apache/solr/search/function/DualDoubleFunction.java+++ b/solr/core/src/java/org/apache/solr/search/function/DualDoubleFunction.java@@ -63,6 +63,7 @@ public abstract class DualDoubleFunction extends ValueSource {public double doubleVal(int doc) throws IOException {return func(doc, aVals, bVals);}+/*** True if and only if <em>all</em> of the wrapped {@link FunctionValues} <code>exists</code>* for the specified docdiff --git a/solr/core/src/java/org/apache/solr/search/join/FrontierQuery.java b/solr/core/src/java/org/apache/solr/search/join/FrontierQuery.javaindex 938179ce131..9ff380527f0 100644--- a/solr/core/src/java/org/apache/solr/search/join/FrontierQuery.java+++ b/solr/core/src/java/org/apache/solr/search/join/FrontierQuery.java@@ -34,10 +34,12 @@ class FrontierQuery {this.query = query;this.frontierSize = frontierSize;}+/** Return the query that represents the frontier at the current level. */public Query getQuery() {return query;}+/** Return the number of edges in the frontier query. */public Integer getFrontierSize() {return frontierSize;diff --git a/solr/core/src/java/org/apache/solr/search/join/GraphQuery.java b/solr/core/src/java/org/apache/solr/search/join/GraphQuery.javaindex 6ee4ec44cb4..3dddedb755f 100644--- a/solr/core/src/java/org/apache/solr/search/join/GraphQuery.java+++ b/solr/core/src/java/org/apache/solr/search/join/GraphQuery.java@@ -62,12 +62,16 @@ public class GraphQuery extends Query {/** The inital node matching query */private Query q;+/** the field with the node id */private String fromField;+/** the field containing the edge ids */private String toField;+/** A query to apply while traversing the graph to filter out edges */private Query traversalFilter;+/** The max depth to traverse the graph, -1 means no limit. */private int maxDepth = -1;@@ -293,6 +297,7 @@ public class GraphQuery extends Query {final DocIdSetIterator iter;final float score;+// graph query scorer constructor with iteratorpublic GraphScorer(Weight w, DocIdSetIterator iter, float score) throws IOException {super(w);diff --git a/solr/core/src/java/org/apache/solr/search/stats/StatsCache.java b/solr/core/src/java/org/apache/solr/search/stats/StatsCache.javaindex dc548c3e9d9..833c40e9076 100644--- a/solr/core/src/java/org/apache/solr/search/stats/StatsCache.java+++ b/solr/core/src/java/org/apache/solr/search/stats/StatsCache.java@@ -55,10 +55,13 @@ public abstract class StatsCache implements PluginInfoInitialized {// TODO: decouple use in response from use in request context for these keys/** Map of terms and {@link TermStats}. */public static final String TERM_STATS_KEY = "solr.stats.term";+/** Value of {@link CollectionStats}. */public static final String COL_STATS_KEY = "solr.stats.col";+/** List of terms in the query. */public static final String TERMS_KEY = "solr.stats.terms";+/** List of fields in the query. */public static final String FIELDS_KEY = "solr.stats.fields";diff --git a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.javaindex cfd4436dac7..a57c636a386 100644--- a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java+++ b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java@@ -86,6 +86,7 @@ public class PKIAuthenticationPlugin extends AuthenticationPlugin/** If a number has less than this number of digits, it'll not be considered a timestamp. */private static final int MIN_TIMESTAMP_DIGITS = 10; // a timestamp of 9999999999 is year 1970+/** If a number has more than this number of digits, it'll not be considered a timestamp. */private static final int MAX_TIMESTAMP_DIGITS = 13; // a timestamp of 9999999999999 is year 2286diff --git a/solr/core/src/java/org/apache/solr/security/Permission.java b/solr/core/src/java/org/apache/solr/security/Permission.javaindex 982772ad7bf..95e83f0d5e4 100644--- a/solr/core/src/java/org/apache/solr/security/Permission.java+++ b/solr/core/src/java/org/apache/solr/security/Permission.java@@ -126,6 +126,7 @@ class Permission {}return set == null ? singleton(null) : set;}+/*** read a key value as a set. if the value is a single string, return a singleton set*diff --git a/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java b/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.javaindex af293d6a96e..17ddb4b09d1 100644--- a/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java+++ b/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java@@ -290,6 +290,7 @@ public class SolrRequestParsers {private static HttpSolrCall getHttpSolrCall(HttpServletRequest req) {return req == null ? null : (HttpSolrCall) req.getAttribute(HttpSolrCall.class.getName());}+/** Given a url-encoded query string (UTF-8), map it into solr params */public static MultiMapSolrParams parseQueryString(String queryString) {Map<String, String[]> map = new HashMap<>();diff --git a/solr/core/src/java/org/apache/solr/spelling/QueryConverter.java b/solr/core/src/java/org/apache/solr/spelling/QueryConverter.javaindex 05b7a1ec246..307e27471e9 100644--- a/solr/core/src/java/org/apache/solr/spelling/QueryConverter.java+++ b/solr/core/src/java/org/apache/solr/spelling/QueryConverter.java@@ -42,14 +42,17 @@ public abstract class QueryConverter implements NamedListInitializedPlugin {/** This term is marked prohibited in the query with the minus sign. */public static final int PROHIBITED_TERM_FLAG = 16384;+/** This term is marked required in the query with the plus sign. */public static final int REQUIRED_TERM_FLAG = 32768;+/*** This term is directly followed by a boolean operator (AND/OR/NOT) and this operator differs* from the prior boolean operator in the query (this signifies this term is likely part of a* different query clause than the next term in the query)*/public static final int TERM_PRECEDES_NEW_BOOLEAN_OPERATOR_FLAG = 65536;+/** This term exists in a query that contains boolean operators (AND/OR/NOT) */public static final int TERM_IN_BOOLEAN_QUERY_FLAG = 131072;diff --git a/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.java b/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.javaindex f326a6f21c7..f5a9989d9da 100644--- a/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.java+++ b/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.java@@ -50,6 +50,7 @@ public abstract class SolrSpellChecker {public static final String DEFAULT_DICTIONARY_NAME = "default";public static final String FIELD = "field";public static final String FIELD_TYPE = "fieldType";+/** Dictionary name */protected String name;diff --git a/solr/core/src/java/org/apache/solr/spelling/SpellingOptions.java b/solr/core/src/java/org/apache/solr/spelling/SpellingOptions.javaindex 79cab317ed2..4975c1538ee 100644--- a/solr/core/src/java/org/apache/solr/spelling/SpellingOptions.java+++ b/solr/core/src/java/org/apache/solr/spelling/SpellingOptions.java@@ -26,14 +26,17 @@ public class SpellingOptions {/** The tokens to spell check */public Collection<Token> tokens;+/** An optional {@link org.apache.lucene.index.IndexReader} */public IndexReader reader;+/** The number of suggestions to return, if there are any. Defaults to 1. */public int count = 1;public int alternativeTermCount = 0;public SuggestMode suggestMode = SuggestMode.SUGGEST_WHEN_NOT_IN_INDEX;+/** Provide additional, per implementation, information about the results */public boolean extendedResults;diff --git a/solr/core/src/java/org/apache/solr/spelling/WordBreakSolrSpellChecker.java b/solr/core/src/java/org/apache/solr/spelling/WordBreakSolrSpellChecker.javaindex adba3cb4b70..90029320a37 100644--- a/solr/core/src/java/org/apache/solr/spelling/WordBreakSolrSpellChecker.java+++ b/solr/core/src/java/org/apache/solr/spelling/WordBreakSolrSpellChecker.java@@ -48,18 +48,25 @@ import org.apache.solr.search.SolrIndexSearcher;public class WordBreakSolrSpellChecker extends SolrSpellChecker {/** Try to combine multiple words into one? [true|false] */public static final String PARAM_COMBINE_WORDS = "combineWords";+/** Try to break words into multiples? [true|false] */public static final String PARAM_BREAK_WORDS = "breakWords";+/** See {@link WordBreakSpellChecker#setMaxChanges} */public static final String PARAM_MAX_CHANGES = "maxChanges";+/** See {@link WordBreakSpellChecker#setMaxCombineWordLength} */public static final String PARAM_MAX_COMBINE_WORD_LENGTH = "maxCombinedLength";+/** See {@link WordBreakSpellChecker#setMinBreakWordLength} */public static final String PARAM_MIN_BREAK_WORD_LENGTH = "minBreakLength";+/** See {@link BreakSuggestionTieBreaker} for options. */public static final String PARAM_BREAK_SUGGESTION_TIE_BREAKER = "breakSugestionTieBreaker";+/** See {@link WordBreakSpellChecker#setMaxEvaluations} */public static final String PARAM_MAX_EVALUATIONS = "maxEvaluations";+/** See {@link WordBreakSpellChecker#setMinSuggestionFrequency} */public static final String PARAM_MIN_SUGGESTION_FREQUENCY = "minSuggestionFreq";diff --git a/solr/core/src/java/org/apache/solr/spelling/suggest/Suggester.java b/solr/core/src/java/org/apache/solr/spelling/suggest/Suggester.javaindex 96c147ab683..750747f0896 100644--- a/solr/core/src/java/org/apache/solr/spelling/suggest/Suggester.java+++ b/solr/core/src/java/org/apache/solr/spelling/suggest/Suggester.java@@ -55,10 +55,13 @@ public class Suggester extends SolrSpellChecker {/** Location of the source data - either a path to a file, or null for the current IndexReader. */public static final String LOCATION = "sourceLocation";+/** Fully-qualified class of the {@link Lookup} implementation. */public static final String LOOKUP_IMPL = "lookupImpl";+/** Minimum frequency of terms to consider when building the dictionary. */public static final String THRESHOLD_TOKEN_FREQUENCY = "threshold";+/*** Name of the location where to persist the dictionary. If this location is relative then the* data will be stored under the core's dataDir. If this is null the storing will be disabled.diff --git a/solr/core/src/java/org/apache/solr/uninverting/FieldCache.java b/solr/core/src/java/org/apache/solr/uninverting/FieldCache.javaindex ef573df1bae..93b32320be4 100644--- a/solr/core/src/java/org/apache/solr/uninverting/FieldCache.java+++ b/solr/core/src/java/org/apache/solr/uninverting/FieldCache.java@@ -343,6 +343,7 @@ public interface FieldCache {/** Can be passed to {@link #getDocTermOrds} to filter for 32-bit numeric terms */public static final BytesRef INT32_TERM_PREFIX =new BytesRef(new byte[] {LegacyNumericUtils.SHIFT_START_INT});+/** Can be passed to {@link #getDocTermOrds} to filter for 64-bit numeric terms */public static final BytesRef INT64_TERM_PREFIX =new BytesRef(new byte[] {LegacyNumericUtils.SHIFT_START_LONG});diff --git a/solr/core/src/java/org/apache/solr/update/CommitUpdateCommand.java b/solr/core/src/java/org/apache/solr/update/CommitUpdateCommand.javaindex 0d47cbc6392..bb18b770e5d 100644--- a/solr/core/src/java/org/apache/solr/update/CommitUpdateCommand.java+++ b/solr/core/src/java/org/apache/solr/update/CommitUpdateCommand.java@@ -27,6 +27,7 @@ public class CommitUpdateCommand extends UpdateCommand {public boolean expungeDeletes = false;public boolean softCommit = false;public boolean prepareCommit = false;+/*** User provided commit data. Can be let to null if there is none. It is possible to commit this* user data, even if there is no uncommitted change in the index writer, provided this user datadiff --git a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.javaindex a8e3a52c489..36ecf31a9c6 100644--- a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java+++ b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java@@ -105,6 +105,7 @@ public class DirectUpdateHandler2 extends UpdateHandlerprotected final CommitTracker softCommitTracker;protected boolean commitWithinSoftCommit;+/*** package access for testing*diff --git a/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java b/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.javaindex ef05969a058..94c5e63aa37 100644--- a/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java+++ b/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java@@ -68,6 +68,7 @@ public class SolrIndexConfig implements MapSerializable {public final double ramBufferSizeMB;public final int ramPerThreadHardLimitMB;+/*** When using a custom merge policy that allows triggering synchronous merges on commit (see* {@link MergePolicy#findFullFlushMerges(org.apache.lucene.index.MergeTrigger,@@ -116,6 +117,7 @@ public class SolrIndexConfig implements MapSerializable {public SolrIndexConfig(SolrConfig cfg, SolrIndexConfig def) {this(cfg.get("indexConfig"), def);}+/*** Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml*diff --git a/solr/core/src/java/org/apache/solr/update/SplitIndexCommand.java b/solr/core/src/java/org/apache/solr/update/SplitIndexCommand.javaindex 0333e6717bf..4e6463755a6 100644--- a/solr/core/src/java/org/apache/solr/update/SplitIndexCommand.java+++ b/solr/core/src/java/org/apache/solr/update/SplitIndexCommand.java@@ -37,6 +37,7 @@ public class SplitIndexCommand extends UpdateCommand {public final String routeFieldName;public final String splitKey;public final SolrIndexSplitter.SplitMethod splitMethod;+/*** User provided commit data. Can be let to null if there is none. This commit data is used when* the split command commits.diff --git a/solr/core/src/java/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactory.javaindex 1b698ae9266..8f1786a4098 100644--- a/solr/core/src/java/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactory.java+++ b/solr/core/src/java/org/apache/solr/update/processor/CloneFieldUpdateProcessorFactory.java@@ -177,6 +177,7 @@ public class CloneFieldUpdateProcessorFactory extends UpdateRequestProcessorFact* @see #pattern*/private String dest = null;+/*** @see #dest*/diff --git a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.javaindex 35ec2153fbd..b8e77f64295 100644--- a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java+++ b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java@@ -87,6 +87,7 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {*/static final int MAX_RETRIES_ON_FORWARD_DEAULT =Integer.getInteger("solr.retries.on.forward", 25);+/** Requests from leader to it's followers will be retried this amount of times by default */static final int MAX_RETRIES_TO_FOLLOWERS_DEFAULT =Integer.getInteger("solr.retries.to.followers", 3);@@ -148,6 +149,7 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {/** Number of times requests forwarded to some other shard's leader can be retried */protected final int maxRetriesOnForward = MAX_RETRIES_ON_FORWARD_DEAULT;+/** Number of times requests from leaders to followers can be retried */protected final int maxRetriesToFollowers = MAX_RETRIES_TO_FOLLOWERS_DEFAULT;diff --git a/solr/core/src/java/org/apache/solr/util/PrimUtils.java b/solr/core/src/java/org/apache/solr/util/PrimUtils.javaindex dad34a9a72c..6949f7982d1 100644--- a/solr/core/src/java/org/apache/solr/util/PrimUtils.java+++ b/solr/core/src/java/org/apache/solr/util/PrimUtils.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.util;+/** Utilities for primitive Java data types. */public class PrimUtils {diff --git a/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java b/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.javaindex e144af88137..3b564972eb7 100644--- a/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java+++ b/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java@@ -277,6 +277,7 @@ public class SolrPluginUtils {}return debugInterests;}+/*** Returns a NamedList containing many "standard" pieces of debugging information.*@@ -466,6 +467,7 @@ public class SolrPluginUtils {public static Map<String, Float> parseFieldBoosts(String in) {return parseFieldBoosts(new String[] {in});}+/*** Like <code>parseFieldBoosts(String)</code>, but parses all the strings in the provided array* (which may be null).@@ -496,6 +498,7 @@ public class SolrPluginUtils {}return out;}+/*** /** Like {@link #parseFieldBoosts}, but allows for an optional slop value prefixed by "~".*diff --git a/solr/core/src/java/org/apache/solr/util/hll/SerializationUtil.java b/solr/core/src/java/org/apache/solr/util/hll/SerializationUtil.javaindex 7548c680d34..d441943979c 100644--- a/solr/core/src/java/org/apache/solr/util/hll/SerializationUtil.java+++ b/solr/core/src/java/org/apache/solr/util/hll/SerializationUtil.java@@ -125,6 +125,7 @@ class SerializationUtil {public static byte packVersionByte(final int schemaVersion, final int typeOrdinal) {return (byte) (((NIBBLE_MASK & schemaVersion) << NIBBLE_BITS) | (NIBBLE_MASK & typeOrdinal));}+/*** Generates a byte that encodes the log-base-2 of the explicit cutoff or sentinel values for* 'explicit-disabled' or 'auto', as well as the boolean indicating whether to use {@linkdiff --git a/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java b/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.javaindex 1cd548293df..1e14ae452fa 100644--- a/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java+++ b/solr/core/src/java/org/apache/solr/util/stats/MetricUtils.java@@ -632,6 +632,7 @@ public class MetricUtils {}}}+/*** Convert a {@link Gauge}.*diff --git a/solr/core/src/test/org/apache/solr/BasicFunctionalityTest.java b/solr/core/src/test/org/apache/solr/BasicFunctionalityTest.javaindex 52cae9cd067..c873b8979f8 100644--- a/solr/core/src/test/org/apache/solr/BasicFunctionalityTest.java+++ b/solr/core/src/test/org/apache/solr/BasicFunctionalityTest.java@@ -71,6 +71,7 @@ public class BasicFunctionalityTest extends SolrTestCaseJ4 {public static void beforeTests() throws Exception {initCore("solrconfig.xml", "schema.xml");}+// tests the performance of dynamic field creation and// field property testing./*diff --git a/solr/core/src/test/org/apache/solr/CursorPagingTest.java b/solr/core/src/test/org/apache/solr/CursorPagingTest.javaindex 29663e07c3d..d47e1374847 100644--- a/solr/core/src/test/org/apache/solr/CursorPagingTest.java+++ b/solr/core/src/test/org/apache/solr/CursorPagingTest.java@@ -58,8 +58,10 @@ public class CursorPagingTest extends SolrTestCaseJ4 {/** solrconfig.xml file name, shared with other cursor related tests */public static final String TEST_SOLRCONFIG_NAME = "solrconfig-deeppaging.xml";+/** schema.xml file name, shared with other cursor related tests */public static final String TEST_SCHEMAXML_NAME = "schema-sorts.xml";+/** values from enumConfig.xml */public static final List<String> SEVERITY_ENUM_VALUES =List.of("Not Available", "Low", "Medium", "High", "Critical");diff --git a/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java b/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.javaindex 970f4d8478f..804cf724495 100644--- a/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/AliasIntegrationTest.java@@ -517,6 +517,7 @@ public class AliasIntegrationTest extends SolrCloudTestCase {}}}+// Rather a long title, but it's common to recommend when people need to re-index for any reason// that they:// 1> create a new collectiondiff --git a/solr/core/src/test/org/apache/solr/cloud/MockScriptUpdateProcessorFactory.java b/solr/core/src/test/org/apache/solr/cloud/MockScriptUpdateProcessorFactory.javaindex 2e30679502a..06e65537468 100644--- a/solr/core/src/test/org/apache/solr/cloud/MockScriptUpdateProcessorFactory.java+++ b/solr/core/src/test/org/apache/solr/cloud/MockScriptUpdateProcessorFactory.java@@ -59,6 +59,7 @@ public class MockScriptUpdateProcessorFactory extends UpdateRequestProcessorFactpublic MockScriptUpdateRequestProcessor(UpdateRequestProcessor next) {super(next);}+/*** @param cmd the update command in input containing the Document to classify* @throws IOException If there is a low-level I/O errordiff --git a/solr/core/src/test/org/apache/solr/cloud/OverseerTest.java b/solr/core/src/test/org/apache/solr/cloud/OverseerTest.javaindex f6e108e0bf5..7aa1ce5372e 100644--- a/solr/core/src/test/org/apache/solr/cloud/OverseerTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/OverseerTest.java@@ -1831,7 +1831,10 @@ public class OverseerTest extends SolrTestCaseJ4 {}private SolrZkClient electNewOverseer(String address)- throws InterruptedException, KeeperException, NoSuchFieldException, SecurityException,+ throws InterruptedException,+ KeeperException,+ NoSuchFieldException,+ SecurityException,IllegalAccessException {SolrZkClient zkClient =new SolrZkClient.Builder()@@ -1876,7 +1879,10 @@ public class OverseerTest extends SolrTestCaseJ4 {private ZkController createMockZkController(String zkAddress, SolrZkClient zkClient, ZkStateReader reader)- throws InterruptedException, NoSuchFieldException, SecurityException, SessionExpiredException,+ throws InterruptedException,+ NoSuchFieldException,+ SecurityException,+ SessionExpiredException,IllegalAccessException {ZkController zkController = mock(ZkController.class);diff --git a/solr/core/src/test/org/apache/solr/cloud/TestCloudPhrasesIdentificationComponent.java b/solr/core/src/test/org/apache/solr/cloud/TestCloudPhrasesIdentificationComponent.javaindex f0b4443e654..cf1972cfb02 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestCloudPhrasesIdentificationComponent.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestCloudPhrasesIdentificationComponent.java@@ -50,6 +50,7 @@ public class TestCloudPhrasesIdentificationComponent extends SolrCloudTestCase {/** A collection specific client for operations at the cloud level */private static CloudSolrClient COLLECTION_CLIENT;+/** One client per node */private static final ArrayList<SolrClient> CLIENTS = new ArrayList<>(5);diff --git a/solr/core/src/test/org/apache/solr/cloud/TestCloudPseudoReturnFields.java b/solr/core/src/test/org/apache/solr/cloud/TestCloudPseudoReturnFields.javaindex 434bd380a14..59a3a0feacc 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestCloudPseudoReturnFields.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestCloudPseudoReturnFields.java@@ -67,6 +67,7 @@ public class TestCloudPseudoReturnFields extends SolrCloudTestCase {/** A collection specific client for operations at the cloud level */private static CloudSolrClient COLLECTION_CLIENT;+/** One client per node */private static final ArrayList<SolrClient> CLIENTS = new ArrayList<>(5);diff --git a/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java b/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.javaindex 6bc3361a4cc..29115f29196 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java@@ -79,6 +79,7 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {/** A collection specific client for operations at the cloud level */private static CloudSolrClient COLLECTION_CLIENT;+/** We have a map of clients using specific writerTypes, keyed by pair of baseurl and wt */private static final Map<Pair<String, String>, SolrClient> CLIENTS = new ConcurrentHashMap<>();@@ -641,6 +642,7 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {int writerTypeIdx = TestUtil.nextInt(rand, 0, writerTypes.size() - 1);return getRandomClient(rand, writerTypes.get(writerTypeIdx));}+/*** returns a random SolrClient -- either a CloudSolrClient, or an HttpSolrClient pointed at a node* in our cluster. We have different CLIENTS created for each node based on their wt setting.@@ -1167,6 +1169,7 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {this.resultKey = resultKey;this.fieldName = fieldName;}+/** always returns true */@Overridepublic boolean requiresRealtimeSearcherReOpen() {@@ -1273,12 +1276,14 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {/** Trivial validator of a GeoTransformer */private static class GeoTransformerValidator implements FlValidator, SuppressRealFields {private static final String NAME = "geo";+/*** we're not worried about testing the actual geo parsing/formatting of values, just that the* transformer gets called with the expected field value. so have a small set of fixed input* values we use when indexing docs, and the expected output for each*/private static final Map<String, String> VALUES = new HashMap<>();+/*** The set of legal field values this validator is willing to test as a list, so we can reliably* index into it with random ints@@ -1291,6 +1296,7 @@ public class TestRandomFlRTGCloud extends SolrCloudTestCase {}ALLOWED_FIELD_VALUES = List.copyOf(VALUES.keySet());}+/*** returns a random field value usable when indexing a document that this validator will be able* to handle.diff --git a/solr/core/src/test/org/apache/solr/cloud/TestStressCloudBlindAtomicUpdates.java b/solr/core/src/test/org/apache/solr/cloud/TestStressCloudBlindAtomicUpdates.javaindex 6eda1f7b15b..4848f92f295 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestStressCloudBlindAtomicUpdates.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestStressCloudBlindAtomicUpdates.java@@ -76,6 +76,7 @@ public class TestStressCloudBlindAtomicUpdates extends SolrCloudTestCase {/** A collection specific client for operations at the cloud level */private static CloudSolrClient COLLECTION_CLIENT;+/** One client per node */private static final ArrayList<SolrClient> CLIENTS = new ArrayList<>(5);diff --git a/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.java b/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.javaindex eb3bf597e4b..0badfb7e768 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestStressLiveNodes.java@@ -246,6 +246,7 @@ public class TestStressLiveNodes extends SolrCloudTestCase {this.numNodesToAdd = numNodesToAdd;this.client = newSolrZkClient();}+/** returns the number of nodes actually added w/o error */@Overridepublic Integer call() {diff --git a/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java b/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.javaindex 915e63e9fe4..ef613df71a4 100644--- a/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java+++ b/solr/core/src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorRandomCloud.java@@ -72,6 +72,7 @@ public class TestTolerantUpdateProcessorRandomCloud extends SolrCloudTestCase {/** A collection specific client for operations at the cloud level */private static CloudSolrClient COLLECTION_CLIENT;+/** one SolrClient for each server */private static List<SolrClient> NODE_CLIENTS;diff --git a/solr/core/src/test/org/apache/solr/cloud/api/collections/TestLocalFSCloudBackupRestore.java b/solr/core/src/test/org/apache/solr/cloud/api/collections/TestLocalFSCloudBackupRestore.javaindex caa2e5f4c74..baf657f553b 100644--- a/solr/core/src/test/org/apache/solr/cloud/api/collections/TestLocalFSCloudBackupRestore.java+++ b/solr/core/src/test/org/apache/solr/cloud/api/collections/TestLocalFSCloudBackupRestore.java@@ -149,6 +149,7 @@ public class TestLocalFSCloudBackupRestore extends AbstractCloudBackupRestoreTes}private static final String poisoned = "poisoned";+// let it go through collection handler, and break only when real thing is doing:// Restore/BackupCorepublic static class PoisonedRepository extends LocalFileSystemRepository {diff --git a/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java b/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.javaindex 121ce4251c7..0f494b291a4 100644--- a/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java+++ b/solr/core/src/test/org/apache/solr/handler/TestStressThreadBackup.java@@ -130,6 +130,7 @@ public class TestStressThreadBackup extends SolrCloudTestCase {testSnapshotsAndBackupsDuringConcurrentCommitsAndOptimizes(new BackupAPIImpl() {final BackupStatusChecker backupStatus = new BackupStatusChecker(coreClient);+/** no solrj API for ReplicationHandler */private GenericSolrRequest makeReplicationReq(SolrParams p) {return new GenericSolrRequest(GenericSolrRequest.METHOD.GET, "/replication", p);diff --git a/solr/core/src/test/org/apache/solr/handler/admin/DaemonStreamApiTest.java b/solr/core/src/test/org/apache/solr/handler/admin/DaemonStreamApiTest.javaindex e0ab41ac9ab..895653ce033 100644--- a/solr/core/src/test/org/apache/solr/handler/admin/DaemonStreamApiTest.java+++ b/solr/core/src/test/org/apache/solr/handler/admin/DaemonStreamApiTest.java@@ -222,6 +222,7 @@ public class DaemonStreamApiTest extends SolrTestCaseJ4 {+ daemonName+ "' did not become RUNNABLE, WAITING or TIMED_WAITING in 10 seconds");}+// There can be some delay while threads stabilize, so we need to loop. Eventually, the status of// a// stopped thread should be "TERMINATED"diff --git a/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerFailureTest.java b/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerFailureTest.javaindex 8d3b18212f1..6a8b4f9b6e6 100644--- a/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerFailureTest.java+++ b/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerFailureTest.java@@ -47,7 +47,10 @@ public class ZookeeperStatusHandlerFailureTest extends SolrCloudTestCase {*/@Testpublic void monitorZookeeperAfterZkShutdown()- throws IOException, SolrServerException, InterruptedException, ExecutionException,+ throws IOException,+ SolrServerException,+ InterruptedException,+ ExecutionException,TimeoutException {URL baseUrl = cluster.getJettySolrRunner(0).getBaseUrl();HttpSolrClient solr = new HttpSolrClient.Builder(baseUrl.toString()).build();diff --git a/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerTest.javaindex 038431df7c7..79b580ed9d9 100644--- a/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerTest.java+++ b/solr/core/src/test/org/apache/solr/handler/admin/ZookeeperStatusHandlerTest.java@@ -72,7 +72,10 @@ public class ZookeeperStatusHandlerTest extends SolrCloudTestCase {*/@Testpublic void monitorZookeeper()- throws IOException, SolrServerException, InterruptedException, ExecutionException,+ throws IOException,+ SolrServerException,+ InterruptedException,+ ExecutionException,TimeoutException {URL baseUrl = cluster.getJettySolrRunner(0).getBaseUrl();HttpSolrClient solr = new HttpSolrClient.Builder(baseUrl.toString()).build();diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.javaindex 374cee78888..92c73f969a6 100644--- a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java+++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java@@ -255,6 +255,7 @@ public class DistributedDebugComponentTest extends SolrJettyTestBase {assertNotInDebug(response, key);}}+/** Asserts that the specified debug result key does exist in the response and is non-null */private void assertInDebug(QueryResponse response, String key) {assertNotNull("debug map is null", response.getDebugMap());diff --git a/solr/core/src/test/org/apache/solr/handler/component/ShardsAllowListTest.java b/solr/core/src/test/org/apache/solr/handler/component/ShardsAllowListTest.javaindex 174ebbd7a8d..47bbff89233 100644--- a/solr/core/src/test/org/apache/solr/handler/component/ShardsAllowListTest.java+++ b/solr/core/src/test/org/apache/solr/handler/component/ShardsAllowListTest.java@@ -47,6 +47,7 @@ public class ShardsAllowListTest extends MultiSolrCloudTestCase {* clusters)*/private static final String EXPLICIT_CLUSTER_KEY = "explicitCluster";+/*** The cluster with this key will not include an explicit list of host allowed, will rely on* live_nodesdiff --git a/solr/core/src/test/org/apache/solr/internal/csv/CSVParserTest.java b/solr/core/src/test/org/apache/solr/internal/csv/CSVParserTest.javaindex ab558c50c9f..58d479066db 100644--- a/solr/core/src/test/org/apache/solr/internal/csv/CSVParserTest.java+++ b/solr/core/src/test/org/apache/solr/internal/csv/CSVParserTest.java@@ -45,6 +45,7 @@ public class CSVParserTest extends SolrTestCase {TestCSVParser(Reader in, CSVStrategy strategy) {super(in, strategy);}+/*** Calls super.nextToken() and prints out a String representation of token type and content.*diff --git a/solr/core/src/test/org/apache/solr/response/SmileWriterTest.java b/solr/core/src/test/org/apache/solr/response/SmileWriterTest.javaindex e224c8661bb..9c368baa91d 100644--- a/solr/core/src/test/org/apache/solr/response/SmileWriterTest.java+++ b/solr/core/src/test/org/apache/solr/response/SmileWriterTest.java@@ -208,6 +208,7 @@ public class SmileWriterTest extends SolrTestCaseJ4 {sdoc.put("another_boolean", "" + r.nextBoolean());return sdoc;}+// common-case asciistatic String str(Random r, int sz) {StringBuilder sb = new StringBuilder(sz);diff --git a/solr/core/src/test/org/apache/solr/schema/DocValuesMissingTest.java b/solr/core/src/test/org/apache/solr/schema/DocValuesMissingTest.javaindex e3571787235..244e162802a 100644--- a/solr/core/src/test/org/apache/solr/schema/DocValuesMissingTest.java+++ b/solr/core/src/test/org/apache/solr/schema/DocValuesMissingTest.java@@ -133,6 +133,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testFloatSort() {checkSortMissingDefault("floatdv", "-1.3", "4.2");}+/** dynamic float with default lucene sort (treats as 0) */@Testpublic void testDynFloatSort() {@@ -144,6 +145,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testFloatSortMissingFirst() {checkSortMissingFirst("floatdv_missingfirst", "-1.3", "4.2");}+/** dynamic float with sort missing always first */@Testpublic void testDynFloatSortMissingFirst() {@@ -155,6 +157,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testFloatSortMissingLast() {checkSortMissingLast("floatdv_missinglast", "-1.3", "4.2");}+/** dynamic float with sort missing always last */@Testpublic void testDynFloatSortMissingLast() {@@ -166,6 +169,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testFloatMissingFunction() {checkSortMissingFunction("floatdv", "-1.3", "4.2");}+/** dyanmic float function query based on missing */@Testpublic void testDynFloatMissingFunction() {@@ -177,6 +181,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testFloatMissingFacet() {checkSortMissingFacet("floatdv", "-1.3", "4.2");}+/** dynamic float missing facet count */@Testpublic void testDynFloatMissingFacet() {@@ -188,6 +193,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testIntSort() {checkSortMissingDefault("intdv", "-1", "4");}+/** dynamic int with default lucene sort (treats as 0) */@Testpublic void testDynIntSort() {@@ -199,6 +205,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testIntSortMissingFirst() {checkSortMissingFirst("intdv_missingfirst", "-1", "4");}+/** dynamic int with sort missing always first */@Testpublic void testDynIntSortMissingFirst() {@@ -210,6 +217,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testIntSortMissingLast() {checkSortMissingLast("intdv_missinglast", "-1", "4");}+/** dynamic int with sort missing always last */@Testpublic void testDynIntSortMissingLast() {@@ -221,6 +229,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testIntMissingFunction() {checkSortMissingFunction("intdv", "-1", "4");}+/** dynamic int function query based on missing */@Testpublic void testDynIntMissingFunction() {@@ -232,6 +241,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testIntMissingFacet() {checkSortMissingFacet("intdv", "-1", "4");}+/** dynamic int missing facet count */@Testpublic void testDynIntMissingFacet() {@@ -243,6 +253,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDoubleSort() {checkSortMissingDefault("doubledv", "-1.3", "4.2");}+/** dynamic double with default lucene sort (treats as 0) */@Testpublic void testDynDoubleSort() {@@ -254,6 +265,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDoubleSortMissingFirst() {checkSortMissingFirst("doubledv_missingfirst", "-1.3", "4.2");}+/** dynamic double with sort missing always first */@Testpublic void testDynDoubleSortMissingFirst() {@@ -265,6 +277,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDoubleSortMissingLast() {checkSortMissingLast("doubledv_missinglast", "-1.3", "4.2");}+/** dynamic double with sort missing always last */@Testpublic void testDynDoubleSortMissingLast() {@@ -276,6 +289,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDoubleMissingFunction() {checkSortMissingFunction("doubledv", "-1.3", "4.2");}+/** dyanmic double function query based on missing */@Testpublic void testDynDoubleMissingFunction() {@@ -287,6 +301,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDoubleMissingFacet() {checkSortMissingFacet("doubledv", "-1.3", "4.2");}+/** dynamic double missing facet count */@Testpublic void testDynDoubleMissingFacet() {@@ -298,6 +313,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testLongSort() {checkSortMissingDefault("longdv", "-1", "4");}+/** dynamic long with default lucene sort (treats as 0) */@Testpublic void testDynLongSort() {@@ -309,6 +325,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testLongSortMissingFirst() {checkSortMissingFirst("longdv_missingfirst", "-1", "4");}+/** dynamic long with sort missing always first */@Testpublic void testDynLongSortMissingFirst() {@@ -320,6 +337,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testLongSortMissingLast() {checkSortMissingLast("longdv_missinglast", "-1", "4");}+/** dynamic long with sort missing always last */@Testpublic void testDynLongSortMissingLast() {@@ -331,6 +349,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testLongMissingFunction() {checkSortMissingFunction("longdv", "-1", "4");}+/** dynamic long function query based on missing */@Testpublic void testDynLongMissingFunction() {@@ -342,6 +361,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testLongMissingFacet() {checkSortMissingFacet("longdv", "-1", "4");}+/** dynamic long missing facet count */@Testpublic void testDynLongMissingFacet() {@@ -353,6 +373,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDateSort() {checkSortMissingDefault("datedv", "1900-12-31T23:59:59.999Z", "2005-12-31T23:59:59.999Z");}+/** dynamic date with default lucene sort (treats as 1970) */@Testpublic void testDynDateSort() {@@ -365,6 +386,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {checkSortMissingFirst("datedv_missingfirst", "1900-12-31T23:59:59.999Z", "2005-12-31T23:59:59.999Z");}+/** dynamic date with sort missing always first */@Testpublic void testDynDateSortMissingFirst() {@@ -378,6 +400,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {checkSortMissingLast("datedv_missinglast", "1900-12-31T23:59:59.999Z", "2005-12-31T23:59:59.999Z");}+/** dynamic date with sort missing always last */@Testpublic void testDynDateSortMissingLast() {@@ -390,6 +413,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDateMissingFunction() {checkSortMissingFunction("datedv", "1900-12-31T23:59:59.999Z", "2005-12-31T23:59:59.999Z");}+/** dynamic date function query based on missing */@Testpublic void testDynDateMissingFunction() {@@ -401,6 +425,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testDateMissingFacet() {checkSortMissingFacet("datedv", "1900-12-31T23:59:59.999Z", "2005-12-31T23:59:59.999Z");}+/** dynamic date missing facet count */@Testpublic void testDynDateMissingFacet() {@@ -436,6 +461,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testStringSortMissingFirst() {checkSortMissingFirst("stringdv_missingfirst", "a", "z");}+/** dynamic string with sort missing always first */@Testpublic void testDynStringSortMissingFirst() {@@ -447,6 +473,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testStringSortMissingLast() {checkSortMissingLast("stringdv_missinglast", "a", "z");}+/** dynamic string with sort missing always last */@Testpublic void testDynStringSortMissingLast() {@@ -458,6 +485,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testStringMissingFunction() {checkSortMissingFunction("stringdv", "a", "z");}+/** dynamic string function query based on missing */@Testpublic void testDynStringMissingFunction() {@@ -518,6 +546,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testBoolSortMissingFirst() {checkSortMissingFirst("booldv_missingfirst", "false", "ture");}+/** dynamic bool with sort missing always first */@Testpublic void testDynBoolSortMissingFirst() {@@ -529,6 +558,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testBoolSortMissingLast() {checkSortMissingLast("booldv_missinglast", "false", "true");}+/** dynamic bool with sort missing always last */@Testpublic void testDynBoolSortMissingLast() {@@ -540,6 +570,7 @@ public class DocValuesMissingTest extends SolrTestCaseJ4 {public void testBoolMissingFunction() {checkSortMissingFunction("booldv", "false", "true");}+/** dynamic bool function query based on missing */@Testpublic void testDynBoolMissingFunction() {diff --git a/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java b/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.javaindex a987b96dcfc..f23dac91902 100644--- a/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java+++ b/solr/core/src/test/org/apache/solr/schema/DocValuesMultiTest.java@@ -197,6 +197,7 @@ public class DocValuesMultiTest extends SolrTestCaseJ4 {"//result/doc[5]/arr[@name='booldv']/bool[1][.='false']","//result/doc[5]/arr[@name='booldv']/bool[2][.='true']");}+/*** Tests the ability to do basic queries (without scoring, just match-only) on float docvalues* fields that are not inverted (indexed "forward" only)diff --git a/solr/core/src/test/org/apache/solr/schema/TestCollationField.java b/solr/core/src/test/org/apache/solr/schema/TestCollationField.javaindex 22049aa78dd..163e15f7794 100644--- a/solr/core/src/test/org/apache/solr/schema/TestCollationField.java+++ b/solr/core/src/test/org/apache/solr/schema/TestCollationField.java@@ -149,6 +149,7 @@ public class TestCollationField extends SolrTestCaseJ4 {req("fl", "id", "q", "sort_ar:[\u062F TO \u0698]", "sort", "id asc"),"//*[@numFound='0']");}+/*** Test canonical decomposition with turkish primary strength. With this sort order, İ is the* uppercase form of i, and I is the uppercase form of ı. We index a decomposed form of İ.diff --git a/solr/core/src/test/org/apache/solr/schema/TestCollationFieldDocValues.java b/solr/core/src/test/org/apache/solr/schema/TestCollationFieldDocValues.javaindex b1433df1f6f..79c7b50a949 100644--- a/solr/core/src/test/org/apache/solr/schema/TestCollationFieldDocValues.java+++ b/solr/core/src/test/org/apache/solr/schema/TestCollationFieldDocValues.java@@ -149,6 +149,7 @@ public class TestCollationFieldDocValues extends SolrTestCaseJ4 {req("fl", "id", "q", "sort_ar:[\u062F TO \u0698]", "sort", "id asc"),"//*[@numFound='0']");}+/*** Test canonical decomposition with turkish primary strength. With this sort order, İ is the* uppercase form of i, and I is the uppercase form of ı. We index a decomposed form of İ.diff --git a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java b/solr/core/src/test/org/apache/solr/schema/TestPointFields.javaindex b1e7e6b8162..e3a8f16a8b9 100644--- a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java+++ b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java@@ -4762,6 +4762,7 @@ public class TestPointFields extends SolrTestCaseJ4 {throws Exception {doTestFloatPointFieldExactQuery(field, true, testDouble);}+/*** @param field the field to use for indexing and searching against* @param searchable set to true if searches against "field" should succeed, false if field isdiff --git a/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java b/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.javaindex adaf0fb8302..bbdad73b4d0 100644--- a/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java+++ b/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java@@ -71,10 +71,12 @@ public class QueryEqualityTest extends SolrTestCaseJ4 {* @see #testParserCoverage*/private static boolean doAssertParserCoverage = false;+/*** @see #testParserCoverage*/private static final Set<String> qParsersTested = new HashSet<>();+/*** @see #testParserCoverage*/diff --git a/solr/core/src/test/org/apache/solr/search/TestComplexPhraseQParserPlugin.java b/solr/core/src/test/org/apache/solr/search/TestComplexPhraseQParserPlugin.javaindex 42d0eae5f65..241cdf7542e 100644--- a/solr/core/src/test/org/apache/solr/search/TestComplexPhraseQParserPlugin.java+++ b/solr/core/src/test/org/apache/solr/search/TestComplexPhraseQParserPlugin.java@@ -351,6 +351,7 @@ public class TestComplexPhraseQParserPlugin extends SolrTestCaseJ4 {"//doc[./str[@name='id']='3']","//doc[./str[@name='id']='4']");}+/** the query "sulfur-reducing bacteria" was crashing due to the dash inside the phrase. */@Testpublic void testHyphenInPhrase() {diff --git a/solr/core/src/test/org/apache/solr/search/TestSurroundQueryParser.java b/solr/core/src/test/org/apache/solr/search/TestSurroundQueryParser.javaindex fe661645be5..292a1ff8bdc 100644--- a/solr/core/src/test/org/apache/solr/search/TestSurroundQueryParser.java+++ b/solr/core/src/test/org/apache/solr/search/TestSurroundQueryParser.java@@ -25,6 +25,7 @@ public class TestSurroundQueryParser extends SolrTestCaseJ4 {public static void beforeClass() throws Exception {initCore("solrconfig.xml", "schemasurround.xml");}+// public String getCoreName() { return "collection1"; }@Overridediff --git a/solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java b/solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.javaindex 20c0b34f10c..66c23dad137 100644--- a/solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java+++ b/solr/core/src/test/org/apache/solr/search/facet/RangeFacetCloudTest.java@@ -73,6 +73,7 @@ public class RangeFacetCloudTest extends SolrCloudTestCase {* number of docs that will have that value.*/private static final int[] RANGE_MODEL = new int[NUM_RANGE_VALUES];+/*** the array indexes represent values in our numeric field, while the array values track the* mapping from string field terms to facet counts for docs that have that numeric value@@ -1117,6 +1118,7 @@ public class RangeFacetCloudTest extends SolrCloudTestCase {private static final class ModelRange {public final int lower;public final int upper;+/** Don't use, use the convenience methods */public ModelRange(int lower, int upper) {if (lower < 0 || upper < 0) {@@ -1152,6 +1154,7 @@ public class RangeFacetCloudTest extends SolrCloudTestCase {int result = TestUtil.nextInt(random(), -10, atLeast(TERM_VALUES_RANDOMIZER));return (result <= 0) ? -1 : result;}+/** randomized helper */private static CharSequence makeSubFacet(final Integer subFacetLimit) {if (null == subFacetLimit) {diff --git a/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetJoinDomain.java b/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetJoinDomain.javaindex 1da1507a8de..e11c4a7795a 100644--- a/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetJoinDomain.java+++ b/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetJoinDomain.java@@ -78,6 +78,7 @@ public class TestCloudJSONFacetJoinDomain extends SolrCloudTestCase {* Multivalued string field suffixes that can be randomized for testing diff facet/join code paths*/private static final String[] STR_FIELD_SUFFIXES = new String[] {"_ss", "_sds", "_sdsS"};+/*** Multivalued int field suffixes that can be randomized for testing diff facet/join code paths*/@@ -85,6 +86,7 @@ public class TestCloudJSONFacetJoinDomain extends SolrCloudTestCase {/** A basic client for operations at the cloud level, default collection will be set */private static CloudSolrClient CLOUD_CLIENT;+/** One client per node */private static final ArrayList<SolrClient> CLIENTS = new ArrayList<>(5);diff --git a/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKG.java b/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKG.javaindex 0748978e659..685b5d3419d 100644--- a/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKG.java+++ b/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKG.java@@ -91,6 +91,7 @@ public class TestCloudJSONFacetSKG extends SolrCloudTestCase {*/private static final String[] MULTI_STR_FIELD_SUFFIXES =new String[] {"_multi_ss", "_multi_sds", "_multi_sdsS"};+/*** Multivalued int field suffixes that can be randomized for testing diff facet/join code paths*/@@ -102,12 +103,14 @@ public class TestCloudJSONFacetSKG extends SolrCloudTestCase {*/private static final String[] SOLO_STR_FIELD_SUFFIXES =new String[] {"_solo_s", "_solo_sd", "_solo_sdS"};+/** Single Valued int field suffixes that can be randomized for testing diff facet code paths */private static final String[] SOLO_INT_FIELD_SUFFIXES =new String[] {"_solo_i", "_solo_id", "_solo_idS"};/** A basic client for operations at the cloud level, default collection will be set */private static CloudSolrClient CLOUD_CLIENT;+/** One client per node */private static final ArrayList<SolrClient> CLIENTS = new ArrayList<>(5);@@ -209,18 +212,22 @@ public class TestCloudJSONFacetSKG extends SolrCloudTestCase {final String suffix = suffixes[fieldNum % suffixes.length];return "field_" + fieldNum + suffix;}+/** Given a (random) number, returns a consistent field name for a multivalued string field */private static String multiStrField(final int fieldNum) {return field(MULTI_STR_FIELD_SUFFIXES, fieldNum);}+/** Given a (random) number, returns a consistent field name for a multivalued int field */private static String multiIntField(final int fieldNum) {return field(MULTI_INT_FIELD_SUFFIXES, fieldNum);}+/** Given a (random) number, returns a consistent field name for a single valued string field */private static String soloStrField(final int fieldNum) {return field(SOLO_STR_FIELD_SUFFIXES, fieldNum);}+/** Given a (random) number, returns a consistent field name for a single valued int field */private static String soloIntField(final int fieldNum) {return field(SOLO_INT_FIELD_SUFFIXES, fieldNum);@@ -574,6 +581,7 @@ public class TestCloudJSONFacetSKG extends SolrCloudTestCase {private final Map<String, Object> jsonData = new LinkedHashMap<>();public final String field;+/*** @param field must be non-null* @param options can set any of options used in a term facet other than field or (sub) facets@@ -728,6 +736,7 @@ public class TestCloudJSONFacetSKG extends SolrCloudTestCase {}return null;}+/*** picks a random value for the "sort" param, biased in favor of interesting test cases*@@ -755,6 +764,7 @@ public class TestCloudJSONFacetSKG extends SolrCloudTestCase {throw new RuntimeException("Broken case statement");}}+/*** picks a random value for the "limit" param, biased in favor of interesting test cases*diff --git a/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKGEquiv.java b/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKGEquiv.javaindex 213c1ea6838..285154d4351 100644--- a/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKGEquiv.java+++ b/solr/core/src/test/org/apache/solr/search/facet/TestCloudJSONFacetSKGEquiv.java@@ -84,6 +84,7 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {/** Multi-Valued string field suffixes that can be randomized for testing diff facet code paths */private static final String[] MULTI_STR_FIELD_SUFFIXES =new String[] {"_multi_ss", "_multi_sds", "_multi_sdsS"};+/** Multi-Valued int field suffixes that can be randomized for testing diff facet code paths */private static final String[] MULTI_INT_FIELD_SUFFIXES =new String[] {"_multi_is", "_multi_ids", "_multi_idsS"};@@ -93,12 +94,14 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {*/private static final String[] SOLO_STR_FIELD_SUFFIXES =new String[] {"_solo_s", "_solo_sd", "_solo_sdS"};+/** Single Valued int field suffixes that can be randomized for testing diff facet code paths */private static final String[] SOLO_INT_FIELD_SUFFIXES =new String[] {"_solo_i", "_solo_id", "_solo_idS"};/** A basic client for operations at the cloud level, default collection will be set */private static CloudSolrClient CLOUD_CLIENT;+/** One client per node */private static final ArrayList<SolrClient> CLIENTS = new ArrayList<>(5);@@ -199,18 +202,22 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {final String suffix = suffixes[fieldNum % suffixes.length];return "field_" + fieldNum + suffix;}+/** Given a (random) number, returns a consistent field name for a multivalued string field */private static String multiStrField(final int fieldNum) {return field(MULTI_STR_FIELD_SUFFIXES, fieldNum);}+/** Given a (random) number, returns a consistent field name for a multivalued int field */private static String multiIntField(final int fieldNum) {return field(MULTI_INT_FIELD_SUFFIXES, fieldNum);}+/** Given a (random) number, returns a consistent field name for a single valued string field */private static String soloStrField(final int fieldNum) {return field(SOLO_STR_FIELD_SUFFIXES, fieldNum);}+/** Given a (random) number, returns a consistent field name for a single valued int field */private static String soloIntField(final int fieldNum) {return field(SOLO_INT_FIELD_SUFFIXES, fieldNum);@@ -744,6 +751,7 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {final int numClauses = TestUtil.nextInt(random(), 3, 10);return buildRandomORQuery(numClauses);}+/** The more clauses, the more docs it's likely to match */private static String buildRandomORQuery(final int numClauses) {final String[] clauses = new String[numClauses];@@ -915,6 +923,7 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {public RelatednessFacet() {this(null, null, Collections.emptyMap());}+/** Assumes no options */public RelatednessFacet(final String foreQ, final String backQ) {this(foreQ, backQ, Collections.emptyMap());@@ -1174,6 +1183,7 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {throw new RuntimeException("Broken case statement");}}+/*** picks a random value for the "prelim_sort" param, biased in favor of interesting test cases.*@@ -1186,6 +1196,7 @@ public class TestCloudJSONFacetSKGEquiv extends SolrCloudTestCase {}return null;}+/*** picks a random value for the "limit" param, biased in favor of interesting test cases*diff --git a/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java b/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.javaindex 0d9859e3bb4..7f26565725e 100644--- a/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java+++ b/solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java@@ -5086,6 +5086,7 @@ public class TestJsonFacets extends SolrTestCaseHS {final long current = actual.getAndSet(0);assertEquals(msg, expected, current);}+/** atomically resets the actual AtomicLong value matches the expected and resets it to 0 */private static void assertEqualsAndReset(long expected, AtomicLong actual) {final long current = actual.getAndSet(0);diff --git a/solr/core/src/test/org/apache/solr/search/function/TestMinMaxOnMultiValuedField.java b/solr/core/src/test/org/apache/solr/search/function/TestMinMaxOnMultiValuedField.javaindex 19e3ecf63ca..5e2f648add7 100644--- a/solr/core/src/test/org/apache/solr/search/function/TestMinMaxOnMultiValuedField.java+++ b/solr/core/src/test/org/apache/solr/search/function/TestMinMaxOnMultiValuedField.java@@ -765,6 +765,7 @@ public class TestMinMaxOnMultiValuedField extends SolrTestCaseJ4 {"//result[@numFound='" + numDocs + "']","//result/doc[1]/str[@name='id']='0'");}+/** helper for testSimpleSort */private static void assertDocWithValsIsLast(final int numDocs, final String sort) {assertQ(diff --git a/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java b/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.javaindex 894054f9921..77be34f59c6 100644--- a/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java+++ b/solr/core/src/test/org/apache/solr/search/similarities/TestClassicSimilarityFactory.java@@ -36,6 +36,7 @@ public class TestClassicSimilarityFactory extends BaseSimilarityTestCase {ClassicSimilarity sim = getSimilarity("text", ClassicSimilarity.class);assertTrue(sim.getDiscountOverlaps());}+/** Classic w/ explicit params */public void testParams() {ClassicSimilarity sim = getSimilarity("text_overlap", ClassicSimilarity.class);diff --git a/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java b/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.javaindex b3ed3c05249..3a205f42839 100644--- a/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java+++ b/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java@@ -458,6 +458,7 @@ public class AddBlockUpdateTest extends SolrTestCaseJ4 {assertSingleParentOf(searcher, one("yz"), "X");assertSingleParentOf(searcher, one("bc"), "A");}+// This is the same as testSolrJXML above but uses the XMLLoader// to illustrate the structure of the XML documents@Testdiff --git a/solr/core/src/test/org/apache/solr/update/MaxSizeAutoCommitTest.java b/solr/core/src/test/org/apache/solr/update/MaxSizeAutoCommitTest.javaindex a0a5fcb57a4..264bcdfb739 100644--- a/solr/core/src/test/org/apache/solr/update/MaxSizeAutoCommitTest.java+++ b/solr/core/src/test/org/apache/solr/update/MaxSizeAutoCommitTest.java@@ -48,10 +48,12 @@ public class MaxSizeAutoCommitTest extends SolrTestCaseJ4 {private static String addDoc(int id) {return adoc("id", Integer.toString(id));}+// Given an ID, returns an XML string for a "delete document" requestprivate static String delDoc(int id) {return delI(Integer.toString(id));}+// max TLOG file sizeprivate static final int MAX_FILE_SIZE = 1000;diff --git a/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesStandalone.java b/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesStandalone.javaindex fc42d5405cd..3795204a7b2 100644--- a/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesStandalone.java+++ b/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesStandalone.java@@ -1184,6 +1184,7 @@ public class TestInPlaceUpdatesStandalone extends SolrTestCaseJ4 {return "SOFTCOMMIT";}};+/** sentinel object for {@link #checkReplay} */public Object HARDCOMMIT =new Object() {@@ -1605,6 +1606,7 @@ public class TestInPlaceUpdatesStandalone extends SolrTestCaseJ4 {assertQ(req("q", "title_s:first1"), "//*[@numFound='0']"); // but the old value does not existassertQ(req("q", "title_s:third"), "//*[@numFound='0']"); // doc3 does not exist}+/*** Helper method that sets up a req/cmd to run {@link* AtomicUpdateDocumentMerger#computeInPlaceUpdatableFields} on the specified solr input document.diff --git a/solr/core/src/test/org/apache/solr/update/processor/CategoryRoutedAliasUpdateProcessorTest.java b/solr/core/src/test/org/apache/solr/update/processor/CategoryRoutedAliasUpdateProcessorTest.javaindex 6917fc8fc32..6b3ddf6b9d2 100644--- a/solr/core/src/test/org/apache/solr/update/processor/CategoryRoutedAliasUpdateProcessorTest.java+++ b/solr/core/src/test/org/apache/solr/update/processor/CategoryRoutedAliasUpdateProcessorTest.java@@ -56,6 +56,7 @@ public class CategoryRoutedAliasUpdateProcessorTest extends RoutedAliasUpdateProprivate int lastDocId = 0;private static CloudSolrClient solrClient;private int numDocsDeletedOrFailed = 0;+// uncomment to create pause for attaching profiler.// static {// JOptionPane.showMessageDialog(null,"Ready?");diff --git a/solr/core/src/test/org/apache/solr/update/processor/TestCloudDeduplication.java b/solr/core/src/test/org/apache/solr/update/processor/TestCloudDeduplication.javaindex b6f235865c2..6c1dcc0fa8b 100644--- a/solr/core/src/test/org/apache/solr/update/processor/TestCloudDeduplication.java+++ b/solr/core/src/test/org/apache/solr/update/processor/TestCloudDeduplication.java@@ -43,6 +43,7 @@ public class TestCloudDeduplication extends SolrCloudTestCase {/** One client per node */private static final List<SolrClient> NODE_CLIENTS = new ArrayList<>(7);+/*** clients (including cloud client) for easy randomization and looping of collection level* requestsdiff --git a/solr/core/src/test/org/apache/solr/update/processor/TolerantUpdateProcessorTest.java b/solr/core/src/test/org/apache/solr/update/processor/TolerantUpdateProcessorTest.javaindex 7b73f9c3937..5413e4d36b5 100644--- a/solr/core/src/test/org/apache/solr/update/processor/TolerantUpdateProcessorTest.java+++ b/solr/core/src/test/org/apache/solr/update/processor/TolerantUpdateProcessorTest.java@@ -50,6 +50,7 @@ public class TolerantUpdateProcessorTest extends UpdateProcessorTestBase {/** List of valid + invalid documents */private static List<SolrInputDocument> docs = null;+/** IDs of the invalid documents in <code>docs</code> */private static String[] badIds = null;diff --git a/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/OpenNLPExtractNamedEntitiesUpdateProcessorFactory.java b/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/OpenNLPExtractNamedEntitiesUpdateProcessorFactory.javaindex e2d6c77c50e..998d4fba78c 100644--- a/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/OpenNLPExtractNamedEntitiesUpdateProcessorFactory.java+++ b/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/OpenNLPExtractNamedEntitiesUpdateProcessorFactory.java@@ -200,6 +200,7 @@ public class OpenNLPExtractNamedEntitiesUpdateProcessorFactory extends UpdateReq* @see #pattern*/private String dest = null;+/*** @see #dest*/diff --git a/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java b/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.javaindex 7378f8f7a5b..7193d9f706a 100644--- a/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java+++ b/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationField.java@@ -162,6 +162,7 @@ public class TestICUCollationField extends SolrTestCaseJ4 {req("fl", "id", "q", "sort_ar:[\u062F TO \u0698]", "sort", "id asc"),"//*[@numFound='0']");}+/*** Test canonical decomposition with turkish primary strength. With this sort order, İ is the* uppercase form of i, and I is the uppercase form of ı. We index a decomposed form of İ.diff --git a/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java b/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.javaindex 2f1881c19da..2b14bd8a5c6 100644--- a/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java+++ b/solr/modules/analysis-extras/src/test/org/apache/solr/schema/TestICUCollationFieldDocValues.java@@ -145,6 +145,7 @@ public class TestICUCollationFieldDocValues extends SolrTestCaseJ4 {req("fl", "id", "q", "sort_ar:[\u062F TO \u0698]", "sort", "id asc"),"//*[@numFound='0']");}+/*** Test canonical decomposition with turkish primary strength. With this sort order, İ is the* uppercase form of i, and I is the uppercase form of ı. We index a decomposed form of İ.diff --git a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.javaindex c10b42c0cfe..5040abc6425 100644--- a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java+++ b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java@@ -65,8 +65,10 @@ public class ExtractingDocumentLoader extends ContentStreamLoader {/** Extract Only supported format */public static final String TEXT_FORMAT = "text";+/** Extract Only supported format. Default */public static final String XML_FORMAT = "xml";+/** XHTML XPath parser. */private static final XPathParser PARSER = new XPathParser("xhtml", XHTMLContentHandler.XHTML);diff --git a/solr/modules/hdfs/src/java/org/apache/solr/hdfs/store/blockcache/ReusedBufferedIndexOutput.java b/solr/modules/hdfs/src/java/org/apache/solr/hdfs/store/blockcache/ReusedBufferedIndexOutput.javaindex d93972967f9..5169b0eb246 100644--- a/solr/modules/hdfs/src/java/org/apache/solr/hdfs/store/blockcache/ReusedBufferedIndexOutput.java+++ b/solr/modules/hdfs/src/java/org/apache/solr/hdfs/store/blockcache/ReusedBufferedIndexOutput.java@@ -32,10 +32,13 @@ public abstract class ReusedBufferedIndexOutput extends IndexOutput {/** position in the file of buffer */private long bufferStart = 0;+/** end of valid bytes */private int bufferLength = 0;+/** next byte to write */private int bufferPosition = 0;+/** total length of the file */private long fileLength = 0;diff --git a/solr/modules/hdfs/src/java/org/apache/solr/hdfs/update/HdfsTransactionLog.java b/solr/modules/hdfs/src/java/org/apache/solr/hdfs/update/HdfsTransactionLog.javaindex a9dca90c98f..adff96ea638 100644--- a/solr/modules/hdfs/src/java/org/apache/solr/hdfs/update/HdfsTransactionLog.java+++ b/solr/modules/hdfs/src/java/org/apache/solr/hdfs/update/HdfsTransactionLog.java@@ -547,6 +547,7 @@ public class HdfsTransactionLog extends TransactionLog {int nextLength; // length of the next record (the next one closer to the start of the log file)long prevPos; // where we started reading from last time (so prevPos - nextLength == start of+// next record)public HDFSReverseReader() throws IOException {diff --git a/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java b/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.javaindex 1cc17d5deed..8731cccb346 100644--- a/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java+++ b/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java@@ -380,6 +380,7 @@ public class LTRScoringQuery extends Query implements Accountable {**/private final FeatureInfo[] featuresInfo;+/** @param modelFeatureWeights* - should be the same size as the number of features used by the modeldiff --git a/solr/modules/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java b/solr/modules/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.javaindex 0d591bd0122..071efbac9cc 100644--- a/solr/modules/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java+++ b/solr/modules/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java@@ -107,6 +107,7 @@ public class MultipleAdditiveTreesModel extends LTRScoringModel {* etc.*/private final HashMap<String, Integer> fname2index;+/*** trees is part of the LTRScoringModel params map and therefore here it does not individually* influence the class hashCode, equals, etc.diff --git a/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedFeatureStore.java b/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedFeatureStore.javaindex 787f6c6e77d..e867e7bbbad 100644--- a/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedFeatureStore.java+++ b/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedFeatureStore.java@@ -57,10 +57,13 @@ public class ManagedFeatureStore extends ManagedResource/** name of the attribute containing the feature class */static final String CLASS_KEY = "class";+/** name of the attribute containing the feature name */static final String NAME_KEY = "name";+/** name of the attribute containing the feature params */static final String PARAMS_KEY = "params";+/** name of the attribute containing the feature store used */static final String FEATURE_STORE_NAME_KEY = "store";diff --git a/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedModelStore.java b/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedModelStore.javaindex 37a0735e15e..918b06bd724 100644--- a/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedModelStore.java+++ b/solr/modules/ltr/src/java/org/apache/solr/ltr/store/rest/ManagedModelStore.java@@ -65,14 +65,19 @@ public class ManagedModelStore extends ManagedResource/** name of the attribute containing a class */static final String CLASS_KEY = "class";+/** name of the attribute containing the features */static final String FEATURES_KEY = "features";+/** name of the attribute containing a name */static final String NAME_KEY = "name";+/** name of the attribute containing a normalizer */static final String NORM_KEY = "norm";+/** name of the attribute containing parameters */static final String PARAMS_KEY = "params";+/** name of the attribute containing a store */static final String STORE_KEY = "store";diff --git a/solr/modules/ltr/src/test/org/apache/solr/ltr/model/TestAdapterModel.java b/solr/modules/ltr/src/test/org/apache/solr/ltr/model/TestAdapterModel.javaindex 96a68e67f66..606555d03ac 100644--- a/solr/modules/ltr/src/test/org/apache/solr/ltr/model/TestAdapterModel.java+++ b/solr/modules/ltr/src/test/org/apache/solr/ltr/model/TestAdapterModel.java@@ -106,6 +106,7 @@ public class TestAdapterModel extends TestRerankBase {* individually influence the class hashCode, equals, etc.*/private String answerFileName;+/*** answerValue is obtained from answerFileName and therefore here it does not individually* influence the class hashCode, equals, etc.diff --git a/solr/solr-ref-guide/modules/deployment-guide/examples/UsingSolrJRefGuideExamplesTest.java b/solr/solr-ref-guide/modules/deployment-guide/examples/UsingSolrJRefGuideExamplesTest.javaindex 4cdae9ea3ef..f4918781d2a 100644--- a/solr/solr-ref-guide/modules/deployment-guide/examples/UsingSolrJRefGuideExamplesTest.java+++ b/solr/solr-ref-guide/modules/deployment-guide/examples/UsingSolrJRefGuideExamplesTest.java@@ -297,6 +297,7 @@ public class UsingSolrJRefGuideExamplesTest extends SolrCloudTestCase {public TechProduct() {}}+// end::solrj-techproduct-value-type[]private void expectLine(String expectedLine) {diff --git a/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/Tuple.java b/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/Tuple.javaindex a13a90831c5..fdf992a9ed4 100644--- a/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/Tuple.java+++ b/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/Tuple.java@@ -42,6 +42,7 @@ public class Tuple implements Cloneable, MapWriter {* record from the stream, but it may contain metrics/aggregates gathered by underlying streams.*/public boolean EOF;+/*** When EXCEPTION field is true the Tuple marks an exception in the stream and the corresponding* "EXCEPTION" field contains a related message.diff --git a/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/UpdateStream.java b/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/UpdateStream.javaindex adf1640f671..8c3ba20fc8b 100644--- a/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/UpdateStream.java+++ b/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/UpdateStream.java@@ -51,6 +51,7 @@ public class UpdateStream extends TupleStream implements Expressible {private String collection;protected String zkHost;private int updateBatchSize;+/*** Indicates if the {@link CommonParams#VERSION_FIELD} should be removed from tuples when* converting to Solr Documents. May be set per expression using the <code>"pruneVersionField"diff --git a/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/CoalesceEvaluatorTest.java b/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/CoalesceEvaluatorTest.javaindex 539e0a1ce2e..b6e9fe36354 100644--- a/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/CoalesceEvaluatorTest.java+++ b/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/CoalesceEvaluatorTest.java@@ -36,6 +36,7 @@ public class CoalesceEvaluatorTest extends SolrTestCase {factory = new StreamFactory().withFunctionName("coalesce", CoalesceEvaluator.class);values = new HashMap<>();}+/*@Test(expected = IOException.class)public void twoFieldsWithMissingField() throws Exception{diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/cloud/DistribStateManager.java b/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/cloud/DistribStateManager.javaindex 3ec636de1a8..a8ca13e8be7 100644--- a/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/cloud/DistribStateManager.java+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/cloud/DistribStateManager.java@@ -78,16 +78,27 @@ public interface DistribStateManager extends SolrCloseable {throws AlreadyExistsException, IOException, KeeperException, InterruptedException;void removeData(String path, int version)- throws NoSuchElementException, IOException, NotEmptyException, KeeperException,- InterruptedException, BadVersionException;+ throws NoSuchElementException,+ IOException,+ NotEmptyException,+ KeeperException,+ InterruptedException,+ BadVersionException;void setData(String path, byte[] data, int version)- throws BadVersionException, NoSuchElementException, IOException, KeeperException,+ throws BadVersionException,+ NoSuchElementException,+ IOException,+ KeeperException,InterruptedException;List<OpResult> multi(final Iterable<Op> ops)- throws BadVersionException, NoSuchElementException, AlreadyExistsException, IOException,- KeeperException, InterruptedException;+ throws BadVersionException,+ NoSuchElementException,+ AlreadyExistsException,+ IOException,+ KeeperException,+ InterruptedException;/*** List a subtree including the root path, using breadth-first traversal.@@ -142,8 +153,12 @@ public interface DistribStateManager extends SolrCloseable {* @param includeRoot when true delete also the root path*/default void removeRecursively(String root, boolean ignoreMissing, boolean includeRoot)- throws NoSuchElementException, IOException, NotEmptyException, KeeperException,- InterruptedException, BadVersionException {+ throws NoSuchElementException,+ IOException,+ NotEmptyException,+ KeeperException,+ InterruptedException,+ BadVersionException {List<String> tree;try {tree = listTree(root);diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/impl/ZkDistribStateManager.java b/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/impl/ZkDistribStateManager.javaindex e5a987c38d9..815a5bd7b4f 100644--- a/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/impl/ZkDistribStateManager.java+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/client/solrj/impl/ZkDistribStateManager.java@@ -140,7 +140,10 @@ public class ZkDistribStateManager implements DistribStateManager {@Overridepublic String createData(String path, byte[] data, CreateMode mode)- throws NoSuchElementException, AlreadyExistsException, IOException, KeeperException,+ throws NoSuchElementException,+ AlreadyExistsException,+ IOException,+ KeeperException,InterruptedException {try {return zkClient.create(path, data, mode, true);@@ -156,8 +159,12 @@ public class ZkDistribStateManager implements DistribStateManager {@Overridepublic void removeData(String path, int version)- throws NoSuchElementException, BadVersionException, NotEmptyException, IOException,- KeeperException, InterruptedException {+ throws NoSuchElementException,+ BadVersionException,+ NotEmptyException,+ IOException,+ KeeperException,+ InterruptedException {try {zkClient.delete(path, version, true);} catch (KeeperException.NoNodeException e) {@@ -174,7 +181,10 @@ public class ZkDistribStateManager implements DistribStateManager {@Overridepublic void setData(String path, byte[] data, int version)- throws BadVersionException, NoSuchElementException, IOException, KeeperException,+ throws BadVersionException,+ NoSuchElementException,+ IOException,+ KeeperException,InterruptedException {try {zkClient.setData(path, data, version, true);@@ -190,8 +200,12 @@ public class ZkDistribStateManager implements DistribStateManager {@Overridepublic List<OpResult> multi(Iterable<Op> ops)- throws BadVersionException, AlreadyExistsException, NoSuchElementException, IOException,- KeeperException, InterruptedException {+ throws BadVersionException,+ AlreadyExistsException,+ NoSuchElementException,+ IOException,+ KeeperException,+ InterruptedException {try {return zkClient.multi(ops, true);} catch (KeeperException.NoNodeException e) {diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.javaindex 34d770c7a12..d571339880c 100644--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java@@ -52,6 +52,7 @@ public class ZkMaintenanceUtils {public static final String CONFIGS_ZKNODE = "/configs";public static final String UPLOAD_FILENAME_EXCLUDE_REGEX = "^\\..*$";+/** files matching this pattern will not be uploaded to ZkNode /configs */public static final Pattern UPLOAD_FILENAME_EXCLUDE_PATTERN =Pattern.compile(UPLOAD_FILENAME_EXCLUDE_REGEX);diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.javaindex 4879733e7fe..f6b736620ae 100644--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java@@ -82,6 +82,7 @@ public class ZkStateReader implements SolrCloseable {// if this flag equals to false and the replica does not exist in cluster state, set state op// become no op (default is true)public static final String FORCE_SET_STATE_PROP = Replica.ReplicaStateProps.FORCE_SET_STATE;+/** SolrCore name. */public static final String CORE_NAME_PROP = "core";@@ -115,6 +116,7 @@ public class ZkStateReader implements SolrCloseable {public static final String ROLES = "/roles.json";public static final String ALIASES = "/aliases.json";+/*** This ZooKeeper file is no longer used starting with Solr 9 but keeping the name around to check* if it is still present and non empty (in case of upgrade from previous Solr version). It useddiff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrClient.javaindex b4e65fe4a45..f79bba0a64b 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrClient.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrClient.java@@ -1044,6 +1044,7 @@ public abstract class SolrClient implements Serializable, Closeable {throws SolrServerException, IOException {return getById(collection, id, null);}+/*** Retrieves the SolrDocument associated with the given identifier.*diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp2SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp2SolrClient.javaindex 260d9a059c4..d32a8ecbec9 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp2SolrClient.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudHttp2SolrClient.java@@ -319,6 +319,7 @@ public class CloudHttp2SolrClient extends CloudSolrClient {this.defaultCollection = collection;return this;}+/*** Sets the cache ttl for DocCollection Objects cached.*diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrClient.javaindex 3141714f21d..298811c8f39 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrClient.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrClient.java@@ -439,6 +439,7 @@ public class ConcurrentUpdateSolrClient extends SolrClient {static class Update {UpdateRequest request;String collection;+/*** @param request the update request.* @param collection The collection, can be null.@@ -447,6 +448,7 @@ public class ConcurrentUpdateSolrClient extends SolrClient {this.request = request;this.collection = collection;}+/*** @return the update request.*/@@ -457,6 +459,7 @@ public class ConcurrentUpdateSolrClient extends SolrClient {public void setRequest(UpdateRequest request) {this.request = request;}+/*** @return the collection, can be null.*/diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.javaindex 0cf7abbf0d1..f6d8a08df98 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java@@ -147,6 +147,7 @@ public class Http2SolrClient extends SolrClient {protected RequestWriter requestWriter = new BinaryRequestWriter();private List<HttpListenerFactory> listenerFactory = new ArrayList<>();private final AsyncTracker asyncTracker = new AsyncTracker();+/** The URL of the Solr server. */private final String serverBaseUrl;@@ -1209,6 +1210,7 @@ public class Http2SolrClient extends SolrClient {withMaxConnectionsPerHost(max);return this;}+/*** Set maxConnectionsPerHost for http1 connections, maximum number http2 connections is limited* to 4diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.javaindex db3ad4543c6..e619ae716c4 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java@@ -2170,6 +2170,7 @@ public abstract class CollectionAdminRequest<T extends CollectionAdminResponse>return java.util.List.of(ROUTER_TYPE_NAME, ROUTER_FIELD, ROUTER_START, ROUTER_INTERVAL);}}+/*** Returns a SolrRequest to create a category routed alias.*diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/V2ApiConstants.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/V2ApiConstants.javaindex d499d75c890..50d5714e692 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/V2ApiConstants.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/V2ApiConstants.java@@ -23,6 +23,7 @@ public class V2ApiConstants {/** Parent key for collection or alias properties to set. */public static final String PROPERTIES_KEY = "properties";+/** Parent key for v2 params used to create a collection. */public static final String CREATE_COLLECTION_KEY = "create-collection";diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/response/IntervalFacet.java b/solr/solrj/src/java/org/apache/solr/client/solrj/response/IntervalFacet.javaindex 170e359692a..7fcae41928a 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/response/IntervalFacet.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/response/IntervalFacet.java@@ -55,6 +55,7 @@ public class IntervalFacet {* local param*/private final String key;+/** The count of this interval */private final int count;diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/response/Suggestion.java b/solr/solrj/src/java/org/apache/solr/client/solrj/response/Suggestion.javaindex 2a6e8ca46c7..c84878357df 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/response/Suggestion.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/response/Suggestion.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.client.solrj.response;+/*** This class models a Suggestion coming from Solr Suggest Component. It is a direct mapping fo the* Json object Solr is returning.diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/routing/NodePreferenceRulesComparator.java b/solr/solrj/src/java/org/apache/solr/client/solrj/routing/NodePreferenceRulesComparator.javaindex cc72caf5696..0585fd3f7d3 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/routing/NodePreferenceRulesComparator.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/routing/NodePreferenceRulesComparator.java@@ -104,6 +104,7 @@ public class NodePreferenceRulesComparator implements Comparator<Object> {private static final ReplicaListTransformerFactory NOOP_RLTF =(String configSpec, SolrParams requestParams, ReplicaListTransformerFactory fallback) ->NOOP_RLT;+/*** For compatibility with tests, which expect this constructor to have no effect on the *base** order.diff --git a/solr/solrj/src/java/org/apache/solr/cluster/api/Resource.java b/solr/solrj/src/java/org/apache/solr/cluster/api/Resource.javaindex 7a9737b4a84..0170de6e4e8 100644--- a/solr/solrj/src/java/org/apache/solr/cluster/api/Resource.java+++ b/solr/solrj/src/java/org/apache/solr/cluster/api/Resource.java@@ -25,6 +25,7 @@ import org.apache.solr.common.SolrException;public interface Resource {/** This is a full path. e.g schema.xml , solrconfig.xml , lang/stopwords.txt etc */String name();+/*** read a file/resource. The caller should consume the stream completely and should not hold a* reference to this stream. This method closes the stream soon after the method returnsdiff --git a/solr/solrj/src/java/org/apache/solr/cluster/api/SimpleMap.java b/solr/solrj/src/java/org/apache/solr/cluster/api/SimpleMap.javaindex 63e18408cf6..2b768a6f6bb 100644--- a/solr/solrj/src/java/org/apache/solr/cluster/api/SimpleMap.java+++ b/solr/solrj/src/java/org/apache/solr/cluster/api/SimpleMap.java@@ -54,6 +54,7 @@ public interface SimpleMap<T> extends MapWriter {}int size();+/*** iterate through all keys but abort in between if required The default impl is suboptimal.* Proper implementations must do it more efficientlydiff --git a/solr/solrj/src/java/org/apache/solr/common/ConfigNode.java b/solr/solrj/src/java/org/apache/solr/common/ConfigNode.javaindex 111739c3677..52bf65d043b 100644--- a/solr/solrj/src/java/org/apache/solr/common/ConfigNode.java+++ b/solr/solrj/src/java/org/apache/solr/common/ConfigNode.java@@ -117,6 +117,7 @@ public interface ConfigNode {default double doubleVal(double def) {return _double(txt(), def);}+/** Iterate through child nodes with the name and return the first child that matches */default ConfigNode child(Predicate<ConfigNode> test, String name) {ConfigNode[] result = new ConfigNode[1];diff --git a/solr/solrj/src/java/org/apache/solr/common/SolrDocument.java b/solr/solrj/src/java/org/apache/solr/common/SolrDocument.javaindex b57bef187f9..f9fc0393058 100644--- a/solr/solrj/src/java/org/apache/solr/common/SolrDocument.java+++ b/solr/solrj/src/java/org/apache/solr/common/SolrDocument.java@@ -402,6 +402,7 @@ public class SolrDocument extends SolrDocumentBase<Object, SolrDocument>public Set<Entry<String, Object>> entrySet() {return _fields.entrySet();}+// TODO: Shouldn't the input parameter here be a String? The _fields map requires a String.@Overridepublic Object get(Object key) {diff --git a/solr/solrj/src/java/org/apache/solr/common/annotation/JsonProperty.java b/solr/solrj/src/java/org/apache/solr/common/annotation/JsonProperty.javaindex ec4355733cc..3a03f9b4aee 100644--- a/solr/solrj/src/java/org/apache/solr/common/annotation/JsonProperty.java+++ b/solr/solrj/src/java/org/apache/solr/common/annotation/JsonProperty.java@@ -33,6 +33,7 @@ public @interface JsonProperty {String value() default "";boolean required() default false;+// not implemented// int index() default -1;diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java b/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.javaindex f70a5dc3e46..0d23ca58ab0 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java@@ -87,6 +87,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {int zkVersion) {this(name, slices, props, router, zkVersion, null);}+/*** @param name The name of the collection* @param slices The logical shards of the collection. This is used directly and a copy is not@@ -289,6 +290,7 @@ public class DocCollection extends ZkNodeProps implements Iterable<Slice> {new DocCollection(getName(), slices, propMap, router, znodeVersion, perReplicaStatesRef);return result;}+/** Return collection name. */public String getName() {return name;diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/Slice.java b/solr/solrj/src/java/org/apache/solr/common/cloud/Slice.javaindex 6648dd17e5c..9a570646661 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/Slice.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/Slice.java@@ -92,6 +92,7 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {replicasCopy.put(modified.getName(), modified);return new Slice(name, replicasCopy, propMap, collection);}+/** The slice's state. */public enum State {@@ -252,6 +253,7 @@ public class Slice extends ZkNodeProps implements Iterable<Replica> {public String getCollection() {return collection;}+/** Return slice name (shard id). */public String getName() {return name;diff --git a/solr/solrj/src/java/org/apache/solr/common/luke/FieldFlag.java b/solr/solrj/src/java/org/apache/solr/common/luke/FieldFlag.javaindex 6eafa7086c9..394ef89b56b 100644--- a/solr/solrj/src/java/org/apache/solr/common/luke/FieldFlag.java+++ b/solr/solrj/src/java/org/apache/solr/common/luke/FieldFlag.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.common.luke;+/*** @since solr 1.3*/diff --git a/solr/solrj/src/java/org/apache/solr/common/params/CollectionAdminParams.java b/solr/solrj/src/java/org/apache/solr/common/params/CollectionAdminParams.javaindex eb143f3153a..33e5d1cf843 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/CollectionAdminParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/CollectionAdminParams.java@@ -107,6 +107,7 @@ public interface CollectionAdminParams {/** Option to follow aliases when deciding the target of a collection admin command. */String FOLLOW_ALIASES = "followAliases";+/*** When AddReplica is called with this set to true, then we do not try to find node assignments* for the add replica API. If set to true, a valid "node" should be specified.diff --git a/solr/solrj/src/java/org/apache/solr/common/params/CommonAdminParams.java b/solr/solrj/src/java/org/apache/solr/common/params/CommonAdminParams.javaindex 695eaf271cb..c8745125341 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/CommonAdminParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/CommonAdminParams.java@@ -20,20 +20,28 @@ public interface CommonAdminParams {/** Async or not? * */String ASYNC = "async";+/** Wait for final state of the operation. */String WAIT_FOR_FINAL_STATE = "waitForFinalState";+/** Allow in-place move of replicas that use shared filesystems. */String IN_PLACE_MOVE = "inPlaceMove";+/** Method to use for shard splitting. */String SPLIT_METHOD = "splitMethod";+/** Key to use during shard splitting */String SPLIT_KEY = "split.key";+/** Check distribution of documents to prefixes in shard to determine how to split */String SPLIT_BY_PREFIX = "splitByPrefix";+/** Number of sub-shards to create. * */String NUM_SUB_SHARDS = "numSubShards";+/** Timeout for replicas to become active. */String TIMEOUT = "timeout";+/** Inexact shard splitting factor. */String SPLIT_FUZZ = "splitFuzz";}diff --git a/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java b/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.javaindex e6408744846..071eb0a0d3d 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java@@ -86,6 +86,7 @@ public interface CommonParams {/** "ping" value for SolrPing action */String PING = "ping";+// SOLR-4228 end/** stylesheet to apply to XML results */@@ -112,19 +113,23 @@ public interface CommonParams {/** {@link #DEBUG} value indicating an interest in debug output related to timing */String TIMING = "timing";+/*** {@link #DEBUG} value indicating an interest in debug output related to the results (explains)*/String RESULTS = "results";+/*** {@link #DEBUG} value indicating an interest in debug output related to the Query (parsing,* etc.)*/String QUERY = "query";+/*** {@link #DEBUG} value indicating an interest in debug output related to the distributed tracking*/String TRACK = "track";+/*** boolean indicating whether score explanations should structured (true), or plain text (false)*/diff --git a/solr/solrj/src/java/org/apache/solr/common/params/EventParams.java b/solr/solrj/src/java/org/apache/solr/common/params/EventParams.javaindex bfe36290fdf..c38b93ef38b 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/EventParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/EventParams.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.common.params;+/** */public interface EventParams {/** Event param for things like newSearcher, firstSearcher* */diff --git a/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.java b/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.javaindex 865db3275f4..d6bc7273bcb 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/FacetParams.java@@ -59,6 +59,7 @@ public interface FacetParams {* (multi-value)*/public static final String FACET_QUERY = FACET + ".query";+/*** Any field whose terms the user wants to enumerate over for Facet Constraint Counts* (multi-value)@@ -164,21 +165,25 @@ public interface FacetParams {* Any field whose terms the user wants to enumerate over for Facet Contraint Counts (multi-value)*/public static final String FACET_DATE = FACET + ".date";+/*** Date string indicating the starting point for a date facet range. Can be overridden on a per* field basis.*/public static final String FACET_DATE_START = FACET_DATE + ".start";+/*** Date string indicating the ending point for a date facet range. Can be overridden on a per* field basis.*/public static final String FACET_DATE_END = FACET_DATE + ".end";+/*** Date Math string indicating the interval of sub-ranges for a date facet range. Can be* overridden on a per field basis.*/public static final String FACET_DATE_GAP = FACET_DATE + ".gap";+/*** Boolean indicating how counts should be computed if the range between 'start' and 'end' is not* evenly divisible by 'gap'. If this value is true, then all counts of ranges involving the 'end'@@ -192,6 +197,7 @@ public interface FacetParams {* <p>Can be overridden on a per field basis.*/public static final String FACET_DATE_HARD_END = FACET_DATE + ".hardend";+/*** String indicating what "other" ranges should be computed for a date facet range (multi-value).*@@ -220,21 +226,25 @@ public interface FacetParams {* selected ranges.*/public static final String FACET_RANGE = FACET + ".range";+/*** Number indicating the starting point for a numerical range facet. Can be overridden on a per* field basis.*/public static final String FACET_RANGE_START = FACET_RANGE + ".start";+/*** Number indicating the ending point for a numerical range facet. Can be overridden on a per* field basis.*/public static final String FACET_RANGE_END = FACET_RANGE + ".end";+/*** Number indicating the interval of sub-ranges for a numerical facet range. Can be overridden on* a per field basis.*/public static final String FACET_RANGE_GAP = FACET_RANGE + ".gap";+/*** Boolean indicating how counts should be computed if the range between 'start' and 'end' is not* evenly divisible by 'gap'. If this value is true, then all counts of ranges involving the 'end'@@ -248,6 +258,7 @@ public interface FacetParams {* <p>Can be overridden on a per field basis.*/public static final String FACET_RANGE_HARD_END = FACET_RANGE + ".hardend";+/*** String indicating what "other" ranges should be computed for a numerical range facet* (multi-value). Can be overridden on a per field basis.@@ -410,6 +421,7 @@ public interface FacetParams {e);}}+/*** Convinience method for parsing the param value according to the correct semantics and* applying the default of "LOWER"diff --git a/solr/solrj/src/java/org/apache/solr/common/params/GroupParams.java b/solr/solrj/src/java/org/apache/solr/common/params/GroupParams.javaindex 77e70d8f966..9dad710181b 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/GroupParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/GroupParams.java@@ -27,6 +27,7 @@ public interface GroupParams {/** the limit for the number of documents in each group */public static final String GROUP_LIMIT = GROUP + ".limit";+/** the offset for the doclist of each group */public static final String GROUP_OFFSET = GROUP + ".offset";diff --git a/solr/solrj/src/java/org/apache/solr/common/params/ModifiableSolrParams.java b/solr/solrj/src/java/org/apache/solr/common/params/ModifiableSolrParams.javaindex 331773660ed..88edbe2e720 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/ModifiableSolrParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/ModifiableSolrParams.java@@ -77,6 +77,7 @@ public class ModifiableSolrParams extends SolrParams {if (val != null) set(name, String.valueOf(val));return this;}+// ----------------------------------------------------------------// ----------------------------------------------------------------diff --git a/solr/solrj/src/java/org/apache/solr/common/params/QueryElevationParams.java b/solr/solrj/src/java/org/apache/solr/common/params/QueryElevationParams.javaindex 9cc9c2321fc..e81e98d8435 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/QueryElevationParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/QueryElevationParams.java@@ -24,6 +24,7 @@ public interface QueryElevationParams {String FORCE_ELEVATION = "forceElevation";String IDS = "elevateIds";String EXCLUDE = "excludeIds";+/*** The name of the field that editorial results will be written out as when using the* QueryElevationComponent, which automatically configures the EditorialMarkerFactory. The defaultdiff --git a/solr/solrj/src/java/org/apache/solr/common/params/SimpleParams.java b/solr/solrj/src/java/org/apache/solr/common/params/SimpleParams.javaindex 3b8dcdc6021..a921d251aca 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/SimpleParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/SimpleParams.java@@ -26,22 +26,31 @@ public interface SimpleParams {/** Enables {@code AND} operator (+) */public static final String AND_OPERATOR = "AND";+/** Enables {@code NOT} operator (-) */public static final String NOT_OPERATOR = "NOT";+/** Enables {@code OR} operator (|) */public static final String OR_OPERATOR = "OR";+/** Enables {@code PREFIX} operator (*) */public static final String PREFIX_OPERATOR = "PREFIX";+/** Enables {@code PHRASE} operator (") */public static final String PHRASE_OPERATOR = "PHRASE";+/** Enables {@code PRECEDENCE} operators: {@code (} and {@code )} */public static final String PRECEDENCE_OPERATORS = "PRECEDENCE";+/** Enables {@code ESCAPE} operator (\) */public static final String ESCAPE_OPERATOR = "ESCAPE";+/** Enables {@code WHITESPACE} operators: ' ' '\n' '\r' '\t' */public static final String WHITESPACE_OPERATOR = "WHITESPACE";+/** Enables {@code FUZZY} operator (~) */public static final String FUZZY_OPERATOR = "FUZZY";+/** Enables {@code NEAR} operator (~) */public static final String NEAR_OPERATOR = "NEAR";}diff --git a/solr/solrj/src/java/org/apache/solr/common/params/SolrParams.java b/solr/solrj/src/java/org/apache/solr/common/params/SolrParams.javaindex 3074ddd5e9e..2d2fbe9d837 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/SolrParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/SolrParams.java@@ -129,6 +129,7 @@ public abstract class SolrParamspublic Stream<Map.Entry<String, String[]>> stream() {return StreamSupport.stream(spliterator(), false);}+// Do we add Map.forEach equivalent too? But it eager-fetches the value, and Iterable<Map.Entry>// allows the user to only get the value when needed.diff --git a/solr/solrj/src/java/org/apache/solr/common/params/SpatialParams.java b/solr/solrj/src/java/org/apache/solr/common/params/SpatialParams.javaindex 8c4039e4e14..9fdbe175d61 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/SpatialParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/SpatialParams.java@@ -15,16 +15,20 @@* limitations under the License.*/package org.apache.solr.common.params;+/** */public interface SpatialParams {public static final String POINT = "pt";public static final String DISTANCE = "d";// the field that contains the points we are measuring from "pt"public static final String FIELD = "sfield";+/** km - kilometers mi - miles */public static final String UNITS = "units";+/** The distance measure to use. */public static final String MEASURE = "meas";+/** The radius of the sphere to use to in calculating spherical distances like Haversine */public static final String SPHERE_RADIUS = "sphere_radius";}diff --git a/solr/solrj/src/java/org/apache/solr/common/params/SpellingParams.java b/solr/solrj/src/java/org/apache/solr/common/params/SpellingParams.javaindex c3eeaa40edc..e6551ea30fb 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/SpellingParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/SpellingParams.java@@ -109,11 +109,13 @@ public interface SpellingParams {/** Take the top suggestion for each token and create a new query from it */public static final String SPELLCHECK_COLLATE = SPELLCHECK_PREFIX + "collate";+/*** The maximum number of collations to return. Default=1. Ignored if "spellcheck.collate" is* false.*/public static final String SPELLCHECK_MAX_COLLATIONS = SPELLCHECK_PREFIX + "maxCollations";+/*** The maximum number of collations to test by querying against the index. When testing, the* collation is substituted for the original query's "q" param. Any "qf"s are retained. If this is@@ -122,6 +124,7 @@ public interface SpellingParams {*/public static final String SPELLCHECK_MAX_COLLATION_TRIES =SPELLCHECK_PREFIX + "maxCollationTries";+/*** The maximum number of word correction combinations to rank and evaluate prior to deciding which* collation candidates to test against the index. This is a performance safety-net in cases a@@ -129,6 +132,7 @@ public interface SpellingParams {*/public static final String SPELLCHECK_MAX_COLLATION_EVALUATIONS =SPELLCHECK_PREFIX + "maxCollationEvaluations";+/*** For use with {@link SpellingParams#SPELLCHECK_MAX_COLLATION_TRIES} and {@link* SpellingParams#SPELLCHECK_COLLATE_EXTENDED_RESULTS}. A performance optimization in cases where@@ -144,6 +148,7 @@ public interface SpellingParams {*/public static final String SPELLCHECK_COLLATE_MAX_COLLECT_DOCS =SPELLCHECK_PREFIX + "collateMaxCollectDocs";+/*** Whether to use the Extended Results Format for collations. Includes "before>after" pairs to* easily allow clients to generate messages like "no results for PORK. did you mean POLK?" Also@@ -164,6 +169,7 @@ public interface SpellingParams {*/public static final String SPELLCHECK_COLLATE_PARAM_OVERRIDE =SPELLCHECK_PREFIX + "collateParam.";+/** Certain spelling implementations may allow for an accuracy setting. */public static final String SPELLCHECK_ACCURACY = SPELLCHECK_PREFIX + "accuracy";}diff --git a/solr/solrj/src/java/org/apache/solr/common/params/TermVectorParams.java b/solr/solrj/src/java/org/apache/solr/common/params/TermVectorParams.javaindex 6a54f3da059..a26ba14d970 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/TermVectorParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/TermVectorParams.java@@ -15,6 +15,7 @@* limitations under the License.*/package org.apache.solr.common.params;+/** */public interface TermVectorParams {@@ -22,12 +23,16 @@ public interface TermVectorParams {/** Return Term Frequency info */public static final String TF = TV_PREFIX + "tf";+/** Return Term Vector position information */public static final String POSITIONS = TV_PREFIX + "positions";+/** Return Term Vector payloads information */public static final String PAYLOADS = TV_PREFIX + "payloads";+/** Return offset information, if available */public static final String OFFSETS = TV_PREFIX + "offsets";+/** Return IDF information. May be expensive */public static final String DF = TV_PREFIX + "df";diff --git a/solr/solrj/src/java/org/apache/solr/common/params/TermsParams.java b/solr/solrj/src/java/org/apache/solr/common/params/TermsParams.javaindex 129c7e204b8..ae2b19950e8 100644--- a/solr/solrj/src/java/org/apache/solr/common/params/TermsParams.java+++ b/solr/solrj/src/java/org/apache/solr/common/params/TermsParams.java@@ -54,6 +54,7 @@ public interface TermsParams {* @see #TERMS_UPPER_INCLUSIVE*/public static final String TERMS_UPPER = TERMS_PREFIX + "upper";+/** Optional. If true, include the upper bound term in the results. False by default. */public static final String TERMS_UPPER_INCLUSIVE = TERMS_PREFIX + "upper.incl";diff --git a/solr/solrj/src/java/org/apache/solr/common/util/CommonTestInjection.java b/solr/solrj/src/java/org/apache/solr/common/util/CommonTestInjection.javaindex bcacd715a71..f6f75a8ef32 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/CommonTestInjection.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/CommonTestInjection.java@@ -140,6 +140,7 @@ public class CommonTestInjection {*/public static class BreakpointSetter implements Closeable {private Set<String> keys = new HashSet<>();+/*** This is usually set by the test cases.*diff --git a/solr/solrj/src/java/org/apache/solr/common/util/DataEntry.java b/solr/solrj/src/java/org/apache/solr/common/util/DataEntry.javaindex 5c45ee2f5ad..46ec680d96f 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/DataEntry.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/DataEntry.java@@ -113,6 +113,7 @@ public interface DataEntry {BYTEARR(false),/** don't know how to stream it. read as an object using {{@link DataEntry#val()}} method */JAVA_OBJ(false);+/** A primitive type which usually maps to a java primitive */public final boolean isPrimitive;diff --git a/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java b/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.javaindex f70c0bd583a..83b6570e0d7 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java@@ -537,6 +537,7 @@ public class JavaBinCodec implements PushWriter {dis.readFully(arr);return arr;}+// use this to ignore the writable interface because , child docs will ignore the fl flag// is it a good design?private boolean ignoreWritable = false;diff --git a/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java b/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.javaindex 919814c8d69..36ad860fb1b 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/JsonRecordReader.java@@ -63,6 +63,7 @@ public class JsonRecordReader {}private JsonRecordReader() {}+/*** a '|' separated list of path expressions which define sub sections of the JSON stream that are* to be emitted as separate records. It is possible to have multiple levels of split one fordiff --git a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.javaindex 86bc81a1318..b6587746173 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java@@ -516,6 +516,7 @@ public class NamedList<T>}return result;}+/*** Create SolrParams from NamedList. Values must be {@code String[]} or {@code List} (with* toString()-appropriate entries), or otherwise have a toString()-appropriate value. Nulls arediff --git a/solr/solrj/src/java/org/apache/solr/common/util/PropertiesUtil.java b/solr/solrj/src/java/org/apache/solr/common/util/PropertiesUtil.javaindex e6a8a08d75d..a2b0f0a250f 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/PropertiesUtil.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/PropertiesUtil.java@@ -33,6 +33,7 @@ public class PropertiesUtil {if (coreProperties == null) return substitute(value, null);return substitute(value, coreProperties::getProperty);}+/** This method borrowed from Ant's PropertyHelper.replaceProperties:* http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.javadiff --git a/solr/solrj/src/java/org/noggit/JSONParser.java b/solr/solrj/src/java/org/noggit/JSONParser.javaindex 9ae474728d1..187dba3ee15 100644--- a/solr/solrj/src/java/org/noggit/JSONParser.java+++ b/solr/solrj/src/java/org/noggit/JSONParser.java@@ -26,32 +26,42 @@ public class JSONParser {/** Event indicating a JSON string value, including member names of objects */public static final int STRING = 1;+/** Event indicating a JSON number value which fits into a signed 64 bit integer */public static final int LONG = 2;+/*** Event indicating a JSON number value which has a fractional part or an exponent and with string* length <= 23 chars not including sign. This covers all representations of normal values for* Double.toString().*/public static final int NUMBER = 3;+/*** Event indicating a JSON number value that was not produced by toString of any Java primitive* numerics such as Double or Long. It is either an integer outside the range of a 64 bit signed* integer, or a floating point value with a string representation of more than 23 chars.*/public static final int BIGNUMBER = 4;+/** Event indicating a JSON boolean */public static final int BOOLEAN = 5;+/** Event indicating a JSON null */public static final int NULL = 6;+/** Event indicating the start of a JSON object */public static final int OBJECT_START = 7;+/** Event indicating the end of a JSON object */public static final int OBJECT_END = 8;+/** Event indicating the start of a JSON array */public static final int ARRAY_START = 9;+/** Event indicating the end of a JSON array */public static final int ARRAY_END = 10;+/** Event indicating the end of input has been reached */public static final int EOF = 11;@@ -62,6 +72,7 @@ public class JSONParser {public static final int ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER = 1 << 2;public static final int ALLOW_UNQUOTED_KEYS = 1 << 3;public static final int ALLOW_UNQUOTED_STRING_VALUES = 1 << 4;+/*** ALLOW_EXTRA_COMMAS causes any number of extra commas in arrays and objects to be ignored Note* that a trailing comma in [] would be [,] (hence calling the feature "trailing" commas is eitherdiff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java b/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.javaindex 06c0da66e05..f45c94ca73b 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java@@ -2982,6 +2982,7 @@ public abstract class SolrExampleTests extends SolrExampleTestsBase {/** used by genNestedDocuments */private int idCounter = 0;+/** used by genNestedDocuments */private static final String[] names = new String[] {"java", "python", "scala", "ruby", "clojure"};@@ -3011,8 +3012,12 @@ public abstract class SolrExampleTests extends SolrExampleTestsBase {@Testpublic void testAddChildToChildFreeDoc()- throws IOException, SolrServerException, IllegalArgumentException, IllegalAccessException,- SecurityException, NoSuchFieldException {+ throws IOException,+ SolrServerException,+ IllegalArgumentException,+ IllegalAccessException,+ SecurityException,+ NoSuchFieldException {SolrClient client = getSolrClient();client.deleteByQuery("*:*");@@ -3054,8 +3059,12 @@ public abstract class SolrExampleTests extends SolrExampleTestsBase {@Testpublic void testDeleteParentDoc()- throws IOException, SolrServerException, IllegalArgumentException, IllegalAccessException,- SecurityException, NoSuchFieldException {+ throws IOException,+ SolrServerException,+ IllegalArgumentException,+ IllegalAccessException,+ SecurityException,+ NoSuchFieldException {SolrClient client = getSolrClient();client.deleteByQuery("*:*");diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.javaindex bce1d5fc332..2c4f4657d99 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java@@ -173,7 +173,7 @@ public class CloudHttp2SolrClientTest extends SolrCloudTestCase {"There should be one document because overwrite=true", 1, resp.getResults().getNumFound());new UpdateRequest()- .add(new SolrInputDocument(id, "1", "a_t", "hello1"), /* overwrite = */ false)+ .add(new SolrInputDocument(id, "1", "a_t", "hello1"), /* overwrite= */ false).add(new SolrInputDocument(id, "1", "a_t", "hello2"), false).commit(cluster.getSolrClient(), "overwrite");diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.javaindex cd19861577f..714b284da49 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java@@ -171,7 +171,7 @@ public class CloudSolrClientTest extends SolrCloudTestCase {"There should be one document because overwrite=true", 1, resp.getResults().getNumFound());new UpdateRequest()- .add(new SolrInputDocument(id, "1", "a_t", "hello1"), /* overwrite = */ false)+ .add(new SolrInputDocument(id, "1", "a_t", "hello1"), /* overwrite= */ false).add(new SolrInputDocument(id, "1", "a_t", "hello2"), false).commit(cluster.getSolrClient(), "overwrite");diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.javaindex 111e2c4580d..0099320f875 100644--- a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java+++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java@@ -368,11 +368,13 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {* mocks and not real networking to simulate failure*/public static final String DEAD_HOST_1 = "[::1]:4";+/*** a "dead" host, if you try to connect to it, it will likely fail fast please consider using* mocks and not real networking to simulate failure*/public static final String DEAD_HOST_2 = "[::1]:6";+/*** a "dead" host, if you try to connect to it, it will likely fail fast please consider using* mocks and not real networking to simulate failure@@ -435,6 +437,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {private static boolean changedFactory = false;private static String savedFactory;+/** Use a different directory factory. Passing "null" sets to an FS-based factory */public static void useFactory(String factory) throws Exception {// allow calling more than once so a subclass can override a base class@@ -599,6 +602,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {}return dataDir;}+/*** Counter for ensuring we don't ask {@link #createTempDir} to try and re-create the same dir* prefix over and over.@@ -1024,6 +1028,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {public static String assertJQ(SolrQueryRequest req, String... tests) throws Exception {return assertJQ(req, JSONTestUtil.DEFAULT_DELTA, tests);}+/*** Validates a query matches some JSON test expressions and closes the query. The text expression* is of the form path:JSON. The Noggit JSON parser used accepts single quoted strings and bare@@ -1122,6 +1127,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {unIgnoreException(".");}}+/*** Makes sure a query throws a SolrException with the listed response code and expected message*@@ -1162,6 +1168,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {public static String optimize(String... args) {return TestHarness.optimize(args);}+/*** @see TestHarness#commit*/@@ -1244,6 +1251,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {public static String delI(String id) {return TestHarness.deleteById(id);}+/*** Generates a <delete>... XML string for an query*@@ -2284,6 +2292,7 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {Files.createDirectories(dstRoot.toPath());Files.copy(SolrTestCaseJ4.TEST_PATH().resolve(fromFile), dstRoot.toPath().resolve("solr.xml"));}+// Creates a consistent configuration, _including_ solr.xml at dstRoot. Creates collection1/conf// and copies the stock files in there.diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/FullThrottleStoppableIndexingThread.java b/solr/test-framework/src/java/org/apache/solr/cloud/FullThrottleStoppableIndexingThread.javaindex 2cea2f764bb..79413ed51e8 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/FullThrottleStoppableIndexingThread.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/FullThrottleStoppableIndexingThread.java@@ -36,6 +36,7 @@ import org.slf4j.LoggerFactory;class FullThrottleStoppableIndexingThread extends StoppableIndexingThread {private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());+/** */private final HttpClient httpClient;diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java b/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.javaindex 3b8d4e1c774..5edb9ed909d 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java@@ -246,6 +246,7 @@ public class MiniSolrCloudCluster {false,formatZkServer);}+/*** Create a MiniSolrCloudCluster. Note - this constructor visibility is changed to package* protected so as to discourage its usage. Ideally *new* functionality should use {@linkplaindiff --git a/solr/test-framework/src/java/org/apache/solr/cloud/SolrCloudAuthTestCase.java b/solr/test-framework/src/java/org/apache/solr/cloud/SolrCloudAuthTestCase.javaindex 88ff21ec2be..1458e7486ab 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/SolrCloudAuthTestCase.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/SolrCloudAuthTestCase.java@@ -96,6 +96,7 @@ public class SolrCloudAuthTestCase extends SolrCloudTestCase {public static void disableMetrics() {System.clearProperty("metricsEnabled");}+/** Used to check metric counts for PKI auth */protected void assertPkiAuthMetricsMinimums(int requests,diff --git a/solr/test-framework/src/java/org/apache/solr/cluster/placement/ClusterAbstractionsForTest.java b/solr/test-framework/src/java/org/apache/solr/cluster/placement/ClusterAbstractionsForTest.javaindex f84e6353215..43c2d520421 100644--- a/solr/test-framework/src/java/org/apache/solr/cluster/placement/ClusterAbstractionsForTest.java+++ b/solr/test-framework/src/java/org/apache/solr/cluster/placement/ClusterAbstractionsForTest.java@@ -109,6 +109,7 @@ class ClusterAbstractionsForTest {static class SolrCollectionImpl implements SolrCollection {private final String collectionName;+/** Map from {@link Shard#getShardName()} to {@link Shard} */private Map<String, Shard> shards;diff --git a/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java b/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.javaindex 1130df5d7ce..8fce258bbd3 100644--- a/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java+++ b/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java@@ -851,6 +851,7 @@ public class JettySolrRunner {throw new RuntimeException(e);}}+/*** Returns a base URL consisting of the protocol, host, and port for a Connector in use by the* Jetty Server contained in this runner.diff --git a/solr/test-framework/src/java/org/apache/solr/util/ErrorLogMuter.java b/solr/test-framework/src/java/org/apache/solr/util/ErrorLogMuter.javaindex fdd2b78b29f..4de7e2ec1cf 100644--- a/solr/test-framework/src/java/org/apache/solr/util/ErrorLogMuter.java+++ b/solr/test-framework/src/java/org/apache/solr/util/ErrorLogMuter.java@@ -68,6 +68,7 @@ public final class ErrorLogMuter implements Closeable, AutoCloseable {* @see #createName*/private static final AtomicInteger ID_GEN = new AtomicInteger(0);+/** generate a unique name for each muter to use in it's own lifecycle logging */private static String createName(final String type) {return MethodHandles.lookup().lookupClass().getSimpleName()@@ -96,6 +97,7 @@ public final class ErrorLogMuter implements Closeable, AutoCloseable {public static ErrorLogMuter regex(final String regex) {return regex(Pattern.compile(regex));}+/*** Mutes ERROR log messages that <em>partially</em> match the specified regex.*diff --git a/solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.java b/solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.javaindex ca2e762e6a5..122b01829a2 100644--- a/solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.java+++ b/solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.java@@ -35,15 +35,18 @@ public class ExternalPaths {* and if it is null, those paths will just be relative to 'null' and may not be meaningful.*/public static final String SOURCE_HOME = determineSourceHome();+/*** @see #SOURCE_HOME*/public static String WEBAPP_HOME = new File(SOURCE_HOME, "webapp/web").getAbsolutePath();+/*** @see #SOURCE_HOME*/public static String DEFAULT_CONFIGSET =new File(SOURCE_HOME, "server/solr/configsets/_default/conf").getAbsolutePath();+/*** @see #SOURCE_HOME*/diff --git a/solr/test-framework/src/java/org/apache/solr/util/LogListener.java b/solr/test-framework/src/java/org/apache/solr/util/LogListener.javaindex 2853fff7917..d989cda6c3f 100644--- a/solr/test-framework/src/java/org/apache/solr/util/LogListener.java+++ b/solr/test-framework/src/java/org/apache/solr/util/LogListener.java@@ -107,6 +107,7 @@ public final class LogListener implements Closeable, AutoCloseable {* @see #createName*/private static final AtomicInteger ID_GEN = new AtomicInteger(0);+/** generate a unique name for each instance to use in it's own lifecycle logging */private static String createName(final Level level) {return MethodHandles.lookup().lookupClass().getSimpleName()@@ -120,10 +121,12 @@ public final class LogListener implements Closeable, AutoCloseable {public static LogListener error() {return error("");}+/** Listens for ERROR log messages for the specified logger */public static LogListener error(final Class<?> logger) {return error(logger.getName());}+/** Listens for ERROR log messages for the specified logger */public static LogListener error(final String logger) {return create(Level.ERROR, logger);@@ -133,10 +136,12 @@ public final class LogListener implements Closeable, AutoCloseable {public static LogListener warn() {return warn("");}+/** Listens for WARN log messages for the specified logger */public static LogListener warn(final Class<?> logger) {return warn(logger.getName());}+/** Listens for WARN log messages for the specified logger */public static LogListener warn(final String logger) {return create(Level.WARN, logger);@@ -146,10 +151,12 @@ public final class LogListener implements Closeable, AutoCloseable {public static LogListener info() {return info("");}+/** Listens for INFO log messages for the specified logger */public static LogListener info(final Class<?> logger) {return info(logger.getName());}+/** Listens for INFO log messages for the specified logger */public static LogListener info(final String logger) {return create(Level.INFO, logger);@@ -159,10 +166,12 @@ public final class LogListener implements Closeable, AutoCloseable {public static LogListener debug() {return debug("");}+/** Listens for DEBUG log messages for the specified logger */public static LogListener debug(final Class<?> logger) {return debug(logger.getName());}+/** Listens for DEBUG log messages for the specified logger */public static LogListener debug(final String logger) {return create(Level.DEBUG, logger);diff --git a/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java b/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.javaindex 8ac08587a50..475f49d6aec 100644--- a/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java+++ b/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java@@ -41,8 +41,10 @@ public @interface RandomizeSSL {// we don't choose ssl that often by default because of SOLR-5776public static final double DEFAULT_ODDS = 0.2D;+/** Comment to inlcude when logging details of SSL randomization */public String reason() default "";+/*** Odds (as ratio relative to 1) that SSL should be selected in a typical run. Must either be* betwen 0.0 and 1.0 (inclusively) or NaN in which case a sensible should be used. Actual Odds@@ -54,6 +56,7 @@ public @interface RandomizeSSL {* @see LuceneTestCase#RANDOM_MULTIPLIER*/public double ssl() default Double.NaN;+/*** Odds (as ratio relative to 1) that SSL should be selected in a typical run. Must either be* betwen 0.0 and 1.0 (inclusively) or NaN in which case the effective value of {@link #ssl}@@ -69,6 +72,7 @@ public @interface RandomizeSSL {* @see LuceneTestCase#RANDOM_MULTIPLIER*/public double clientAuth() default Double.NaN;+/*** A shorthand option for controlling both {@link #ssl} and {@link #clientAuth} with a single* numeric value, For example: <code>@RandomizeSSL(0.5)</code>.@@ -85,6 +89,7 @@ public @interface RandomizeSSL {public final double ssl;public final double clientAuth;public final String debug;+/*** @lucene.internal*/diff --git a/solr/test-framework/src/java/org/apache/solr/util/RestTestHarness.java b/solr/test-framework/src/java/org/apache/solr/util/RestTestHarness.javaindex 05e56207b95..5640c312406 100644--- a/solr/test-framework/src/java/org/apache/solr/util/RestTestHarness.java+++ b/solr/test-framework/src/java/org/apache/solr/util/RestTestHarness.java@@ -183,6 +183,7 @@ public class RestTestHarness extends BaseTestHarness implements Closeable {throw new RuntimeException("?!? static xpath has bug?", e);}}+/** Reloads the first core listed in the response to the core admin handler STATUS command */@Overridepublic void reload() throws Exception {diff --git a/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java b/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.javaindex 5242e9151ad..434ad9a6e7a 100644--- a/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java+++ b/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java@@ -161,7 +161,9 @@ public class SSLTestConfig {* (since that's what is almost always used during testing).*/public SSLContext buildClientSSLContext()- throws KeyManagementException, UnrecoverableKeyException, NoSuchAlgorithmException,+ throws KeyManagementException,+ UnrecoverableKeyException,+ NoSuchAlgorithmException,KeyStoreException {assert isSSLMode();@@ -322,6 +324,7 @@ public class SSLTestConfig {*/private static class NotSecurePseudoRandom extends SecureRandom {public static final SecureRandom INSTANCE = new NotSecurePseudoRandom();+/*** Helper method that can be used to fill an array with non-zero data. (Attempted workarround of* Solaris SSL Padding bug: SOLR-9068)@@ -339,11 +342,13 @@ public class SSLTestConfig {public byte[] engineGenerateSeed(int numBytes) {return fillData(new byte[numBytes]);}+/** fills the byte[] with static data */@Overridepublic void engineNextBytes(byte[] bytes) {fillData(bytes);}+/** NOOP */@Overridepublic void engineSetSeed(byte[] seed) {@@ -360,6 +365,7 @@ public class SSLTestConfig {public byte[] generateSeed(int numBytes) {return fillData(new byte[numBytes]);}+/** fills the byte[] with static data */@Overridepublic void nextBytes(byte[] bytes) {@@ -370,11 +376,13 @@ public class SSLTestConfig {public void nextBytes(byte[] bytes, SecureRandomParameters params) {fillData(bytes);}+/** NOOP */@Overridepublic void setSeed(byte[] seed) {/* NOOP */}+/** NOOP */@Overridepublic void setSeed(long seed) {diff --git a/solr/test-framework/src/java/org/apache/solr/util/TestHarness.java b/solr/test-framework/src/java/org/apache/solr/util/TestHarness.javaindex 37ac8cf0e38..7786d1c1d2e 100644--- a/solr/test-framework/src/java/org/apache/solr/util/TestHarness.java+++ b/solr/test-framework/src/java/org/apache/solr/util/TestHarness.java@@ -121,6 +121,7 @@ public class TestHarness extends BaseTestHarness {public TestHarness(String dataDirectory, SolrConfig solrConfig, String schemaFile) {this(dataDirectory, solrConfig, IndexSchemaFactory.buildIndexSchema(schemaFile, solrConfig));}+/*** @param dataDirectory path for index data, will not be cleaned up* @param solrConfig solrconfig instance@@ -432,6 +433,7 @@ public class TestHarness extends BaseTestHarness {public Map<String, String> args = new HashMap<>();public LocalRequestFactory() {}+/*** Creates a LocalSolrQueryRequest based on variable args; for historical reasons, this method* has some peculiar behavior: