Re: Riak Search indexing json

2016-02-10 Thread Colin Walker
Thanks for the quick response everyone! It actually turned out I wasn't using my bucket types correctly. The bucket type must correspond to the Solr index I want to use, I know that now! Sorry for the confusion, I mixed up my types and my buckets. Without your help it wouldn't have worked though si

Re: Riak Search indexing json

2016-02-10 Thread Vitaly E
I would try setting the content type to "application/json" http://docs.basho.com/riak/latest/dev/taste-of-riak/java/#Creating-Objects-in-Riak to see if it solves the problem. If it's absolutely necessary to send custom JSON to Riak client. That said, I've never actually tried this since the client

Re: Riak Search indexing json

2016-02-10 Thread Zeeshan Lakhani
Good point Vitaly, also possible. Zeeshan Lakhani programmer | software engineer at @basho | org. member/founder of @papers_we_love | paperswelove.org twitter => @zeeshanlakhani > On Feb 10, 2016, at 10:53 AM, Vitaly E <13vitam...@gmail.com> wrote: > > Hi Colin, > > The problem is that in y

Re: Riak Search indexing json

2016-02-10 Thread Vitaly E
Hi Colin, The problem is that in your case JSON is interpreted as a String, as opposed to a Map/POJO with fields. Is there any reason you don't rely on the JSON serialization built into Riak Java client? Regards, Vitaly On Wed, Feb 10, 2016 at 5:40 PM, Colin Walker wrote: > Hello everyone,

Re: Riak Search indexing json

2016-02-10 Thread Zeeshan Lakhani
Hey Colin, Riak Search definitely indexes json documents. My guess is that your json-object keys are not indexed via the schema? We have an example in the docs page (w/ the Java client as well): http://docs.basho.com/riak/latest/dev/using/search/#Indexing-Values