From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.79.9 with SMTP id c9cs38863agb; Tue, 3 Nov 2009 09:35:39 -0800 (PST) Received: by 10.224.112.72 with SMTP id v8mr157855qap.106.1257269739053; Tue, 03 Nov 2009 09:35:39 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 12si344637qyk.115.2009.11.03.09.35.38; Tue, 03 Nov 2009 09:35:39 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C290D1598090; Tue, 3 Nov 2009 12:35:38 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 8A04418581F3 for ; Tue, 3 Nov 2009 12:35:36 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1N5NI8-0003wA-2x for sup-talk@rubyforge.org; Tue, 03 Nov 2009 09:35:36 -0800 From: William Morgan To: sup-talk In-reply-to: <1257265840-sup-9752@thinkpad-ubuntu> References: <1256199860-sup-4407@thinkpad-ubuntu> <1257177490-sup-4126@masanjin.net> <1257265840-sup-9752@thinkpad-ubuntu> Date: Tue, 03 Nov 2009 09:35:34 -0800 Message-Id: <1257269366-sup-159@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] Completion for search queries X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Reformatted excerpts from Christopher Bertels's message of 2009-11-03: > Cool, anyone who knows how & wants to implement this? ;) If anyone is interested, I would suggest this approach: have each index (Ferret and Xapian) have a method that returns a list of query terms, and then look at how BufferManager#ask_many_emails_with_completions works, and implement something similar called ask_for_search_query or the like. Then have bin/sup circa line 275 call that instead of #ask. -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk