Skip to content

Getting no suitable method found Client.execute() #78

@Atique

Description

@Atique

Hi, I am using Riak KV 2.1.1 with Java client. While applying index to name space I am getting some no suitable method error.
Following the instruction from this link.
http://docs.basho.com/riak/kv/2.2.3/developing/usage/search/

My code is below:

YokozunaIndex famousIndex = new YokozunaIndex("famous", "_yz_default");
            StoreIndex storeIndex = new StoreIndex.Builder(famousIndex)
                    .build();
            client.execute(storeIndex);

Namespace streets=new Namespace("streets");
            StoreBucketPropsOperation storePropsOp = new StoreBucketPropsOperation.Builder(streets)
                    .withSearchIndex("famous")
                    .build();
            client.execute(storePropsOp);

Attached is the image of the complete error.
screen shot 2017-05-15 at 9 49 08 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions