Return-Path: X-Original-To: apmail-incubator-lucy-dev-archive@www.apache.org Delivered-To: apmail-incubator-lucy-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CAC82E1C for ; Sat, 23 Apr 2011 22:44:58 +0000 (UTC) Received: (qmail 69935 invoked by uid 500); 23 Apr 2011 22:44:58 -0000 Delivered-To: apmail-incubator-lucy-dev-archive@incubator.apache.org Received: (qmail 69904 invoked by uid 500); 23 Apr 2011 22:44:57 -0000 Mailing-List: contact lucy-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@incubator.apache.org Delivered-To: mailing list lucy-dev@incubator.apache.org Received: (qmail 69896 invoked by uid 99); 23 Apr 2011 22:44:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Apr 2011 22:44:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.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.213.47] (HELO mail-yw0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Apr 2011 22:44:51 +0000 Received: by ywg8 with SMTP id 8so410095ywg.6 for ; Sat, 23 Apr 2011 15:44:29 -0700 (PDT) Received: by 10.236.206.116 with SMTP id k80mr2704543yho.291.1303598668251; Sat, 23 Apr 2011 15:44:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.105.174 with HTTP; Sat, 23 Apr 2011 15:44:07 -0700 (PDT) In-Reply-To: <20110418193946.GA14039@rectangular.com> References: <4DA90CA0.6010509@peknet.com> <20110418193946.GA14039@rectangular.com> From: Nathan Kurz Date: Sat, 23 Apr 2011 15:44:07 -0700 Message-ID: To: lucy-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-dev] Host QueryParser reimplementations On Mon, Apr 18, 2011 at 12:39 PM, Marvin Humphrey wrote: > On Fri, Apr 15, 2011 at 10:27:28PM -0500, Peter Karman wrote: >> I think the focus on reliable, flexible *Query classes has been a good d= esign >> choice to date, because it means that it is quite straightforward to rol= l your >> own query parser (as I have done), entirely suited to your application's= needs, >> sidestepping the Lucy QueryParser altogether. That's good library design= , imo. > > Perhaps we can build on that foundation. I've been disagreeing with a number of things lately, but this one I strongly agree with: it's great to have an easy to create and well defined data structure which serves as the canonical representation of what a user wishes to search for! So long as this is clear and easy to create, it doesn't really matter how extensible the built in parser is. > I'm thinking of starting a project at apache-extras.org, with the working > title "LucyX::Search::HostQueryParser". =C2=A0Its primary purpose would b= e to > supply hackable reimplementations of Lucy::Search::QueryParser in the hos= t > language, typically using a parser generator -- Parse::RecDescent for Per= l, > maybe pyparsing for Python, etc. Sounds like a good idea. My only question would be whether "LucyX" is the right namespace for this. I've never particularly liked it as a name, and once we have multiple people contributing it doesn't really make a difference whether they are stomping on each others "Lucy" objects or "LucyX" objects. I wonder whether just "Lucy::Perl::*", "Lucy::Python::*" might be clearer. But no strong objection. --nate