Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 23327 invoked from network); 30 Jul 2007 17:58:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2007 17:58:07 -0000 Received: (qmail 31596 invoked by uid 500); 30 Jul 2007 17:58:00 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 31552 invoked by uid 500); 30 Jul 2007 17:57:59 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 31541 invoked by uid 99); 30 Jul 2007 17:57:59 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 10:57:59 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jattardi@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 17:57:54 +0000 Received: by wa-out-1112.google.com with SMTP id j40so1959489wah for ; Mon, 30 Jul 2007 10:57:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JNYCD/j2Tttiq/8R1YMlCpR9ggplliqeyy0WxAZEf7xuZZw/zTrRI5Vb4vCNtSaf8EPTggXvanXZSkPIpzMyoweMKZpzxoHTWadMS9m+9i6Bp0XHHmFcc1ehvaZ9+pCkHOW0pK+GgRGUkxdQbfe+fEDDncDCnDyVdJo1uaDvN38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=r8DYi6tMBvRyMF+tFg4qm8FxjpNYM87MS/zq21/CdCcjZT39N4pz4wTeFbh53W9M+smYrBt1oXvAxECvJvoXow5ja/UgKFujFoXSJhCnzYQLLxaw01eTJvLZ2zUQejRFTDaJ04dqA10eBlqtBhkE8uCn8+5b0/gM0eTV+sC5zmM= Received: by 10.114.132.5 with SMTP id f5mr753677wad.1185818253620; Mon, 30 Jul 2007 10:57:33 -0700 (PDT) Received: by 10.114.121.8 with HTTP; Mon, 30 Jul 2007 10:57:33 -0700 (PDT) Message-ID: <7a14509e0707301057t2cbfa504m9508a3f8ee968ab6@mail.gmail.com> Date: Mon, 30 Jul 2007 13:57:33 -0400 From: "Joe Attardi" To: java-user@lucene.apache.org Subject: Re: Running query text through an Analyzer without QueryParser? In-Reply-To: <359a92830707301049pda15bb6s37741bd2242b439a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24897_25611369.1185818253596" References: <7a14509e0707300752r442111d3x9366441d6c40e12@mail.gmail.com> <359a92830707301049pda15bb6s37741bd2242b439a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24897_25611369.1185818253596 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline So then would I just concatenate the tokens together to form the query text? -- Joe Attardi jattardi@gmail.com http://thinksincode.blogspot.com/ On 7/30/07, Erick Erickson wrote: > > Would this work? > > TokenStream ts = StandardAnalyzer.tokenStream(); > while ((Token tok = ts.next()) != null) { > do whatever > } > > Best > Erick > > On 7/30/07, Joe Attardi wrote: > > > > Following up on my recent question. It has been suggested to me that I > can > > run the query text through an Analyzer without using the QueryParser. > For > > example, if I know what field to be searched I can create a PrefixQuery > or > > WildcardQuery, but still want to process the search text with the same > > Analyzer that did the indexing. How do I run a query through an Analyzer > > without using the QueryParser... is this possible? > > > ------=_Part_24897_25611369.1185818253596--