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 Wed, 25 Apr 2007 07:43: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: 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


Mime
View raw message