Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Ref Guide: Miscellaneous cleanups (#258)

Cassandra Targettde9685756a0c
diff --git a/solr/solr-ref-guide/src/about-this-guide.adoc b/solr/solr-ref-guide/src/about-this-guide.adoc
index c8d8ec75980..e21f375cba5 100644
--- a/solr/solr-ref-guide/src/about-this-guide.adoc
+++ b/solr/solr-ref-guide/src/about-this-guide.adoc
@@ -53,10 +53,10 @@ The URL would then become:
Path information is given relative to `solr.home`, which is the location under the main Solr installation where Solr's collections and their `conf` and `data` directories are stored.
-In many cases, this is is in the `server/solr` directory of your installation.
+In many cases, this is in the `server/solr` directory of your installation.
However, there can be exceptions, particularly if your installation has customized this.
-In several cases of this Guide, our examples are built from the the "techproducts" example (i.e., you have started Solr with the command `bin/solr -e techproducts`).
+In several cases of this Guide, our examples are built from the "techproducts" example (i.e., you have started Solr with the command `bin/solr -e techproducts`).
In this case, `solr.home` will be a sub-directory of the `example/` directory created for you automatically.
See also the section <<configuration-files.adoc#solr-home,Solr Home>> for further details on what is contained in this directory.
diff --git a/solr/solr-ref-guide/src/analytics.adoc b/solr/solr-ref-guide/src/analytics.adoc
index b66e974288b..2e79e9de668 100644
--- a/solr/solr-ref-guide/src/analytics.adoc
+++ b/solr/solr-ref-guide/src/analytics.adoc
@@ -63,7 +63,7 @@ An Analytics request is passed to Solr with the parameter `analytics` in a reque
<<requesthandlers-searchcomponents.adoc#search-handlers,Search Handler>>.
Since the analytics request is sent inside of a search handler request, it will compute results based on the result set determined by the search handler.
-For example, this curl command encodes and POSTs a simple analytics request to the the search handler:
+For example, this curl command encodes and POSTs a simple analytics request to the search handler:
[source,bash]
----
diff --git a/solr/solr-ref-guide/src/collapse-and-expand-results.adoc b/solr/solr-ref-guide/src/collapse-and-expand-results.adoc
index ea1f5373748..c103f024428 100644
--- a/solr/solr-ref-guide/src/collapse-and-expand-results.adoc
+++ b/solr/solr-ref-guide/src/collapse-and-expand-results.adoc
@@ -201,7 +201,7 @@ For example: searching for "grand child" documents and collapsing on a field tha
====
Specifing `hint=block` when collapsing on a field that is not unique per contiguous block of documents is not supported and may fail in unexpected ways; including the possibility of silently returning incorrect results.
-The implementation does not offer any safeguards against misuse on an unsupported field, since doing so would require the the same group level tracking as the non-Block collapsing implementation -- defeating the purpose of this optimization.
+The implementation does not offer any safeguards against misuse on an unsupported field, since doing so would require the same group level tracking as the non-Block collapsing implementation -- defeating the purpose of this optimization.
====
== Expand Component
diff --git a/solr/solr-ref-guide/src/collection-management.adoc b/solr/solr-ref-guide/src/collection-management.adoc
index b1b60402e9a..f77886c1997 100644
--- a/solr/solr-ref-guide/src/collection-management.adoc
+++ b/solr/solr-ref-guide/src/collection-management.adoc
@@ -317,7 +317,7 @@ curl -X POST http://localhost:8983/api/collections/techproducts_v2 -H 'Content-T
'
----
-Additional parameters can be passed in via the the `reload` key:
+Additional parameters can be passed in via the `reload` key:
[source,bash]
----
@@ -1195,7 +1195,7 @@ Data types shown in the response can be roughly divided into the following group
For example, for UTF-8 strings this represents the aggregated sum of the number of bytes in the strings' UTF-8 representation, for long numbers this is 8 bytes per value, etc.
* `terms_terms` - represents the aggregated size of the term dictionary.
-The size of this data is affected by the the number and length of unique terms, which in turn depends on the field size and the analysis chain.
+The size of this data is affected by the number and length of unique terms, which in turn depends on the field size and the analysis chain.
* `terms_postings` - represents the aggregated size of all term position and offset information, if present.
This information may be absent if position-based searching, such as phrase queries, is not needed.
@@ -1933,7 +1933,7 @@ See the parameter descriptions below for more information.
*Input*
-The following API command deletes the the first backup (`backupId=0`) at the specified repository location.
+The following API command deletes the first backup (`backupId=0`) at the specified repository location.
[.dynamic-tabs]
--
diff --git a/solr/solr-ref-guide/src/commits-transaction-logs.adoc b/solr/solr-ref-guide/src/commits-transaction-logs.adoc
index 1d5c26279f4..fc82503ad01 100644
--- a/solr/solr-ref-guide/src/commits-transaction-logs.adoc
+++ b/solr/solr-ref-guide/src/commits-transaction-logs.adoc
@@ -177,7 +177,7 @@ In the event of un-graceful shutdown, it can take up to the time specified in `a
The time chosen for `autoSoftCommit` determines the maximum time after a document is sent to Solr before it becomes searchable and does not affect the transaction log.
Choose as long an interval as your application can tolerate for this value, often 15-60 seconds is reasonable, or even longer depending on the requirements.
-In situations where the the time is set to a very short interval (say 1 second), consider disabling your caches (queryResultCache and filterCache especially) as they will have little utility.
+In situations where the time is set to a very short interval (say 1 second), consider disabling your caches (queryResultCache and filterCache especially) as they will have little utility.
TIP: For extremely high bulk indexing, especially for the initial load if there is no searching, consider turning off `autoSoftCommit` by specifying a value of `-1` for the maxTime parameter.
diff --git a/solr/solr-ref-guide/src/common-query-parameters.adoc b/solr/solr-ref-guide/src/common-query-parameters.adoc
index 26e6f06a4e6..ee20b2752e1 100644
--- a/solr/solr-ref-guide/src/common-query-parameters.adoc
+++ b/solr/solr-ref-guide/src/common-query-parameters.adoc
@@ -44,7 +44,7 @@ Solr can sort query responses according to:
* A SortableTextField which implicitly uses `docValues="true"` by default to allow sorting on the original input string regardless of the analyzers used for Searching.
* A single-valued TextField that uses an analyzer (such as the KeywordTokenizer) that produces only a single term per document.
TextField does not support `docValues="true"`, but a DocValue-like structure will be built on the fly at runtime.
-** *NOTE:* If you want to be able to sort on a field whose contents you want to tokenize to facilitate searching, <<copy-fields.adoc#,use a `copyField` directive>> in the the Schema to clone the field.
+** *NOTE:* If you want to be able to sort on a field whose contents you want to tokenize to facilitate searching, <<copy-fields.adoc#,use a `copyField` directive>> in the Schema to clone the field.
Then search on the field and sort on its clone.
In the case of primitive fields, or SortableTextFields, that are `multiValued="true"` the representative value used for each doc when sorting depends on the sort direction: The minimum value in each document is used for ascending (`asc`) sorting, while the maximal value in each document is used for descending (`desc`) sorting.
diff --git a/solr/solr-ref-guide/src/date-formatting-math.adoc b/solr/solr-ref-guide/src/date-formatting-math.adoc
index 1f1b7a8c62b..fd2bffe6a91 100644
--- a/solr/solr-ref-guide/src/date-formatting-math.adoc
+++ b/solr/solr-ref-guide/src/date-formatting-math.adoc
@@ -116,7 +116,7 @@ Note that while date math is most commonly used relative to `NOW` it can be appl
==== NOW
The `NOW` parameter is used internally by Solr to ensure consistent date math expression parsing across multiple nodes in a distributed request.
-But it can be specified to instruct Solr to use an arbitrary moment in time (past or future) to override for all situations where the the special value of "```NOW```" would impact date math expressions.
+But it can be specified to instruct Solr to use an arbitrary moment in time (past or future) to override for all situations where the special value of `NOW` would impact date math expressions.
It must be specified as a (long valued) milliseconds since epoch.
diff --git a/solr/solr-ref-guide/src/dsp.adoc b/solr/solr-ref-guide/src/dsp.adoc
index 54775c0da29..7e014b2aaef 100644
--- a/solr/solr-ref-guide/src/dsp.adoc
+++ b/solr/solr-ref-guide/src/dsp.adoc
@@ -174,7 +174,7 @@ Notice that the `conv` function is simply correlating the sine wave with itself.
The plot has a very distinct structure to it.
As the sine wave is slid across a copy of itself the correlation moves up and down in increasing intensity until it reaches a peak.
-This peak is directly in the center and is the the point where the sine waves are directly lined up.
+This peak is directly in the center and is the point where the sine waves are directly lined up.
Following the peak the correlation moves up and down in decreasing intensity as the sine wave slides farther away from being directly lined up.
This is the autocorrelation plot of a pure signal.
diff --git a/solr/solr-ref-guide/src/fields.adoc b/solr/solr-ref-guide/src/fields.adoc
index e8d6136d4dd..ce21946dfe6 100644
--- a/solr/solr-ref-guide/src/fields.adoc
+++ b/solr/solr-ref-guide/src/fields.adoc
@@ -68,7 +68,7 @@ If this property is not specified, there is no default.
== Optional Field Type Override Properties
Fields can have many of the same properties as field types.
-Properties from the table below which are specified on an individual field will override any explicit value for that property specified on the the `fieldType` of the field, or any implicit default property value provided by the underlying `fieldType` implementation.
+Properties from the table below which are specified on an individual field will override any explicit value for that property specified on the `fieldType` of the field, or any implicit default property value provided by the underlying `fieldType` implementation.
The table below is reproduced from <<field-type-definitions-and-properties.adoc#,Field Type Definitions and Properties>>, which has more details:
--
diff --git a/solr/solr-ref-guide/src/index-segments-merging.adoc b/solr/solr-ref-guide/src/index-segments-merging.adoc
index 7f6b8732731..34a3bdc1eab 100644
--- a/solr/solr-ref-guide/src/index-segments-merging.adoc
+++ b/solr/solr-ref-guide/src/index-segments-merging.adoc
@@ -270,7 +270,7 @@ Many <<Merging Index Segments,Merge Policy>> implementations support `noCFSRatio
== Segments Info Screen
The Segments Info screen in the Admin UI lets you see a visualization of the various segments in the underlying Lucene index for this core, with information about the size of each segment – both bytes and in number of documents – as well as other basic metadata about those segments.
-Most visible is the the number of deleted documents, but you can hover your mouse over the segments to see additional numeric details.
+Most visible is the number of deleted documents, but you can hover your mouse over the segments to see additional numeric details.
image::images/segments-info/segments_info.png[image,width=486,height=250]
diff --git a/solr/solr-ref-guide/src/logs.adoc b/solr/solr-ref-guide/src/logs.adoc
index b09d0b13ac3..2e9c7ca512a 100644
--- a/solr/solr-ref-guide/src/logs.adoc
+++ b/solr/solr-ref-guide/src/logs.adoc
@@ -62,7 +62,7 @@ In the example below the `random` function is run with one parameter which is th
image::images/math-expressions/logs-sample.png[]
-The sample contains 500 random records with the their full field list.
+The sample contains 500 random records with their full field list.
By looking at this sample we can quickly learn about the *fields* available in the `logs` collection.
=== Time Period
diff --git a/solr/solr-ref-guide/src/major-changes-in-solr-6.adoc b/solr/solr-ref-guide/src/major-changes-in-solr-6.adoc
index e083069d52d..81dc4ac6616 100644
--- a/solr/solr-ref-guide/src/major-changes-in-solr-6.adoc
+++ b/solr/solr-ref-guide/src/major-changes-in-solr-6.adoc
@@ -78,7 +78,7 @@ Please review the <<schema-factory.adoc#,Schema Factory Definition in SolrConfig
Solr's default behavior when a Schema does not explicitly define a global <<schema-elements.adoc#similarity,`<similarity/>`>> is now dependent on the `luceneMatchVersion` specified in the `solrconfig.xml`. When `luceneMatchVersion < 6.0`, an instance of `ClassicSimilarityFactory` will be used, otherwise an instance of `SchemaSimilarityFactory` will be used. Most notably this change means that users can take advantage of per Field Type similarity declarations, without needing to also explicitly declare a global usage of `SchemaSimilarityFactory`.
-Regardless of whether it is explicitly declared, or used as an implicit global default, `SchemaSimilarityFactory` 's implicit behavior when a Field Types do not declare an explicit `<similarity />` has also been changed to depend on the the `luceneMatchVersion`. When `luceneMatchVersion < 6.0`, an instance of `ClassicSimilarity` will be used, otherwise an instance of `BM25Similarity` will be used. A `defaultSimFromFieldType` init option may be specified on the `SchemaSimilarityFactory` declaration to change this behavior. Please review the `SchemaSimilarityFactory` javadocs for more details.
+Regardless of whether it is explicitly declared, or used as an implicit global default, `SchemaSimilarityFactory` 's implicit behavior when a Field Types do not declare an explicit `<similarity />` has also been changed to depend on the `luceneMatchVersion`. When `luceneMatchVersion < 6.0`, an instance of `ClassicSimilarity` will be used, otherwise an instance of `BM25Similarity` will be used. A `defaultSimFromFieldType` init option may be specified on the `SchemaSimilarityFactory` declaration to change this behavior. Please review the `SchemaSimilarityFactory` javadocs for more details.
== Replica & Shard Delete Command Changes
diff --git a/solr/solr-ref-guide/src/query-elevation-component.adoc b/solr/solr-ref-guide/src/query-elevation-component.adoc
index 9a132a2bebc..fd657f73ca9 100644
--- a/solr/solr-ref-guide/src/query-elevation-component.adoc
+++ b/solr/solr-ref-guide/src/query-elevation-component.adoc
@@ -225,7 +225,7 @@ For example, in the request below documents 3007WFP and 9885A004 will be elevate
[source,text]
http://localhost:8983/solr/techproducts/elevate?q=cable&df=text&excludeIds=IW-02&elevateIds=3007WFP,9885A004
-If either one of these parameters is specified at request time, the the entire elevation configuration for the query is ignored.
+If either one of these parameters is specified at request time, the entire elevation configuration for the query is ignored.
For example, in the request below documents IW-02 and F8V7067-APL-KIT will be elevated, and no documents will be excluded – regardless of what elevations or exclusions are configured for the query "ipod" in elevate.xml:
diff --git a/solr/solr-ref-guide/src/replica-placement-plugins.adoc b/solr/solr-ref-guide/src/replica-placement-plugins.adoc
index 06c6c077ae5..84d0e75c405 100644
--- a/solr/solr-ref-guide/src/replica-placement-plugins.adoc
+++ b/solr/solr-ref-guide/src/replica-placement-plugins.adoc
@@ -1,6 +1,5 @@
= Replica Placement Plugins
-:toc: macro
-:toclevels: 5
+:toclevels: 3
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -18,15 +17,14 @@
// specific language governing permissions and limitations
// under the License.
-== Introduction
-When user wants to create a new collection or add a replica to one of the existing collections Solr needs to first determine on what node to put the replica so that the cluster resources are allocated in a well-balanced manner (according to some criteria).
+When you create a new collection or add a replica to an existing collection, Solr needs to first determine on what node to put the replica so cluster resources are allocated in a well-balanced manner (according to some criteria).
-Replica placement plugin is the configurable component that determines these placements.
+The replica placement plugin is the configurable component that determines these placements.
It can also enforce additional constraints on operations such as collection or replica removal - for example if the plugin wants some collections to be always co-located on the same nodes, or always present when some other collection is present.
-(In Solr 8.x this functionality was using either per-collection rules, or it could be configured in the autoscaling framework).
+In earlier versions of Solr, this functionality was provided using either per-collection rules, or with the autoscaling framework.
-=== Plugin Configuration
+== Plugin Configuration
Replica placement plugin configurations are maintained using the `/cluster/plugin` API.
There can be only one cluster-wide plugin configuration at a time, and it uses a pre-defined plugin name: `.placement-plugin`.
@@ -34,7 +32,7 @@ There are several placement plugins included in the Solr distribution.
Additional placement plugins can be added - they have to implement a `PlacementPluginFactory` interface.
The configuration entry may also contain a `config` element if the plugin implements the `ConfigurablePlugin` interface.
-=== Legacy Replica Placement
+== Legacy Replica Placement
By default Solr 9.0 uses a legacy method for replica placements, which doesn't use a placement plugin at all.
This method is used whenever the placement plugin configuration is missing or invalid.
@@ -44,7 +42,7 @@ Then for each shard in the request it adds the replicas to consecutive nodes in
This placement strategy doesn't ensure that no more than 1 replica of a shard is placed on the same node.
Also, the round-robin assignment only roughly approximates an even spread of replicas across the nodes.
-=== Placement plugins included in Solr
+== Placement Plugins Included with Solr
The following placement plugins are available out-of-the-box in Solr 9.0 (however, as described above the default configuration doesn't use any of them, instead it uses the legacy replica placement method).
In order to use a plugin its configuration must be added using the `/cluster/plugin` API.
@@ -77,8 +75,7 @@ Similarly, the configuration can be updated or removed.
NOTE: Placement plugin configuration MUST use the predefined name `.placement-plugin`.
There can be only one (or none) placement configuration defined.
-
-==== `RandomPlacementFactory`
+=== RandomPlacementFactory
This plugin creates random placements, while preventing two replicas of the same shard from being placed on the same node.
If there are too few nodes to satisfy these constraints an exception is thrown, and the request is rejected.
@@ -86,7 +83,7 @@ Due to its simplistic algorithm this plugin should only be used in simple deploy
This plugin doesn't require any configuration.
-==== `MinimizeCoresPlacementFactory`
+=== MinimizeCoresPlacementFactory
This plugin creates placements that minimize the number of cores per node across all live nodes, while not placing two replicas of the same shard on the same node.
If there are too few nodes to satisfy these constraints an exception is thrown, and the request is rejected.
@@ -94,7 +91,7 @@ Due to its simplistic algorithm this plugin should only be used in simple deploy
This plugin doesn't require any configuration.
-==== `AffinityPlacementFactory`
+=== AffinityPlacementFactory
This plugin implements replica placement algorithm that roughly replicates Solr 8.x autoscaling configuration defined https://github.com/lucidworks/fusion-cloud-native/blob/master/policy.json#L16[here].
The autoscaling specification in the configuration linked above aimed to do the following:
@@ -108,21 +105,22 @@ The autoscaling specification in the configuration linked above aimed to do the
It also supports additional per-collection constraints:
-* `withCollection` constraint enforces the placement of co-located collections' replicas on the same nodes, and prevents deletions of collections and replicas that would break this constraint.
-* `nodeType` constraint limits the nodes eligible for placement to only those that match one or more of the specified node types.
+* `withCollection` enforces the placement of co-located collections' replicas on the same nodes, and prevents deletions of collections and replicas that would break this constraint.
+* `nodeType` limits the nodes eligible for placement to only those that match one or more of the specified node types.
See below for more details on these constraints.
Overall strategy of this plugin:
-* The set of nodes in the cluster is obtained, and if the `withCollection` mapping is present and applicable to the current collection then this candidate set is filtered so that only eligible nodes remain according to this constraint.
-* The resulting node set is transformed into 3 independent sets (that can overlap) of nodes accepting each of the three replica types (NRT, TLOG and PULL).
-* For each shard on which placing replicas is required and then for each replica type to place (starting with NRT, then TLOG then PULL):
+* The set of nodes in the cluster is obtained.
+If `withCollection` is defined and applicable to the current collection then this candidate set is filtered so that only eligible nodes remain according to this constraint.
+* The resulting node set is transformed into 3 independent sets (that can overlap) of nodes accepting each of the three replica types (NRT, TLOG, and PULL).
+* For each shard on which placing replicas is required and then for each replica type to place (starting with NRT, then TLOG, then PULL):
** The set of candidates nodes corresponding to the replica type is used and from that set are removed nodes that already have a replica (of any type) for that shard.
** If there are not enough nodes, an error is thrown (this is checked further down during processing).
-** The number of (already existing) replicas of the current type on each Availability Zone is collected.
-** Separate the set of available nodes to as many subsets (possibly some are empty) as there are Availability Zones defined for the candidate nodes
-** In each AZ nodes subset, sort the nodes by increasing total number of cores count.
+** The number of (already existing) replicas of the current type on each availability zone (AZ) is collected.
+** Separate the set of available nodes to as many subsets (possibly some are empty) as there are AZs defined for the candidate nodes
+** In each AZ nodes' subset, sort the nodes by increasing total number of cores count.
** Iterate over the number of replicas to place (for the current replica type for the current shard):
*** Based on the number of replicas per AZ collected previously, pick the non-empty set of nodes having the lowest number of replicas.
Then pick the first node in that set.
@@ -132,25 +130,9 @@ Remove the node from the set of available nodes for the given AZ and increase th
NOTE: At the moment the names of availability zone property and the name of the replica type property are not configurable, and set respectively to `availability_zone` and `replica_type`.
-===== `withCollection` constraint
-This plugin supports enforcing additional constraint named `withCollection`, which causes replicas of two paired collections to be placed on the same nodes.
-
-Users can define the collection pairs in the plugin configuration, in the `config/withCollection` element, which is a JSON map where keys are the primary collection names, and the values are the secondary collection names.
-Currently only 1:1 mapping is supported - however, multiple primary collections may use the same secondary collection, which effectively relaxes this to N:1 mapping.
-
-Unlike previous versions of Solr, this plugin does NOT automatically place replicas of the secondary collection - those replicas are assumed to be already in place, and it's the responsibility of the user to already place them on the right nodes (most likely simply by using this plugin to create the secondary collection first, with large enough replication factor to ensure that the target node set is populated with secondary replicas).
-
-When a request to compute placements is processed for the primary collection that has a key in the `withCollection` map, the set of candidate nodes is first filtered to eliminate nodes that don't contain the replicas of the secondary collection.
-Please note that this may result in an empty set, and an exception - in this case the sufficient number of secondary replicas needs to be created first.
-
-The plugin preserves this co-location by rejecting delete operation of secondary collections (or their replicas) if they are still in use on the nodes where primary replicas are located - requests to do so will be rejected with errors.
-In order to delete a secondary collection (or its replicas) from these nodes first the replicas of the primary collection must be removed from the co-located nodes, or the configuration must be changed to remove the
-co-location mapping for the primary collection.
-
-===== `nodeType` constraint
-===== Configuration
+==== Configuration
This plugin supports the following configuration parameters:
`minimalFreeDiskGB`::
@@ -181,6 +163,8 @@ Replica allocation will assign replicas to nodes with at least this number of GB
+
Defines an additional constraint that primary collections (keys) must be located on the same nodes as the secondary collections (values).
The plugin will assume that the secondary collection replicas are already in place and ignore candidate nodes where they are not already present.
++
+See the section <<withCollection constraint>> below.
`nodeType`::
+
@@ -193,7 +177,22 @@ This property defines an additional constraint that collections (keys) must be l
Nodes are labeled using the `node_type` system property with the value being an arbitrary comma-separated list of labels.
Correspondingly, the plugin configuration can specify that a particular collection must be placed only on the nodes that match at least one of the (comma-separated) labels defined here.
-=== Example Configurations
+==== withCollection constraint
+This plugin supports enforcing additional constraint named `withCollection`, which causes replicas of two paired collections to be placed on the same nodes.
+
+Users can define the collection pairs in the plugin configuration, in the `config/withCollection` element, which is a JSON map where keys are the primary collection names, and the values are the secondary collection names.
+Currently only 1:1 mapping is supported - however, multiple primary collections may use the same secondary collection, which effectively relaxes this to N:1 mapping.
+
+Unlike previous versions of Solr, this plugin does NOT automatically place replicas of the secondary collection - those replicas are assumed to be already in place, and it's the responsibility of the user to already place them on the right nodes (most likely simply by using this plugin to create the secondary collection first, with large enough replication factor to ensure that the target node set is populated with secondary replicas).
+
+When a request to compute placements is processed for the primary collection that has a key in the `withCollection` map, the set of candidate nodes is first filtered to eliminate nodes that don't contain the replicas of the secondary collection.
+Please note that this may result in an empty set, and an exception - in this case the sufficient number of secondary replicas needs to be created first.
+
+The plugin preserves this co-location by rejecting delete operation of secondary collections (or their replicas) if they are still in use on the nodes where primary replicas are located - requests to do so will be rejected with errors.
+In order to delete a secondary collection (or its replicas) from these nodes first the replicas of the primary collection must be removed from the co-located nodes, or the configuration must be changed to remove the
+co-location mapping for the primary collection.
+
+== Example Configurations
This is a simple configuration that uses default values:
[source,bash]
diff --git a/solr/solr-ref-guide/src/result-grouping.adoc b/solr/solr-ref-guide/src/result-grouping.adoc
index 63350923299..f62a11023bf 100644
--- a/solr/solr-ref-guide/src/result-grouping.adoc
+++ b/solr/solr-ref-guide/src/result-grouping.adoc
@@ -385,6 +385,6 @@ This is because one result for "memory" did not have a price assigned to it.
Grouping is supported for <<cluster-types.adoc#solrcloud-mode,distributed searches>>, with some caveats:
-* Currently `group.func` is is not supported in any distributed searches
+* Currently `group.func` is not supported in any distributed searches
* `group.ngroups` and `group.facet` require that all documents in each group must be co-located on the same shard in order for accurate counts to be returned.
<<solrcloud-shards-indexing.adoc#,Document routing via composite keys>> can be a useful solution in many situations.
diff --git a/solr/solr-ref-guide/src/schema-api.adoc b/solr/solr-ref-guide/src/schema-api.adoc
index 8890d9c6cb1..fc24ee905df 100644
--- a/solr/solr-ref-guide/src/schema-api.adoc
+++ b/solr/solr-ref-guide/src/schema-api.adoc
@@ -1242,24 +1242,14 @@ The sample output below has been truncated to show a few different field types f
}
},
"class": "solr.TextField",
- "dynamicFields": [],
- "fields": [],
"name": "alphaOnlySort",
"omitNorms": true,
"sortMissingLast": true
},
{
"class": "solr.FloatPointField",
- "dynamicFields": [
- "*_fs",
- "*_f"
- ],
- "fields": [
- "price",
- "weight"
- ],
"name": "float",
- "positionIncrementGap": "0",
+ "positionIncrementGap": "0"
}]
}
----
diff --git a/solr/solr-ref-guide/src/search-sample.adoc b/solr/solr-ref-guide/src/search-sample.adoc
index 2abd03e2123..74e5092be5b 100644
--- a/solr/solr-ref-guide/src/search-sample.adoc
+++ b/solr/solr-ref-guide/src/search-sample.adoc
@@ -85,7 +85,7 @@ By studying the scatter plot we can learn a number of things about the distribut
* The highest density appears to be at about 40,000.
* The sample seems to have a balanced number of observations above and below 40,000.
Based on this the *mean* and *mode* would appear to be around 40,000.
-* The number of observations tapers off to a small number of outliers on the and low and high end of the sample.
+* The number of observations tapers off to a small number of outliers on the low and high end of the sample.
This sample can be re-run multiple times to see if the samples produce similar plots.
@@ -193,8 +193,8 @@ The `timeseries` function supports any combination of the following aggregate fu
The `significantTerms` function queries a collection, but instead of returning documents, it returns significant terms found in documents in the result set.
This function scores terms based on how frequently they appear in the result set and how rarely they appear in the entire corpus.
The `significantTerms` function emits a tuple for each term which contains the term, the score, the foreground count and the background count.
-The foreground count is how many documents the term appears in in the result set.
-The background count is how many documents the term appears in in the entire corpus.
+The foreground count is how many documents the term appears in the result set.
+The background count is how many documents the term appears in the entire corpus.
The foreground and background counts are global for the collection.
The `significantTerms` function can often provide insights that cannot be gleaned from other types of aggregations.
diff --git a/solr/solr-ref-guide/src/simulations.adoc b/solr/solr-ref-guide/src/simulations.adoc
index e402a0a00ad..cd7c9a32db0 100644
--- a/solr/solr-ref-guide/src/simulations.adoc
+++ b/solr/solr-ref-guide/src/simulations.adoc
@@ -167,7 +167,7 @@ image::images/math-expressions/corrsim2.png[]
=== Covariance Matrix
A covariance matrix is actually whats needed by the `multiVariateNormalDistribution` as it contains both the variance of the two stock return vectors and the covariance between the two vectors.
-The `cov` function will compute the covariance matrix for the the columns of a matrix.
+The `cov` function will compute the covariance matrix for the columns of a matrix.
The example below demonstrates how to compute the covariance matrix by adding the `all` and `cvx` vectors as rows to a matrix.
The matrix is then transposed with the `transpose` function so that the `all` vector is the first column and the `cvx` vector is the second column.
diff --git a/solr/solr-ref-guide/src/solrcloud-recoveries-and-write-tolerance.adoc b/solr/solr-ref-guide/src/solrcloud-recoveries-and-write-tolerance.adoc
index 6b539a93e32..5980a4ebfaf 100644
--- a/solr/solr-ref-guide/src/solrcloud-recoveries-and-write-tolerance.adoc
+++ b/solr/solr-ref-guide/src/solrcloud-recoveries-and-write-tolerance.adoc
@@ -21,7 +21,7 @@ SolrCloud is highly available and fault tolerant in reads and writes.
== Write Side Fault Tolerance
SolrCloud is designed to replicate documents to ensure redundancy for your data, and enable you to send update requests to any node in the cluster.
-That node will determine if it hosts the leader for the appropriate shard, and if not it will forward the request to the the leader, which will then forward it to all existing replicas, using versioning to make sure every replica has the most up-to-date version.
+That node will determine if it hosts the leader for the appropriate shard, and if not it will forward the request to the leader, which will then forward it to all existing replicas, using versioning to make sure every replica has the most up-to-date version.
If the leader goes down, another replica can take its place.
This architecture enables you to be certain that your data can be recovered in the event of a disaster.
diff --git a/solr/solr-ref-guide/src/statistics.adoc b/solr/solr-ref-guide/src/statistics.adoc
index 4423b721052..5644bcfedf7 100644
--- a/solr/solr-ref-guide/src/statistics.adoc
+++ b/solr/solr-ref-guide/src/statistics.adoc
@@ -181,7 +181,7 @@ Instead it counts the occurrence of each discrete data value and returns a list
Below is an example of a frequency table built from a result set of rounded *differences* in daily opening stock prices for the stock ticker *amzn*.
This example is interesting because it shows a multi-step process to arrive at the result.
-The first step is to *search* for records in the the *stocks* collection with a ticker of *amzn*.
+The first step is to *search* for records in the *stocks* collection with a ticker of *amzn*.
Notice that the result set is sorted by date ascending and it returns the `open_d` field which is the opening price for the day.
The `open_d` field is then vectorized and set to variable *b*, which now contains a vector of opening prices ordered by date ascending.
diff --git a/solr/solr-ref-guide/src/stream-evaluator-reference.adoc b/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
index b2a2c68c751..04877edc2e9 100644
--- a/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
+++ b/solr/solr-ref-guide/src/stream-evaluator-reference.adoc
@@ -2348,7 +2348,7 @@ numeric: result of the sumSq calculation
== transpose
-The `transpose` function https://en.wikipedia.org/wiki/Transpose[transposes] a matrix .
+The `transpose` function https://en.wikipedia.org/wiki/Transpose[transposes] a matrix.
=== transpose Parameters
diff --git a/solr/solr-ref-guide/src/stream-source-reference.adoc b/solr/solr-ref-guide/src/stream-source-reference.adoc
index 770e70c06ad..9a9de293090 100644
--- a/solr/solr-ref-guide/src/stream-source-reference.adoc
+++ b/solr/solr-ref-guide/src/stream-source-reference.adoc
@@ -459,8 +459,8 @@ The field list returned is the basketID.
The `significantTerms` function queries a SolrCloud collection, but instead of returning documents, it returns significant terms found in documents in the result set.
The `significantTerms` function scores terms based on how frequently they appear in the result set and how rarely they appear in the entire corpus.
The `significantTerms` function emits a tuple for each term which contains the term, the score, the foreground count and the background count.
-The foreground count is how many documents the term appears in in the result set.
-The background count is how many documents the term appears in in the entire corpus.
+The foreground count is how many documents the term appears in the result set.
+The background count is how many documents the term appears in the entire corpus.
The foreground and background counts are global for the collection.
=== significantTerms Parameters
diff --git a/solr/solr-ref-guide/src/task-management.adoc b/solr/solr-ref-guide/src/task-management.adoc
index fe60480287e..2c88ce911d0 100644
--- a/solr/solr-ref-guide/src/task-management.adoc
+++ b/solr/solr-ref-guide/src/task-management.adoc
@@ -43,12 +43,12 @@ To cancel an active task, please use the following syntax:
`\http://localhost:8983/solr/tasks/cancel?queryUUID=foobar`
-==== Sample Response
-===== If the task UUID was found and successfully cancelled:
+=== Sample Response
+==== If the task UUID was found and successfully cancelled:
`{responseHeader={status=0, QTime=39}, status=Query with queryID 85 cancelled successfully}`
-===== If the task UUID was not found
+==== If the task UUID was not found
`{responseHeader={status=0, QTime=39}, status=Query with queryID 85 not found}`
diff --git a/solr/solr-ref-guide/src/term-vector-component.adoc b/solr/solr-ref-guide/src/term-vector-component.adoc
index fdb0292afc7..c2eb593b931 100644
--- a/solr/solr-ref-guide/src/term-vector-component.adoc
+++ b/solr/solr-ref-guide/src/term-vector-component.adoc
@@ -30,7 +30,7 @@ The examples on this page show how it is configured in Solr's "techproducts" exa
bin/solr -e techproducts
----
-To enable the this component, you need to configure it using a `searchComponent` element:
+To enable this component, you need to configure it using a `searchComponent` element:
[source,xml]
----
@@ -221,7 +221,7 @@ If `true`, returns document term frequency info for each term in the document.
|Optional |Default: `false`
|===
+
-If `true`, calculates TF / DF (i.e.,: TF * IDF) for each term.
+If `true`, calculates TF / DF (i.e., TF * IDF) for each term.
Please note that this is a _literal_ calculation of "Term Frequency multiplied by Inverse Document Frequency" and *not* a classical TF-IDF similarity measure.
+
This parameter requires both `tv.tf` and `tv.df` to be `true`.
diff --git a/solr/solr-ref-guide/src/transform.adoc b/solr/solr-ref-guide/src/transform.adoc
index f16105d27ba..adc06109473 100644
--- a/solr/solr-ref-guide/src/transform.adoc
+++ b/solr/solr-ref-guide/src/transform.adoc
@@ -102,7 +102,7 @@ image::images/math-expressions/search-resort.png[]
The `rollup` and `hashRollup` functions can be used to perform aggregations over result sets.
This is different then the `facet`, `facet2D` and `timeseries` aggregation functions which push the aggregations into the search engine using the JSON facet API.
-The `rollup` function performs map-reduce style rollups, which requires the result stream be sorted by the the grouping fields.
+The `rollup` function performs map-reduce style rollups, which requires the result stream be sorted by the grouping fields.
This allows for aggregations over very high cardinality fields.
The `hashRollup` function performs rollups keeping all buckets in an in-memory hashmap.
This requires enough memory to store all the distinct group by fields in memory, but does not require that the underlying stream be sorted.
diff --git a/solr/solr-ref-guide/src/transforming-and-indexing-custom-json.adoc b/solr/solr-ref-guide/src/transforming-and-indexing-custom-json.adoc
index 19f570751c6..e1a2065250c 100644
--- a/solr/solr-ref-guide/src/transforming-and-indexing-custom-json.adoc
+++ b/solr/solr-ref-guide/src/transforming-and-indexing-custom-json.adoc
@@ -861,7 +861,7 @@ It is possible to send any JSON to the `/update/json/docs` endpoint and the defa
<lst name="defaults">
<!-- this ensures that the entire JSON doc will be stored verbatim into one field -->
<str name="srcField">_src_</str>
- <!-- This means a the uniqueKeyField will be extracted from the fields and
+ <!-- This means the uniqueKeyField will be extracted from the fields and
all fields go into the 'df' field. In this config df is already configured to be 'text'
-->
<str name="mapUniqueKeyOnly">true</str>
diff --git a/solr/solr-ref-guide/src/tutorial-aws.adoc b/solr/solr-ref-guide/src/tutorial-aws.adoc
index 56584e6905b..337a6e9eb23 100644
--- a/solr/solr-ref-guide/src/tutorial-aws.adoc
+++ b/solr/solr-ref-guide/src/tutorial-aws.adoc
@@ -277,7 +277,7 @@ $ cd $ZOO_HOME
$ bin/zkServer.sh start
----
-. On the the first node being used for Solr (`solr-node-1`), start Solr and tell it where to find ZooKeeper.
+. On the first node being used for Solr (`solr-node-1`), start Solr and tell it where to find ZooKeeper.
+
[source,bash]
----
diff --git a/solr/solr-ref-guide/src/tutorial-diy.adoc b/solr/solr-ref-guide/src/tutorial-diy.adoc
index 307225b3997..dafc4fa8f27 100644
--- a/solr/solr-ref-guide/src/tutorial-diy.adoc
+++ b/solr/solr-ref-guide/src/tutorial-diy.adoc
@@ -75,7 +75,7 @@ You may notice that even if you index content in this tutorial more than once, i
This is because the example Solr schema (a file named either `managed-schema` or `schema.xml`) specifies a `uniqueKey` field called `id`.
Whenever you POST commands to Solr to add a document with the same value for the `uniqueKey` as an existing document, it automatically replaces it for you.
-You can see that that has happened by looking at the values for `numDocs` and `maxDoc` in the core-specific Overview section of the Solr Admin UI.
+You can see that has happened by looking at the values for `numDocs` and `maxDoc` in the core-specific Overview section of the Solr Admin UI.
`numDocs` represents the number of searchable documents in the index (and will be larger than the number of XML, JSON, or CSV files since some files contained more than one document).
The `maxDoc` value may be larger as the `maxDoc` count includes logically deleted documents that have not yet been physically removed from the index.
diff --git a/solr/solr-ref-guide/src/tutorial-films.adoc b/solr/solr-ref-guide/src/tutorial-films.adoc
index 8d9899f47ae..0ed5516e33e 100644
--- a/solr/solr-ref-guide/src/tutorial-films.adoc
+++ b/solr/solr-ref-guide/src/tutorial-films.adoc
@@ -145,7 +145,7 @@ The films data we are going to index has a small number of fields for each movie
If you look at one of the files in `example/films`, you'll see the first film is named _.45_, released in 2006.
As the first document in the dataset, Solr is going to guess the field type based on the data in the record.
-If we go ahead and index this data, that first film name is going to indicate to Solr that that field type is a "float" numeric field, and will create a "name" field with a type `FloatPointField`.
+If we go ahead and index this data, that first film name is going to indicate to Solr that the field type is a "float" numeric field, and will create a "name" field with a type `FloatPointField`.
All data after this record will be expected to be a float.
Well, that's not going to work.
diff --git a/solr/solr-ref-guide/src/update-request-processors.adoc b/solr/solr-ref-guide/src/update-request-processors.adoc
index 35411846f88..3cd5e3344e5 100644
--- a/solr/solr-ref-guide/src/update-request-processors.adoc
+++ b/solr/solr-ref-guide/src/update-request-processors.adoc
@@ -357,7 +357,7 @@ When using any of these factories, please consult the {solr-javadocs}/core/org/a
{solr-javadocs}/core/org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.html[ConcatFieldUpdateProcessorFactory]:: Concatenates multiple values for fields matching the specified conditions using a configurable delimiter.
-{solr-javadocs}/core/org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.html[CountFieldValuesUpdateProcessorFactory]:: Replaces any list of values for a field matching the specified conditions with the the count of the number of values for that field.
+{solr-javadocs}/core/org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.html[CountFieldValuesUpdateProcessorFactory]:: Replaces any list of values for a field matching the specified conditions with the count of the number of values for that field.
{solr-javadocs}/core/org/apache/solr/update/processor/FieldLengthUpdateProcessorFactory.html[FieldLengthUpdateProcessorFactory]:: Replaces any CharSequence values found in fields matching the specified conditions with the lengths of those CharSequences (as an Integer).
@@ -369,9 +369,9 @@ When using any of these factories, please consult the {solr-javadocs}/core/org/a
{solr-javadocs}/core/org/apache/solr/update/processor/LastFieldValueUpdateProcessorFactory.html[LastFieldValueUpdateProcessorFactory]:: Keeps only the last value of fields matching the specified conditions.
-{solr-javadocs}/core/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.html[MaxFieldValueUpdateProcessorFactory]:: An update processor that keeps only the the maximum value from any selected fields where multiple values are found.
+{solr-javadocs}/core/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.html[MaxFieldValueUpdateProcessorFactory]:: An update processor that keeps only the maximum value from any selected fields where multiple values are found.
-{solr-javadocs}/core/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.html[MinFieldValueUpdateProcessorFactory]:: An update processor that keeps only the the minimum value from any selected fields where multiple values are found.
+{solr-javadocs}/core/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.html[MinFieldValueUpdateProcessorFactory]:: An update processor that keeps only the minimum value from any selected fields where multiple values are found.
{solr-javadocs}/core/org/apache/solr/update/processor/ParseBooleanFieldUpdateProcessorFactory.html[ParseBooleanFieldUpdateProcessorFactory]:: Attempts to mutate selected fields that have only CharSequence-typed values into Boolean values.