Return-Path: X-Original-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-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 0FB78EB8F for ; Wed, 5 Dec 2012 13:44:22 +0000 (UTC) Received: (qmail 38530 invoked by uid 500); 5 Dec 2012 13:44:22 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 38439 invoked by uid 500); 5 Dec 2012 13:44:20 -0000 Mailing-List: contact bloodhound-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-dev@incubator.apache.org Received: (qmail 38409 invoked by uid 99); 5 Dec 2012 13:44:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 13:44:20 +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 (athena.apache.org: local policy) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 13:44:13 +0000 Received: by mail-ee0-f47.google.com with SMTP id e51so2873464eek.6 for ; Wed, 05 Dec 2012 05:43:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=UK2/G/p4d6XUr5zyHvatx+z7zbSRyK6b/XC4FpOzQME=; b=V4kge/Jt5yWzY1xVeKVRv2iyxBsw+EfizpGsaDZCgmNgjsccEmHQj84f0kknk6aHKw /yYyJzJZtFVCNJsqArqwxQRNPUqI4tiT0iD9nI4yYXLesqDCK+gTodtr4s5SAG1n6l2b HlLhJvRXueR/qob1lfHoIhPkxKghD6jomVGh0LsBvn5fhZ6JeXauqym0lZZ0XlLKJpDr le01sgisNqBYbkZ+NaWGwUuQ1YHyGZaopvpJQXshgNnGxfX1APmP5RljJGWeGOAZEyvS uKuBTvCUFK9vy3EKTzC+VfeVZwOLdDPrmZXgsILGDlkrYp1ylhXhOpH/Jv8OZse+DDRU wLJg== MIME-Version: 1.0 Received: by 10.14.214.132 with SMTP id c4mr60874635eep.18.1354715031588; Wed, 05 Dec 2012 05:43:51 -0800 (PST) Received: by 10.223.170.65 with HTTP; Wed, 5 Dec 2012 05:43:51 -0800 (PST) X-Originating-IP: [77.234.149.122] In-Reply-To: References: <20121128151735.03AEB803AF@bloodhound-vm> <50BE0908.7090900@wandisco.com> Date: Wed, 5 Dec 2012 14:43:51 +0100 Message-ID: Subject: Re: [Apache Bloodhound] Proposals/BEP-0004/ResourceQuery added From: Andrej Golcov To: bloodhound-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnkOJkJcGBcXDnooPsWa+7wXDvFVav0HB1x/WBmr/wYutDiddM9PM4XuEo7RfaV0a9DhwwI X-Virus-Checked: Checked by ClamAV on apache.org Hi, > It does worry me that it might not be the best idea to support lucene as > well as existing syntax but if there are existing parsers for the lucene > style syntax it may be OK. Perhaps there is a way of using Whoosh to > provide parsing services for us. Do you mean to use Whoosh query parser to parse Bloodhound Search query? That will bring us a lot functionality with much less effort and bugs. >From the first look, Whoosh query syntax (http://packages.python.org/Whoosh/querylang.html) covers at least 90% of our requirements. According to Whoosh code, it can be also extended: http://packages.python.org/Whoosh/parsing.html. In case of PyLucene usage, we will provide query mapping from Whoosh to Lucen. There are few drawbacks that I can see: - we have to follow Whoosh syntax and not imagine ourselves, at least in basics - may be it is not a drawback :) - Bloodhound Search plugin will depend on Whoosh even if other search backend is used e.g. PyLucene If we can leave with this, I vote for starting prototype with Whoosh syntax and parser since it will speedup features delivery. Anyway, we can implement our own parser later. Regards, Andrej