You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/07/06 15:47:17 UTC

[1/3] lucene-solr:master: SOLR-9526: fix javadocs

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7_0 257883d65 -> 5e7fa4cee
  refs/heads/branch_7x 451a203f2 -> 20fccd286
  refs/heads/master 43442a635 -> 510608dec


SOLR-9526: fix javadocs


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

Branch: refs/heads/master
Commit: 510608decb5e4ce5b6184d86662af5bd33e1be11
Parents: 43442a6
Author: Steve Rowe <sa...@apache.org>
Authored: Thu Jul 6 11:46:21 2017 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Thu Jul 6 11:46:21 2017 -0400

----------------------------------------------------------------------
 .../AddSchemaFieldsUpdateProcessorFactory.java  | 51 ++++++++++++--------
 1 file changed, 30 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/510608de/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
index 92774e6..1f00e67 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
@@ -74,52 +74,61 @@ import static org.apache.solr.core.ConfigSetProperties.IMMUTABLE_CONFIGSET_ARG;
  * </p>
  * <p>
  * This processor takes as configuration a sequence of zero or more "typeMapping"-s from
- * one or more "valueClass"-s, specified as either an &lt;arr&gt; of &lt;str&gt;, or
- * multiple &lt;str&gt; with the same name, to an existing schema "fieldType".
+ * one or more "valueClass"-s, specified as either an <code>&lt;arr&gt;</code> of 
+ * <code>&lt;str&gt;</code>, or multiple <code>&lt;str&gt;</code> with the same name,
+ * to an existing schema "fieldType".
  * </p>
  * <p>
  * If more than one "valueClass" is specified in a "typeMapping", field values with any
  * of the specified "valueClass"-s will be mapped to the specified target "fieldType".
  * The "typeMapping"-s are attempted in the specified order; if a field value's class
  * is not specified in a "valueClass", the next "typeMapping" is attempted. If no
- * "typeMapping" succeeds, then the specified "defaultFieldType" is used. 
+ * "typeMapping" succeeds, then either the "typeMapping" configured with 
+ * <code>&lt;bool name="default"&gt;true&lt;/bool&gt;</code> is used, or if none is so
+ * configured, the <code>lt;str name="defaultFieldType"&gt;...&lt;/str&gt;</code> is
+ * used.
+ * </p>
+ * <p>
+ * Zero or more "copyField" directives may be included with each "typeMapping", using a
+ * <code>&lt;lst&gt;</code>. The copy field source is automatically set to the new field
+ * name; "dest" must specify the destination field or dynamic field in a
+ * <code>&lt;str&gt;</code>; and "maxChars" may optionally be specified in an
+ * <code>&lt;int&gt;</code>.
  * </p>
  * <p>
  * Example configuration:
  * </p>
  * 
  * <pre class="prettyprint">
- * &lt;processor class="solr.AddSchemaFieldsUpdateProcessorFactory"&gt;
- *   &lt;str name="defaultFieldType"&gt;text_general&lt;/str&gt;
- *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Boolean&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;booleans&lt;/str&gt;
- *   &lt;/lst&gt;
+ * &lt;updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory" name="add-schema-fields"&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Integer&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;pints&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.String&lt;/str&gt;
+ *     &lt;str name="fieldType"&gt;text_general&lt;/str&gt;
+ *     &lt;lst name="copyField"&gt;
+ *       &lt;str name="dest"&gt;*_str&lt;/str&gt;
+ *       &lt;int name="maxChars"&gt;256&lt;/int&gt;
+ *     &lt;/lst&gt;
+ *     &lt;!-- Use as default mapping instead of defaultFieldType --&gt;
+ *     &lt;bool name="default"&gt;true&lt;/bool&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Float&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;pfloats&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Boolean&lt;/str&gt;
+ *     &lt;str name="fieldType"&gt;booleans&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Date&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.util.Date&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;pdates&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Long&lt;/str&gt;
- *     &lt;str name="valueClass"&gt;Integer&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Long&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Integer&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;plongs&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;arr name="valueClass"&gt;
- *       &lt;str&gt;Double&lt;/str&gt;
- *       &lt;str&gt;Float&lt;/str&gt;
- *     &lt;/arr&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Number&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;pdoubles&lt;/str&gt;
  *   &lt;/lst&gt;
