Hello Ari,

I'm assuming you're talking about Yokozuna (Riak Search 2.0). Answers inline...

> 1. I understand that search automatically analyzes JSON, but that does 
> include nested JSON objects?

Yes. You can POST data to the /yz/extract URL to see how your JSON (or
XML) is parsed by the extractor.

> 2. If I want to return more than just key/value pairs what options do I have 
> aside from using search queries as input for MapReduce jobs?

When search returns data it can return values as well, depending on
the Solr schema being used. Ideally you build your schema to index and
store just the data needed by your application.

> 3. When it comes to "children" objects, is it better to search for objects or 
> rely on numerous links?

I'm not sure what you mean here. Generally, child objects can be
stored either as part of their parent (nested) in a value, or as
values in another bucket. In the latter case, the parent object just
has a reference to the child's ID (and vice-versa, if necessary). The
decisions you make when modeling your data should take access, update
and search patterns into account, since all impact the shape of the
objects you store.

--
Luke Bakken
CSE
lbak...@basho.com

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to