Bin/Solr Logs/Archived Slowquerythresholdmillis Solr - Slow - Requests - Log Solr - Log
Bin/Solr Logs/Archived Slowquerythresholdmillis Solr - Slow - Requests - Log Solr - Log
Because copy field rules can slow indexing and increase index size, it’s recommended you
only use copy fields when you need to. If you do not need to sort or facet on a field, you
should remove the automatically-generated copy field rule.
Automatic field creation can be disabled with the update.autoCreateFields property. To do
this, you can
use the Config API with a command such as:
V1 API
curl http://host:8983/solr/mycollection/config -d '{"set-user-property":
{"update.autoCreateFields":"false"}}'
V2 API
curl http://host:8983/api/collections/mycollection/config -d '{"set-user-property":
{"update.autoCreateFields":"false"}}'
Changes to Default Behaviors
• JSON is now the default response format. If you rely on XML responses, you must now define
wt=xml in
your request. In addition, line indentation is enabled by default ( indent=on).
• The sow parameter (short for "Split on Whitespace") now defaults to false, which allows
support for
multi-word synonyms out of the box. This parameter is used with the eDismax and
standard/"lucene"
query parsers. If this parameter is not explicitly specified as true, query text will not be
split on
whitespace before analysis.
• The legacyCloud parameter now defaults to false. If an entry for a replica does not exist
in state.json,
that replica will not get registered.
This may affect users who bring up replicas and they are automatically registered as a part
of a shard. It
is possible to fall back to the old behavior by setting the property legacyCloud=true, in
the cluster
properties using the following command:
./server/scripts/cloud-scripts/zkcli.sh -zkhost 127.0.0.1:2181 -cmd clusterprop -name
legacyCloud -val true
• The eDismax query parser parameter lowercaseOperators now defaults to false if the
luceneMatchVersion in solrconfig.xml is 7.0.0 or above. Behavior for luceneMatchVersion
lower than
7.0.0 is unchanged (so, true). This means that clients must sent boolean operators (such as
AND, OR and
NOT) in upper case in order to be recognized, or you must explicitly set this parameter to
true.
• The handleSelect parameter in solrconfig.xml now defaults to false if the
luceneMatchVersion is
7.0.0 or above. This causes Solr to ignore the qt parameter if it is present in a request. If
you have
request handlers without a leading '/', you can set handleSelect="true" or consider
migrating your
configuration.
The qt parameter is still used as a SolrJ special parameter that specifies the request
handler (tail URL
Apache Solr Reference Guide 7.7 Page 107 of 1426
c 2019, Apache Software Foundation Guide Version 7.7 - Published: 2019-03-04
path) to use.
• The lucenePlusSort query parser (aka the "Old Lucene Query Parser") has been deprecated and
is no
longer implicitly defined. If you wish to continue using this parser until Solr 8 (when it
will be removed),
you must register it in your solrconfig.xml, as in: <queryParser name="lucenePlusSort"
class="solr.OldLuceneQParserPlugin"/>.
• The name of TemplateUpdateRequestProcessorFactory is changed to template from Template
and the
name of AtomicUpdateProcessorFactory is changed to atomic from Atomic
◦ Also, TemplateUpdateRequestProcessorFactory now uses {} instead of ${} for template.
Deprecations and Removed Features
Point Fields Are Default Numeric Types
Solr has implemented *PointField types across the board, to replace Trie* based numeric
fields. All Trie*
fields are now considered deprecated, and will be removed in Solr 8.
If you are using Trie* fields in your schema, you should consider moving to PointFields as
soon as feasible.
Changing to the new PointField types will require you to re-index your data.
Spatial Fields
The following spatial-related fields have been deprecated:
• LatLonType
• GeoHashField
• SpatialVectorFieldType
• SpatialTermQueryPrefixTreeFieldType
Choose one of these field types instead:
• LatLonPointSpatialField
• SpatialRecursivePrefixTreeField
• RptWithGeometrySpatialField
See the section Spatial Search for more information.
JMX Support and MBeans
• The <jmx> element in solrconfig.xml has been removed in favor of <metrics><reporter>
elements
defined in solr.xml.
Limited back-compatibility is offered by automatically adding a default instance of
SolrJmxReporter if
it’s missing AND when a local MBean server is found. A local MBean server can be activated
either via
ENABLE_REMOTE_JMX_OPTS in solr.in.sh or via system properties, e.g.,
-Dcom.sun.management.jmxremote. This default instance exports all Solr metrics from all
registries as
hierarchical MBeans.
This behavior can be also disabled by specifying a SolrJmxReporter configuration with a
boolean init
argument enabled set to false. For a more fine-grained control users should explicitly
specify at least
Page 108 of 1426 Apache Solr Reference Guide 7.7
Guide Version 7.7 - Published: 2019-03-04 c 2019, Apache Software Foundation
one SolrJmxReporter configuration.
See also the section The <metrics><reporters> Element, which describes how to set up Metrics
Reporters
in solr.xml. Note that back-compatibility support may be removed in Solr 8.
• MBean names and attributes now follow the hierarchical names used in metrics. This is
reflected also in
/admin/mbeans and /admin/plugins output, and can be observed in the UI Plugins tab,
because now all
these APIs get their data from the metrics API. The old (mostly flat) JMX view has been
removed.
SolrJ
The following changes were made in SolrJ.
• HttpClientInterceptorPlugin is now HttpClientBuilderPlugin and must work with a
SolrHttpClientBuilder rather than an HttpClientConfigurer.
• HttpClientUtil now allows configuring HttpClient instances via SolrHttpClientBuilder
rather than
an HttpClientConfigurer. Use of env variable SOLR_AUTHENTICATION_CLIENT_CONFIGURER no
longer
works, please use SOLR_AUTHENTICATION_CLIENT_BUILDER
• SolrClient implementations now use their own internal configuration for socket timeouts,
connect
timeouts, and allowing redirects rather than what is set as the default when building the
HttpClient
instance. Use the appropriate setters on the SolrClient instance.
• HttpSolrClient#setAllowCompression has been removed and compression must be enabled as a
constructor parameter.
• HttpSolrClient#setDefaultMaxConnectionsPerHost and
HttpSolrClient#setMaxTotalConnections
have been removed. These now default very high and can only be changed via parameter when
creating
an HttpClient instance.
Other Deprecations and Removals
• The defaultOperator parameter in the schema is no longer supported. Use the q.op
parameter instead.
This option had been deprecated for several releases. See the section Standard Query Parser
Parameters
for more information.
• The defaultSearchField parameter in the schema is no longer supported. Use the df
parameter
instead. This option had been deprecated for several releases. See the section Standard Query
Parser
Parameters for more information.
• The mergePolicy, mergeFactor and maxMergeDocs parameters have been removed and are no
longer
supported. You should define a mergePolicyFactory instead. See the section the
mergePolicyFactory for
more information.
• The PostingsSolrHighlighter has been deprecated. It’s recommended that you move to using
the
UnifiedHighlighter instead. See the section Unified Highlighter for more information about
this
highlighter.
• Index-time boosts have been removed from Lucene, and are no longer available from Solr. If
any boosts
are provided, they will be ignored by the indexing chain. As a replacement, index-time
scoring factors
should be indexed in a separate field and combined with the query score using a function
query. See the
section Function Queries for more information.
• The StandardRequestHandler is deprecated. Use SearchHandler instead.