Skip to content

Fix for outdated references and changes to the upgrading checklist to remove basho support references #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions content/riak/kv/2.0.0/developing/usage/secondary-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ RiakObject obj = new RiakObject()
.setValue(BinaryValue.create("{'user_data':{ ... }}"));

obj.getIndexes().getIndex(StringBinIndex.named("twitter")).add("jsmith123");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@basho.com");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@{{% exampledomain %}}");

StoreValue store = new StoreValue.Builder(obj)
.withLocation(johnSmithKey)
Expand All @@ -138,7 +138,7 @@ obj.raw_data = '{"user_data":{ ... }}'

# String/binary indexes must be set as an array of strings
obj.indexes['twitter_bin'] = %w{ jsmith123 }
obj.indexes['email_bin'] = %w{ jsmith@basho.com }
obj.indexes['email_bin'] = %w{ jsmith@{{% exampledomain %}} }
obj.store

# In the Ruby client (and all clients), if you do not specify a bucket
Expand All @@ -153,7 +153,7 @@ obj.store
```php
$object = (new \Basho\Riak\Object('{"user_data":{ ... }}', ['Content-type' => 'application/json']))
->addValueToIndex('twitter_bin', 'jsmith123')
->addValueToIndex('email_bin', 'jsmith@basho.com');
->addValueToIndex('email_bin', 'jsmith@{{% exampledomain %}}');

(new \Basho\Riak\Command\Builder\StoreObject($riak))
->withObject($object)
Expand All @@ -173,7 +173,7 @@ obj = RiakObject(client, bucket, 'john_smith')
obj.content_type = 'text/plain'
obj.data = '...user data...'
obj.add_index('twitter_bin', 'jsmith123')
obj.add_index('email_bin', 'jsmith@basho.com')
obj.add_index('email_bin', 'jsmith@{{% exampledomain %}}')
obj.store()
```

Expand All @@ -182,7 +182,7 @@ var id = new RiakObjectId("default", "users", "john_smith");
var obj = new RiakObject(id, "...user data...",
RiakConstants.ContentTypes.TextPlain);
obj.BinIndex("twitter").Set("jsmith123");
obj.BinIndex("email").Set"jsmith@basho.com");
obj.BinIndex("email").Set"jsmith@{{% exampledomain %}}");
var rslt = client.Put(obj);
```

Expand All @@ -193,7 +193,7 @@ riakObj.setBucket('users');
riakObj.setKey('john_smith');
riakObj.setValue('...user data...');
riakObj.addToIndex('twitter_bin', 'jsmith123');
riakObj.addToIndex('email_bin', 'jsmith@basho.com');
riakObj.addToIndex('email_bin', 'jsmith@{{% exampledomain %}}');
client.storeValue({ value: riakObj }, function (err, rslt) {
if (err) {
throw new Error(err);
Expand All @@ -218,7 +218,7 @@ MD1 = riakc_obj:get_update_metadata(Obj),
MD2 = riakc_obj:set_secondary_index(
MD1,
[{{binary_index, "twitter"}, [<<"jsmith123">>]},
{{binary_index, "email"}, [<<"jsmith@basho.com">>]}]),
{{binary_index, "email"}, [<<"jsmith@{{% exampledomain %}}">>]}]),
Obj2 = riakc_obj:update_metadata(Obj, MD2),
riakc_pb_socket:put(Pid, Obj2).
```
Expand All @@ -235,7 +235,7 @@ obj := &riak.Object{
}

obj.AddToIndex("twitter_bin", "jsmith123")
obj.AddToIndex("email_bin", "jsmith@basho.com")
obj.AddToIndex("email_bin", "jsmith@{{% exampledomain %}}")

cmd, err := riak.NewStoreValueCommandBuilder().
WithContent(obj).
Expand All @@ -252,7 +252,7 @@ if err := cluster.Execute(cmd); err != nil {
```curl
curl -XPOST localhost:8098/types/default/buckets/users/keys/john_smith \
-H 'x-riak-index-twitter_bin: jsmith123' \
-H 'x-riak-index-email_bin: jsmith@basho.com' \
-H 'x-riak-index-email_bin: jsmith@{{% exampledomain %}}' \
-H 'Content-Type: application/json' \
-d '{"userData":"data"}'
```
Expand All @@ -269,7 +269,7 @@ This has accomplished the following:
* The object now has a secondary index called `twitter_bin` with a value
of `jsmith123`
* The object now has a secondary index called `email_bin` with a value
of `jsmith@basho.com`
of `jsmith@{{% exampledomain %}}`

### Querying Objects with Secondary Indexes

Expand Down
20 changes: 10 additions & 10 deletions content/riak/kv/2.0.1/developing/usage/secondary-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ RiakObject obj = new RiakObject()
.setValue(BinaryValue.create("{'user_data':{ ... }}"));

obj.getIndexes().getIndex(StringBinIndex.named("twitter")).add("jsmith123");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@basho.com");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@{{% exampledomain %}}");

