You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ar...@apache.org on 2016/10/25 19:44:02 UTC

lucene-solr:branch_6x: SOLR-9657: Fixed Javadocs and added example

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x c1d1e6098 -> fdb4dd3b3


SOLR-9657: Fixed Javadocs and added example


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

Branch: refs/heads/branch_6x
Commit: fdb4dd3b322a517ff7f9df2ef64001120e89854c
Parents: c1d1e60
Author: Alexandre Rafalovitch <ar...@apache.org>
Authored: Tue Oct 25 15:43:20 2016 -0400
Committer: Alexandre Rafalovitch <ar...@apache.org>
Committed: Tue Oct 25 15:43:20 2016 -0400

----------------------------------------------------------------------
 .../update/processor/TemplateUpdateProcessorFactory.java  | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fdb4dd3b/solr/core/src/java/org/apache/solr/update/processor/TemplateUpdateProcessorFactory.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/processor/TemplateUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/TemplateUpdateProcessorFactory.java
index b791d3b..c16a0c7 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/TemplateUpdateProcessorFactory.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/TemplateUpdateProcessorFactory.java
@@ -31,8 +31,14 @@ import org.apache.solr.response.SolrQueryResponse;
 import org.apache.solr.update.AddUpdateCommand;
 import org.apache.solr.util.ConcurrentLRUCache;
 
-//Adds new fields to documents based on a template pattern specified via Template.field
-// request parameters (multi-valued) or 'field' value specified in initArgs
+/**
+* Adds new fields to documents based on a template pattern specified via Template.field
+* request parameters (multi-valued) or 'field' value specified in initArgs.
+* <p>
+* The format of the parameter is &lt;field-name&gt;:&lt;the-template-string&gt;, for example: <br>
+* <b>Template.field=fname:${somefield}some_string${someotherfield}</b>
+*
+*/
 public class TemplateUpdateProcessorFactory extends SimpleUpdateProcessorFactory {
   private Cache<String, Resolved> templateCache = new ConcurrentLRUCache<>(1000, 800, 900, 10, false, false, null);
   @Override