Running your analyzer

Once you are done with configuring your Solr according to your use case, such as analyzers, tokenizers, and filters, you can actually test your configuration without indexing data. The Solr admin interface provides a very clean and easy way to test your configuration. Refer to the following screenshot to see analyzer page for core1:

Running your analyzer

Let's create a new field type and put the following configuration into schema.xml:

<fieldType name="mytextfield" class="solr.TextField"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.HyphenatedWordsFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/> ...

Get Apache Solr for Indexing Data now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.