bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject bigtop git commit: BIGTOP-3040: Solr's default configsets doesn't work with smoke test cases
Date Mon, 11 Jun 2018 01:23:05 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 11d46c4aa -> d16afea0b


BIGTOP-3040: Solr's default configsets doesn't work with smoke test cases

The default configsets used in solr is data_driven_schema_configs, which
doesn't work with solr smoke test, TestIndexing:testSearch. The reason is
in data_driven_schema_configs "name" is treated as StrField, not TextField,
so the words will not be tokenized, and lead to unexpected query result.
sample_techproducts_configs should be used.

This closes #364

Change-Id: I170c9530ed937410dcd99c975276c30777b24045
Signed-off-by: Jun He <junhe@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/d16afea0
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/d16afea0
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/d16afea0

Branch: refs/heads/master
Commit: d16afea0bf23a3a31182c9101d2a06ab7f68e2c6
Parents: 11d46c4
Author: Jun He <jun.he@linaro.org>
Authored: Tue Jun 5 12:57:59 2018 +0800
Committer: Jun He <junhe@apache.org>
Committed: Mon Jun 11 01:22:09 2018 +0000

----------------------------------------------------------------------
 bigtop-packages/src/common/solr/solrctl.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/d16afea0/bigtop-packages/src/common/solr/solrctl.sh
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/solr/solrctl.sh b/bigtop-packages/src/common/solr/solrctl.sh
index 18f055b..19bdfe0 100755
--- a/bigtop-packages/src/common/solr/solrctl.sh
+++ b/bigtop-packages/src/common/solr/solrctl.sh
@@ -273,8 +273,8 @@ while test $# != 0 ; do
 
             mkdir -p "$3" > /dev/null 2>&1
             [ -d "$3" ] || usage "Error: $3 has to be a directory"
-            # data_driven_schema_configs is used as default
-            cp -r ${SOLR_INSTALL_DIR}/server/solr/configsets/data_driven_schema_configs/conf
"$3/conf"
+            # sample_techproducts_configs is used as default, this provides many common used
optional features
+            cp -r ${SOLR_INSTALL_DIR}/server/solr/configsets/sample_techproducts_configs/conf
"$3/conf"
             shift 3
             ;;
         --list)


Mime
View raw message