Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8381387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:41:14+00:00 2026-06-09T16:41:14+00:00

I am trying to fetch Raik objects using simple filters. I have enabled search

  • 0

I am trying to fetch Raik objects using simple filters.
I have enabled search on the bucket before storing objects to it, and I try the following:

MapReduceResult result = riakClient.
mapReduce(“serviceProvider”, “name:oved1”).
addMapPhase(new NamedJSFunction(“Riak.mapValuesJson”), true).execute();

I get this exception:

com.basho.riak.client.RiakException: java.io.IOException: {“error”:”map_reduce_error”}
at com.basho.riak.client.query.MapReduce.execute(MapReduce.java:80)
at com.att.cso.omss.datastore.riak.controllers.RiakBaseController.getAllServiceProvider(RiakBaseController.java:339)
at com.att.cso.omss.datastore.riak.App.serviceProviderTests(App.java:64)
at com.att.cso.omss.datastore.riak.App.main(App.java:38)
Caused by: java.io.IOException: {“error”:”map_reduce_error”}
at com.basho.riak.client.raw.http.ConversionUtil.convert(ConversionUtil.java:588)
at com.basho.riak.client.raw.http.HTTPClientAdapter.mapReduce(HTTPClientAdapter.java:386)
at com.basho.riak.client.query.MapReduce.execute(MapReduce.java:78)
… 3 more

any idea what am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:41:16+00:00Added an answer on June 9, 2026 at 4:41 pm

    Was able to fix this issue…

    apparently you need to do 2 things prior to storing objects that need to be searched in the future:

    1. Enabled search in app.config (/etc/riak):

    {riak_search, [{enabled, true}]}

    1. Enable search on the bucket:

    Bucket bucket = riakClient.createBucket(bucketName).enableForSearch().execute();

    After doing that, this returns values:

          MapReduceResult result = riakClient.
                mapReduce(bucketName, "name:9"). 
                addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), true).
                execute();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to fetch following case using FQL If few users have authorized
I am trying to fetch records from LDAP using DirectorySearcher. The following is the
I'm trying to fetch Wikipedia pages using LWP::Simple , but they're not coming back.
I am trying to fetch pages using httpwebrequest, but the links also have relative
I am trying to fetch orders created in a specific period of dates using
I am trying to fetch wcf service from jquery. I have written below code
I'm trying to fetch data from a div (based on his id), using PHP's
I'm trying to fetch coupons that haven't expired yet. I have this in my
I have been trying to fetch facebook like count of any web url. for
I am trying to fetch a PHP script using AJAX and return the values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.