Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C3C595B8 for ; Mon, 14 May 2012 12:29:23 +0000 (UTC) Received: (qmail 74921 invoked by uid 500); 14 May 2012 12:29:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 74842 invoked by uid 500); 14 May 2012 12:29:20 -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 74820 invoked by uid 99); 14 May 2012 12:29:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 12:29:20 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.35.23.36] (HELO smtp-out2.electric.net) (72.35.23.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 12:29:12 +0000 Received: from [10.86.5.46] (helo=fuse246) by cernan.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1STuOR-00036M-Tk for user@cassandra.apache.org; Mon, 14 May 2012 05:28:51 -0700 Received: from mailanyone.net by fuse246 with esmtpsa (TLSv1:AES256-SHA:256) (MailAnyone extSMTP dbrosius@baybroadband.net) id 1STuOR-0008Cp-1d for user@cassandra.apache.org; Mon, 14 May 2012 05:28:51 -0700 Message-ID: <4FB0FA6A.5060100@mebigfatguy.com> Date: Mon, 14 May 2012 08:28:26 -0400 From: Dave Brosius User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: How to make the search by columns in range case insensitive ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit This could be accomplished with a custom 'CaseInsensitiveUTF8Type' comparator to be used as the comparator for that column family. This would require adding a class of your writing to the server. On 05/14/2012 07:26 AM, Ertio Lew wrote: > I need to make a search by names index using entity names as column > names in a row. This data is split in several rows using the first 3 > character of entity name as row key & the remaining part as column > name & col value contains entity id. > > But there is a problem, I m storing this data in a CF using byte type > comparator. I need to make case insensitive queries to retrieve 'n' no > of cols column names starting from a point. > Any ideas about how should I do that ?