StoreValue store = new StoreValue.Builder(obj)
.withLocation(johnSmithKey)
Expand All @@ -138,7 +138,7 @@ obj.raw_data = '{"user_data":{ ... }}'

# String/binary indexes must be set as an array of strings
obj.indexes['twitter_bin'] = %w{ jsmith123 }
obj.indexes['email_bin'] = %w{ jsmith@basho.com }
obj.indexes['email_bin'] = %w{ jsmith@{{% exampledomain %}} }
obj.store

# In the Ruby client (and all clients), if you do not specify a bucket
Expand All @@ -153,7 +153,7 @@ obj.store
```php
$object = (new \Basho\Riak\Object('{"user_data":{ ... }}', ['Content-type' => 'application/json']))
->addValueToIndex('twitter_bin', 'jsmith123')
->addValueToIndex('email_bin', 'jsmith@basho.com');
->addValueToIndex('email_bin', 'jsmith@{{% exampledomain %}}');

(new \Basho\Riak\Command\Builder\StoreObject($riak))
->withObject($object)
Expand All @@ -173,7 +173,7 @@ obj = RiakObject(client, bucket, 'john_smith')
obj.content_type = 'text/plain'
obj.data = '...user data...'
obj.add_index('twitter_bin', 'jsmith123')
obj.add_index('email_bin', 'jsmith@basho.com')
obj.add_index('email_bin', 'jsmith@{{% exampledomain %}}')
obj.store()
```

Expand All @@ -182,7 +182,7 @@ var id = new RiakObjectId("default", "users", "john_smith");
var obj = new RiakObject(id, "...user data...",
RiakConstants.ContentTypes.TextPlain);
obj.BinIndex("twitter").Set("jsmith123");
obj.BinIndex("email").Set"jsmith@basho.com");
obj.BinIndex("email").Set"jsmith@{{% exampledomain %}}");
var rslt = client.Put(obj);
```

Expand All @@ -193,7 +193,7 @@ riakObj.setBucket('users');
riakObj.setKey('john_smith');
riakObj.setValue('...user data...');
riakObj.addToIndex('twitter_bin', 'jsmith123');
riakObj.addToIndex('email_bin', 'jsmith@basho.com');
riakObj.addToIndex('email_bin', 'jsmith@{{% exampledomain %}}');
client.storeValue({ value: riakObj }, function (err, rslt) {
if (err) {
throw new Error(err);
Expand All @@ -218,7 +218,7 @@ MD1 = riakc_obj:get_update_metadata(Obj),
MD2 = riakc_obj:set_secondary_index(
MD1,
[{{binary_index, "twitter"}, [<<"jsmith123">>]},
{{binary_index, "email"}, [<<"jsmith@basho.com">>]}]),
{{binary_index, "email"}, [<<"jsmith@{{% exampledomain %}}">>]}]),
Obj2 = riakc_obj:update_metadata(Obj, MD2),
riakc_pb_socket:put(Pid, Obj2).
```
Expand All @@ -235,7 +235,7 @@ obj := &riak.Object{
}

obj.AddToIndex("twitter_bin", "jsmith123")
obj.AddToIndex("email_bin", "jsmith@basho.com")
obj.AddToIndex("email_bin", "jsmith@{{% exampledomain %}}")

cmd, err := riak.NewStoreValueCommandBuilder().
WithContent(obj).
Expand All @@ -252,7 +252,7 @@ if err := cluster.Execute(cmd); err != nil {
```curl
curl -XPOST localhost:8098/types/default/buckets/users/keys/john_smith \
-H 'x-riak-index-twitter_bin: jsmith123' \
-H 'x-riak-index-email_bin: jsmith@basho.com' \
-H 'x-riak-index-email_bin: jsmith@{{% exampledomain %}}' \
-H 'Content-Type: application/json' \
-d '{"userData":"data"}'
```
Expand All @@ -269,7 +269,7 @@ This has accomplished the following:
* The object now has a secondary index called `twitter_bin` with a value
of `jsmith123`
* The object now has a secondary index called `email_bin` with a value
of `jsmith@basho.com`
of `jsmith@{{% exampledomain %}}`

### Querying Objects with Secondary Indexes

Expand Down
20 changes: 10 additions & 10 deletions content/riak/kv/2.0.2/developing/usage/secondary-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ RiakObject obj = new RiakObject()
.setValue(BinaryValue.create("{'user_data':{ ... }}"));

obj.getIndexes().getIndex(StringBinIndex.named("twitter")).add("jsmith123");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@basho.com");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@{{% exampledomain %}}");

