You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ts01 <ve...@clearwellsystems.com> on 2007/12/12 21:41:13 UTC
Handling Indexed, Stored and Tokenized fields
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
Re: Handling Indexed, Stored and Tokenized fields
Posted by Doron Cohen <cd...@gmail.com>.
Seems that PerFieldAnalyzerWrapper would be convenient here?
Doron
On Dec 12, 2007 10:41 PM, ts01 <ve...@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
>
>