I’m storing json docs in riak search, for example:
{
boolean: true,
number: 1.234,
string: "Gretchen"
}
However, when querying for them (riak search), I notice the fields returned by the query are all strings:
{
boolean: "true",
number: "1.234",
string: "Gretchen"
}
This makes the query results useless for binding to objects, unless I then sequentially retrieve each doc again via their key. Is this possible to get the correctly typed fields returned? E.g. Couch+lucene does this correctly and makes it very useful for querying + binding.
Sounds it’s not possible, you need to use map reduce for this. From Sean at Basho: