Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 98093 invoked from network); 29 Apr 2007 02:52:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2007 02:52:38 -0000 Received: (qmail 58265 invoked by uid 500); 29 Apr 2007 02:52:43 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 58220 invoked by uid 500); 29 Apr 2007 02:52:43 -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 58209 invoked by uid 99); 29 Apr 2007 02:52:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2007 19:52:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2007 19:52:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A9189714076 for ; Sat, 28 Apr 2007 19:52:15 -0700 (PDT) Message-ID: <9436594.1177815135689.JavaMail.jira@brutus> Date: Sat, 28 Apr 2007 19:52:15 -0700 (PDT) From: "Karl Wettin (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-580) Pre-analyzed fields In-Reply-To: <28983883.1148709509879.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wettin updated LUCENE-580: ------------------------------- Attachment: lucene-580.patch A patch that supports omitting norms. /** * Create a tokenized and indexed field that is not stored, optionally with * storing term vectors. * * @param name The name of the field * @param tokenStream The reader with the content + * @param index Must be tokenized or no norms. * @param termVector Whether term vector should be stored * @throws NullPointerException if name or reader is null */ - public Field(String name, TokenStream tokenStream, TermVector termVector) { + public Field(String name, TokenStream tokenStream, Index index, TermVector termVector) { if (name == null) throw new NullPointerException("name cannot be null"); if (tokenStream == null) throw new NullPointerException("tokenStream cannot be null"); + if (index != Index.TOKENIZED && index != Index.NO_NORMS) { + throw new IllegalArgumentException("index must be either TOKENIZED or NO_NORMS"); + } Also fixed some copy/paste related javadoc errors. > Pre-analyzed fields > ------------------- > > Key: LUCENE-580 > URL: https://issues.apache.org/jira/browse/LUCENE-580 > Project: Lucene - Java > Issue Type: Improvement > Components: Analysis > Affects Versions: 1.9 > Reporter: Karl Wettin > Assigned To: Michael Busch > Priority: Minor > Attachments: lucene-580.patch, lucene-580.patch, preanalyze.tar, trunk.diff > > > Adds the possibility to set a TokenStream at Field constrution time, available as tokenStreamValue in addition to stringValue, readerValue and binaryValue. > There might be some problems with mixing stored fields with the same name as a field with tokenStreamValue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org