Hi,  What is the significance of Analyzer  class  attribute?

When I specify analyzer class in schema,  something like below and do
analysis on this field in analysis page : I cant  see verbose output on
tokenizer and filters

<fieldType name="text_chinese" class="solr.TextField">
      <analyzer
class="org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer">
  <tokenizer class="solr.SmartChineseSentenceTokenizerFactory"/>
  <filter class="solr.SmartChineseWordTokenFilterFactory"/>
  </analyzer>
    </fieldType>


*But if i don't add analyzer class, I can see the verbose output based on
token and filters applied.*

<fieldType name="text_chinese" class="solr.TextField">
      <analyzer>
  <tokenizer class="solr.SmartChineseSentenceTokenizerFactory"/>
  <filter class="solr.SmartChineseWordTokenFilterFactory"/>
  </analyzer>
    </fieldType>

Why is it that I cant see for above case? What happens when I specify
Analyzer class?  Does it take any default if i do not mention class
attribute in analyzer tag?



Thanks & Regards
Rajani

Reply via email to