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 2018/01/11 14:40:42 UTC
[1/2] lucene-solr:master: Ref Guide: typos and small edits
Repository: lucene-solr
Updated Branches:
refs/heads/master 35e692367 -> 60c6890ff
Ref Guide: typos and small edits
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/60c6890f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/60c6890f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/60c6890f
Branch: refs/heads/master
Commit: 60c6890ff07498c39178d6fb221d361148cbf95e
Parents: 4dac5aa
Author: Cassandra Targett <ct...@apache.org>
Authored: Thu Jan 11 08:39:57 2018 -0600
Committer: Cassandra Targett <ct...@apache.org>
Committed: Thu Jan 11 08:40:26 2018 -0600
----------------------------------------------------------------------
solr/solr-ref-guide/src/distributed-requests.adoc | 2 +-
solr/solr-ref-guide/src/format-of-solr-xml.adoc | 2 +-
solr/solr-ref-guide/src/suggester.adoc | 12 ++++++------
3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/60c6890f/solr/solr-ref-guide/src/distributed-requests.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/distributed-requests.adoc b/solr/solr-ref-guide/src/distributed-requests.adoc
index c2f6d1c..f5aaff4 100644
--- a/solr/solr-ref-guide/src/distributed-requests.adoc
+++ b/solr/solr-ref-guide/src/distributed-requests.adoc
@@ -61,7 +61,7 @@ Or you can specify a list of replicas to choose from for a single shard (for loa
http://localhost:8983/solr/gettingstarted/select?q=*:*&shards=localhost:7574/solr/gettingstarted|localhost:7500/solr/gettingstarted
----
-And of course, you can specify a list of shards (seperated by commas) each defined by a list of replicas (seperated by pipes). In this example, 2 shards are queried, the first being a random replica from shard1, the second being a random replica from the explicit pipe delimited list:
+And of course, you can specify a list of shards (separated by commas) each defined by a list of replicas (seperated by pipes). In this example, 2 shards are queried, the first being a random replica from shard1, the second being a random replica from the explicit pipe delimited list:
[source,text]
----
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/60c6890f/solr/solr-ref-guide/src/format-of-solr-xml.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/format-of-solr-xml.adoc b/solr/solr-ref-guide/src/format-of-solr-xml.adoc
index 65ea9f0..a235943 100644
--- a/solr/solr-ref-guide/src/format-of-solr-xml.adoc
+++ b/solr/solr-ref-guide/src/format-of-solr-xml.adoc
@@ -155,7 +155,7 @@ Custom shard handlers can be defined in `solr.xml` if you wish to create a custo
<shardHandlerFactory name="ShardHandlerFactory" class="qualified.class.name">
----
-Since this is a custom shard handler, sub-elements are specific to the implementation. The default and only shard handler provided by Solr is the HttpShardHandlerFactory in which case, the following sub-elements can be specified:
+Since this is a custom shard handler, sub-elements are specific to the implementation. The default and only shard handler provided by Solr is the `HttpShardHandlerFactory` in which case, the following sub-elements can be specified:
`socketTimeout`::
The read timeout for intra-cluster query and administrative requests. The default is the same as the `distribUpdateSoTimeout` specified in the `<solrcloud>` section.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/60c6890f/solr/solr-ref-guide/src/suggester.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/suggester.adoc b/solr/solr-ref-guide/src/suggester.adoc
index f96d400..0f9e12e 100644
--- a/solr/solr-ref-guide/src/suggester.adoc
+++ b/solr/solr-ref-guide/src/suggester.adoc
@@ -194,22 +194,22 @@ An extension of the `AnalyzingInfixSuggester` which provides additional function
This implementation uses the following additional properties:
`blenderType`::
-Used to calculate weight coefficient using the position of the first matching word. Can be one of:
+Used to calculate weight coefficient using the position of the first matching word. Available options are:
`position_linear`:::
-`weightFieldValue*(1 - 0.10*position)`: Matches to the start will be given a higher score. This is the default.
+`weightFieldValue * (1 - 0.10*position)`: Matches to the start will be given a higher score. This is the default.
`position_reciprocal`:::
-`weightFieldValue/(1+position)`: Matches to the end will be given a higher score.
+`weightFieldValue / (1 + position)`: Matches to the end will be given a higher score.
`exponent`::::
-An optional configuration variable for the position_reciprocal blenderType used to control how fast the score will increase or decrease. Default `2.0`.
+An optional configuration variable for `position_reciprocal` to control how fast the score will increase or decrease. Default `2.0`.
`numFactor`::
The factor to multiply the number of searched elements from which results will be pruned. Default is `10`.
`indexPath`::
-When using `BlendedInfixSuggester` you can provide your own path where the index will get built. The default directory name is `blendedInfixSuggesterIndexDir` and will be created in your collections data directory.
+When using `BlendedInfixSuggester` you can provide your own path where the index will get built. The default directory name is `blendedInfixSuggesterIndexDir` and will be created in your collection's data directory.
`minPrefixChars`::
-Minimum number of leading characters before PrefixQuery is used (the default is `4`). Prefixes shorter than this are indexed as character ngrams (increasing index size but making lookups faster).
+Minimum number of leading characters before PrefixQuery is used (the default is `4`). Prefixes shorter than this are indexed as character ngrams, which increases index size but makes lookups faster.
This implementation supports <<Context Filtering>>.
[2/2] lucene-solr:master: SOLR-11703: typo in bin/solr "impariment";
change to "disruption"
Posted by ct...@apache.org.
SOLR-11703: typo in bin/solr "impariment"; change to "disruption"
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4dac5aad
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4dac5aad
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4dac5aad
Branch: refs/heads/master
Commit: 4dac5aad1a6fd1b066849f99cca68e6802acafe6
Parents: 35e6923
Author: Cassandra Targett <ct...@apache.org>
Authored: Thu Jan 11 08:35:03 2018 -0600
Committer: Cassandra Targett <ct...@apache.org>
Committed: Thu Jan 11 08:40:26 2018 -0600
----------------------------------------------------------------------
solr/bin/solr | 64 +++++++++++++++++++++++++++---------------------------
1 file changed, 32 insertions(+), 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4dac5aad/solr/bin/solr
----------------------------------------------------------------------
diff --git a/solr/bin/solr b/solr/bin/solr
index ef83cee..0ce19cb 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -19,7 +19,7 @@
#
# Use solr -help to see available command-line options. In addition
# to passing command-line options, this script looks for an include
-# file named solr.in.sh to set environment variables. Specifically,
+# file named solr.in.sh to set environment variables. Specifically,
# the following locations are searched in this order:
#
# ./
@@ -34,15 +34,15 @@
#
# $ SOLR_INCLUDE=/path/to/solr.in.sh solr start
#
-# Note: This is particularly handy for running multiple instances on a
+# Note: This is particularly handy for running multiple instances on a
# single installation, or for quick tests.
#
-# Finally, developers and enthusiasts who frequently run from an SVN
+# Finally, developers and enthusiasts who frequently run from an SVN
# checkout, and do not want to locally modify bin/solr.in.sh, can put
# a customized include file at ~/.solr.in.sh.
#
# If you would rather configure startup entirely from the environment, you
-# can disable the include by exporting an empty SOLR_INCLUDE, or by
+# can disable the include by exporting an empty SOLR_INCLUDE, or by
# ensuring that no include files exist in the aforementioned search list.
SOLR_SCRIPT="$0"
@@ -287,11 +287,11 @@ fi
function print_usage() {
CMD="$1"
ERROR_MSG="$2"
-
+
if [ "$ERROR_MSG" != "" ]; then
echo -e "\nERROR: $ERROR_MSG\n"
fi
-
+
if [ -z "$CMD" ]; then
echo ""
echo "Usage: solr COMMAND OPTIONS"
@@ -648,7 +648,7 @@ function solr_pid_by_port() {
echo "$solrPID"
}
-# extract the value of the -Djetty.port parameter from a running Solr process
+# extract the value of the -Djetty.port parameter from a running Solr process
function jetty_port() {
SOLR_PID="$1"
SOLR_PROC=`ps auxww | grep -w $SOLR_PID | grep start\.jar | grep jetty\.port`
@@ -660,11 +660,11 @@ function jetty_port() {
local jetty_port="${pair[1]}"
break
fi
- done
+ done
echo "$jetty_port"
} # end jetty_port func
-# run a Solr command-line tool using the SolrCLI class;
+# run a Solr command-line tool using the SolrCLI class;
# useful for doing cross-platform work from the command-line using Java
function run_tool() {
@@ -723,7 +723,7 @@ function get_info() {
return $CODE
} # end get_info
-# tries to gracefully stop Solr using the Jetty
+# tries to gracefully stop Solr using the Jetty
# stop command and if that fails, then uses kill -9
function stop_solr() {
@@ -793,7 +793,7 @@ if [ $# -eq 1 ]; then
fi
if [ $# -gt 0 ]; then
- # if first arg starts with a dash (and it's not -help or -info),
+ # if first arg starts with a dash (and it's not -help or -info),
# then assume they are starting Solr, such as: solr -f
if [[ $1 == -* ]]; then
SCRIPT_CMD="start"
@@ -804,7 +804,7 @@ if [ $# -gt 0 ]; then
else
# no args - just show usage and exit
print_usage ""
- exit
+ exit
fi
if [ "$SCRIPT_CMD" == "status" ]; then
@@ -826,7 +826,7 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; then
VERBOSE=""
if [ $# -gt 0 ]; then
- while true; do
+ while true; do
case "$1" in
-c|-collection)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
@@ -836,7 +836,7 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; then
HEALTHCHECK_COLLECTION="$2"
shift 2
;;
- -z|-zkhost)
+ -z|-zkhost)
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
print_usage "$SCRIPT_CMD" "ZooKeeper connection string is required when using the $1 option!"
exit 1
@@ -845,7 +845,7 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; then
shift 2
;;
-help|-usage)
- print_usage "$SCRIPT_CMD"
+ print_usage "$SCRIPT_CMD"
exit 0
;;
-V|--verbose)
@@ -857,29 +857,29 @@ if [ "$SCRIPT_CMD" == "healthcheck" ]; then
break
;;
*)
- if [ "$1" != "" ]; then
+ if [ "$1" != "" ]; then
print_usage "$SCRIPT_CMD" "Unrecognized or misplaced argument: $1!"
exit 1
else
break # out-of-args, stop looping
- fi
+ fi
;;
esac
done
fi
-
+
if [ -z "$ZK_HOST" ]; then
ZK_HOST=localhost:9983
fi
-
+
if [ -z "$HEALTHCHECK_COLLECTION" ]; then
echo "collection parameter is required!"
print_usage "healthcheck"
- exit 1
+ exit 1
fi
-
+
run_tool healthcheck -zkHost "$ZK_HOST" -collection "$HEALTHCHECK_COLLECTION" $VERBOSE
-
+
exit $?
fi
@@ -973,7 +973,7 @@ if [[ "$SCRIPT_CMD" == "create" || "$SCRIPT_CMD" == "create_core" || "$SCRIPT_CM
if [ -z "$CREATE_CONFDIR" ]; then
CREATE_CONFDIR='_default'
fi
-
+
# validate the confdir arg (if provided)
if [[ ! -d "$SOLR_TIP/server/solr/configsets/$CREATE_CONFDIR" && ! -d "$CREATE_CONFDIR" ]]; then
echo -e "\nSpecified configuration directory $CREATE_CONFDIR not found!\n"
@@ -1431,13 +1431,13 @@ if [ -z "$SOLR_ULIMIT_CHECKS" ] || [ "$SOLR_ULIMIT_CHECKS" != "false" ]; then
maxProcs=$(ulimit -u)
if [ $openFiles -lt "$SOLR_RECOMMENDED_OPEN_FILES" ]; then
echo "*** [WARN] *** Your open file limit is currently $openFiles. "
- echo " It should be set to $SOLR_RECOMMENDED_OPEN_FILES to avoid operational impariment. "
+ echo " It should be set to $SOLR_RECOMMENDED_OPEN_FILES to avoid operational disruption. "
echo " If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh"
fi
if [ $maxProcs -lt "$SOLR_RECOMMENDED_MAX_PROCESSES" ]; then
echo "*** [WARN] *** Your Max Processes Limit is currently $maxProcs. "
- echo " It should be set to $SOLR_RECOMMENDED_MAX_PROCESSES to avoid operational impariment. "
+ echo " It should be set to $SOLR_RECOMMENDED_MAX_PROCESSES to avoid operational disruption. "
echo " If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh"
fi
else
@@ -1456,7 +1456,7 @@ SOLR_OPTS=($SOLR_OPTS)
PASS_TO_RUN_EXAMPLE=
if [ $# -gt 0 ]; then
- while true; do
+ while true; do
case "$1" in
-c|-cloud)
SOLR_MODE="solrcloud"
@@ -1854,9 +1854,9 @@ if [ "$SOLR_MODE" == 'solrcloud' ]; then
if [ -z "$ZK_CLIENT_TIMEOUT" ]; then
ZK_CLIENT_TIMEOUT="15000"
fi
-
+
CLOUD_MODE_OPTS=("-DzkClientTimeout=$ZK_CLIENT_TIMEOUT")
-
+
if [ "$ZK_HOST" != "" ]; then
CLOUD_MODE_OPTS+=("-DzkHost=$ZK_HOST")
else
@@ -1871,7 +1871,7 @@ if [ "$SOLR_MODE" == 'solrcloud' ]; then
if [ -e "$SOLR_HOME/collection1/core.properties" ]; then
CLOUD_MODE_OPTS+=('-Dbootstrap_confdir=./solr/collection1/conf' '-Dcollection.configName=myconf' '-DnumShards=1')
fi
-
+
else
if [ ! -e "$SOLR_HOME/solr.xml" ]; then
echo -e "\nSolr home directory $SOLR_HOME must contain a solr.xml file!\n"
@@ -1928,7 +1928,7 @@ function launch_solr() {
run_in_foreground="$1"
stop_port="$STOP_PORT"
-
+
SOLR_ADDL_ARGS="$2"
SOLR_JETTY_ADDL_CONFIG="$3"
@@ -2009,10 +2009,10 @@ function launch_solr() {
fi
echo -e "\n"
fi
-
+
# need to launch solr from the server dir
cd "$SOLR_SERVER_DIR"
-
+
if [ ! -e "$SOLR_SERVER_DIR/start.jar" ]; then
echo -e "\nERROR: start.jar file not found in $SOLR_SERVER_DIR!\nPlease check your -d parameter to set the correct Solr server directory.\n"
exit 1