: > Yes, with a little bit of work (making a Solr Filter Factory or
: > Tokenizer factory) you can use any Lucene filter, tokenizer, or
: > analyzer.
:
: ok. If my project actually happens I'll do my best to contribute such
: changes if they make sense to Solr.

Just to clarify: there's no coding involved to use an existing analyzer,
you can refrence it directly from your schema file.

if you want to dynamicly create a tokenizer/analyzer chain in your config,
then you need to create a small factory for each tokenizer or filter.
here's an example of how simple those factories can be.  straight from the
Solr code base...

        public class StandardTokenizerFactory extends BaseTokenizerFactory {
          public TokenStream create(Reader input) {
            return new StandardTokenizer(input);
          }
        }

http://svn.apache.org/viewcvs.cgi/incubator/solr/trunk/src/java/org/apache/solr/analysis/StandardTokenizerFactory.java?rev=382610&view=markup


-Hoss

Reply via email to