Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 12721 invoked from network); 13 Dec 2010 17:31:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 17:31:20 -0000 Received: (qmail 36581 invoked by uid 500); 13 Dec 2010 17:31:18 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 36522 invoked by uid 500); 13 Dec 2010 17:31:18 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 36512 invoked by uid 99); 13 Dec 2010 17:31:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 17:31:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 17:31:11 +0000 Received: by vws7 with SMTP id 7so3625664vws.31 for ; Mon, 13 Dec 2010 09:30:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.91.2 with SMTP id k2mr3952899qcm.147.1292261450182; Mon, 13 Dec 2010 09:30:50 -0800 (PST) Received: by 10.229.63.69 with HTTP; Mon, 13 Dec 2010 09:30:50 -0800 (PST) X-Originating-IP: [64.132.24.248] In-Reply-To: References: <1292239501.3737.6.camel@sdruon-desktop> Date: Mon, 13 Dec 2010 11:30:50 -0600 Message-ID: Subject: Re: Hector and secondary indexes From: Nate McCall To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org In the hector source tree, IndexedSlicesQueryTest should provide some additional examples: https://github.com/rantav/hector/blob/master/core/src/test/java/me/prettypr= int/cassandra/model/IndexedSlicesQueryTest.java A stand-alone example that might be easier to experiment with can be found = here: https://github.com/zznate/hector-examples/blob/master/src/main/java/com/rip= tano/cassandra/hector/example/GetIndexedSlices.java For detailed Hector questions, feel free to join our mailing list as well: hector-users@googlegroups.com On Mon, Dec 13, 2010 at 6:19 AM, Jake Luciani wrote: > There is an example using hector here: > http://www.riptano.com/blog/whats-new-cassandra-07-secondary-indexes > > On Mon, Dec 13, 2010 at 6:25 AM, S=E9bastien Druon w= rote: >> >> Hello! >> >> How is it possible to query a secondary index with Hector? >> The equivalent of the following CLI command for example: >> get users where birth_date =3D 1973; >> with a secondary index defined on birth_date >> >> Thanks in advance for the help >> >> Sebastien Druon >> > >