Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5809A1085C for ; Thu, 18 Dec 2014 03:22:25 +0000 (UTC) Received: (qmail 12785 invoked by uid 500); 18 Dec 2014 03:22:23 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 12740 invoked by uid 500); 18 Dec 2014 03:22:23 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 12729 invoked by uid 99); 18 Dec 2014 03:22:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2014 03:22:23 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Dec 2014 03:22:00 +0000 Received: (qmail 10518 invoked by uid 99); 18 Dec 2014 03:21:57 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2014 03:21:57 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 731EC1D2415; Thu, 18 Dec 2014 03:21:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0241126115084354093==" MIME-Version: 1.0 Subject: Re: Review Request 28498: FALCON: 914 Add fuzzy search for entities From: "Ajay Yadava" To: "shaik idris" , "Falcon" , "Ajay Yadava" Date: Thu, 18 Dec 2014 03:21:57 -0000 Message-ID: <20141218032157.12934.19710@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Ajay Yadava" X-ReviewGroup: Falcon X-ReviewRequest-URL: https://reviews.apache.org/r/28498/ X-Sender: "Ajay Yadava" References: <20141215191057.12935.77876@reviews.apache.org> In-Reply-To: <20141215191057.12935.77876@reviews.apache.org> Reply-To: "Ajay Yadava" X-ReviewRequest-Repository: falcon-git X-Virus-Checked: Checked by ClamAV on apache.org --===============0241126115084354093== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Dec. 15, 2014, 7:10 p.m., shaik idris wrote: > > prism/src/main/java/org/apache/falcon/resource/AbstractEntityManager.java, line 626 > > > > > > prefer to check if (StringUtils.isNotEmpty(pattern) && !fuzzySearch(entity.getName()){ continue;} If I understand your feedback correctly, it seems that you are suggesting me to move the empty checks from fuzzySearch to the call time. I think it is better to have it at the fuzzySearch level as that way the search function is more robust and different callers don't need to repeat same checks. - Ajay ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28498/#review65104 ----------------------------------------------------------- On Dec. 15, 2014, 3:52 p.m., Ajay Yadava wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28498/ > ----------------------------------------------------------- > > (Updated Dec. 15, 2014, 3:52 p.m.) > > > Review request for Falcon. > > > Bugs: https://issues.apache.org/jira/browse/FALCON-914 > https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/FALCON-914 > > > Repository: falcon-git > > > Description > ------- > > A lot of times users end up doing a list of all entities of a given type and do grep -i on it. We should add ability for doing a case insensitive fuzzy search for users to search for entities when they don't remember the exact entity name. We can add this as another option to list > e.g. falcon entity -list -type process -pattern hourly > and this should match the following process name. > My-Hourly-Summary > For fuzzy search like functionality: > falcon entity -list -type process -pattern mhs > should also match the above process name > > > Diffs > ----- > > client/src/main/java/org/apache/falcon/cli/FalconCLI.java 93776d3 > client/src/main/java/org/apache/falcon/client/FalconClient.java 23c8943 > docs/src/site/twiki/restapi/EntityList.twiki b569ade > prism/src/main/java/org/apache/falcon/resource/AbstractEntityManager.java b6e1cec > prism/src/main/java/org/apache/falcon/resource/AbstractSchedulableEntityManager.java d994e25 > prism/src/main/java/org/apache/falcon/resource/proxy/SchedulableEntityManagerProxy.java fb9d9f3 > prism/src/test/java/org/apache/falcon/resource/EntityManagerTest.java 1862e39 > webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java 5f4f495 > webapp/src/test/java/org/apache/falcon/cli/FalconCLIIT.java a3acbdb > > Diff: https://reviews.apache.org/r/28498/diff/ > > > Testing > ------- > > Added detailed unit tests and integration tests for the changes. > > > Thanks, > > Ajay Yadava > > --===============0241126115084354093==--