On Mon, Oct 25, 2010 at 3:41 PM, Mathias Walter <mathias.wal...@gmx.net> wrote:

> How do I use it with Solr, i. e. how to set up a schema.xml using a custom 
> AttributeFactory?
>

at the moment there is no way to specify an AttributeFactory
(AttributeFactoryFactory? heh) in the schema.xml, nor do the
TokenizerFactories have any way to use any but the default.

So, in order to do this at the moment, you need to make a custom
TokenizerFactory hardwired to your AttributeFactory... take a look at
KeywordTokenizerFactory, you could make MyKeywordTokenizerFactory that
instead of invoking:

new KeywordTokenizer(input);

in its create() method, would use the
KeywordTokenizer(AttributeFactory, Reader, int) ctor with your custom
AttributeFactory.

Reply via email to