Closed weilliu closed 9 years ago
cbft is trying to parse the value as a JSON document, where the value looks like...
SimpleValueREP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472REP472
But, that isn't valid JSON, so cbft (correctly) logs an error skips it.
As a feature idea, what might be helpful to users is cbft should probably track an additional stat or counter on how many of these JSON parsing errors it encounters. (I opened up a new issue https://github.com/couchbaselabs/cbft/issues/156 to track this feature idea, and will be closing this one)
Or, perhaps cbft should instead have a different, optional feature to treat that non-JSON string as just a string and index it anyways, but that feels more like an incorrect solution for a JSON document database.
I use the dataset for our sdk test which inject a bunch of docs with ID equals to "SimpleKeyREPxxx". The sample doc is like
There are a couple errors I noticed from cbft-full (0.2.0) on indexing those documents
The log error