Skip to content

Instantly share code, notes, and snippets.

@SeanTAllen
Last active August 29, 2015 13:57
Show Gist options
  • Save SeanTAllen/9716311 to your computer and use it in GitHub Desktop.
Save SeanTAllen/9716311 to your computer and use it in GitHub Desktop.
No index...
val payload = BinaryValue.create(pairs.asJson())
val ro = new RiakObject().setContentType("application/json").setValue(payload)
ro.getUserMeta.put(BinaryValue.createFromUtf8("x-riak-index-jobseeker_int"), BinaryValue.createFromUtf8(jobseekerId.toString))
val storeOp = new StoreOperation.Builder(location).withContent(ro).build()
riakCluster.execute(storeOp)
I see the header set but when I try to look up the value by the index, I can't find. Thoughts?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment