Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 46700 invoked from network); 3 May 2010 13:03:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 13:03:25 -0000 Received: (qmail 35102 invoked by uid 500); 3 May 2010 13:03:24 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 35035 invoked by uid 500); 3 May 2010 13:03:24 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 35028 invoked by uid 99); 3 May 2010 13:03:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 13:03:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rcmuir@gmail.com designates 209.85.218.222 as permitted sender) Received: from [209.85.218.222] (HELO mail-bw0-f222.google.com) (209.85.218.222) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 13:03:17 +0000 Received: by bwz22 with SMTP id 22so1275550bwz.5 for ; Mon, 03 May 2010 06:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=KLT4tMYDi22s68OrRKtO3qZzx0ktOf094KDH4WI1Zok=; b=JLLeZpFGKcnLyf5NGIcuCscefe5iyfNqmwiyqHAfYSQzYjfUY8kQI1IwzEHntRuhYE A7CnxgXnqP4ZSri/hLEE8nMsErsV64AM7K2owzsGHON79iFPNvOM0tFWtuNLzmwEUWxA zUvJgy0FabCm47fBd9yxh0DVOHEvbe7pXfUA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=lSSp11CA8yDBX3XdY2tiYqKPztWUpdYFcFGnN8+DDZTQnXY7UiQ823RXipzAJdlRyA ZU8kFkCL/XAsAt7oMN+/lGTdt2QSypNqXi5qygCGQvH+W3utggn2QmUvtLV6qljxIckZ EIIO0APBmla/qf6I45LE3fbv5gy4tLXLdaALU= Received: by 10.204.15.1 with SMTP id i1mr552692bka.207.1272891776420; Mon, 03 May 2010 06:02:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.58.136 with HTTP; Mon, 3 May 2010 06:02:36 -0700 (PDT) In-Reply-To: References: From: Robert Muir Date: Mon, 3 May 2010 09:02:36 -0400 Message-ID: Subject: Re: BytesRef comparable To: dev@lucene.apache.org, yonik@lucidimagination.com Content-Type: multipart/alternative; boundary=00032555a2522bd3ba0485b036bb X-Virus-Checked: Checked by ClamAV on apache.org --00032555a2522bd3ba0485b036bb Content-Type: text/plain; charset=UTF-8 On Mon, May 3, 2010 at 8:55 AM, Yonik Seeley wrote: > > I thought we were going to be changing lucene's index order to the > natural byte order (same as the unicode code point order)? > > Solr's BoundedTreeSet doesn't take a comparator. I could change it so > that it could of course... but it just seemed natural to "fix" > BytesRef. > > In my opinion, BytesRef should be comparable, with the default being 'natural' (unsigned/codepoint order). And you can still specify a crazy comparator in your codec, but not all things would work (its an expert customization) I mean, things like automaton won't work if you change the sort order to something wacky anyway... so theres nothing strange about Solr's BoundedTreeSet not using a custom codec comparator? -- Robert Muir rcmuir@gmail.com --00032555a2522bd3ba0485b036bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, May 3, 2010 at 8:55 AM, Yonik Se= eley <yo= nik@lucidimagination.com> wrote:

I thought we were going to be changing lucene's index order to th= e
natural byte order (same as the unicode code point order)?

Solr's BoundedTreeSet doesn't take a comparator. =C2=A0I could chan= ge it so
that it could of course... but it just seemed natural to "fix" BytesRef.


In my opinion, BytesRef should be comparable, with the default bein= g 'natural' (unsigned/codepoint order).
And you can still= specify a crazy comparator in your codec, but not all things would work (i= ts an expert customization)

I mean, things like automaton won't work if you cha= nge the sort order to something wacky anyway... so theres nothing strange a= bout Solr's BoundedTreeSet not using a custom codec comparator?=C2=A0

--
Robert Muir
rcmuir@= gmail.com
--00032555a2522bd3ba0485b036bb--