lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-580) Pre-analyzed fields
Date Sun, 29 Apr 2007 02:52:15 GMT

     [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message