Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 54D139F1E for ; Mon, 2 Apr 2012 20:52:54 +0000 (UTC) Received: (qmail 54276 invoked by uid 500); 2 Apr 2012 20:52:52 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 54240 invoked by uid 500); 2 Apr 2012 20:52:52 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 54232 invoked by uid 99); 2 Apr 2012 20:52:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 20:52:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_IMAGE_ONLY_32,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mlortiz@uci.cu designates 200.55.140.180 as permitted sender) Received: from [200.55.140.180] (HELO mx3.uci.cu) (200.55.140.180) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Apr 2012 20:52:46 +0000 Received: (qmail 2719 invoked from network); 2 Apr 2012 20:52:20 -0000 Received: from unknown (HELO ucimail5.uci.cu) (10.0.0.188) by 0 with SMTP; 2 Apr 2012 20:52:20 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ucimail5.uci.cu (Postfix) with ESMTP id 59D8022C003 for ; Mon, 2 Apr 2012 16:52:20 -0400 (CDT) X-Virus-Scanned: amavisd-new at uci.cu Received: from ucimail5.uci.cu ([127.0.0.1]) by localhost (ucimail5.uci.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gsLdc-kiK4LW for ; Mon, 2 Apr 2012 16:52:19 -0400 (CDT) Received: by ucimail5.uci.cu (Postfix, from userid 101) id 573C122C002; Mon, 2 Apr 2012 16:52:19 -0400 (CDT) Received: from [10.56.18.125] (unknown [10.56.18.125]) (Authenticated sender: mlortiz@uci.cu) by ucimail5.uci.cu (Postfix) with ESMTPSA id 47DC422C001; Mon, 2 Apr 2012 16:52:19 -0400 (CDT) Message-ID: <4F7A1182.1060408@uci.cu> Date: Mon, 02 Apr 2012 16:52:18 -0400 From: Marcos Ortiz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: user@hbase.apache.org CC: Bryan Beaudreault Subject: Re: Search by name References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------050600060904020000020900" --------------050600060904020000020900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit HBasene? https://github.com/akkumar/hbasene On 04/02/2012 04:46 PM, Bryan Beaudreault wrote: > I imagine you don't want this search to have to scan the entire patients > table to find someone by their name, assuming there could be many many > patients. It may be a better idea to create a search table. The search > table could have search terms in the row key, and the columns could be > profileIds. Then your query execution would be: > > 1) do a multiGet of the search table, for row keys 'bryan' and '01-01-2012'. > 2) intersect the returned columns > 2) do a multiGet using the profileIds from the intersection as the row keys > for the various gets > > If you want to partial match on names you could do a scan from 'bryan' to > 'bryao' (n+1) and union all of the columns in each returned row before > intersecting with the date search. > > This just requires you to keep the index up to date when users get added, > deleted, and updated. > > On Mon, Apr 2, 2012 at 4:26 PM, Dalia Sobhywrote: > >> Helllooo, >> >> I am using hbase thrift for my app. I have made a table for patient which >> has first a column family called info which contains his/her general info. >> >> I want to make a method to search for a patient by his name and date of >> birth. I didn't find any method for search all requires the row key and I >> instead need to method which returns the row key. >> >> So any ideasss ??? >> >> Thx ;) > > 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... > CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION > > http://www.uci.cu > http://www.facebook.com/universidad.uci > http://www.flickr.com/photos/universidad_uci -- Marcos Luis Ort�z Valmaseda (@marcosluis2186) Data Engineer at UCI http://marcosluis2186.posterous.com 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci --------------050600060904020000020900--