You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2020/07/15 16:52:39 UTC
svn commit: r1063067 [25/28] - in
/websites/production/lucene/content/solr/guide/8_6: ./ meta-docs/
Modified: websites/production/lucene/content/solr/guide/8_6/stream-screen.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/stream-screen.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/stream-screen.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Stream Screen | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Stream Screen | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="stream-screen">
+<body class="" id="stream-screen">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1690,7 +1685,7 @@
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/stream-source-reference.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/stream-source-reference.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/stream-source-reference.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Stream Source Reference | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Stream Source Reference | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="stream-source-reference">
+<body class="" id="stream-source-reference">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1654,6 +1649,7 @@
<ul class="sectlevel1">
<li><a href="#search">search</a></li>
<li><a href="#jdbc">jdbc</a></li>
+<li><a href="#drill">drill</a></li>
<li><a href="#echo">echo</a></li>
<li><a href="#facet">facet</a></li>
<li><a href="#features">features</a></li>
@@ -1677,7 +1673,7 @@
<section class="content">
<section class="sect1"><h2 id="search">search</h2><p>The <code>search</code> function searches a SolrCloud collection and emits a stream of tuples that match the query. This is very similar to a standard Solr query, and uses many of the same parameters.</p>
<p>This expression allows you to specify a request hander using the <code>qt</code> parameter. By default, the <code>/select</code> handler is used. The <code>/select</code> handler can be used for simple rapid prototyping of expressions. For production, however, you will most likely want to use the <code>/export</code> handler which is designed to <code>sort</code> and <code>export</code> entire result sets. The <code>/export</code> handler is not used by default because it has stricter requirements then the <code>/select</code> handler so it’s not as easy to get started working with. To read more about the <code>/export</code> handler requirements review the section <a href="exporting-result-sets.html#exporting-result-sets">Exporting Result Sets</a>.</p>
-<section class="sect2"><h3 id="search-parameters">search Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) the collection being searched.</li><li><code>q</code>: (Mandatory) The query to perform on the Solr index.</li><li><code>fl</code>: (Mandatory) The list of fields to return.</li><li><code>sort</code>: (Mandatory) The sort criteria.</li><li><code>zkHost</code>: Only needs to be defined if the collection being searched is found in a different zkHost than the local stream handler.</li><li><code>qt</code>: Specifies the query type, or request handler, to use. Set this to <code>/export</code> to work with large result sets. The default is <code>/select</code>.</li><li><code>rows</code>: (Mandatory with the <code>/select</code> handler) The rows parameter specifies how many rows to return. This parameter is only needed with the <code>/select</code> handler (which is the default) since the <code>/export</code> handler always returns all rows.</li><li><code
>partitionKeys</code>: Comma delimited list of keys to partition the search results by. To be used with the parallel function for parallelizing operations across worker nodes. See the <a href="stream-decorator-reference.html#parallel">parallel</a> function for details.</li></ul></div></section>
+<section class="sect2"><h3 id="search-parameters">search Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) the collection being searched.</p></li><li><p><code>q</code>: (Mandatory) The query to perform on the Solr index.</p></li><li><p><code>fl</code>: (Mandatory) The list of fields to return.</p></li><li><p><code>sort</code>: (Mandatory) The sort criteria.</p></li><li><p><code>zkHost</code>: Only needs to be defined if the collection being searched is found in a different zkHost than the local stream handler.</p></li><li><p><code>qt</code>: Specifies the query type, or request handler, to use. Set this to <code>/export</code> to work with large result sets. The default is <code>/select</code>.</p></li><li><p><code>rows</code>: (Mandatory with the <code>/select</code> handler) The rows parameter specifies how many rows to return. This parameter is only needed with the <code>/select</code> handler (which is the default) since the <code>/export</code> h
andler always returns all rows.</p></li><li><p><code>partitionKeys</code>: Comma delimited list of keys to partition the search results by. To be used with the parallel function for parallelizing operations across worker nodes. See the <a href="stream-decorator-reference.html#parallel">parallel</a> function for details.</p></li></ul></div></section>
<section class="sect2"><h3 id="search-syntax">search Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>expr=search(collection1,
zkHost="localhost:9983",
qt="/export",
@@ -1685,7 +1681,7 @@
fl="id,a_s,a_i,a_f",
sort="a_f asc, a_i asc")</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="jdbc">jdbc</h2><p>The <code>jdbc</code> function searches a JDBC datasource and emits a stream of tuples representing the JDBC result set. Each row in the result set is translated into a tuple and each tuple contains all the cell values for that row.</p>
-<section class="sect2"><h3 id="jdbc-parameters">jdbc Parameters</h3><div class="ulist"><ul><li><code>connection</code>: (Mandatory) JDBC formatted connection string to whatever driver you are using.</li><li><code>sql</code>: (Mandatory) query to pass off to the JDBC endpoint</li><li><code>sort</code>: (Mandatory) The sort criteria indicating how the data coming out of the JDBC stream is sorted</li><li><code>driver</code>: The name of the JDBC driver used for the connection. If provided then the driver class will attempt to be loaded into the JVM. If not provided then it is assumed that the driver is already loaded into the JVM. Some drivers require explicit loading so this option is provided.</li><li><code>[driverProperty]</code>: One or more properties to pass to the JDBC driver during connection. The format is <code>propertyName="propertyValue"</code>. You can provide as many of these properties as you’d like and they will all be passed to the connection.</li></ul></div></se
ction>
+<section class="sect2"><h3 id="jdbc-parameters">jdbc Parameters</h3><div class="ulist"><ul><li><p><code>connection</code>: (Mandatory) JDBC formatted connection string to whatever driver you are using.</p></li><li><p><code>sql</code>: (Mandatory) query to pass off to the JDBC endpoint</p></li><li><p><code>sort</code>: (Mandatory) The sort criteria indicating how the data coming out of the JDBC stream is sorted</p></li><li><p><code>driver</code>: The name of the JDBC driver used for the connection. If provided then the driver class will attempt to be loaded into the JVM. If not provided then it is assumed that the driver is already loaded into the JVM. Some drivers require explicit loading so this option is provided.</p></li><li><p><code>[driverProperty]</code>: One or more properties to pass to the JDBC driver during connection. The format is <code>propertyName="propertyValue"</code>. You can provide as many of these properties as you’d like and they will all be passed to the
connection.</p></li></ul></div></section>
<section class="sect2"><h3 id="connections-and-drivers">Connections and Drivers</h3><p>Because some JDBC drivers require explicit loading the <code>driver</code> parameter can be used to provide the driver class name. If provided, then during stream construction the driver will be loaded. If the driver cannot be loaded because the class is not found on the classpath, then stream construction will fail.</p>
<p>When the JDBC stream is opened it will validate that a driver can be found for the provided connection string. If a driver cannot be found (because it hasn’t been loaded) then the open will fail.</p></section>
<section class="sect2"><h3 id="datatypes">Datatypes</h3><p>Due to the inherent differences in datatypes across JDBC sources the following datatypes are supported. The table indicates what Java type will be used for a given JDBC type. Types marked as requiring conversion will go through a conversion for each value of that type. For performance reasons the cell data types are only considered when the stream is opened as this is when the converters are created.</p>
@@ -1706,11 +1702,34 @@ jdbc(
driver="org.hsqldb.jdbcDriver",
get_column_name="false"
)</code></pre></code></pre></div></section></section>
+<section class="sect1"><h2 id="drill">drill</h2><p>The <code>drill</code> function is designed to support efficient high cardinality aggregation. The <code>drill</code>
+function sends a request to the <code>export</code> handler in a specific collection which includes a Streaming
+Expression that the <code>export</code> handler applies to the sorted result set. The <code>export</code> handler then emits the aggregated tuples.
+The <code>drill</code> function reads and emits the aggregated tuples fromn each shard maintaining the sort order,
+but does not merge the aggregations. Streaming Expression functions can be wrapped around the <code>drill</code> function to
+merge the aggregates.</p>
+<section class="sect2"><h3 id="drill-parameters">drill Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) the collection being searched.</p></li><li><p><code>q</code>: (Mandatory) The query to perform on the Solr index.</p></li><li><p><code>fl</code>: (Mandatory) The list of fields to return.</p></li><li><p><code>sort</code>: (Mandatory) The sort criteria.</p></li><li><p><code>expr</code>: The streaming expression that is sent to the export handler that operates over the sorted
+result set. The <code>input()</code> function provides the stream of sorted tuples from the export handler (see examples below).</p></li></ul></div></section>
+<section class="sect2"><h3 id="drill-syntax">drill Syntax</h3><p>Example 1: Basic drill syntax</p>
+<div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>drill(articles,
+ q="abstract:water",
+ fl="author",
+ sort="author asc",
+ rollup(input(), over="author", count(*)))</code></pre></code></pre></div>
+<p>Example 2: A <code>rollup</code> wrapped around the <code>drill</code> function to sum the counts emitted from each shard.</p>
+<div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>rollup(drill(articles,
+ q="abstract:water",
+ fl="author",
+ sort="author asc",
+ rollup(input(), over="author", count(*))),
+ over="author",
+ sum(count(*)))</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="echo">echo</h2><p>The <code>echo</code> function returns a single Tuple echoing its text parameter. <code>Echo</code> is the simplest stream source designed to provide text
to a text analyzing stream decorator.</p>
<section class="sect2"><h3 id="echo-syntax">echo Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>echo("Hello world")</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="facet">facet</h2><p>The <code>facet</code> function provides aggregations that are rolled up over buckets. Under the covers the facet function pushes down the aggregation into the search engine using Solr’s JSON Facet API. This provides sub-second performance for many use cases. The facet function is appropriate for use with a low to moderate number of distinct values in the bucket fields. To support high cardinality aggregations see the rollup function.</p>
-<section class="sect2"><h3 id="facet-parameters">facet Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) Collection the facets will be aggregated from.</li><li><code>q</code>: (Mandatory) The query to build the aggregations from.</li><li><code>buckets</code>: (Mandatory) Comma separated list of fields to rollup over. The comma separated list represents the dimensions in a multi-dimensional rollup.</li><li><code>bucketSorts</code>: (Mandatory) Comma separated list of sorts to apply to each dimension in the buckets parameters. Sorts can be on the computed metrics or on the bucket values.</li><li><code>rows</code>: (Default 10) The number of rows to return. '-1' will return all rows.</li><li><code>offset</code>:(Default 0) The offset in the result set to start from.</li><li><code>overfetch</code>: (Default 150) Over-fetching is used to provide accurate aggregations over high cardinality fields.</li><li><code>method</code>: The JSON facet API aggregation met
hod.</li><li><code>bucketSizeLimit</code>: Sets the absolute number of rows to fetch. This is incompatible with rows, offset and overfetch. This value is applied to each dimension. '-1' will fetch all the buckets.</li><li><code>metrics</code>: List of metrics to compute for the buckets. Currently supported metrics are <code>sum(col)</code>, <code>avg(col)</code>, <code>min(col)</code>, <code>max(col)</code>, <code>count(*)</code>.</li></ul></div></section>
+<section class="sect2"><h3 id="facet-parameters">facet Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) Collection the facets will be aggregated from.</p></li><li><p><code>q</code>: (Mandatory) The query to build the aggregations from.</p></li><li><p><code>buckets</code>: (Mandatory) Comma separated list of fields to rollup over. The comma separated list represents the dimensions in a multi-dimensional rollup.</p></li><li><p><code>bucketSorts</code>: (Mandatory) Comma separated list of sorts to apply to each dimension in the buckets parameters. Sorts can be on the computed metrics or on the bucket values.</p></li><li><p><code>rows</code>: (Default 10) The number of rows to return. '-1' will return all rows.</p></li><li><p><code>offset</code>:(Default 0) The offset in the result set to start from.</p></li><li><p><code>overfetch</code>: (Default 150) Over-fetching is used to provide accurate aggregations over high cardinality fields.</p></li><li><p><co
de>method</code>: The JSON facet API aggregation method.</p></li><li><p><code>bucketSizeLimit</code>: Sets the absolute number of rows to fetch. This is incompatible with rows, offset and overfetch. This value is applied to each dimension. '-1' will fetch all the buckets.</p></li><li><p><code>metrics</code>: List of metrics to compute for the buckets. Currently supported metrics are <code>sum(col)</code>, <code>avg(col)</code>, <code>min(col)</code>, <code>max(col)</code>, <code>count(*)</code>, <code>per(col, 50)</code>. The <code>per</code> metric calculates a percentile
+for a numeric column and can be specified multiple times in the same facet function.</p></li></ul></div></section>
<section class="sect2"><h3 id="facet-syntax">facet Syntax</h3><p>Example 1:</p>
<div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>facet(collection1,
q="*:*",
@@ -1725,6 +1744,8 @@ to a text analyzing stream decorator.</p
max(a_f),
avg(a_i),
avg(a_f),
+ per(a_f, 50),
+ per(a_f, 75),
count(*))</code></pre></code></pre></div>
<p>The example above shows a facet function with rollups over a single bucket, where the buckets are returned in descending order by the calculated value of the <code>sum(a_i)</code> metric.</p>
<p>Example 2:</p>
@@ -1742,13 +1763,15 @@ to a text analyzing stream decorator.</p
max(a_f),
avg(a_i),
avg(a_f),
+ per(a_f, 50),
+ per(a_f, 75),
count(*))</code></pre></code></pre></div>
<p>The example above shows a <code>facet</code> function with rollups over three buckets, where the buckets are returned in descending order by bucket value.
The <code>rows</code> parameter returns 10 rows and the <code>offset</code> parameter starts returning rows from the 20th row.</p></section></section>
<section class="sect1"><h2 id="features">features</h2><p>The <code>features</code> function extracts the key terms from a text field in a classification training set stored in a SolrCloud collection. It uses an algorithm known as <strong>Information Gain</strong>, to select the important terms from the training set. The <code>features</code> function was designed to work specifically with the <a href="#train">train</a> function, which uses the extracted features to train a text classifier.</p>
<p>The <code>features</code> function is designed to work with a training set that provides both positive and negative examples of a class. It emits a tuple for each feature term that is extracted along with the inverse document frequency (IDF) for the term in the training set.</p>
<p>The <code>features</code> function uses a query to select the training set from a collection. The IDF for each selected feature is calculated relative to the training set matching the query. This allows multiple training sets to be stored in the same SolrCloud collection without polluting the IDF across training sets.</p>
-<section class="sect2"><h3 id="features-parameters">features Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) The collection that holds the training set</li><li><code>q</code>: (Mandatory) The query that defines the training set. The IDF for the features will be generated specific to the result set matching the query.</li><li><code>featureSet</code>: (Mandatory) The name of the feature set. This can be used to retrieve the features if they are stored in a SolrCloud collection.</li><li><code>field</code>: (Mandatory) The text field to extract the features from.</li><li><code>outcome</code>: (Mandatory) The field that defines the class, positive or negative</li><li><code>numTerms</code>: (Mandatory) How many feature terms to extract.</li><li><code>positiveLabel</code>: (defaults to 1) The value in the outcome field that defines a postive outcome.</li></ul></div></section>
+<section class="sect2"><h3 id="features-parameters">features Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) The collection that holds the training set</p></li><li><p><code>q</code>: (Mandatory) The query that defines the training set. The IDF for the features will be generated specific to the result set matching the query.</p></li><li><p><code>featureSet</code>: (Mandatory) The name of the feature set. This can be used to retrieve the features if they are stored in a SolrCloud collection.</p></li><li><p><code>field</code>: (Mandatory) The text field to extract the features from.</p></li><li><p><code>outcome</code>: (Mandatory) The field that defines the class, positive or negative</p></li><li><p><code>numTerms</code>: (Mandatory) How many feature terms to extract.</p></li><li><p><code>positiveLabel</code>: (defaults to 1) The value in the outcome field that defines a postive outcome.</p></li></ul></div></section>
<section class="sect2"><h3 id="features-syntax">features Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>features(collection1,
q="*:*",
featureSet="features1",
@@ -1758,7 +1781,7 @@ The <code>rows</code> parameter returns
<section class="sect1"><h2 id="cat">cat</h2><p>The <code>cat</code> function reads the specified files or directories and emits each line in the file(s) as a tuple.</p>
<p>Each emitted tuple contains two fields: <code>file</code> and <code>line</code>. <code>file</code> contains the path to the file being read from relative to the <code>userfiles</code> chroot (directly under <code>$SOLR_HOME</code>), and <code>line</code> contains a line in that file.</p>
<p><code>cat</code> is ideally used with the <code>update</code> stream to index data from the specified documents, or with the <code>analyze</code> stream to further split the lines into individual tokens for statistical processing or visualization.</p>
-<section class="sect2"><h3 id="cat-parameters">cat Parameters</h3><div class="ulist"><ul><li><code>filePaths</code>: (Mandatory) a comma separated list of filepaths to read lines from. If the specified path is a directory, it will be crawled recursively and all contained files will be read. To prevent malicious users from reading arbitrary files from Solr nodes, <code>filePaths</code> must be a relative path measured from a chroot of <code>$SOLR_HOME/userfiles</code> on the node running the streaming expression.</li><li><code>maxLines</code>: (defaults to -1) The maximum number of lines to read (and tuples to emit). If a negative value is specified, all lines in the specified files will be emitted as tuples. Files are read in the order that they appear in the comma-separated <code>filePaths</code> argument. If the line-limit is hit, it will be these later files that are partially emitted or not read at all.</li></ul></div></section>
+<section class="sect2"><h3 id="cat-parameters">cat Parameters</h3><div class="ulist"><ul><li><p><code>filePaths</code>: (Mandatory) a comma separated list of filepaths to read lines from. If the specified path is a directory, it will be crawled recursively and all contained files will be read. To prevent malicious users from reading arbitrary files from Solr nodes, <code>filePaths</code> must be a relative path measured from a chroot of <code>$SOLR_HOME/userfiles</code> on the node running the streaming expression.</p></li><li><p><code>maxLines</code>: (defaults to -1) The maximum number of lines to read (and tuples to emit). If a negative value is specified, all lines in the specified files will be emitted as tuples. Files are read in the order that they appear in the comma-separated <code>filePaths</code> argument. If the line-limit is hit, it will be these later files that are partially emitted or not read at all.</p></li></ul></div></section>
<section class="sect2"><h3 id="cat-examples">cat Examples</h3><p>The following example emits all lines from a single text file located at <code>$SOLR_HOME/userfiles/authors.txt</code>:</p>
<div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>cat("authors.txt")</code></pre></code></pre></div>
<p>This example will read lines from <code>$SOLR_HOME/userfiles/authors.txt</code>, as well as all files (recursively) found under <code>$SOLR_HOME/userfiles/fiction/scifi</code>. Only 500 lines will be emitted, meaning that some files may be partially emitted or not read at all:</p>
@@ -1766,7 +1789,7 @@ The <code>rows</code> parameter returns
<section class="sect1"><h2 id="nodes">nodes</h2><p>The <code>nodes</code> function provides breadth-first graph traversal. For details, see the section <a href="graph-traversal.html#graph-traversal">Graph Traversal</a>.</p></section>
<section class="sect1"><h2 id="knnsearch">knnSearch</h2><p>The <code>knnSearch</code> function returns the k-nearest neighbors for a document based on text similarity. Under the covers the <code>knnSearch</code> function
uses the More Like This query parser plugin.</p>
-<section class="sect2"><h3 id="knnsearch-parameters">knnSearch Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) The collection to perform the search in.</li><li><code>id</code>: (Mandatory) The id of the source document to begin the knn search from.</li><li><code>qf</code>: (Mandatory) The query field used to compare documents.</li><li><code>k</code>: (Mandatory) The number of nearest neighbors to return.</li><li><code>fl</code>: (Mandatory) The field list to return.</li><li><code>mindf</code>: (Optional) The minimum number of occurrences in the corpus to be included in the search.</li><li><code>maxdf</code>: (Optional) The maximum number of occurrences in the corpus to be included in the search.</li><li><code>minwl</code>: (Optional) The minimum world length of to be included in the search.</li><li><code>maxwl</code>: (Optional) The maximum world length of to be included in the search.</li></ul></div></section>
+<section class="sect2"><h3 id="knnsearch-parameters">knnSearch Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) The collection to perform the search in.</p></li><li><p><code>id</code>: (Mandatory) The id of the source document to begin the knn search from.</p></li><li><p><code>qf</code>: (Mandatory) The query field used to compare documents.</p></li><li><p><code>k</code>: (Mandatory) The number of nearest neighbors to return.</p></li><li><p><code>fl</code>: (Mandatory) The field list to return.</p></li><li><p><code>mindf</code>: (Optional) The minimum number of occurrences in the corpus to be included in the search.</p></li><li><p><code>maxdf</code>: (Optional) The maximum number of occurrences in the corpus to be included in the search.</p></li><li><p><code>minwl</code>: (Optional) The minimum world length of to be included in the search.</p></li><li><p><code>maxwl</code>: (Optional) The maximum world length of to be included in the search.</p></li>
</ul></div></section>
<section class="sect2"><h3 id="knnsearch-syntax">knnSearch Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>knnSearch(collection1,
id="doc1",
qf="text_field",
@@ -1778,20 +1801,20 @@ uses the More Like This query parser plu
<p>A single model tuple is fetched and returned based on the <strong>id</strong> parameter. The model is retrieved by matching the <strong>id</strong> parameter with a model name in the index. If more then one iteration of the named model is stored in the index, the highest iteration is selected.</p>
<section class="sect2"><h3 id="caching-with-model">Caching with model</h3><p>The <code>model</code> function has an internal LRU (least-recently-used) cache so models do not have to be retrieved with each invocation of the <code>model</code> function. The time to cache for each model ID can be passed as a parameter to the function call. Retrieving a cached model does not reset the time for expiring the model ID in the cache.</p></section>
<section class="sect2"><h3 id="model-storage">Model Storage</h3><p>The storage format of the models in Solr is below. The <code>train</code> function outputs the format below so you only need to know schema details if you plan to use the <code>model</code> function with logistic regression models trained outside of Solr.</p>
-<div class="ulist"><ul><li><code>name_s</code> (Single value, String, Stored): The name of the model.</li><li><code>iteration_i</code> (Single value, Integer, Stored): The iteration number of the model. Solr can store all iterations of the models generated by the train function.</li><li><code>terms_ss</code> (Multi value, String, Stored: The array of terms/features of the model.</li><li><code>weights_ds</code> (Multi value, double, Stored): The array of term weights. Each weight corresponds by array index to a term.</li><li><code>idfs_ds</code> (Multi value, double, Stored): The array of term IDFs (Inverse document frequency). Each IDF corresponds by array index to a term.</li></ul></div></section>
-<section class="sect2"><h3 id="model-parameters">model Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) The collection where the model is stored.</li><li><code>id</code>: (Mandatory) The id/name of the model. The model function always returns one model. If there are multiple iterations of the name, the highest iteration is returned.</li><li><code>cacheMillis</code>: (Optional) The amount of time to cache the model in the LRU cache.</li></ul></div></section>
+<div class="ulist"><ul><li><p><code>name_s</code> (Single value, String, Stored): The name of the model.</p></li><li><p><code>iteration_i</code> (Single value, Integer, Stored): The iteration number of the model. Solr can store all iterations of the models generated by the train function.</p></li><li><p><code>terms_ss</code> (Multi value, String, Stored: The array of terms/features of the model.</p></li><li><p><code>weights_ds</code> (Multi value, double, Stored): The array of term weights. Each weight corresponds by array index to a term.</p></li><li><p><code>idfs_ds</code> (Multi value, double, Stored): The array of term IDFs (Inverse document frequency). Each IDF corresponds by array index to a term.</p></li></ul></div></section>
+<section class="sect2"><h3 id="model-parameters">model Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) The collection where the model is stored.</p></li><li><p><code>id</code>: (Mandatory) The id/name of the model. The model function always returns one model. If there are multiple iterations of the name, the highest iteration is returned.</p></li><li><p><code>cacheMillis</code>: (Optional) The amount of time to cache the model in the LRU cache.</p></li></ul></div></section>
<section class="sect2"><h3 id="model-syntax">model Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>model(modelCollection,
id="myModel"
cacheMillis="200000")</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="random">random</h2><p>The <code>random</code> function searches a SolrCloud collection and emits a pseudo-random set of results that match the query. Each invocation of random will return a different pseudo-random result set.</p>
-<section class="sect2"><h3 id="random-parameters">random Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) The collection the stats will be aggregated from.</li><li><code>q</code>: (Mandatory) The query to build the aggregations from.</li><li><code>rows</code>: (Mandatory) The number of pseudo-random results to return.</li><li>fl: (Mandatory) The field list to return.</li><li><code>fq</code>: (Optional) Filter query</li></ul></div></section>
+<section class="sect2"><h3 id="random-parameters">random Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) The collection the stats will be aggregated from.</p></li><li><p><code>q</code>: (Mandatory) The query to build the aggregations from.</p></li><li><p><code>rows</code>: (Mandatory) The number of pseudo-random results to return.</p></li><li><p>fl: (Mandatory) The field list to return.</p></li><li><p><code>fq</code>: (Optional) Filter query</p></li></ul></div></section>
<section class="sect2"><h3 id="random-syntax">random Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>random(baskets,
q="productID:productX",
rows="100",
fl="basketID")</code></pre></code></pre></div>
<p>In the example above the <code>random</code> function is searching the baskets collections for all rows where "productID:productX". It will return 100 pseudo-random results. The field list returned is the basketID.</p></section></section>
<section class="sect1"><h2 id="significantterms">significantTerms</h2><p>The <code>significantTerms</code> function queries a SolrCloud collection, but instead of returning documents, it returns significant terms found in documents in the result set. The <code>significantTerms</code> function scores terms based on how frequently they appear in the result set and how rarely they appear in the entire corpus. The <code>significantTerms</code> 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 and background counts are global for the collection.</p>
-<section class="sect2"><h3 id="significantterms-parameters">significantTerms Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) The collection that the function is run on.</li><li><code>q</code>: (Mandatory) The query that describes the foreground document set.</li><li><code>field</code>: (Mandatory) The field to extract the terms from.</li><li><code>limit</code>: (Optional, Default 20) The max number of terms to return.</li><li><code>minDocFreq</code>: (Optional, Defaults to 5 documents) The minimum number of documents the term must appear in on a shard. This is a float value. If greater then 1.0 then it’s considered the absolute number of documents. If less then 1.0 it’s treated as a percentage of documents.</li><li><code>maxDocFreq</code>: (Optional, Defaults to 30% of documents) The maximum number of documents the term can appear in on a shard. This is a float value. If greater then 1.0 then it’s considered the absolute number of doc
uments. If less then 1.0 it’s treated as a percentage of documents.</li><li><code>minTermLength</code>: (Optional, Default 4) The minimum length of the term to be considered significant.</li></ul></div></section>
+<section class="sect2"><h3 id="significantterms-parameters">significantTerms Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) The collection that the function is run on.</p></li><li><p><code>q</code>: (Mandatory) The query that describes the foreground document set.</p></li><li><p><code>field</code>: (Mandatory) The field to extract the terms from.</p></li><li><p><code>limit</code>: (Optional, Default 20) The max number of terms to return.</p></li><li><p><code>minDocFreq</code>: (Optional, Defaults to 5 documents) The minimum number of documents the term must appear in on a shard. This is a float value. If greater then 1.0 then it’s considered the absolute number of documents. If less then 1.0 it’s treated as a percentage of documents.</p></li><li><p><code>maxDocFreq</code>: (Optional, Defaults to 30% of documents) The maximum number of documents the term can appear in on a shard. This is a float value. If greater then 1.0 then it’s
considered the absolute number of documents. If less then 1.0 it’s treated as a percentage of documents.</p></li><li><p><code>minTermLength</code>: (Optional, Default 4) The minimum length of the term to be considered significant.</p></li></ul></div></section>
<section class="sect2"><h3 id="significantterms-syntax">significantTerms Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>significantTerms(collection1,
q="body:Solr",
field="author",
@@ -1801,7 +1824,7 @@ uses the More Like This query parser plu
minTermLength="5")</code></pre></code></pre></div>
<p>In the example above the <code>significantTerms</code> function is querying <code>collection1</code> and returning at most 50 significant terms from the <code>authors</code> field that appear in 10 or more documents but not more then 20% of the corpus.</p></section></section>
<section class="sect1"><h2 id="shortestpath">shortestPath</h2><p>The <code>shortestPath</code> function is an implementation of a shortest path graph traversal. The <code>shortestPath</code> function performs an iterative breadth-first search through an unweighted graph to find the shortest paths between two nodes in a graph. The <code>shortestPath</code> function emits a tuple for each path found. Each tuple emitted will contain a <code>path</code> key which points to a <code>List</code> of nodeIDs comprising the path.</p>
-<section class="sect2"><h3 id="shortestpath-parameters">shortestPath Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) The collection that the topic query will be run on.</li><li><code>from</code>: (Mandatory) The nodeID to start the search from</li><li><code>to</code>: (Mandatory) The nodeID to end the search at</li><li><code>edge</code>: (Mandatory) Syntax: <code>from_field=to_field</code>. The <code>from_field</code> defines which field to search from. The <code>to_field</code> defines which field to search to. See example below for a detailed explanation.</li><li><code>threads</code>: (Optional: Default 6) The number of threads used to perform the partitioned join in the traversal.</li><li><code>partitionSize</code>: (Optional: Default 250) The number of nodes in each partition of the join.</li><li><code>fq</code>: (Optional) Filter query</li><li><code>maxDepth</code>: (Mandatory) Limits to the search to a maximum depth in the graph.</li></ul></div><
/section>
+<section class="sect2"><h3 id="shortestpath-parameters">shortestPath Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) The collection that the topic query will be run on.</p></li><li><p><code>from</code>: (Mandatory) The nodeID to start the search from</p></li><li><p><code>to</code>: (Mandatory) The nodeID to end the search at</p></li><li><p><code>edge</code>: (Mandatory) Syntax: <code>from_field=to_field</code>. The <code>from_field</code> defines which field to search from. The <code>to_field</code> defines which field to search to. See example below for a detailed explanation.</p></li><li><p><code>threads</code>: (Optional: Default 6) The number of threads used to perform the partitioned join in the traversal.</p></li><li><p><code>partitionSize</code>: (Optional: Default 250) The number of nodes in each partition of the join.</p></li><li><p><code>fq</code>: (Optional) Filter query</p></li><li><p><code>maxDepth</code>: (Mandatory) Limits to the sear
ch to a maximum depth in the graph.</p></li></ul></div></section>
<section class="sect2"><h3 id="shortestpath-syntax">shortestPath Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>shortestPath(collection,
from="john@company.com",
to="jane@company.com",
@@ -1816,13 +1839,14 @@ uses the More Like This query parser plu
under the covers <code>shuffle</code> always uses the /export handler. The <code>shuffle</code> expression is designed to be combined with the relational algebra
decorators that require complete, sorted result sets. Shuffled result sets can be partitioned across worker nodes with the parallel
stream decorator to perform parallel relational algebra. When used in parallel mode the partitionKeys parameter must be provided.</p>
-<section class="sect2"><h3 id="shuffle-parameters">shuffle Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) the collection being searched.</li><li><code>q</code>: (Mandatory) The query to perform on the Solr index.</li><li><code>fl</code>: (Mandatory) The list of fields to return.</li><li><code>sort</code>: (Mandatory) The sort criteria.</li><li><code>zkHost</code>: Only needs to be defined if the collection being searched is found in a different zkHost than the local stream handler.</li><li><code>partitionKeys</code>: Comma delimited list of keys to partition the search results by. To be used with the parallel function for parallelizing operations across worker nodes. See the <a href="stream-decorator-reference.html#parallel">parallel</a> function for details.</li></ul></div></section>
+<section class="sect2"><h3 id="shuffle-parameters">shuffle Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) the collection being searched.</p></li><li><p><code>q</code>: (Mandatory) The query to perform on the Solr index.</p></li><li><p><code>fl</code>: (Mandatory) The list of fields to return.</p></li><li><p><code>sort</code>: (Mandatory) The sort criteria.</p></li><li><p><code>zkHost</code>: Only needs to be defined if the collection being searched is found in a different zkHost than the local stream handler.</p></li><li><p><code>partitionKeys</code>: Comma delimited list of keys to partition the search results by. To be used with the parallel function for parallelizing operations across worker nodes. See the <a href="stream-decorator-reference.html#parallel">parallel</a> function for details.</p></li></ul></div></section>
<section class="sect2"><h3 id="shuffle-syntax">shuffle Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>shuffle(collection1,
q="*:*",
fl="id,a_s,a_i,a_f",
sort="a_f asc, a_i asc")</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="stats">stats</h2><p>The <code>stats</code> function gathers simple aggregations for a search result set. The stats function does not support rollups over buckets, so the stats stream always returns a single tuple with the rolled up stats. Under the covers the stats function pushes down the generation of the stats into the search engine using the StatsComponent. The stats function currently supports the following metrics: <code>count(*)</code>, <code>sum()</code>, <code>avg()</code>, <code>min()</code>, and <code>max()</code>.</p>
-<section class="sect2"><h3 id="stats-parameters">stats Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) Collection the stats will be aggregated from.</li><li><code>q</code>: (Mandatory) The query to build the aggregations from.</li><li><code>metrics</code>: (Mandatory) The metrics to include in the result tuple. Current supported metrics are <code>sum(col)</code>, <code>avg(col)</code>, <code>min(col)</code>, <code>max(col)</code> and <code>count(*)</code></li></ul></div></section>
+<section class="sect2"><h3 id="stats-parameters">stats Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) Collection the stats will be aggregated from.</p></li><li><p><code>q</code>: (Mandatory) The query to build the aggregations from.</p></li><li><p><code>metrics</code>: (Mandatory) The metrics to include in the result tuple. Current supported metrics are <code>sum(col)</code>, <code>avg(col)</code>, <code>min(col)</code>, <code>max(col)</code>, <code>count(*)</code>, <code>per(col, 50)</code>. The <code>per</code> metric calculates a percentile
+for a numeric column and can be specified multiple times in the same stats function.</p></li></ul></div></section>
<section class="sect2"><h3 id="stats-syntax">stats Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>stats(collection1,
q=*:*,
sum(a_i),
@@ -1833,10 +1857,13 @@ stream decorator to perform parallel rel
max(a_f),
avg(a_i),
avg(a_f),
+ per(a_f, 50),
+ per(a_f, 75),
count(*))</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="timeseries">timeseries</h2><p>The <code>timeseries</code> function builds a time series aggregation. Under the covers the <code>timeseries</code> function uses the
JSON Facet API as its high performance aggregation engine.</p>
-<section class="sect2"><h3 id="timeseries-parameters">timeseries Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) Collection the stats will be aggregated from.</li><li><code>q</code>: (Mandatory) The query to build the aggregations from.</li><li><code>field</code>: (Mandatory) The date field for the time series.</li><li><code>start</code>: (Mandatory) The start of the time series expressed in Solr date or date math syntax.</li><li><code>end</code>: (Mandatory) The end of the time series expressed in Solr date or date math syntax.</li><li><code>gap</code>: (Mandatory) The time gap between time series aggregation points expressed in Solr date math syntax.</li><li><code>format</code>: (Optional) Date template to format the date field in the output tuples. Formatting is performed by Java’s SimpleDateFormat class.</li><li><code>metrics</code>: (Mandatory) The metrics to include in the result tuple. Current supported metrics are <code>sum(col)</code>, <
code>avg(col)</code>, <code>min(col)</code>, <code>max(col)</code> and <code>count(*)</code></li></ul></div></section>
+<section class="sect2"><h3 id="timeseries-parameters">timeseries Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) Collection the stats will be aggregated from.</p></li><li><p><code>q</code>: (Mandatory) The query to build the aggregations from.</p></li><li><p><code>field</code>: (Mandatory) The date field for the time series.</p></li><li><p><code>start</code>: (Mandatory) The start of the time series expressed in Solr date or date math syntax.</p></li><li><p><code>end</code>: (Mandatory) The end of the time series expressed in Solr date or date math syntax.</p></li><li><p><code>gap</code>: (Mandatory) The time gap between time series aggregation points expressed in Solr date math syntax.</p></li><li><p><code>format</code>: (Optional) Date template to format the date field in the output tuples. Formatting is performed by Java’s SimpleDateFormat class.</p></li><li><p><code>metrics</code>: (Mandatory) The metrics to include in the result tuple. Cu
rrent supported metrics are <code>sum(col)</code>, <code>avg(col)</code>, <code>min(col)</code>, <code>max(col)</code>, <code>count(*)</code>, <code>per(col, 50)</code>. The <code>per</code> metric calculates a percentile
+for a numeric column and can be specified multiple times in the same timeseries function.</p></li></ul></div></section>
<section class="sect2"><h3 id="timeseries-syntax">timeseries Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>timeseries(collection1,
q=*:*,
field="rec_dt"
@@ -1849,11 +1876,13 @@ JSON Facet API as its high performance a
max(a_f),
avg(a_i),
avg(a_f),
+ per(a_f, 50),
+ per(a_f, 75),
count(*))</code></pre></code></pre></div></section></section>
<section class="sect1"><h2 id="train">train</h2><p>The <code>train</code> function trains a Logistic Regression text classifier on a training set stored in a SolrCloud collection. It uses a parallel iterative, batch Gradient Descent approach to train the model. The training algorithm is embedded inside Solr so with each iteration only the model is streamed across the network.</p>
<p>The <code>train</code> function wraps a <a href="#features">features</a> function which provides the terms and inverse document frequency (IDF) used to train the model. The <code>train</code> function operates over the same training set as the <code>features</code> function, which includes both positive and negative examples of the class.</p>
<p>With each iteration the <code>train</code> function emits a tuple with the model. The model contains the feature terms, weights, and the confusion matrix for the model. The optimized model can then be used to classify documents based on their feature terms.</p>
-<section class="sect2"><h3 id="train-parameters">train Parameters</h3><div class="ulist"><ul><li><code>collection</code>: (Mandatory) Collection that holds the training set</li><li><code>q</code>: (Mandatory) The query that defines the training set. The IDF for the features will be generated on the</li><li><code>name</code>: (Mandatory) The name of model. This can be used to retrieve the model if they stored in a Solr Cloud collection.</li><li><code>field</code>: (Mandatory) The text field to extract the features from.</li><li><code>outcome</code>: (Mandatory) The field that defines the class, positive or negative</li><li><code>maxIterations</code>: (Mandatory) How many training iterations to perform.</li><li><code>positiveLabel</code>: (defaults to 1) The value in the outcome field that defines a positive outcome.</li></ul></div></section>
+<section class="sect2"><h3 id="train-parameters">train Parameters</h3><div class="ulist"><ul><li><p><code>collection</code>: (Mandatory) Collection that holds the training set</p></li><li><p><code>q</code>: (Mandatory) The query that defines the training set. The IDF for the features will be generated on the</p></li><li><p><code>name</code>: (Mandatory) The name of model. This can be used to retrieve the model if they stored in a Solr Cloud collection.</p></li><li><p><code>field</code>: (Mandatory) The text field to extract the features from.</p></li><li><p><code>outcome</code>: (Mandatory) The field that defines the class, positive or negative</p></li><li><p><code>maxIterations</code>: (Mandatory) How many training iterations to perform.</p></li><li><p><code>positiveLabel</code>: (defaults to 1) The value in the outcome field that defines a positive outcome.</p></li></ul></div></section>
<section class="sect2"><h3 id="train-syntax">train Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>train(collection1,
features(collection1, q="*:*", featureSet="first", field="body", outcome="out_i", numTerms=250),
q="*:*",
@@ -1874,7 +1903,7 @@ JSON Facet API as its high performance a
</tr>
</table>
</div>
-<section class="sect2"><h3 id="topic-parameters">topic Parameters</h3><div class="ulist"><ul><li><code>checkpointCollection</code>: (Mandatory) The collection where the topic checkpoints are stored.</li><li><code>collection</code>: (Mandatory) The collection that the topic query will be run on.</li><li><code>id</code>: (Mandatory) The unique ID for the topic. The checkpoints will be saved under this id.</li><li><code>q</code>: (Mandatory) The topic query.</li><li><code>fl</code>: (Mandatory) The field list returned by the topic function.</li><li><code>initialCheckpoint</code>: (Optional) Sets the initial Solr <code>_version_</code> number to start reading from the queue. If not set, it defaults to the highest version in the index. Setting to 0 will process all records that match query in the index.</li><li><code>zkHost</code>: (Optional) Only needs to be defined if the collection being searched is found in a different zkHost than the local stream handler.</li></ul></div></section>
+<section class="sect2"><h3 id="topic-parameters">topic Parameters</h3><div class="ulist"><ul><li><p><code>checkpointCollection</code>: (Mandatory) The collection where the topic checkpoints are stored.</p></li><li><p><code>collection</code>: (Mandatory) The collection that the topic query will be run on.</p></li><li><p><code>id</code>: (Mandatory) The unique ID for the topic. The checkpoints will be saved under this id.</p></li><li><p><code>q</code>: (Mandatory) The topic query.</p></li><li><p><code>fl</code>: (Mandatory) The field list returned by the topic function.</p></li><li><p><code>initialCheckpoint</code>: (Optional) Sets the initial Solr <code>_version_</code> number to start reading from the queue. If not set, it defaults to the highest version in the index. Setting to 0 will process all records that match query in the index.</p></li><li><p><code>zkHost</code>: (Optional) Only needs to be defined if the collection being searched is found in a different zkHost than the loca
l stream handler.</p></li></ul></div></section>
<section class="sect2"><h3 id="topic-syntax">topic Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>topic(checkpointCollection,
collection,
id="uniqueId",
@@ -1884,7 +1913,7 @@ JSON Facet API as its high performance a
Stream Expressions. In the case of Stream Evaluators the tuple will output the return value from the evaluator.
This could be a numeric, list or map. If a value is set to a Stream Expression, the <code>tuple</code> function will flatten
the tuple stream from the Stream Expression into a list of Tuples.</p>
-<section class="sect2"><h3 id="tuple-parameters">tuple Parameters</h3><div class="ulist"><ul><li>name=value pairs</li></ul></div></section>
+<section class="sect2"><h3 id="tuple-parameters">tuple Parameters</h3><div class="ulist"><ul><li><p>name=value pairs</p></li></ul></div></section>
<section class="sect2"><h3 id="tuple-syntax">tuple Syntax</h3><div class="listingblock"><pre class="rouge highlight"><code class="language-text" data-lang="text"><pre class="highlight"><code>tuple(a=add(1,1),
b=search(collection1, q="cat:a", fl="a, b, c", sort="a desc"))</code></pre></code></pre></div></section></section>
</section>
@@ -1916,7 +1945,7 @@ the tuple stream from the Stream Express
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/streaming-expressions.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/streaming-expressions.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/streaming-expressions.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Streaming Expressions | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Streaming Expressions | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="streaming-expressions">
+<body class="" id="streaming-expressions">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1675,7 +1670,7 @@
<section id="preamble" aria-label="Preamble"><p>Streaming Expressions provide a simple yet powerful stream processing language for Solr Cloud.</p>
<p>Streaming expressions are a suite of functions that can be combined to perform many different parallel computing tasks. These functions are the basis for the <a href="parallel-sql-interface.html#parallel-sql-interface">Parallel SQL Interface</a>.</p>
<p>There is a growing library of functions that can be combined to implement:</p>
-<div class="ulist"><ul><li>Request/response stream processing</li><li>Batch stream processing</li><li>Fast interactive MapReduce</li><li>Aggregations (Both pushed down faceted and shuffling MapReduce)</li><li>Parallel relational algebra (distributed joins, intersections, unions, complements)</li><li>Publish/subscribe messaging</li><li>Distributed graph traversal</li><li>Machine learning and parallel iterative model training</li><li>Anomaly detection</li><li>Recommendation systems</li><li>Retrieve and rank services</li><li>Text classification and feature extraction</li><li>Streaming NLP</li><li>Statistical Programming</li></ul></div>
+<div class="ulist"><ul><li><p>Request/response stream processing</p></li><li><p>Batch stream processing</p></li><li><p>Fast interactive MapReduce</p></li><li><p>Aggregations (Both pushed down faceted and shuffling MapReduce)</p></li><li><p>Parallel relational algebra (distributed joins, intersections, unions, complements)</p></li><li><p>Publish/subscribe messaging</p></li><li><p>Distributed graph traversal</p></li><li><p>Machine learning and parallel iterative model training</p></li><li><p>Anomaly detection</p></li><li><p>Recommendation systems</p></li><li><p>Retrieve and rank services</p></li><li><p>Text classification and feature extraction</p></li><li><p>Streaming NLP</p></li><li><p>Statistical Programming</p></li></ul></div>
<p>Streams from outside systems can be joined with streams originating from Solr and users can add their own stream functions by following Solr’s <a href="https://lucene.apache.org/solr/8_6_0//solr-solrj/org/apache/solr/client/solrj/io/stream/package-summary.html">Java streaming API</a>.</p>
<div class="admonitionblock important">
<table>
@@ -1775,7 +1770,7 @@ list of known mappings for the <code>/st
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/suggester.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/suggester.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/suggester.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Suggester | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Suggester | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="suggester">
+<body class="" id="suggester">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1682,7 +1677,7 @@
<p>Although it is possible to use the <a href="spell-checking.html#spell-checking">Spell Checking</a> functionality to power autosuggest behavior, Solr has a dedicated <a href="http://lucene.apache.org/solr/api/solr-core/org/apache/solr/handler/component/SuggestComponent.html">SuggestComponent</a> designed for this functionality.</p>
<p>This approach utilizes Lucene’s Suggester implementation and supports all of the lookup implementations available in Lucene.</p>
<p>The main features of this Suggester are:</p>
-<div class="ulist"><ul><li>Lookup implementation pluggability</li><li>Term dictionary pluggability, giving you the flexibility to choose the dictionary implementation</li><li>Distributed support</li></ul></div>
+<div class="ulist"><ul><li><p>Lookup implementation pluggability</p></li><li><p>Term dictionary pluggability, giving you the flexibility to choose the dictionary implementation</p></li><li><p>Distributed support</p></li></ul></div>
<p>The <code>solrconfig.xml</code> found in Solr’s “<code>techproducts</code>” example has a Suggester implementation configured already. For more on search components, see the section <a href="requesthandlers-and-searchcomponents-in-solrconfig.html#requesthandlers-and-searchcomponents-in-solrconfig">RequestHandlers and SearchComponents in SolrConfig</a>.</p>
<p>The “<code>techproducts</code>” example <code>solrconfig.xml</code> has a <code>suggest</code> search component and a <code>/suggest</code> request handler already configured. You can use that as the basis for your configuration, or create it from scratch, as detailed below.</p></section>
<section class="sect1"><h2 id="adding-the-suggest-search-component">Adding the Suggest Search Component</h2><p>The first step is to add a search component to <code>solrconfig.xml</code> and tell it to use the SuggestComponent. Here is some sample code that could be used.</p>
@@ -1920,7 +1915,7 @@ accommodate 3.0</code></pre></code></pre
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/suggestions-screen.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/suggestions-screen.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/suggestions-screen.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Suggestions Screen | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Suggestions Screen | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="suggestions-screen">
+<body class="" id="suggestions-screen">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1707,7 +1702,7 @@ Since autoscaling features are only avai
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/taking-solr-to-production.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/taking-solr-to-production.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/taking-solr-to-production.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Taking Solr to Production | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Taking Solr to Production | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="taking-solr-to-production">
+<body class="" id="taking-solr-to-production">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1776,7 +1771,7 @@ You can also refer to <a href="jvm-setti
<div class="listingblock"><pre class="rouge highlight"><code class="language-bash" data-lang="bash"><pre class="highlight"><code><span style="color: #008080">SOLR_HOST</span><span style="color: #000000;font-weight: bold">=</span>solr1.example.com</code></pre></code></pre></div>
<p>Setting the hostname of the Solr server is recommended, especially when running in SolrCloud mode, as this determines the address of the node when it registers with ZooKeeper.</p></section>
<section class="sect2"><h3 id="environment-banner-in-admin-ui">Environment Banner in Admin UI</h3><p>To guard against accidentally doing changes to the wrong cluster, you may configure a visual indication in the Admin UI of whether you currently work with a production environment or not. To do this, edit your <code>solr.in.sh</code> or <code>solr.in.cmd</code> file with a <code>-Dsolr.environment=prod</code> setting, or set the cluster property named <code>environment</code>. To specify label and/or color, use a comma delimited format as below. The <code>+</code> character can be used instead of space to avoid quoting. Colors may be valid CSS colors or numeric, e.g., <code>#ff0000</code> for bright red. Examples of valid environment configs:</p>
-<div class="ulist"><ul><li><code>prod</code></li><li><code>test,label=Functional+test</code></li><li><code>dev,label=MyDev,color=blue</code></li><li><code>dev,color=blue</code></li></ul></div></section>
+<div class="ulist"><ul><li><p><code>prod</code></p></li><li><p><code>test,label=Functional+test</code></p></li><li><p><code>dev,label=MyDev,color=blue</code></p></li><li><p><code>dev,color=blue</code></p></li></ul></div></section>
<section class="sect2"><h3 id="override-settings-in-solrconfig-xml">Override Settings in solrconfig.xml</h3><p>Solr allows configuration properties to be overridden using Java system properties passed at startup using the <code>-Dproperty=value</code> syntax. For instance, in <code>solrconfig.xml</code>, the default auto soft commit settings are set to:</p>
<div class="listingblock"><pre class="rouge highlight"><code class="language-xml" data-lang="xml"><pre class="highlight"><code><span style="color: #000080"><autoSoftCommit></span>
<span style="color: #000080"><maxTime></span>${solr.autoSoftCommit.maxTime:-1}<span style="color: #000080"></maxTime></span>
@@ -1788,7 +1783,7 @@ You can also refer to <a href="jvm-setti
<section class="sect2"><h3 id="ulimit-settings-nix-operating-systems">Ulimit Settings (*nix Operating Systems)</h3><p>There are several settings that should be monitored and set as high as possible, "unlimited" by preference. On most "*nix" operating systems, you can see the current values by typing the following at a command prompt.</p>
<div class="listingblock"><pre class="rouge highlight"><code class="language-bash" data-lang="bash"><pre class="highlight"><code><span style="color: #0086B3">ulimit</span> -a</code></pre></code></pre></div>
<p>These four settings in particular are important to have set very high, unlimited if possible.</p>
-<div class="ulist"><ul><li>max processes (<code>ulimit -u</code>): 65,000 is the recommended <em>minimum</em>.</li><li>file handles (<code>ulimit -n</code>): 65,000 is the recommended <em>minimum</em>. All the files used by all replicas have their file handles open at once so this can grow quite large.</li><li>virtual memory (<code>ulimit -v</code>): Set to unlimited. This is used to by MMapping the indexes.</li><li>max memory size (<code>ulimit -m</code>): Also used by MMap, set to unlimited.</li><li>If your system supports it, <code>sysctl vm.max_map_count</code>, should be set to unlimited as well.</li></ul></div>
+<div class="ulist"><ul><li><p>max processes (<code>ulimit -u</code>): 65,000 is the recommended <em>minimum</em>.</p></li><li><p>file handles (<code>ulimit -n</code>): 65,000 is the recommended <em>minimum</em>. All the files used by all replicas have their file handles open at once so this can grow quite large.</p></li><li><p>virtual memory (<code>ulimit -v</code>): Set to unlimited. This is used to by MMapping the indexes.</p></li><li><p>max memory size (<code>ulimit -m</code>): Also used by MMap, set to unlimited.</p></li><li><p>If your system supports it, <code>sysctl vm.max_map_count</code>, should be set to unlimited as well.</p></li></ul></div>
<p>We strongly recommend that these settings be permanently raised. The exact process to permanently raise them will vary per operating system. Some systems require editing configuration files and restarting your server. Consult your system administrators for guidance in your particular environment.</p>
<div class="admonitionblock warning">
<table>
@@ -1875,7 +1870,7 @@ sudo service solr2 status</code></pre></
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/term-vectors.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/term-vectors.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/term-vectors.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>Text Analysis and Term Vectors | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>Text Analysis and Term Vectors | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="term-vectors">
+<body class="" id="term-vectors">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1842,7 +1837,7 @@ term will be excluded from the term vect
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>
Modified: websites/production/lucene/content/solr/guide/8_6/the-dismax-query-parser.html
==============================================================================
--- websites/production/lucene/content/solr/guide/8_6/the-dismax-query-parser.html (original)
+++ websites/production/lucene/content/solr/guide/8_6/the-dismax-query-parser.html Wed Jul 15 16:52:36 2020
@@ -8,7 +8,7 @@
<meta name="description" content="">
<meta name="keywords" content=" ">
-<title>The DisMax Query Parser | Apache Solr Reference Guide 8.6-DRAFT</title>
+<title>The DisMax Query Parser | Apache Solr Reference Guide 8.6</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
@@ -71,7 +71,7 @@
</script>
</head>
-<body class="DRAFT" id="the-dismax-query-parser">
+<body class="" id="the-dismax-query-parser">
<div class="container-fluid">
<div class="row">
<nav id="sidebar" class="col-2 d-none d-md-block">
@@ -79,11 +79,6 @@
<div class="sidebar-header">
<div class="sidebarTitle text-center">Apache Solr Reference Guide</div>
- <p class="draft-notice">
- This is an unofficial DRAFT of the Guide for 8.6.
- <a href="https://lucene.apache.org/solr/guide/">Official releases are available from the Solr website</a>.
- </p>
-
<!--comment out this block if you want to hide search-->
<!--start search-->
@@ -1701,7 +1696,7 @@ The <code>q</code> parameter does not su
<p>The table below explains the various ways that mm values can be specified.</p>
<div class="tableblock"><table class="frame-all grid-all spread"><colgroup><col style="width: 30%;"><col style="width: 10%;"><col style="width: 60%;"></colgroup><thead><tr><th class="halign-left valign-top">Syntax</th><th class="halign-left valign-top">Example</th><th class="halign-left valign-top">Description</th></tr><tbody><tr><td class="halign-left valign-top">Positive integer</td><td class="halign-left valign-top">3</td><td class="halign-left valign-top">Defines the minimum number of clauses that must match, regardless of how many clauses there are in total.</td></tr><tr><td class="halign-left valign-top">Negative integer</td><td class="halign-left valign-top">-2</td><td class="halign-left valign-top">Sets the minimum number of matching clauses to the total number of optional clauses, minus this value.</td></tr><tr><td class="halign-left valign-top">Percentage</td><td class="halign-left valign-top">75%</td><td class="halign-left valign-top">Sets the minimum number of matching c
lauses to this percentage of the total number of optional clauses. The number computed from the percentage is rounded down and used as the minimum.</td></tr><tr><td class="halign-left valign-top">Negative percentage</td><td class="halign-left valign-top">-25%</td><td class="halign-left valign-top">Indicates that this percent of the total number of optional clauses can be missing. The number computed from the percentage is rounded down, before being subtracted from the total to determine the minimum number.</td></tr><tr><td class="halign-left valign-top">An expression beginning with a positive integer followed by a > or < sign and another value</td><td class="halign-left valign-top">3<90%</td><td class="halign-left valign-top">Defines a conditional expression indicating that if the number of optional clauses is equal to (or less than) the integer, they are all required, but if it’s greater than the integer, the specification applies. In this example: if there are 1 to
3 clauses they are all required, but for 4 or more clauses only 90% are required.</td></tr><tr><td class="halign-left valign-top">Multiple conditional expressions involving > or < signs</td><td class="halign-left valign-top">2<-25% 9<-3</td><td class="halign-left valign-top">Defines multiple conditions, each one being valid only for numbers greater than the one before it. In the example at left, if there are 1 or 2 clauses, then both are required. If there are 3-9 clauses all but 25% are required. If there are more then 9 clauses, all but three are required.</td></tr></table></div>
<p>When specifying <code>mm</code> values, keep in mind the following:</p>
-<div class="ulist"><ul><li>When dealing with percentages, negative values can be used to get different behavior in edge cases. 75% and -25% mean the same thing when dealing with 4 clauses, but when dealing with 5 clauses 75% means 3 are required, but -25% means 4 are required.</li><li>If the calculations based on the parameter arguments determine that no optional clauses are needed, the usual rules about Boolean queries still apply at search time. (That is, a Boolean query containing no required clauses must still match at least one optional clause).</li><li>No matter what number the calculation arrives at, Solr will never use a value greater than the number of optional clauses, or a value less than 1. In other words, no matter how low or how high the calculated result, the minimum number of required matches will never be less than 1 or greater than the number of clauses.</li><li>When searching across multiple fields that are configured with different query analyzers, the number of
optional clauses may differ between the fields. In such a case, the value specified by mm applies to the maximum number of optional clauses. For example, if a query clause is treated as stopword for one of the fields, the number of optional clauses for that field will be smaller than for the other fields. A query with such a stopword clause would not return a match in that field if mm is set to 100% because the removed clause does not count as matched.</li></ul></div>
+<div class="ulist"><ul><li><p>When dealing with percentages, negative values can be used to get different behavior in edge cases. 75% and -25% mean the same thing when dealing with 4 clauses, but when dealing with 5 clauses 75% means 3 are required, but -25% means 4 are required.</p></li><li><p>If the calculations based on the parameter arguments determine that no optional clauses are needed, the usual rules about Boolean queries still apply at search time. (That is, a Boolean query containing no required clauses must still match at least one optional clause).</p></li><li><p>No matter what number the calculation arrives at, Solr will never use a value greater than the number of optional clauses, or a value less than 1. In other words, no matter how low or how high the calculated result, the minimum number of required matches will never be less than 1 or greater than the number of clauses.</p></li><li><p>When searching across multiple fields that are configured with different query a
nalyzers, the number of optional clauses may differ between the fields. In such a case, the value specified by mm applies to the maximum number of optional clauses. For example, if a query clause is treated as stopword for one of the fields, the number of optional clauses for that field will be smaller than for the other fields. A query with such a stopword clause would not return a match in that field if mm is set to 100% because the removed clause does not count as matched.</p></li></ul></div>
<p>The default value of <code>mm</code> is 0% (all clauses optional), unless <code>q.op</code> is specified as "AND", in which case <code>mm</code> defaults to 100% (all clauses required).</p></section>
<section class="sect2"><h3 id="pf-phrase-fields-parameter">pf (Phrase Fields) Parameter</h3><p>Once the list of matching documents has been identified using the <code>fq</code> and <code>qf</code> parameters, the <code>pf</code> parameter can be used to "boost" the score of documents in cases where all of the terms in the q parameter appear in close proximity.</p>
<p>The format is the same as that used by the <code>qf</code> parameter: a list of fields and "boosts" to associate with each of them when making phrase queries out of the entire q parameter.</p></section>
@@ -1795,7 +1790,7 @@ bq={!lucene}( {!func v='div(1,sum(1,pric
<div class="row">
<div class="col-lg-12 footer">
©2020 Apache Software Foundation. All rights reserved. <br />
- Site Version: 8.6-DRAFT <br />Site last generated: 2020-07-08 <br />
+ Site Version: 8.6 <br />Site last generated: 2020-07-15 <br />
<p><img src="images/solr-sunOnly-small.png" alt="Apache Solr"/></p>
</div>
</div>