Data population of Yokozuna on key-path in schema?

Dave Martorana dave at flyclops.com
Thu Jul 18 12:16:48 EDT 2013


Does the JSON extractor work in a similar fashion, or does it follow its
own rules? We don’t use XML anywhere (but JSON everywhere). Thanks!

Dave


On Thu, Jul 18, 2013 at 9:31 AM, Ryan Zezeski <rzezeski at basho.com> wrote:

> As Eric said, the XML extractor causes the nested elements to become
> concatenated by an underscore.  "Extractor" is a Yokozuna term.  It is the
> process by which a Riak Object is mapped to a Solr document.  In the case
> of a Riak Object whose value is XML the XML is flattened by a)
> concatenating nested elements with '_' and b) concatenating attributes with
> '@' (this can be changed if necessary, just ask).  Yokozuna provides a
> resource to test how a given object would be extracted.
>
> curl -X PUT -i -h 'content-type: application/xml' 'http://host:port/extract'
> --data-binary @some.xml
>
> This will return a JSON representation of the field-values extracted from
> the object.  You can use a json pretty printer like jsonpp to make it
> easier to read.
>
> -Z
>
>
>
>
> On Wed, Jul 17, 2013 at 8:51 PM, Eric Redmond <eredmond at basho.com> wrote:
>
>> That's correct. The XML extractor nests by element name, separating
>> elements by an underscore.
>>
>> Eric
>>
>> On Jul 17, 2013, at 12:46 PM, Dave Martorana <dave at flyclops.com> wrote:
>>
>> Hi,
>>
>> I realize I may be way off-base, but I noticed the following slide in
>> Ryan’s recent Ricon East talk on Yokozuna:
>>
>> http://cl.ly/image/3s1b1v2w2x12
>>
>> Does the schema pick out values based on key-path automatically? For
>> instance,
>>
>> <commit><repo>val</repo>...</commit>
>>
>> automatically gets mapped to the “commit_repo" field definition for the
>> schema?
>>
>> Thanks!
>>
>> Dave
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130718/36c54d35/attachment.html>


More information about the riak-users mailing list