Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 27230 invoked from network); 10 Jun 2009 21:32:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jun 2009 21:32:47 -0000 Received: (qmail 50929 invoked by uid 500); 10 Jun 2009 21:32:58 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 50863 invoked by uid 500); 10 Jun 2009 21:32:57 -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 50855 invoked by uid 99); 10 Jun 2009 21:32:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 21:32:57 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 21:32:49 +0000 Received: by yw-out-2324.google.com with SMTP id 2so565884ywt.5 for ; Wed, 10 Jun 2009 14:32:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.125.11 with SMTP id c11mr3534361ybn.138.1244669547454; Wed, 10 Jun 2009 14:32:27 -0700 (PDT) In-Reply-To: <89BB17546E0E474D96B24BFDE996C050@VEGA> References: <85d3c3b60906091932i591ef6f4gcc950586b15d4506@mail.gmail.com> <85d3c3b60906101058w1f6b5fc5re5a2911cdc8053c1@mail.gmail.com> <444929E412B144B6AB5F6CF3CC919D36@VEGA> <9ac0c6aa0906101145p3450edf6v2a9378c8925412b8@mail.gmail.com> <9ac0c6aa0906101243o1f018b84h929e357e0fa8f88e@mail.gmail.com> <50E85C764334475D8E8C8597EA2EC5EB@VEGA> <89BB17546E0E474D96B24BFDE996C050@VEGA> Date: Wed, 10 Jun 2009 17:32:27 -0400 Message-ID: <9ac0c6aa0906101432w7a836a1av329a9bfd745523de@mail.gmail.com> Subject: Re: Payloads and TrieRangeQuery From: Michael McCandless To: java-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I think we'd need richer communication between MTQ and its subclasses, so that eg your enum would return a Query instead of a Term? Then you'd either return a TermQuery, or, a BooleanQuery that's filtering the TermQuery? But yes, doing after 3.0 seems good! Mike On Wed, Jun 10, 2009 at 5:26 PM, Uwe Schindler wrote: >> I would like to go forward with moving the classes into the right packages >> and optimize the way, how queries and analyzers are created (only one >> class >> for each). The idea from LUCENE-1673 to use static factories to create >> these >> classes for the different data types seems to be more elegant and simplier >> to maintain than the current way (having a class for each bit size). >> >> So I think I will start with 1673 and try to present something useable, >> soon >> (but without payloads, so the payload/position-bits setting is "0"). > > Another question not so simple to answer: When embedding these TermPositions > into the whole process, how would this work with MultiTermQuery? The current > algorithm is simple: The TrieRangeTermEnum simply enumerates the possible > terms from the index and MTQ creates the BitSet or a BooleanQuery of > TermQueries. How to do this with positions? In both cases there need > specialities (the TermEnum must return that the actual term is a > payload/position one and must filter using TermPositions). For the filter > its then easy, the TermQueries added to BooleanQuery in the other case must > also use the payloads. Questions & more questions. > > I tend to release TrieRange with 2.9 without Positions/Payloads. > > Uwe > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org