You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Karl Wettin (JIRA)" <ji...@apache.org> on 2007/04/25 09:43:15 UTC

[jira] Updated: (LUCENE-580) Pre-analyzed fields

     [ https://issues.apache.org/jira/browse/LUCENE-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wettin updated LUCENE-580:
-------------------------------

    Attachment: trunk.diff

An implementation suggestion. The project will not compile as there are two Fieldable implementations that does not implement the tokenStreamFactoryValue() method, LazyField and FieldForMerge. I suspect they could just return null values, but I leave it open as I'm not sure.

Patch contains:

public interface TokenStreamFactory {
  public abstract TokenStream factory() throws IOException;
}

/** Encapuslates a single instance of TokenStream that can be passed on ONCE. */
public class SimplePreAnalyzedField implements TokenStreamFactory {

/** Caches an instance of TokenStream in a List, reassembled to a TokenStream for each call to factory() */
public class CachedPreAnalyzedField implements TokenStreamFactory {


> 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: 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