StoreValue store = new StoreValue.Builder(obj)
.withLocation(johnSmithKey)
Expand All @@ -137,7 +137,7 @@ obj.raw_data = '{"user_data":{ ... }}'

# String/binary indexes must be set as an array of strings
obj.indexes['twitter_bin'] = %w{ jsmith123 }
obj.indexes['email_bin'] = %w{ jsmith@basho.com }
obj.indexes['email_bin'] = %w{ jsmith@{{% exampledomain %}} }
obj.store

# In the Ruby client (and all clients), if you do not specify a bucket
Expand All @@ -152,7 +152,7 @@ obj.store
```php
$object = (new \Basho\Riak\Object('{"user_data":{ ... }}', ['Content-type' => 'application/json']))
->addValueToIndex('twitter_bin', 'jsmith123')
->addValueToIndex('email_bin', 'jsmith@basho.com');
->addValueToIndex('email_bin', 'jsmith@{{% exampledomain %}}');

(new \Basho\Riak\Command\Builder\StoreObject($riak))
->withObject($object)
Expand All @@ -172,7 +172,7 @@ obj = RiakObject(client, bucket, 'john_smith')
obj.content_type = 'text/plain'
obj.data = '...user data...'
obj.add_index('twitter_bin', 'jsmith123')
obj.add_index('email_bin', 'jsmith@basho.com')
obj.add_index('email_bin', 'jsmith@{{% exampledomain %}}')
obj.store()
```

Expand All @@ -181,7 +181,7 @@ var id = new RiakObjectId("default", "users", "john_smith");
var obj = new RiakObject(id, "...user data...",
RiakConstants.ContentTypes.TextPlain);
obj.BinIndex("twitter").Set("jsmith123");
obj.BinIndex("email").Set"jsmith@basho.com");
obj.BinIndex("email").Set"jsmith@{{% exampledomain %}}");
var rslt = client.Put(obj);
```

Expand All @@ -192,7 +192,7 @@ riakObj.setBucket('users');
riakObj.setKey('john_smith');
riakObj.setValue('...user data...');
riakObj.addToIndex('twitter_bin', 'jsmith123');
riakObj.addToIndex('email_bin', 'jsmith@basho.com');
riakObj.addToIndex('email_bin', 'jsmith@{{% exampledomain %}}');
client.storeValue({ value: riakObj }, function (err, rslt) {
if (err) {
throw new Error(err);
Expand All @@ -217,7 +217,7 @@ MD1 = riakc_obj:get_update_metadata(Obj),
MD2 = riakc_obj:set_secondary_index(
MD1,
[{{binary_index, "twitter"}, [<<"jsmith123">>]},
{{binary_index, "email"}, [<<"jsmith@basho.com">>]}]),
{{binary_index, "email"}, [<<"jsmith@{{% exampledomain %}}">>]}]),
Obj2 = riakc_obj:update_metadata(Obj, MD2),
riakc_pb_socket:put(Pid, Obj2).
```
Expand All @@ -234,7 +234,7 @@ obj := &riak.Object{
}

obj.AddToIndex("twitter_bin", "jsmith123")
obj.AddToIndex("email_bin", "jsmith@basho.com")
obj.AddToIndex("email_bin", "jsmith@{{% exampledomain %}}")

