Re: [MORG] Review: draft-ietf-morg-fuzzy-search-02

Timo Sirainen <tss@iki.fi> Tue, 16 November 2010 16:29 UTC

Return-Path: <tss@iki.fi>
X-Original-To: morg@core3.amsl.com
Delivered-To: morg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F0A443A6DF3 for <morg@core3.amsl.com>; Tue, 16 Nov 2010 08:29:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.299
X-Spam-Level:
X-Spam-Status: No, score=-106.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_74=0.6, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kOcWKiqkwj6q for <morg@core3.amsl.com>; Tue, 16 Nov 2010 08:29:35 -0800 (PST)
Received: from dovecot.org (dovecot.org [62.236.108.70]) by core3.amsl.com (Postfix) with ESMTP id 0C1C33A6E2E for <morg@ietf.org>; Tue, 16 Nov 2010 08:29:35 -0800 (PST)
Received: from [10.134.132.83] (unknown [194.65.5.235]) by dovecot.org (Postfix) with ESMTP id CDF67FA8B25; Tue, 16 Nov 2010 18:30:17 +0200 (EET)
From: Timo Sirainen <tss@iki.fi>
To: Dave Cridland <dave.cridland@isode.com>
In-Reply-To: <2850.1289924444.405478@puncture>
References: <A199F09978CEADEC3697D0DA@dhcp-63f1.meeting.ietf.org> <AANLkTikpxj788+WaFstG_-9+Uu4rmuhzQSfFqUnR_psg@mail.gmail.com> <C80B2463-5A2E-465D-A800-79EA009131AB@iki.fi> <22FDB22B5203DF761DFD4F61@dhcp-63f1.meeting.ietf.org> <1289922768.1764.168.camel@kurkku.sapo.corppt.com> <2850.1289924444.405478@puncture>
Content-Type: text/plain; charset="UTF-8"
Date: Tue, 16 Nov 2010 16:30:16 +0000
Message-ID: <1289925016.1764.185.camel@kurkku.sapo.corppt.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3
Content-Transfer-Encoding: 7bit
Cc: Messaging Organization <morg@ietf.org>
Subject: Re: [MORG] Review: draft-ietf-morg-fuzzy-search-02
X-BeenThere: morg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Messaging Organization <morg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/morg>, <mailto:morg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/morg>
List-Post: <mailto:morg@ietf.org>
List-Help: <mailto:morg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/morg>, <mailto:morg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 16 Nov 2010 16:29:37 -0000

On Tue, 2010-11-16 at 16:20 +0000, Dave Cridland wrote:
> > > > Yes, I think SORT (RELEVANCY) should be required for that.  RFC  
> > 5267
> > > > isn't super clear on if SORT supports PARTIAL, but I guess it  
> > should
> > > > according to ABNF.
> That's basically what CONTEXT=SORT is for:
> 
>    Servers advertising CONTEXT=SORT also advertise the SORT  
> capability,
>    as described in [SORT], support the extended SORT command syntax
>    described in Section 3, and accept three additional return options
>    for this extended SORT.
> 
>    These additional return options allow for notifications of changes  
> to
>    the results of SEARCH or SORT commands, and also allow for access  
> to
>    partial results.
> 
> I don't think that's anything less than super-clear.

Oh, right. I was mostly just reading through sections 3.* and 4.4.

> > I was planning on using this example:
> > 
> > C: D02 SORT RETURN (PARTIAL 1:10) (RELEVANCY) UTF-8 FUZZY TEXT  
> > "World"
> > S: * ESEARCH (TAG "D02") PARTIAL (1:10  
> > 19,80,85:86,95,102:103,111,113:114)
> > S: D02 OK Sort completed.
> 
> That's somewhat deceptive, since the results are in UID order, so it  
> could be misread.

Right, I didn't notice that because it was a real SORT reply that just
happened to return the results in UID order..

> What that should provide is the 10 most relevant matches, of course -  
> in this example it might be viewed that, as these are also the ten  
> first matching messages, there's some implicit "order by UID" going  
> on. A random.shuffle makes it more clear:
> 
> C: D02 SORT RETURN (PARTIAL 1:10) (RELEVANCY) UTF-8 FUZZY TEXT "World"
> S: * ESEARCH (TAG "D02") PARTIAL (1:10  
> 102,95,114,103,113,111,86,10,80,85)
> S: D02 OK Sort completed.

Changed.