cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Set an index on column
Date Thu, 02 Dec 2010 13:38:24 GMT
It's part of "update column family:"

[default@unknown] help update column family;
...
    - column_metadata: Metadata which describes columns of column family.
        Supported format is [{ k:v, k:v, ... }, { ... }, ...]
        Valid attributes: column_name, validation_class (see comparator),
                          index_type (integer), index_name.

example:
update column family Foo with column_metadata=[{ column_name:Test,
validation_class:IntegerType, index_type:0, index_name:IdxName}] and
rows_cached=100 and comment='this is helpful comment.';


On Thu, Dec 2, 2010 at 7:04 AM, Joshua Partogi <jpartogi@scrum8.com> wrote:
> Hi there,
>
> How do I set an index on a column in cassandra 0.7?
>
> This is what I am trying to do:
> [default@Keyspace1] get Standard1 where user = 'jpartogi';
> No indexed columns present in index clause with operator EQ
>
>
> I can not find this in the CLI help nor the wiki. Maybe I am not looking
> hard enough?
>
> Thanks heaps for your help
>
> --
> http://twitter.com/jpartogi
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Mime
View raw message