You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/03/10 17:27:12 UTC
[Solr Wiki] Trivial Update of "AnalyzersTokenizersTokenFilters" by
JoachimZiegler
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by JoachimZiegler:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
The comment on the change is:
Typos
------------------------------------------------------------------------------
== Specifying an Analyzer in the schema ==
- A Solr schema.xml file allows two methods for specifying they way a text field is analyzed. (Normally only fieldtypes of `solr.TextField` will have Analyzers explicitly specified 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]] {{{
<fieldtype name="nametext" class="solr.TextField">
@@ -59, +59 @@
</fieldtype>
}}}
- Any Analyzer, !TokenizerFactory, or !TokenFilterFactory may be specified using its full class name with package -- just make sure they are in Solr's classpath when you start your appserver. Classes in the "`org.apache.solr.analysis.*`" package can be referenced using the short alias "`solr.*`".
+ Any Analyzer, !TokenizerFactory, or !TokenFilterFactory may be specified using its full class name with package -- just make sure they are in Solr's classpath when you start your appserver. Classes in the `org.apache.solr.analysis.*` package can be referenced using the short alias `solr.*`.
If you want to use custom Tokenizers or !TokenFilters, you'll need to write a very simple factory that subclasses !BaseTokenizerFactory or !BaseTokenFilterFactory, something like this...
{{{