Skip to content

Commit c91e336

Browse files
Update articles/cosmos-db/cassandra-secondary-index.md
Co-Authored-By: Sneha Gunda <[email protected]>
1 parent 98a8c61 commit c91e336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/cassandra-secondary-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ select user_id, lastname from sampleks.t1 where lastname='nishu';
3636

3737
Although the Cassandra API supports ALLOW FILTERING as mentioned in the previous section, however, it's not recommended. You should instead create an index in the as shown in the following example:
3838

39-
```
39+
```shell
4040
CREATE INDEX ON sampleks.t1 (lastname);
4141
```
4242
After creating an index on the "lastname" field, you can now run the previous query successfully. With Cassandra API in Azure Cosmos DB, you do not have to provide an index name. A default index with format `tablename_columnname_idx` is used. For example, ` t1_lastname_idx` is the index name for the previous table.

0 commit comments

Comments
 (0)