Class HTMLStripTransformer
- java.lang.Object
-
- org.apache.solr.handler.dataimport.Transformer
-
- org.apache.solr.handler.dataimport.HTMLStripTransformer
-
public class HTMLStripTransformer extends Transformer
ATransformer
implementation which strip off HTML tags usingHTMLStripCharFilter
This is useful in case you don't need this HTML anyway.- Since:
- solr 1.4
- See Also:
HTMLStripCharFilter
-
-
Field Summary
Fields Modifier and Type Field Description static String
STRIP_HTML
static String
TRUE
-
Constructor Summary
Constructors Constructor Description HTMLStripTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
transformRow(Map<String,Object> row, Context context)
The input is a row of data and the output has to be a new row.
-
-
-
Field Detail
-
STRIP_HTML
public static final String STRIP_HTML
- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
transformRow
public Object transformRow(Map<String,Object> row, Context context)
Description copied from class:Transformer
The input is a row of data and the output has to be a new row.- Specified by:
transformRow
in classTransformer
- Parameters:
row
- A row of datacontext
- The current context- Returns:
- The changed data. It must be a
Map
<String
,Object
> if it returns only one row or if there are multiple rows to be returned it must be aList
<Map
<String
,Object
>>
-
-