O'Reilly logo

Apache Solr Beginner's Guide by Alfredo Serafini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required