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 B57281751E for ; Sat, 14 Mar 2015 03:22:02 +0000 (UTC) Received: (qmail 91137 invoked by uid 500); 14 Mar 2015 03:22:02 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 91099 invoked by uid 500); 14 Mar 2015 03:22:02 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 91088 invoked by uid 99); 14 Mar 2015 03:22:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2015 03:22:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT,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; Sat, 14 Mar 2015 03:21:41 +0000 Received: (qmail 90998 invoked by uid 99); 14 Mar 2015 03:21:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2015 03:21:38 +0000 Date: Sat, 14 Mar 2015 03:21:38 +0000 (UTC) From: "Ajay Yadava (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-1095) Support free-text search for entities MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FALCON-1095?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D143= 61562#comment-14361562 ]=20 Ajay Yadava commented on FALCON-1095: ------------------------------------- API to search for an entity already exists. It will help if you can illustr= ate the advantages of your proposal over the existing implementation becaus= e It will be a backward incompatible change to users who will get used to e= xisting search scheme. From the example you have quoted it doesn't look any= different. +1 for extending it to tags.=20 > Support free-text search for entities > ------------------------------------- > > Key: FALCON-1095 > URL: https://issues.apache.org/jira/browse/FALCON-1095 > Project: Falcon > Issue Type: New Feature > Affects Versions: 0.6 > Reporter: Ying Zheng > Fix For: 0.7 > > > When users have hundreds or thousands of entities to manage, they may not= remember the exact name/tag of the entity. We would like to provide a more= convenient way for the user to search an entity by providing keywords in n= ame and tags. To be more specific, users can filter entities by type (i.e. = feed and process), regular expression that matches the name, and keywords i= n tags. > We plan to add a new API: GET api/entities/search > Parameters (all optional) > name Regular expression filter on name (e.g. name=3Dfullname,= name=3Ddepartment.*). Not case sensitive. > type Valid options are feed and process. > tags AND filter on tags, separated by comma. Support substr= ing matching so the user doesn=E2=80=99t need to enter the full tag string. > orderBy Column by which results should be ordered. Default is =E2= =80=9Cname=E2=80=9D. > sortOrder Valid options are "asc" and =E2=80=9Cdesc=E2=80=9D. Defau= lt is =E2=80=9Casc=E2=80=9D. > offset Show results from the offset. Used for pagination. Def= ault is 0. > numResults Number of results to show per request. Used for pagination. = Only integers > 0 are valid. Default is 10. > e.g. falcon entity -search -name house.*texas -tags estate > This should return the entity with name "houseSellTexas" and tags "catego= ry=3Drealestate". -- This message was sent by Atlassian JIRA (v6.3.4#6332)