lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen" <cdor...@gmail.com>
Subject Re: Handling Indexed, Stored and Tokenized fields
Date Wed, 12 Dec 2007 22:21:58 GMT
Seems that PerFieldAnalyzerWrapper would be convenient here?

Doron

On Dec 12, 2007 10:41 PM, ts01 <venkat@clearwellsystems.com> wrote:

>
> Hi,
>
> We have a requirement to index as well as store multiple fields in a
> document, each with its own special tokenizer. The following seems to
> provide a way to index multiple fields each with its own tokenizer:
>
> Field(String name, Reader reader)
>
> The following seems to provide a way to Index and Store, but using the
> default tokenizer of the entire document, when index is set to
> Index.TOKENIZED.
>
> Field(String name, String value, Store store, Index index)
>
> The following is what we need, with store.STORED and index.TOKENIZED with
> specific reader.
>
> Field(String name, String value, Store store, Index index, Reader reader)
>
> Assuming that this capability does not exist, we added some code to the
> Field class, IndexWriter class and to the AbstractField class to provide
> this capability. We'd be happy to contribute this to the next Open Source
> release.
>
> Another possibility was to create two fields: field_indexed and
> field_stored
> for each document, but that would be an inconvenient workaround.
>
> Is this of interest to folks?
>
> Thanks.
>
> --
> View this message in context:
> http://www.nabble.com/Handling-Indexed%2C-Stored-and-Tokenized-fields-tp14303464p14303464.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message