Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 27193 invoked from network); 5 Aug 2009 21:12:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Aug 2009 21:12:02 -0000 Received: (qmail 97312 invoked by uid 500); 5 Aug 2009 21:12:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 97230 invoked by uid 500); 5 Aug 2009 21:12:06 -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 97220 invoked by uid 99); 5 Aug 2009 21:12:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 21:12:06 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [132.249.20.114] (HELO postal.sdsc.edu) (132.249.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 21:11:56 +0000 Received: from mta.ad.sdsc.edu (mta.ad.sdsc.edu [132.249.69.68]) by postal.sdsc.edu (8.11.7/8.11.7/server/78) with ESMTP id n75LBYH22678 for ; Wed, 5 Aug 2009 14:11:34 -0700 (PDT) Received: from MBX.ad.sdsc.edu ([fe80::85f9:e068:7dc0:4fe0]) by mta.ad.sdsc.edu ([132.249.69.68]) with mapi; Wed, 5 Aug 2009 14:11:29 -0700 From: Christopher Condit To: "java-user@lucene.apache.org" Date: Wed, 5 Aug 2009 14:11:27 -0700 Subject: RE: Analysis Question Thread-Topic: Analysis Question Thread-Index: AcoKM7EwA286tmMsQLmWW5siUeggvAAGNb2gAvDNzkA= Message-ID: References: <008201ca0a33$b1f0d240$15d276c0$@com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Perhaps a better question: let's say I have a few thousand terms or phrases= . I want to prefer documents with these phrases in my search results over d= ocuments that do not have these terms or phrases. What's the best way to ac= complish this? Thanks, -Chris > -----Original Message----- > From: Christopher Condit [mailto:condit@sdsc.edu] > Sent: Tuesday, July 21, 2009 2:48 PM > To: java-user@lucene.apache.org > Subject: Analysis Question >=20 > I'm trying to implement an analyzer that will compute a score based on > vocabulary terms in the indexed content (ie a document field with more > terms in the vocabulary will score higher). Although I can see the > tokens I can't seem to access the document from the analyzer to set a > new field on it after I compute the value. Is there a way to do this > from an Analyzer? Or is there another preferred way to do this? > Thanks, > -Chris >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org