- * &lt;/processor&gt;</pre>
+ * &lt;/updateProcessor&gt;</pre>
  */
 public class AddSchemaFieldsUpdateProcessorFactory extends UpdateRequestProcessorFactory
     implements SolrCoreAware, UpdateRequestProcessorFactory.RunAlways {


[2/3] lucene-solr:branch_7x: SOLR-9526: fix javadocs

Posted by sa...@apache.org.
SOLR-9526: fix javadocs


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

Branch: refs/heads/branch_7x
Commit: 20fccd286d207363b154fca61e5aa49824dbf295
Parents: 451a203
Author: Steve Rowe <sa...@apache.org>
Authored: Thu Jul 6 11:46:21 2017 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Thu Jul 6 11:46:39 2017 -0400

----------------------------------------------------------------------
 .../AddSchemaFieldsUpdateProcessorFactory.java  | 51 ++++++++++++--------
 1 file changed, 30 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/20fccd28/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
index 92774e6..1f00e67 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
@@ -74,52 +74,61 @@ import static org.apache.solr.core.ConfigSetProperties.IMMUTABLE_CONFIGSET_ARG;
  * </p>
  * <p>
  * This processor takes as configuration a sequence of zero or more "typeMapping"-s from
- * one or more "valueClass"-s, specified as either an &lt;arr&gt; of &lt;str&gt;, or
- * multiple &lt;str&gt; with the same name, to an existing schema "fieldType".
+ * one or more "valueClass"-s, specified as either an <code>&lt;arr&gt;</code> of 
+ * <code>&lt;str&gt;</code>, or multiple <code>&lt;str&gt;</code> with the same name,
+ * to an existing schema "fieldType".
  * </p>
  * <p>
  * If more than one "valueClass" is specified in a "typeMapping", field values with any
  * of the specified "valueClass"-s will be mapped to the specified target "fieldType".
  * The "typeMapping"-s are attempted in the specified order; if a field value's class
  * is not specified in a "valueClass", the next "typeMapping" is attempted. If no
- * "typeMapping" succeeds, then the specified "defaultFieldType" is used. 
+ * "typeMapping" succeeds, then either the "typeMapping" configured with 
+ * <code>&lt;bool name="default"&gt;true&lt;/bool&gt;</code> is used, or if none is so
+ * configured, the <code>lt;str name="defaultFieldType"&gt;...&lt;/str&gt;</code> is
+ * used.
+ * </p>
+ * <p>
+ * Zero or more "copyField" directives may be included with each "typeMapping", using a
+ * <code>&lt;lst&gt;</code>. The copy field source is automatically set to the new field
+ * name; "dest" must specify the destination field or dynamic field in a
+ * <code>&lt;str&gt;</code>; and "maxChars" may optionally be specified in an
+ * <code>&lt;int&gt;</code>.
  * </p>
  * <p>
  * Example configuration:
  * </p>
  * 
  * <pre class="prettyprint">
- * &lt;processor class="solr.AddSchemaFieldsUpdateProcessorFactory"&gt;
- *   &lt;str name="defaultFieldType"&gt;text_general&lt;/str&gt;
- *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Boolean&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;booleans&lt;/str&gt;
- *   &lt;/lst&gt;
+ * &lt;updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory" name="add-schema-fields"&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Integer&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;pints&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.String&lt;/str&gt;
+ *     &lt;str name="fieldType"&gt;text_general&lt;/str&gt;
+ *     &lt;lst name="copyField"&gt;
+ *       &lt;str name="dest"&gt;*_str&lt;/str&gt;
+ *       &lt;int name="maxChars"&gt;256&lt;/int&gt;
+ *     &lt;/lst&gt;
+ *     &lt;!-- Use as default mapping instead of defaultFieldType --&gt;
+ *     &lt;bool name="default"&gt;true&lt;/bool&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Float&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;pfloats&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Boolean&lt;/str&gt;
+ *     &lt;str name="fieldType"&gt;booleans&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Date&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.util.Date&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;pdates&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Long&lt;/str&gt;
- *     &lt;str name="valueClass"&gt;Integer&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Long&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Integer&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;plongs&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;arr name="valueClass"&gt;
- *       &lt;str&gt;Double&lt;/str&gt;
- *       &lt;str&gt;Float&lt;/str&gt;
- *     &lt;/arr&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Number&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;pdoubles&lt;/str&gt;
  *   &lt;/lst&gt;
- * &lt;/processor&gt;</pre>
+ * &lt;/updateProcessor&gt;</pre>
  */
 public class AddSchemaFieldsUpdateProcessorFactory extends UpdateRequestProcessorFactory
     implements SolrCoreAware, UpdateRequestProcessorFactory.RunAlways {


[3/3] lucene-solr:branch_7_0: SOLR-9526: fix javadocs

Posted by sa...@apache.org.
SOLR-9526: fix javadocs


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

Branch: refs/heads/branch_7_0
Commit: 5e7fa4ceee8f31fcf90254e96d1476281faa922b
Parents: 257883d
Author: Steve Rowe <sa...@apache.org>
Authored: Thu Jul 6 11:46:21 2017 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Thu Jul 6 11:46:57 2017 -0400

----------------------------------------------------------------------
 .../AddSchemaFieldsUpdateProcessorFactory.java  | 51 ++++++++++++--------
 1 file changed, 30 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5e7fa4ce/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
index 92774e6..1f00e67 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.java
@@ -74,52 +74,61 @@ import static org.apache.solr.core.ConfigSetProperties.IMMUTABLE_CONFIGSET_ARG;
  * </p>
  * <p>
  * This processor takes as configuration a sequence of zero or more "typeMapping"-s from
- * one or more "valueClass"-s, specified as either an &lt;arr&gt; of &lt;str&gt;, or
- * multiple &lt;str&gt; with the same name, to an existing schema "fieldType".
+ * one or more "valueClass"-s, specified as either an <code>&lt;arr&gt;</code> of 
+ * <code>&lt;str&gt;</code>, or multiple <code>&lt;str&gt;</code> with the same name,
+ * to an existing schema "fieldType".
  * </p>
  * <p>
  * If more than one "valueClass" is specified in a "typeMapping", field values with any
  * of the specified "valueClass"-s will be mapped to the specified target "fieldType".
  * The "typeMapping"-s are attempted in the specified order; if a field value's class
  * is not specified in a "valueClass", the next "typeMapping" is attempted. If no
- * "typeMapping" succeeds, then the specified "defaultFieldType" is used. 
+ * "typeMapping" succeeds, then either the "typeMapping" configured with 
+ * <code>&lt;bool name="default"&gt;true&lt;/bool&gt;</code> is used, or if none is so
+ * configured, the <code>lt;str name="defaultFieldType"&gt;...&lt;/str&gt;</code> is
+ * used.
+ * </p>
+ * <p>
+ * Zero or more "copyField" directives may be included with each "typeMapping", using a
+ * <code>&lt;lst&gt;</code>. The copy field source is automatically set to the new field
+ * name; "dest" must specify the destination field or dynamic field in a
+ * <code>&lt;str&gt;</code>; and "maxChars" may optionally be specified in an
+ * <code>&lt;int&gt;</code>.
  * </p>
  * <p>
  * Example configuration:
  * </p>
  * 
  * <pre class="prettyprint">
- * &lt;processor class="solr.AddSchemaFieldsUpdateProcessorFactory"&gt;
- *   &lt;str name="defaultFieldType"&gt;text_general&lt;/str&gt;
- *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Boolean&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;booleans&lt;/str&gt;
- *   &lt;/lst&gt;
+ * &lt;updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory" name="add-schema-fields"&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Integer&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;pints&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.String&lt;/str&gt;
+ *     &lt;str name="fieldType"&gt;text_general&lt;/str&gt;
+ *     &lt;lst name="copyField"&gt;
+ *       &lt;str name="dest"&gt;*_str&lt;/str&gt;
+ *       &lt;int name="maxChars"&gt;256&lt;/int&gt;
+ *     &lt;/lst&gt;
+ *     &lt;!-- Use as default mapping instead of defaultFieldType --&gt;
+ *     &lt;bool name="default"&gt;true&lt;/bool&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Float&lt;/str&gt;
- *     &lt;str name="fieldType"&gt;pfloats&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Boolean&lt;/str&gt;
+ *     &lt;str name="fieldType"&gt;booleans&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Date&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.util.Date&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;pdates&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;str name="valueClass"&gt;Long&lt;/str&gt;
- *     &lt;str name="valueClass"&gt;Integer&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Long&lt;/str&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Integer&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;plongs&lt;/str&gt;
  *   &lt;/lst&gt;
  *   &lt;lst name="typeMapping"&gt;
- *     &lt;arr name="valueClass"&gt;
- *       &lt;str&gt;Double&lt;/str&gt;
- *       &lt;str&gt;Float&lt;/str&gt;
- *     &lt;/arr&gt;
+ *     &lt;str name="valueClass"&gt;java.lang.Number&lt;/str&gt;
  *     &lt;str name="fieldType"&gt;pdoubles&lt;/str&gt;
  *   &lt;/lst&gt;
- * &lt;/processor&gt;</pre>
+ * &lt;/updateProcessor&gt;</pre>
  */
 public class AddSchemaFieldsUpdateProcessorFactory extends UpdateRequestProcessorFactory
     implements SolrCoreAware, UpdateRequestProcessorFactory.RunAlways {