lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <>
Subject [jira] Updated: (LUCENE-580) Pre-analyzed fields
Date Wed, 25 Apr 2007 07:43:15 GMT


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:
>             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:
For additional commands, e-mail:

View raw message