Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 99854 invoked from network); 30 Oct 2010 15:55:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Oct 2010 15:55:19 -0000 Received: (qmail 15538 invoked by uid 500); 30 Oct 2010 15:55:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 15481 invoked by uid 500); 30 Oct 2010 15:55:18 -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 15474 invoked by uid 99); 30 Oct 2010 15:55:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 15:55:18 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 15:55:13 +0000 Received: by fxm7 with SMTP id 7so3846752fxm.35 for ; Sat, 30 Oct 2010 08:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=s6cTdvfppXh6SKbyUCcVN2EYLgS8hK0S4CfXSMbVWjM=; b=vTmgjakCqTrKJ656N/l4PhzJLAuFR8SqQ11ymvUG+665Xs8TH2iStaW8It2fJWIyc7 SYdtYE2+VtbP9ipHOn+XzevzcGQ1vLr5iVynMnTwQzDPtHTv+jw9qSrKd1mRILSoZ8Oq IySPg58Mlpvd+tNIAL7vqIjVT3LkZmFmyGj3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=IlbnsZgg8svmH9dLNF9wtNcBYOURr6lD+D1X23lTerIMJ4DHJ1mEOcta13+C7Xm37v /RoAhN4LvjuBYsqs5++R+VJvgsDTR+mWPPwXVj5KP06UutXXbedHSkli1XDGTIZQIdsw YEwa39i8X/e62fDPtfJ83tkRFXP29ilb5flNM= MIME-Version: 1.0 Received: by 10.223.87.79 with SMTP id v15mr3673233fal.69.1288454091064; Sat, 30 Oct 2010 08:54:51 -0700 (PDT) Sender: yseeley@gmail.com Reply-To: yonik@lucidimagination.com Received: by 10.223.74.202 with HTTP; Sat, 30 Oct 2010 08:54:51 -0700 (PDT) In-Reply-To: References: <000e01cb7841$aa7dce50$ff796af0$@thetaphi.de> Date: Sat, 30 Oct 2010 11:54:51 -0400 X-Google-Sender-Auth: zKwFSHdF996-ZRyXfvkuZaH24RM Message-ID: Subject: Re: inconsistency/performance trap of empty terms From: Yonik Seeley To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Sat, Oct 30, 2010 at 11:43 AM, Robert Muir wrote: > On Sat, Oct 30, 2010 at 11:40 AM, Earwin Burrfoot wrote: >> On Sat, Oct 30, 2010 at 18:49, Uwe Schindler wrote: >>> In my opinion, we should not have analyzers at all (just my personal opinion). "new Field(name, TokenStream)" is much enough from consistency standpoint! >> >> Indeed, my friend! >> > > i agree (for the indexer), but a lot of people like to use the > QueryParser.... so we need a "tokenstream-factory" of some sort > (Analyzer today). If it's only for the QP, a simple method that one could override would suffice: QueryParser.getTokenStream(String field, String value) If it's not just for the QP, then we have Analyzer (as you've pointed out). -Yonik http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org