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:
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"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType>
Now restart your Solr and go to the analyzer. Next, choose your defined field type,...