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.
- 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.xmlconfiguration, but we need to modify our
solrconfig.xmlfile 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" ...