mirror of https://github.com/apache/lucene.git
SOLR-4272: doc sample xml tweaks to reduce confusion if people cut/paste
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1430116 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bccdc6aeb5
commit
ffcaecb4d3
|
@ -51,7 +51,6 @@ import org.apache.commons.lang.StringUtils;
|
|||
* </p>
|
||||
*
|
||||
* <pre class="prettyprint">
|
||||
* <updateRequestProcessorChain>
|
||||
* <processor class="solr.ConcatFieldUpdateProcessorFactory">
|
||||
* <str name="delimiter">; </str>
|
||||
* <lst name="exclude">
|
||||
|
@ -60,9 +59,7 @@ import org.apache.commons.lang.StringUtils;
|
|||
* </processor>
|
||||
* <processor class="solr.FirstFieldValueUpdateProcessorFactory">
|
||||
* <str name="fieldName">primary_author</str>
|
||||
* </processor>
|
||||
* </updateRequestProcessorChain>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*/
|
||||
public final class ConcatFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ import org.apache.commons.lang.StringUtils;
|
|||
* </p>
|
||||
*
|
||||
* <pre class="prettyprint">
|
||||
* <updateRequestProcessorChain>
|
||||
* <processor class="solr.CloneFieldUpdateProcessorFactory">
|
||||
* <str name="source">category</str>
|
||||
* <str name="dest">category_count</str>
|
||||
|
@ -61,9 +60,7 @@ import org.apache.commons.lang.StringUtils;
|
|||
* <processor class="solr.DefaultValueUpdateProcessorFactory">
|
||||
* <str name="fieldName">category_count</str>
|
||||
* <int name="value">0</int>
|
||||
* </processor>
|
||||
* </updateRequestProcessorChain>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*
|
||||
* <p>
|
||||
* <b>NOTE:</b> The use of {@link DefaultValueUpdateProcessorFactory} is
|
||||
|
|
|
@ -43,8 +43,7 @@ import org.apache.solr.core.SolrCore;
|
|||
* <str>solr.TrieIntField</str>
|
||||
* <str>solr.TrieLongField</str>
|
||||
* </arr>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*/
|
||||
public final class FieldLengthUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {
|
||||
|
||||
|
|
|
@ -91,8 +91,7 @@ import org.apache.solr.util.plugin.SolrCoreAware;
|
|||
* <lst name="exclude">
|
||||
* <str name="typeClass">solr.DateField</str>
|
||||
* </lst>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*
|
||||
* <p>
|
||||
* Subclasses define the default selection behavior to be applied if no
|
||||
|
|
|
@ -43,8 +43,7 @@ import java.io.StringWriter;
|
|||
* <pre class="prettyprint">
|
||||
* <processor class="solr.HTMLStripFieldUpdateProcessorFactory">
|
||||
* <str name="typeClass">solr.StrField</str>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*/
|
||||
public final class HTMLStripFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {
|
||||
|
||||
|
|
|
@ -42,22 +42,16 @@ import org.apache.solr.response.SolrQueryResponse;
|
|||
* </p>
|
||||
*
|
||||
* <pre class="prettyprint">
|
||||
* <updateRequestProcessorChain>
|
||||
* <processor class="solr.IgnoreFieldUpdateProcessorFactory" />
|
||||
* </updateRequestProcessorChain>
|
||||
* </pre>
|
||||
* <processor class="solr.IgnoreFieldUpdateProcessorFactory" /></pre>
|
||||
*
|
||||
* <p>
|
||||
* In this second example, any field name ending in "_raw" found in a
|
||||
* document being added would be removed...
|
||||
* </p>
|
||||
* <pre class="prettyprint">
|
||||
* <updateRequestProcessorChain>
|
||||
* <processor class="solr.IgnoreFieldUpdateProcessorFactory">
|
||||
* <str name="fieldRegex">.*_raw</str>
|
||||
* </processor>
|
||||
* </updateRequestProcessorChain>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*/
|
||||
public final class IgnoreFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@ import org.slf4j.LoggerFactory;
|
|||
* <str name="fieldName">title</str>
|
||||
* <str name="pattern">\s+</str>
|
||||
* <str name="replacement"> </str>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*
|
||||
* @see java.util.regex.Pattern
|
||||
*/
|
||||
|
|
|
@ -39,8 +39,7 @@ import org.apache.solr.response.SolrQueryResponse;
|
|||
* <lst name="exclude">
|
||||
* <str name="fieldRegex">.*_literal</str>
|
||||
* </lst>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*
|
||||
*/
|
||||
public final class RemoveBlankFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {
|
||||
|
|
|
@ -39,8 +39,7 @@ import org.apache.solr.response.SolrQueryResponse;
|
|||
* <lst name="exclude">
|
||||
* <str name="fieldRegex">.*_literal</str>
|
||||
* </lst>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*/
|
||||
public final class TrimFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {
|
||||
|
||||
|
|
|
@ -40,8 +40,7 @@ import org.apache.solr.response.SolrQueryResponse;
|
|||
* <processor class="solr.TruncateFieldUpdateProcessorFactory">
|
||||
* <str name="typeClass">solr.StrField</str>
|
||||
* <int name="maxLength">100</int>
|
||||
* </processor>
|
||||
* </pre>
|
||||
* </processor></pre>
|
||||
*/
|
||||
public final class TruncateFieldUpdateProcessorFactory
|
||||
extends FieldMutatingUpdateProcessorFactory {
|
||||
|
|
Loading…
Reference in New Issue