Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 4165 invoked from network); 18 Mar 2009 21:45:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2009 21:45:47 -0000 Received: (qmail 67177 invoked by uid 500); 18 Mar 2009 21:45:42 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 66744 invoked by uid 500); 18 Mar 2009 21:45:41 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 66735 invoked by uid 99); 18 Mar 2009 21:45:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2009 14:45:41 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.190.230.99] (HELO mail.troja.net) (80.190.230.99) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2009 21:45:31 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id B010551302 for ; Wed, 18 Mar 2009 22:45:10 +0100 (CET) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19538-08 for ; Wed, 18 Mar 2009 22:45:08 +0100 (CET) Received: from VEGA (port-83-236-62-11.dynamic.qsc.de [83.236.62.11]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id 6D65951280 for ; Wed, 18 Mar 2009 22:45:08 +0100 (CET) From: "Uwe Schindler" To: References: <839A8626-1D06-4D99-9111-607179E029DD@osafoundation.org> <59b3eb370903181331w16198ae3rd4bff6b57342cc79@mail.gmail.com> Subject: RE: move TrieRange* to core? Date: Wed, 18 Mar 2009 22:45:06 +0100 Message-ID: <246F22F7AC094C3A85315CD564319005@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <59b3eb370903181331w16198ae3rd4bff6b57342cc79@mail.gmail.com> Thread-Index: AcmoCJFvUWExEVYYSmmFtZhTmTJ2+gACCtdg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org > >> I think we should move TrieRange* into core before 2.9? > >> > >> It's received alot of attention, from both developers (Uwe & Yonik = did > >> lots of iterations, and Solr is folding it in) and user interest. > >> > >> It's a simpler & more scalable way to index numeric fields that you > >> intend to sort and/or do range querying on; we can do away with = tricky > >> number padding. > >> > >> Plus it's just plain cool :) > >> > >> I also think we should change its name. I know and love "trie", = but > >> it's a very technical term that's not immediately meaningful to = users > >> of Lucene's API. Plus I've learned from doing too many renamings > >> lately that it's best to try to get the name right at the start. > >> > >> Maybe just NumberUtils, IntRangeFilter, LongRangeFilter, > >> AbstractNumberRangeFilter? > > > > +1 > > > > How about NumericRangeFilter ? > The idea behind this filter can be applied to more than just numbers, > so I'd like to put the stress on its speed or idea used - > FastRangeQuery, TrieRangeQuery, SegmentedRangeQuery (from the fact it > splits input range into variable-precision segments), PrefixRangeQuery > (you can reword the algorithm in terms of prefixes) Trie is also known as Prefix Tree, because of that and the usage, I = called it TrieRange [see http://en.wikipedia.org/wiki/Trie: the original = term "trie" comes from "retrieval." Following the etymology, the = inventor, Edward Fredkin, pronounces it [t=C9=B9i] ("tree"). However, it = is pronounced [t=C9=B9a=C9=AA] ("try") by other authors]. So we have two possibilities: - a generic name completely hiding the internals -- but then the = complexity with the helper field should be hidden, how should = "precisionStep" called and justified then? - a name describing how it works, like Earwin suggested - so we could = stay with TrieRange.=20 The name "TrieRangeQuery" first appeared in [1], so it should be noted = somewhere, even if it is renamed to NumberRangeFilter or something = else... :-) I would be happy with a renaming to "NumberRangeFilter", but = "trie" should appear somewhere in the docs. Uwe [1] Schindler, U, Diepenbroek, M, 2008. Generic XML-based Framework for = Metadata Portals. Computers & Geosciences 34 (12), 1947-1955. = doi:10.1016/j.cageo.2008.02.023 --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org