You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2017/06/08 06:29:00 UTC
[1/2] lucene-solr:master: SOLR-9530: documentation added
Repository: lucene-solr
Updated Branches:
refs/heads/master e4ab04ab7 -> 647916d8e
SOLR-9530: documentation added
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ce5b184b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ce5b184b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ce5b184b
Branch: refs/heads/master
Commit: ce5b184b17fb000f9d3469807872df30e1550397
Parents: bd2203d
Author: Noble Paul <no...@apache.org>
Authored: Thu Jun 8 15:57:14 2017 +0930
Committer: Noble Paul <no...@apache.org>
Committed: Thu Jun 8 15:57:14 2017 +0930
----------------------------------------------------------------------
.../src/update-request-processors.adoc | 22 +++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ce5b184b/solr/solr-ref-guide/src/update-request-processors.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/update-request-processors.adoc b/solr/solr-ref-guide/src/update-request-processors.adoc
index eb69d3b..a4f3e0c 100644
--- a/solr/solr-ref-guide/src/update-request-processors.adoc
+++ b/solr/solr-ref-guide/src/update-request-processors.adoc
@@ -379,13 +379,14 @@ These are listed for completeness, but are part of the Solr infrastructure, part
[[UpdateRequestProcessors-UpdateProcessorsThatCanBeUsedatRuntime]]
=== Update Processors That Can Be Used at Runtime
+These Update processors do not need any configuration is your `solrconfig.xml` . They are automatically initialized when their name is added to the `processor` parameter. Multiple processors can be used by appending multiple processor names (comma separated)
[[UpdateRequestProcessors-TemplateUpdateProcessorFactory]]
==== TemplateUpdateProcessorFactory
The `TemplateUpdateProcessorFactory` can be used to add new fields to documents based on a template pattern.
-This can be used directly in a request without any configuration. To enable this processor, use the parameter `processor=Template`. The template parameter `Template.field` (multivalued) define the field to add and the pattern. Templates may contain placeholders which refer to other fields in the document. You can have multiple `Template.field` parameters in a single request.
+Use the parameter `processor=Template` to use it. The template parameter `Template.field` (multivalued) define the field to add and the pattern. Templates may contain placeholders which refer to other fields in the document. You can have multiple `Template.field` parameters in a single request.
For example:
@@ -395,3 +396,22 @@ processor=Template&Template.field=fullName:Mr. ${firstName} ${lastName}
----
The above example would add a new field to the document called `fullName`. The fields `firstName and` `lastName` are supplied from the document fields. If either of them is missing, that part is replaced with an empty string. If those fields are multi-valued, only the first value is used.
+
+==== AtomicUpdateProcessorFactory
+
+
+Use it to convert your normal `update` operations to atomic update operations. This is particularly useful when you use endpoints such as `/update/csv` or `/update/json/docs` which does not support syntax for atomic operations.
+
+example:
+
+[source,bash]
+----
+processor=Atomic&Atomic.field1=add&Atomic.field2=set&Atomic.field3=inc&Atomic.field4=remove&Atomic.field4=remove
+----
+
+The above parameters convert a normal `update` operation on
+
+* `field1` to an atomic `add` operation
+* `field2` to an atomic `set` operation
+* `field3` to an atomic `inc` operation
+* `field4` to an atomic `remove` operation
\ No newline at end of file
[2/2] lucene-solr:master: Merge branch 'master' of
https://git-wip-us.apache.org/repos/asf/lucene-solr
Posted by no...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/647916d8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/647916d8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/647916d8
Branch: refs/heads/master
Commit: 647916d8edfd2ce841df7c614146d7fe8767aabb
Parents: ce5b184 e4ab04a
Author: Noble Paul <no...@apache.org>
Authored: Thu Jun 8 15:58:03 2017 +0930
Committer: Noble Paul <no...@apache.org>
Committed: Thu Jun 8 15:58:03 2017 +0930
----------------------------------------------------------------------
dev-tools/doap/lucene.rdf | 7 +
dev-tools/doap/solr.rdf | 7 +
lucene/CHANGES.txt | 15 +
.../wikipedia/WikipediaTokenizerFactory.java | 21 +-
.../TestWikipediaTokenizerFactory.java | 84 ++-
.../PackedTokenAttributeImpl.java | 29 +-
.../tokenattributes/TermFrequencyAttribute.java | 33 ++
.../TermFrequencyAttributeImpl.java | 82 +++
.../apache/lucene/document/RangeFieldQuery.java | 377 +++++++-----
.../lucene/index/DefaultIndexingChain.java | 8 +-
.../apache/lucene/index/FieldInvertState.java | 3 +
.../index/FreqProxTermsWriterPerField.java | 27 +-
.../index/TermVectorsConsumerPerField.java | 19 +-
.../apache/lucene/index/TermsHashPerField.java | 5 +-
.../org/apache/lucene/analysis/TestToken.java | 2 +
.../TestPackedTokenAttributeImpl.java | 2 +
.../apache/lucene/index/TestCustomTermFreq.java | 468 +++++++++++++++
.../lucene/index/TestFieldInvertState.java | 139 +++++
.../org/apache/lucene/util/LuceneTestCase.java | 4 +-
solr/CHANGES.txt | 7 +
.../model/TestMultipleAdditiveTreesModel.java | 17 +-
.../apache/solr/cloud/ReplicateFromLeader.java | 6 +-
.../org/apache/solr/handler/IndexFetcher.java | 2 +-
.../apache/solr/handler/ReplicationHandler.java | 2 +-
.../handler/component/HttpShardHandler.java | 31 +-
.../solr/highlight/UnifiedSolrHighlighter.java | 7 +
.../metrics/reporters/SolrGangliaReporter.java | 4 -
.../metrics/reporters/SolrGraphiteReporter.java | 4 -
.../metrics/reporters/SolrSlf4jReporter.java | 3 +-
.../apache/solr/search/facet/FacetRange.java | 127 +++-
.../solr/collection1/conf/schema-point.xml | 64 +-
...MonkeyNothingIsSafeWithPullReplicasTest.java | 2 +
...aosMonkeySafeLeaderWithPullReplicasTest.java | 2 +
.../solr/cloud/autoscaling/TestPolicyCloud.java | 6 +-
.../org/apache/solr/schema/TestPointFields.java | 578 ++++++++++---------
.../org/apache/solr/search/facet/DebugAgg.java | 3 +-
.../search/facet/TestJsonFacetRefinement.java | 29 +-
solr/solr-ref-guide/src/stream-decorators.adoc | 30 +-
solr/solr-ref-guide/src/stream-evaluators.adoc | 26 -
solr/solr-ref-guide/src/stream-sources.adoc | 5 +-
.../cloud/AbstractFullDistribZkTestBase.java | 8 +-
.../solr/cloud/StoppableCommitThread.java | 2 +-
42 files changed, 1759 insertions(+), 538 deletions(-)
----------------------------------------------------------------------