use of org.apache.solr.client.solrj.io.ops.StreamOperation in project lucene-solr by apache.
the class ConcatOperationTest method concatSingleField.
@Test
public void concatSingleField() throws Exception {
Tuple tuple;
StreamOperation operation;
operation = new ConcatOperation(new String[] { "fieldA" }, "fieldAConcat", "-");
values.clear();
values.put("fieldA", "bar");
tuple = new Tuple(values);
operation.operate(tuple);
Assert.assertNotNull(tuple.get("fieldA"));
Assert.assertEquals("bar", tuple.get("fieldA"));
Assert.assertNotNull(tuple.get("fieldAConcat"));
Assert.assertEquals("bar", tuple.get("fieldAConcat"));
}
Aggregations