Time for action – playing with a term suggester

A very simple way to start playing directly with terms is to configure a small auto-suggester (the third now), this time directly based on term enumeration and somewhat similar to the facet-based suggester seen at the beginning of this chapter.

  1. For simplicity, we will define a new core named paintings_terms. We need not post new data here, so we will point it to the index at /SolrStarterBook/solr-app/chp06/paintings/data. We will copy the same schema.xml configuration, but we need to modify our solrconfig.xml file a little in order to enable a search handler specific for handling terms, as shown in the following code:
    <searchComponent name="terms" class="solr.TermsComponent" /> <requestHandler name="/terms" ...

Get Apache Solr Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.