Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 50423 invoked from network); 17 Feb 2009 01:22:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 01:22:20 -0000 Received: (qmail 92916 invoked by uid 500); 17 Feb 2009 01:22:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 92877 invoked by uid 500); 17 Feb 2009 01:22:20 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 92866 invoked by uid 99); 17 Feb 2009 01:22:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 17:22:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.220.20 as permitted sender) Received: from [209.85.220.20] (HELO mail-fx0-f20.google.com) (209.85.220.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 01:22:09 +0000 Received: by fxm13 with SMTP id 13so6960459fxm.11 for ; Mon, 16 Feb 2009 17:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=lSCR5O3G1RgmHugSXeKa2PUPyEqrQqE9NEfYI7x63aI=; b=fe8cZxRBk6Wk987M7t0GZgI9gKVHFgM7bIKrOX52FccyTcF7GYrVcppbd8jWrcvss7 z8igSsdOD509vStIDY+jEyKU001Dr0mT67GeZ+sfdsTz/dZBlFTMC1Ef5AYGaeE7xfqh 4XnSfdp7kHn+9Dvdc7TP9VPe5tBfsjUR0G9ns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xzxnIP8ZHNTlDMac/ftiwuy5CRT9KhzrO7zwzX1H/kdaOZL++s375KSyf8tJIrmN7l QBGlmcNQjufencPyONoF+zxPhVRwJogCKXf2FhTK6TXHJGmanzn69sN3lPy70VeyV8kF 7ydiVZd8Dti9TTiTQWWV8+cavGeNTXtMOHEMY= MIME-Version: 1.0 Received: by 10.223.108.75 with SMTP id e11mr988685fap.97.1234833709490; Mon, 16 Feb 2009 17:21:49 -0800 (PST) In-Reply-To: References: <46aeb24f0902161700l1d288959y9a41aea46f4ccf9f@mail.gmail.com> Date: Tue, 17 Feb 2009 01:21:49 +0000 Message-ID: <46aeb24f0902161721r4a2f480cmdaaabd1603e8235c@mail.gmail.com> Subject: Re: external access to task_status methods? From: Robert Newson To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yes, I could define a syntax for querying the indexing state. My motivation was to get the status of this long-running task where all the others are, for consistency. Still, it might be handy to have a means to return a detailed summary of the index state anyway, I'll think on that. For now, I'm moving on to separate the indexing process from the searching one and the former to be driven by update notifications for more timely indexing. B. On Tue, Feb 17, 2009 at 1:18 AM, Chris Anderson wrote: > On Mon, Feb 16, 2009 at 5:00 PM, Robert Newson wrote: >> All, >> >> I'm working on couchdb-lucene >> (http://github.com/rnewson/couchdb-lucene) and would like to provide >> feedback on long-running index tasks (which could take minutes >> depending on the amount of change) the same way that compaction and >> view generation feedback is provided. >> >> Specifically, some way to call add_task and update from an external. I >> appreciate that cleanup is currently mediated by Erlang process >> management. Externals would need a remove_task method, which is not >> ideal. >> >> Any thoughts? >> > > The simplest thing for now would be to manage queries for the current > status within your external itself. Since incoming queries already get > passed to it, it's just matter of setting up a status responder > clause. > > > -- > Chris Anderson > http://jchris.mfdz.com >