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:
Chris M. Hostetter 2013-01-08 02:37:01 +00:00
parent bccdc6aeb5
commit ffcaecb4d3
10 changed files with 31 additions and 50 deletions

View File

@ -51,7 +51,6 @@ import org.apache.commons.lang.StringUtils;
* </p>
*
* <pre class="prettyprint">
* &lt;updateRequestProcessorChain&gt;
* &lt;processor class="solr.ConcatFieldUpdateProcessorFactory"&gt;
* &lt;str name="delimiter"&gt;; &lt;/str&gt;
* &lt;lst name="exclude"&gt;
@ -60,9 +59,7 @@ import org.apache.commons.lang.StringUtils;
* &lt;/processor&gt;
* &lt;processor class="solr.FirstFieldValueUpdateProcessorFactory"&gt;
* &lt;str name="fieldName"&gt;primary_author&lt;/str&gt;
* &lt;/processor&gt;
* &lt;/updateRequestProcessorChain&gt;
* </pre>
* &lt;/processor&gt;</pre>
*/
public final class ConcatFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {

View File

@ -50,7 +50,6 @@ import org.apache.commons.lang.StringUtils;
* </p>
*
* <pre class="prettyprint">
* &lt;updateRequestProcessorChain&gt;
* &lt;processor class="solr.CloneFieldUpdateProcessorFactory"&gt;
* &lt;str name="source"&gt;category&lt;/str&gt;
* &lt;str name="dest"&gt;category_count&lt;/str&gt;
@ -61,9 +60,7 @@ import org.apache.commons.lang.StringUtils;
* &lt;processor class="solr.DefaultValueUpdateProcessorFactory"&gt;
* &lt;str name="fieldName"&gt;category_count&lt;/str&gt;
* &lt;int name="value"&gt;0&lt;/int&gt;
* &lt;/processor&gt;
* &lt;/updateRequestProcessorChain&gt;
* </pre>
* &lt;/processor&gt;</pre>
*
* <p>
* <b>NOTE:</b> The use of {@link DefaultValueUpdateProcessorFactory} is

View File

@ -43,8 +43,7 @@ import org.apache.solr.core.SolrCore;
* &lt;str&gt;solr.TrieIntField&lt;/str&gt;
* &lt;str&gt;solr.TrieLongField&lt;/str&gt;
* &lt;/arr&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*/
public final class FieldLengthUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {

View File

@ -91,8 +91,7 @@ import org.apache.solr.util.plugin.SolrCoreAware;
* &lt;lst name="exclude"&gt;
* &lt;str name="typeClass"&gt;solr.DateField&lt;/str&gt;
* &lt;/lst&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*
* <p>
* Subclasses define the default selection behavior to be applied if no

View File

@ -43,8 +43,7 @@ import java.io.StringWriter;
* <pre class="prettyprint">
* &lt;processor class="solr.HTMLStripFieldUpdateProcessorFactory"&gt;
* &lt;str name="typeClass"&gt;solr.StrField&lt;/str&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*/
public final class HTMLStripFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {

View File

@ -42,22 +42,16 @@ import org.apache.solr.response.SolrQueryResponse;
* </p>
*
* <pre class="prettyprint">
* &lt;updateRequestProcessorChain&gt;
* &lt;processor class="solr.IgnoreFieldUpdateProcessorFactory" /&gt;
* &lt;/updateRequestProcessorChain&gt;
* </pre>
* &lt;processor class="solr.IgnoreFieldUpdateProcessorFactory" /&gt;</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">
* &lt;updateRequestProcessorChain&gt;
* &lt;processor class="solr.IgnoreFieldUpdateProcessorFactory"&gt;
* &lt;str name="fieldRegex"&gt;.*_raw&lt;/str&gt;
* &lt;/processor&gt;
* &lt;/updateRequestProcessorChain&gt;
* </pre>
* &lt;/processor&gt;</pre>
*/
public final class IgnoreFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {

View File

@ -52,8 +52,7 @@ import org.slf4j.LoggerFactory;
* &lt;str name="fieldName"&gt;title&lt;/str&gt;
* &lt;str name="pattern"&gt;\s+&lt;/str&gt;
* &lt;str name="replacement"&gt; &lt;/str&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*
* @see java.util.regex.Pattern
*/

View File

@ -39,8 +39,7 @@ import org.apache.solr.response.SolrQueryResponse;
* &lt;lst name="exclude"&gt;
* &lt;str name="fieldRegex"&gt;.*_literal&lt;/str&gt;
* &lt;/lst&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*
*/
public final class RemoveBlankFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {

View File

@ -39,8 +39,7 @@ import org.apache.solr.response.SolrQueryResponse;
* &lt;lst name="exclude"&gt;
* &lt;str name="fieldRegex"&gt;.*_literal&lt;/str&gt;
* &lt;/lst&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*/
public final class TrimFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory {

View File

@ -40,8 +40,7 @@ import org.apache.solr.response.SolrQueryResponse;
* &lt;processor class="solr.TruncateFieldUpdateProcessorFactory"&gt;
* &lt;str name="typeClass"&gt;solr.StrField&lt;/str&gt;
* &lt;int name="maxLength"&gt;100&lt;/int&gt;
* &lt;/processor&gt;
* </pre>
* &lt;/processor&gt;</pre>
*/
public final class TruncateFieldUpdateProcessorFactory
extends FieldMutatingUpdateProcessorFactory {