elasticsearch/elasticsearch — Issue #1478: BigCouch returns JSON array for sequence
Author: opie4624
Created: 2011-11-17 18:57:13+00:00
State: open

BigCouch is returning:

"last_seq":[136374,"g1AAAAIReJzLYWBg4MxgTmGQT8pMT84vTc5wKC5ITc5MzMksLtFLrkyqzNHLyU9OzMkBKmRKZMhjYZA-XiiTlcTAYOJDtD6gLhmgLiBl3vfYAqTZdTtIswRcc0FaMjZdFkDlQCo4NDQUpMuOgRQrQ4C6gFQ-0GqQZsfvpGguAOoCUt2PLfpAmm0jiXJvD1A5kFq-atUqkC5jFlKsXAHUBaQOF8ocB4fvEVI0HwHqAlL3gSEG0uygS5R7HwCVA6n_QADSZZqXBQCZGar4"]}

elasticsearch is requesting:

/my_db/_changes?feed=continuous&include_docs=true&heartbeat=10000&since=%5B136374%2C+g1AAAAIReJzLYWBg4MxgTmGQT8pMT84vTc5wKC5ITc5MzMksLtFLrkyqzNHLyU9OzMkBKmRKZMhjYZA-XiiTlcTAYOJDtD6gLhmgLiBl3vfYAqTZdTtIswRcc0FaMjZdFkDlQCo4NDQUpMuOgRQrQ4C6gFQ-0GqQZsfvpGguAOoCUt2PLfpAmm0jiXJvD1A5kFq-atUqkC5jFlKsXAHUBaQOF8ocB4fvEVI0HwHqAlL3gSEG0uygS5R7HwCVA6n_QADSZZqXBQCZGar4%5D

It looks like elasticsearch isn't expecting bigcouch's use of json arrays as a sequence identifier. The string doesn't appear to be quoted when it's passed back in the &since= parameter.