Hey Ryan, Yeah, I figured that out once I got the indexing to work properly. It was a case of code outpacing the docs, because I was setting the prop yz_index rather than search_index.
Thanks for the help. I do have a possible issue who yokozuna and map reduce, but that's a separate thread. On Feb 6, 2014 5:54 PM, "Ryan Zezeski" <[email protected]> wrote: > Hi Srdjan, > > > On Mon, Feb 3, 2014 at 12:06 PM, Srdjan Pejic <[email protected]> wrote: >> >> >> [{"viewer_id_s"=>"004615eb-5c0e-4c4a-890c-c6fc29e3fc56", >>> "video_time_i"=>475, "type_s"=>"joined"}, >>> {"viewer_id_s"=>"635dcd2d-fdeb-46c1-9920-803ccdd6176b", >>> "video_time_i"=>522, "type_s"=>"joined"}, >>> {"viewer_id_s"=>"04b3cec7-6f37-4840-b1b6-eff4c16dd273", >>> "video_time_i"=>159, "type_s"=>"joined"}, >>> {"viewer_id_s"=>"6ce3da5f-b598-4b1c-abf0-38ba92fa15fb", >>> "video_time_i"=>393, "type_s"=>"upvote"}] >>> >> >> My question to you is how can I search this array of documents through >> Yokozuna/Solr? Currently, I get 0 results back, which I suspect is because >> the actual JSON data is nested in an array and Yokozuna doesn't index that >> in an expected way. >> > > Assuming you are using the default schema, the issue is that you are using > non multi-valued fields and thus this data is failing to index. If you > check your console.log you should see errors with the string "multiple > values encountered for non multiValued field" in them. Try changing your > field names to the following: > > viewer_id_s => viewer_id_ss > video_time_i = video_time_is > type_s => type_ss > > -Z >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
