[ 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 <code>null</code> */ - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]