changed writeObject to writeArray
dealing with json array not json map
This commit is contained in:
parent
2c0662e18e
commit
8a5f767286
|
@ -353,11 +353,13 @@ public class CouchdbRiver extends AbstractRiverComponent implements River {
|
|||
// bigcouch uses array for the seq
|
||||
try {
|
||||
XContentBuilder builder = XContentFactory.jsonBuilder();
|
||||
builder.startObject();
|
||||
//builder.startObject();
|
||||
builder.startArray();
|
||||
for (Object value : ((List) lastSeq)) {
|
||||
builder.value(value);
|
||||
}
|
||||
builder.endObject();
|
||||
builder.endArray();
|
||||
//builder.endObject();
|
||||
lastSeqAsString = builder.string();
|
||||
} catch (Exception e) {
|
||||
logger.error("failed to convert last_seq to a json string", e);
|
||||
|
|
Loading…
Reference in New Issue