lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [16/50] [abbrv] lucene-solr:jira/solr-12509: SOLR-12441: Lowercase _NEST_PARENT_ and _NEST_PATH_ fields.
Date Thu, 19 Jul 2018 08:41:17 GMT
SOLR-12441: Lowercase _NEST_PARENT_ and _NEST_PATH_ fields.


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

Branch: refs/heads/jira/solr-12509
Commit: 424608946c10c7af1cb369a2a0247db0e6dd9744
Parents: 07de1dc
Author: David Smiley <dsmiley@apache.org>
Authored: Fri Jul 13 22:51:13 2018 -0400
Committer: David Smiley <dsmiley@apache.org>
Committed: Fri Jul 13 22:51:13 2018 -0400

----------------------------------------------------------------------
 solr/CHANGES.txt                                             | 2 +-
 solr/core/src/java/org/apache/solr/schema/IndexSchema.java   | 4 ++--
 solr/core/src/test-files/solr/collection1/conf/schema15.xml  | 4 ++--
 .../org/apache/solr/update/TestNestedUpdateProcessor.java    | 8 ++++----
 4 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/42460894/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 4af1149..89206c0 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -107,7 +107,7 @@ New Features
 
 * SOLR-12495: An #EQUALS function for replica in autoscaling policy to equally distribute
replicas (noble)
 
-* SOLR-12441: New NestedUpdateProcessorFactory (URP) to populate special fields _NEST_PARENT_
and _NEST_PATH_ of nested
+* SOLR-12441: New NestedUpdateProcessorFactory (URP) to populate special fields _nest_parent_
and _nest_path_ of nested
   (child) documents.  It will generate a uniqueKey of nested docs if they were blank too.
(Moshe Bla, David Smiley)
 
 Bug Fixes

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/42460894/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
index 2cb26c7..1f67976 100644
--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
@@ -107,8 +107,8 @@ public class IndexSchema {
   public static final String LUCENE_MATCH_VERSION_PARAM = "luceneMatchVersion";
   public static final String MAX_CHARS = "maxChars";
   public static final String NAME = "name";
-  public static final String NEST_PARENT_FIELD_NAME = "_NEST_PARENT_";
-  public static final String NEST_PATH_FIELD_NAME = "_NEST_PATH_";
+  public static final String NEST_PARENT_FIELD_NAME = "_nest_parent_";
+  public static final String NEST_PATH_FIELD_NAME = "_nest_path_";
   public static final String REQUIRED = "required";
   public static final String SCHEMA = "schema";
   public static final String SIMILARITY = "similarity";

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/42460894/solr/core/src/test-files/solr/collection1/conf/schema15.xml
----------------------------------------------------------------------
diff --git a/solr/core/src/test-files/solr/collection1/conf/schema15.xml b/solr/core/src/test-files/solr/collection1/conf/schema15.xml
index 5ca9529..e65cbfd 100644
--- a/solr/core/src/test-files/solr/collection1/conf/schema15.xml
+++ b/solr/core/src/test-files/solr/collection1/conf/schema15.xml
@@ -566,8 +566,8 @@
   <!-- points to the root document of a block of nested documents -->
   <field name="_root_" type="string" indexed="true" stored="true"/>
   <!-- required for NestedUpdateProcessor -->
-  <field name="_NEST_PARENT_" type="string" indexed="true" stored="true"/>
-  <field name="_NEST_PATH_" type="string" indexed="true" stored="true"/>
+  <field name="_nest_parent_" type="string" indexed="true" stored="true"/>
+  <field name="_nest_path_" type="string" indexed="true" stored="true"/>
 
   <field name="multi_int_with_docvals" type="tint" multiValued="true" docValues="true"
indexed="false"/>
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/42460894/solr/core/src/test/org/apache/solr/update/TestNestedUpdateProcessor.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/TestNestedUpdateProcessor.java b/solr/core/src/test/org/apache/solr/update/TestNestedUpdateProcessor.java
index ab36f0e..a09a476 100644
--- a/solr/core/src/test/org/apache/solr/update/TestNestedUpdateProcessor.java
+++ b/solr/core/src/test/org/apache/solr/update/TestNestedUpdateProcessor.java
@@ -151,16 +151,16 @@ public class TestNestedUpdateProcessor extends SolrTestCaseJ4 {
     List children = (List) docHierarchy.get("children").getValues();
 
     SolrInputDocument firstChild = (SolrInputDocument) children.get(0);
-    assertEquals("SolrInputDocument(fields: [id=2, name_s=Yaz, _NEST_PATH_=children#0, _NEST_PARENT_=1])",
firstChild.toString());
+    assertEquals("SolrInputDocument(fields: [id=2, name_s=Yaz, _nest_path_=children#0, _nest_parent_=1])",
firstChild.toString());
 
     SolrInputDocument secondChild = (SolrInputDocument) children.get(1);
-    assertEquals("SolrInputDocument(fields: [id=3, name_s=Jazz, grandChild=SolrInputDocument(fields:
[id=4, name_s=Gaz, _NEST_PATH_=children#1/grandChild#, _NEST_PARENT_=3]), _NEST_PATH_=children#1,
_NEST_PARENT_=1])", secondChild.toString());
+    assertEquals("SolrInputDocument(fields: [id=3, name_s=Jazz, grandChild=SolrInputDocument(fields:
[id=4, name_s=Gaz, _nest_path_=children#1/grandChild#, _nest_parent_=3]), _nest_path_=children#1,
_nest_parent_=1])", secondChild.toString());
 
     SolrInputDocument grandChild = (SolrInputDocument)((SolrInputDocument) children.get(1)).get("grandChild").getValue();
-    assertEquals("SolrInputDocument(fields: [id=4, name_s=Gaz, _NEST_PATH_=children#1/grandChild#,
_NEST_PARENT_=3])", grandChild.toString());
+    assertEquals("SolrInputDocument(fields: [id=4, name_s=Gaz, _nest_path_=children#1/grandChild#,
_nest_parent_=3])", grandChild.toString());
 
     SolrInputDocument singularChild = (SolrInputDocument) docHierarchy.get("lonelyChild").getValue();
-    assertEquals("SolrInputDocument(fields: [id=5, name_s=Loner, _NEST_PATH_=lonelyChild#,
_NEST_PARENT_=1])", singularChild.toString());
+    assertEquals("SolrInputDocument(fields: [id=5, name_s=Loner, _nest_path_=lonelyChild#,
_nest_parent_=1])", singularChild.toString());
   }
 
   @Test


Mime
View raw message