| <!DOCTYPE html> |
| <html lang="en"> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <head> |
| <meta charset="utf-8" /> |
| <title>PutSolrContentStream</title> |
| <link rel="stylesheet" href="../../../../../css/component-usage.css" type="text/css" /> |
| </head> |
| |
| <body> |
| <h2>Usage Example</h2> |
| <p> |
| This processor streams the contents of a FlowFile to an Apache Solr |
| update handler. Any properties added to this processor by the user are |
| passed to Solr on the update request. If a parameter must be sent multiple |
| times with different values, properties can follow a naming convention: |
| name.number, where name is the parameter name and number is a unique number. |
| Repeating parameters will be sorted by their property name. |
| </p> |
| <p> |
| Example: To specify multiple 'f' parameters for indexing custom json, the following |
| properties can be defined: |
| </p> |
| <ul> |
| <li><strong>split</strong>: /exams</li> |
| <li><strong>f.1</strong>: first:/first</li> |
| <li><strong>f.2</strong>: last:/last</li> |
| <li><strong>f.3</strong>: grade:/grade</li> |
| </ul> |
| <p> |
| This will result in sending the following url to Solr: </br> |
| split=/exams&f=first:/first&f=last:/last&f=grade:/grade |
| </p> |
| </body> |
| </html> |