|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.api.indexer.rule.Rule
com.googlecode.fascinator.indexer.rules.AddField
public class AddField
Adds a single field to a Solr document
| Constructor Summary | |
|---|---|
AddField(String fieldName)
Creates a rule to add a field with no initial value |
|
AddField(String fieldName,
String value)
Creates a rule to add a field with the specified name and initial value |
|
| Method Summary | |
|---|---|
void |
run(Reader in,
Writer out)
Adds a single field to a Solr document |
void |
setValue(String value)
Sets the value of the field |
| Methods inherited from class com.googlecode.fascinator.api.indexer.rule.Rule |
|---|
getLog, getName, isRequired, log, log, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddField(String fieldName)
fieldName - Field name
public AddField(String fieldName,
String value)
fieldName - Field namevalue - Field value| Method Detail |
|---|
public void setValue(String value)
value - Field value
public void run(Reader in,
Writer out)
throws RuleException
run in class Rulein - Solr documentout - Solr document with added field
RuleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||