Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 24239 invoked from network); 30 Oct 2010 16:51:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Oct 2010 16:51:41 -0000 Received: (qmail 54864 invoked by uid 500); 30 Oct 2010 16:51:40 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 54817 invoked by uid 500); 30 Oct 2010 16:51:40 -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 54810 invoked by uid 99); 30 Oct 2010 16:51:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 16:51:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,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 dmsmith555@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 16:51:32 +0000 Received: by gwaa12 with SMTP id a12so2162842gwa.35 for ; Sat, 30 Oct 2010 09:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=I1RgBKfTevasbIvVcNIdPM+p8FuxLKuL8z3mvLet3GI=; b=IPMT5BnG6pYl0Xd7xO4Qw/0tCXCxVcaQuPn+nbFnAf4Zc7Tpd9hzhwy0X5YQyoVfNU XuQoA/MRdSCERDeE43S74HwvHAFxsnk0PXePoO43fkpiSj6g6uWPMnA92J9b+maKjwlv bYbLBwVbW4ZbXz4I9kIOCPaSodRX6Oy5kwkaI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=j6Rwy674IAbS2Al7NoXv/eouQULBy9aaQHjALkPh/yx8AcgQr8YZdeeccrXwVQsVHr OPI2ETrfNan4jtyHVk1Eg5UUZDozmRwm5c9sOkC8MCnQ5wtwsLzar6qFmEfCBr+pbKwy b4QONJA3Xeetxs9A8GXi9PB5Fy/M9v5/1y9SU= Received: by 10.229.238.197 with SMTP id kt5mr13303573qcb.25.1288457471482; Sat, 30 Oct 2010 09:51:11 -0700 (PDT) Received: from [10.0.1.10] (cpe-24-210-157-179.woh.res.rr.com [24.210.157.179]) by mx.google.com with ESMTPS id s26sm1404823vcr.37.2010.10.30.09.51.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 30 Oct 2010 09:51:10 -0700 (PDT) Subject: Re: inconsistency/performance trap of empty terms Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: DM Smith In-Reply-To: Date: Sat, 30 Oct 2010 12:51:08 -0400 Cc: yonik@lucidimagination.com Content-Transfer-Encoding: quoted-printable Message-Id: <34F941D8-4CFF-4106-A102-9EA5E272667B@gmail.com> References: <000e01cb7841$aa7dce50$ff796af0$@thetaphi.de> To: dev@lucene.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 30, 2010, at 12:00 PM, Robert Muir wrote: > On Sat, Oct 30, 2010 at 11:54 AM, Yonik Seeley > wrote: >> If it's only for the QP, a simple method that one could override = would suffice: >> QueryParser.getTokenStream(String field, String value) >>=20 >> If it's not just for the QP, then we have Analyzer (as you've pointed = out). >>=20 >>=20 >=20 > right, but if we did this, it makes some things tricky (e.g. the user > has to manage reset(Reader)/reset() tokenStream reuse). > A tokenizer/tokenfilter they are using could be "heavy" in terms of > initialization cost. Maybe I'm missing something here. Can't there be an empty analyzer that = takes a TokenStream as an argument to its constructor and wraps it with = all the reuse goodness? >=20 > anyway, i'd like to get rid of Analyzer just as much as anyone, but > making the API difficult/fragile/non-performant isn't a good way --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org