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/24 22:18:12 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/master 4a8516375 -> 9d692cde5


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/9d692cde
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9d692cde
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9d692cde

Branch: refs/heads/master
Commit: 9d692cde53c25230d6db2663816f313cf356535b
Parents: 4a85163
Author: Alexandre Rafalovitch <ar...@apache.org>
Authored: Mon Oct 24 18:16:38 2016 -0400
Committer: Alexandre Rafalovitch <ar...@apache.org>
Committed: Mon Oct 24 18:16:38 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/9d692cde/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