Return-Path: Delivered-To: apmail-incubator-lucy-dev-archive@www.apache.org Received: (qmail 3202 invoked from network); 16 Apr 2011 18:09:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2011 18:09:35 -0000 Received: (qmail 80385 invoked by uid 500); 16 Apr 2011 18:09:35 -0000 Delivered-To: apmail-incubator-lucy-dev-archive@incubator.apache.org Received: (qmail 80329 invoked by uid 500); 16 Apr 2011 18:09:35 -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 80321 invoked by uid 99); 16 Apr 2011 18:09:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 18:09:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.98.116.241] (HELO pekmac.local) (209.98.116.241) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 18:09:28 +0000 Received: from pekmac.local (localhost [127.0.0.1]) by pekmac.local (Postfix) with ESMTP id 74556470C76 for ; Sat, 16 Apr 2011 13:09:06 -0500 (CDT) Message-ID: <4DA9DB42.9040700@peknet.com> Date: Sat, 16 Apr 2011 13:09:06 -0500 From: Peter Karman Reply-To: peter@peknet.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: lucy-dev@incubator.apache.org References: <4DA90CA0.6010509@peknet.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-dev] Simplifying the Query Parser David E. Wheeler wrote on 4/16/11 11:05 AM: > On Apr 15, 2011, at 8:27 PM, Peter Karman wrote: > >> This, I'm not so sure about. At least, it should be configurable, with a >> 'strict' flag or similar, which if enabled, would throw errors if 'foo' was >> not a defined field. Otherwise, depending on the user, we're in the realm >> of silent failure rather than gracious host. > > That just trades one level of complexity (heed_colons) for another (strict). /me nods > >> Do we even have a feature for public/private fields atm? > > Yes, Marvin says it will search only those you list in the constructor, > unless you have heed_colons on and someone specifies a field not listed. > ah. thanks for clarifying. >> I think the focus on reliable, flexible *Query classes has been a good >> design choice to date, because it means that it is quite straightforward to >> roll 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. > > So maybe there isn't a need for a strict parser? agreed. > >> I agree that Lucy QueryParser should get simpler over time, by losing >> features, but not convinced that the behavior you're proposing actually >> does that. I'm happy to be convinced though. > > Given the audience it currently targets (web search box users), I think it > makes sense to try to adhere to the principal of least astonishment. > that was convincing. :) +1 -- Peter Karman . http://peknet.com/ . peter@peknet.com