Hello everyone,

I am currently evaluating Riak for a project of ours.

Here are the requirements in a nutshell:

- We get various customer data as json with different field names (let’s just 
pretend that we have books).
- We need to store these data as it comes (JSON with the original field names).
- We need to have a consistent search index with fields specified by us.

Example:

Customer A:

{
  book_title: ‘Alice in wonderland’,
  num_of_pages: 314, 
}

Customer B:

{
  book_name: ’Sherlock Holmes in the Hound of the Baskervilles’,
  number_of_pages: 164, 
}

So far so good.

This data need to be stored for example like this:

{
  title: ‘Alice in wonderland’,
  pages: 314, 
}
{
  title: ’Sherlock Holmes in the Hound of the Baskervilles’,
  pages: 164, 
}

My thought was this:

- Store data from each customer to a different bucket.
- Index the data from the document to Yokozuna (after all, Solr has a schema so 
we could utilize that)

My question concerning this would be:

What’s the best way to do this?

So far the only tutorials I found concerning Yokozuna index the documents 
without a schema.

best
Leif
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to