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 D9FDDDDB1 for ; Thu, 22 Nov 2012 12:01:57 +0000 (UTC) Received: (qmail 29644 invoked by uid 500); 22 Nov 2012 12:01:57 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 29549 invoked by uid 500); 22 Nov 2012 12:01:56 -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 29507 invoked by uid 99); 22 Nov 2012 12:01:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 12:01:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.martin@wandisco.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 12:01:45 +0000 Received: by mail-la0-f47.google.com with SMTP id u2so5932391lag.6 for ; Thu, 22 Nov 2012 04:01:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=j1pBI7j2nZW/A5vzPDgzkFxjsfSfiEhqNhxeILYlJTc=; b=WivrXu7o3aNu38b048TEEaBhhSh8jtA8IR503AcNwVv3uJqD9h5+7Gb4DYyXGJp10R qb/Cf5RoFXDVDM6jXako1Q/AWGL0vKbXtU4aKj9jDOnIqI+OBFblqdLk0RAxEpfkNk+k tLt4bbhek2miNCUla6axIDXX2Kzy0vGRHY7me+NhXrlS+zJTWahKaqcAFsHFg3y3Ce7u hqbxTWDCiT3GjUtCi9ezYhdjer1YP4u0eNa9ApYXQ7KdHv5bsPKJ/nkS9rson9mfLP5r vx6vkIpqkc6cuLU+ccyfkHKdgFMm1N5y9xO5lPU7t/vTo5mYnYmHs7LlRs7/NAIwjNm9 5BEA== Received: by 10.152.108.197 with SMTP id hm5mr239514lab.45.1353585682556; Thu, 22 Nov 2012 04:01:22 -0800 (PST) Received: from [10.2.5.205] ([77.86.30.139]) by mx.google.com with ESMTPS id z9sm1356476lby.8.2012.11.22.04.01.20 (version=SSLv3 cipher=OTHER); Thu, 22 Nov 2012 04:01:21 -0800 (PST) Message-ID: <50AE140D.5020003@wandisco.com> Date: Thu, 22 Nov 2012 12:01:17 +0000 From: Gary Martin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: bloodhound-dev@incubator.apache.org Subject: Improved Search Architecture - Quick Search Box (Was: Re: [Apache Bloodhound] Proposals/BEP-0004 added) References: <20121122103257.3EA8580043@bloodhound-vm> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlRwjmLVxXbYUL3QWhn5OHxdKpdXHcxjh83b5rEInmYsGFFOO/6gdtftjozCwXY+zC9fmtJ X-Virus-Checked: Checked by ClamAV on apache.org Hi Andrej, Thanks for this. There are plenty of good ideas here but I will go through it in parts creating different threads. Hope that is good for everyone. On 22/11/12 11:08, Andrej Golcov wrote: > Hi all, > > I've just added first draft of proposal for search improvements. So, let's > discuss it :) > > I suggest that we agree on functional requirements and then pass to > possible implementation. > > Regards, Andrej > > > On 22 November 2012 11:32, Apache Bloodhound < > bloodhound-dev@incubator.apache.org> wrote: > >> Page "Proposals/BEP-0004" was added by andrej >> Content: >> -------8<------8<------8<------8<------8<------8<------8<------8<-------- >> >> = BEP 4 : Improved search architecture #overview [snipped] >> >> === Quick search box >> >> Quick search box should be just frontend for adhoc query. For example, if >> user searches for �bla� string, user receives Search Result view with the >> following query: text~=�bla�. User can refine query in Query Result view. Quick search should probably maintain all the syntax that a query results view search box provides. The main reason for providing a different search box would be that you can construct a larger text query and keep it in view, which seems quite nice. It would also solve the current problem of attempting to refine the search in the quick search field resulting in the dropping of the filters (though this could be solved by adding the filters to the quick search query.) On a technical note, is there any reason to specify text~= for a general text query? I would have thought that we could distinguish free text (as perhaps suggested below in the examples below.) >> >> Search box should accept the following search types: >> - free-text search: �bla� >> - free-text + query: bla status!=closed >> - query only: status!=closed This looks good. At the moment the quick search requires "query:status!=closed" for the last of those and to include the free-text search you would need to query a whole set of fields to see if they contain the text. This is clearly not as quick and intuitive. Obviously, as soon as you bring field queries into the problem you are automatically focusing on resources that have that field available (possibly relaxed when there is an OR operator involved - think "bla OR status!=closed") >> >> Other nice to have features: >> - Did you mean... >> - Suggestions during typing The second is probably more useful than the former but these are probably worth considering later. Cheers, Gary