cmd, err := riak.NewStoreValueCommandBuilder().
WithContent(obj).
Expand All @@ -251,7 +251,7 @@ if err := cluster.Execute(cmd); err != nil {
```curl
curl -XPOST localhost:8098/types/default/buckets/users/keys/john_smith \
-H 'x-riak-index-twitter_bin: jsmith123' \
-H 'x-riak-index-email_bin: jsmith@basho.com' \
-H 'x-riak-index-email_bin: jsmith@{{% exampledomain %}}' \
-H 'Content-Type: application/json' \
-d '{"userData":"data"}'
```
Expand All @@ -268,7 +268,7 @@ This has accomplished the following:
* The object now has a secondary index called `twitter_bin` with a value
of `jsmith123`
* The object now has a secondary index called `email_bin` with a value
of `jsmith@basho.com`
of `jsmith@{{% exampledomain %}}`

### Querying Objects with Secondary Indexes

Expand Down
20 changes: 10 additions & 10 deletions content/riak/kv/2.0.4/developing/usage/secondary-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ RiakObject obj = new RiakObject()
.setValue(BinaryValue.create("{'user_data':{ ... }}"));

obj.getIndexes().getIndex(StringBinIndex.named("twitter")).add("jsmith123");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@basho.com");
obj.getIndexes().getIndex(StringBinIndex.named("email")).add("jsmith@{{% exampledomain %}}");

StoreValue store = new StoreValue.Builder(obj)
.withLocation(johnSmithKey)
Expand All @@ -138,7 +138,7 @@ obj.raw_data = '{"user_data":{ ... }}'

# String/binary indexes must be set as an array of strings
obj.indexes['twitter_bin'] = %w{ jsmith123 }
obj.indexes['email_bin'] = %w{ jsmith@basho.com }
obj.indexes['email_bin'] = %w{ jsmith@{{% exampledomain %}} }
obj.store

# In the Ruby client (and all clients), if you do not specify a bucket
Expand All @@ -153,7 +153,7 @@ obj.store
```php
$object = (new \Basho\Riak\Object('{"user_data":{ ... }}', ['Content-type' => 'application/json']))
->addValueToIndex('twitter_bin', 'jsmith123')
->addValueToIndex('email_bin', 'jsmith@basho.com');
->addValueToIndex('email_bin', 'jsmith@{{% exampledomain %}}');

(new \Basho\Riak\Command\Builder\StoreObject($riak))
->withObject($object)
Expand All @@ -173,7 +173,7 @@ obj = RiakObject(client, bucket, 'john_smith')
obj.content_type = 'text/plain'
obj.data = '...user data...'
obj.add_index('twitter_bin', 'jsmith123')
obj.add_index('email_bin', 'jsmith@basho.com')
obj.add_index('email_bin', 'jsmith@{{% exampledomain %}}')
obj.store()
```

Expand All @@ -182,7 +182,7 @@ var id = new RiakObjectId("default", "users", "john_smith");
var obj = new RiakObject(id, "...user data...",
RiakConstants.ContentTypes.TextPlain);
obj.BinIndex("twitter").Set("jsmith123");
obj.BinIndex("email").Set"jsmith@basho.com");
obj.BinIndex("email").Set"jsmith@{{% exampledomain %}}");
var rslt = client.Put(obj);
```

Expand All @@ -193,7 +193,7 @@ riakObj.setBucket('users');
riakObj.setKey('john_smith');
riakObj.setValue('...user data...');
riakObj.addToIndex('twitter_bin', 'jsmith123');
riakObj.addToIndex('email_bin', 'jsmith@basho.com');
riakObj.addToIndex('email_bin', 'jsmith@{{% exampledomain %}}');
client.storeValue({ value: riakObj }, function (err, rslt) {
if (err) {
throw new Error(err);
Expand All @@ -218,7 +218,7 @@ MD1 = riakc_obj:get_update_metadata(Obj),
MD2 = riakc_obj:set_secondary_index(
MD1,
[{{binary_index, "twitter"}, [<<"jsmith123">>]},
{{binary_index, "email"}, [<<"jsmith@basho.com">>]}]),
{{binary_index, "email"}, [<<"jsmith@{{% exampledomain %}}">>]}]),
Obj2 = riakc_obj:update_metadata(Obj, MD2),
riakc_pb_socket:put(Pid, Obj2).
```
Expand All @@ -235,7 +235,7 @@ obj := &riak.Object{
}

obj.AddToIndex("twitter_bin", "jsmith123")
obj.AddToIndex("email_bin", "jsmith@basho.com")
obj.AddToIndex("email_bin", "jsmith@{{% exampledomain %}}")

cmd, err := riak.NewStoreValueCommandBuilder().
WithContent(obj).
Expand All @@ -252,7 +252,7 @@ if err := cluster.Execute(cmd); err != nil {
```curl
curl -XPOST localhost:8098/types/default/buckets/users/keys/john_smith \
-H 'x-riak-index-twitter_bin: jsmith123' \
-H 'x-riak-index-email_bin: jsmith@basho.com' \
-H 'x-riak-index-email_bin: jsmith@{{% exampledomain %}}' \
-H 'Content-Type: application/json' \
-d '{"userData":"data"}'
```
Expand All @@ -269,7 +269,7 @@ This has accomplished the following:
* The object now has a secondary index called `twitter_bin` with a value
of `jsmith123`
* The object now has a secondary index called `email_bin` with a value
of `jsmith@basho.com`
of `jsmith@{{% exampledomain %}}`

### Querying Objects with Secondary Indexes

Expand Down
Loading