lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "AnalyzersTokenizersTokenFilters" by HossMan
Date Wed, 06 Mar 2013 19:47:01 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "AnalyzersTokenizersTokenFilters" page has been changed by HossMan:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters?action=diff&rev1=141&rev2=142

Comment:
Analyzer constructor rules

  === Specifying an Analyzer in the schema ===
  A Solr schema.xml file allows two methods for specifying the way a text field is analyzed.
(Normally only field types of `solr.TextField` will have Analyzers explicitly specified in
the schema):
  
-  1. Specifying the '''class name''' of an Analyzer — anything extending org.apache.lucene.analysis.Analyzer.
<<BR>> Example: <<BR>>
+  1. Specifying the '''class name''' of an Analyzer — This can be anything extending org.apache.lucene.analysis.Analyzer
which has either a default constructor, or a single argument constructor taking in a lucene
"Version" object <<BR>> Example: <<BR>>
   {{{
  <fieldtype name="nametext" class="solr.TextField">
    <analyzer class="org.apache.lucene.analysis.WhitespaceAnalyzer"/>

Mime
View raw message