lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Is "solr.AnalyzerName" expansion supposed to work for Analyzers?
Date Sat, 10 Sep 2016 04:15:29 GMT
I can't see a reason why it should be different, but:

This works
    <fieldType name="text_basic" class="solr.TextField">
        <analyzer>
            <tokenizer class="solr.LowerCaseTokenizerFactory" />
        </analyzer>
   </fieldType>

This does not:
    <fieldType name="text_basic" class="solr.TextField">
        <analyzer class="solr.SimpleAnalyzer"/>
    </fieldType>

This does work again:
    <fieldType name="text_basic" class="solr.TextField">
        <analyzer class="org.apache.lucene.analysis.core.SimpleAnalyzer"/>
    </fieldType>

Both LowerCaseTokenizerFactory and SimpleAnalyzer are in the same package.

Is this a bug or some sort of legacy decision?

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message