You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by va...@apache.org on 2018/02/21 01:50:17 UTC
lucene-solr:branch_7x: SOLR-12006: Add a '*_t' and '*_t_sort' dynamic
field for single valued text fields
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 9cbdcf85e -> a42e4b36f
SOLR-12006: Add a '*_t' and '*_t_sort' dynamic field for single valued text fields
(cherry picked from commit a9f0272)
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a42e4b36
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a42e4b36
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a42e4b36
Branch: refs/heads/branch_7x
Commit: a42e4b36f106f6e0e609127b7956e02bb8aa4cfa
Parents: 9cbdcf8
Author: Varun Thacker <va...@apache.org>
Authored: Tue Feb 20 17:30:27 2018 -0800
Committer: Varun Thacker <va...@apache.org>
Committed: Tue Feb 20 17:50:01 2018 -0800
----------------------------------------------------------------------
solr/CHANGES.txt | 2 ++
.../src/test-files/solr/configsets/_default/conf/managed-schema | 2 ++
solr/server/solr/configsets/_default/conf/managed-schema | 2 ++
3 files changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a42e4b36/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 619e3da..d264299 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -148,6 +148,8 @@ New Features
* SOLR-11588: Add matrixMult Stream Evaluator to support matrix multiplication (Joel Bernstein)
+* SOLR-12006: Add a '*_t' and '*_t_sort' dynamic field for single valued text fields (Varun Thacker)
+
Bug Fixes
----------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a42e4b36/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema b/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema
index 5a2ebaf..4168a83 100644
--- a/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema
+++ b/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema
@@ -131,6 +131,7 @@
<dynamicField name="*_ss" type="strings" indexed="true" stored="true"/>
<dynamicField name="*_l" type="plong" indexed="true" stored="true"/>
<dynamicField name="*_ls" type="plongs" indexed="true" stored="true"/>
+ <dynamicField name="*_t" type="text_general" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_txt" type="text_general" indexed="true" stored="true"/>
<dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
<dynamicField name="*_bs" type="booleans" indexed="true" stored="true"/>
@@ -298,6 +299,7 @@
is that it takes up more space on disk; which is why it's not used in place of TextField
for every fieldType in this _default schema.
-->
+ <dynamicField name="*_t_sort" type="text_gen_sort" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_txt_sort" type="text_gen_sort" indexed="true" stored="true"/>
<fieldType name="text_gen_sort" class="solr.SortableTextField" positionIncrementGap="100" multiValued="true">
<analyzer type="index">
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a42e4b36/solr/server/solr/configsets/_default/conf/managed-schema
----------------------------------------------------------------------
diff --git a/solr/server/solr/configsets/_default/conf/managed-schema b/solr/server/solr/configsets/_default/conf/managed-schema
index 5a2ebaf..4168a83 100644
--- a/solr/server/solr/configsets/_default/conf/managed-schema
+++ b/solr/server/solr/configsets/_default/conf/managed-schema
@@ -131,6 +131,7 @@
<dynamicField name="*_ss" type="strings" indexed="true" stored="true"/>
<dynamicField name="*_l" type="plong" indexed="true" stored="true"/>
<dynamicField name="*_ls" type="plongs" indexed="true" stored="true"/>
+ <dynamicField name="*_t" type="text_general" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_txt" type="text_general" indexed="true" stored="true"/>
<dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
<dynamicField name="*_bs" type="booleans" indexed="true" stored="true"/>
@@ -298,6 +299,7 @@
is that it takes up more space on disk; which is why it's not used in place of TextField
for every fieldType in this _default schema.
-->
+ <dynamicField name="*_t_sort" type="text_gen_sort" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_txt_sort" type="text_gen_sort" indexed="true" stored="true"/>
<fieldType name="text_gen_sort" class="solr.SortableTextField" positionIncrementGap="100" multiValued="true">
<analyzer type="index">