org.apache.solr.handler.component

Class TermsComponent

  • All Implemented Interfaces:
    SolrInfoMBean, NamedListInitializedPlugin


    public class TermsComponent
    extends SearchComponent
    Return TermEnum information, useful for things like auto suggest.
     <searchComponent name="termsComponent" class="solr.TermsComponent"/>
     
     <requestHandler name="/terms" class="solr.SearchHandler">
       <lst name="defaults">
         <bool name="terms">true</bool>
       </lst>
       <arr name="components">
         <str>termsComponent</str>
       </arr>
     </requestHandler>
    See Also:
    See Lucene's TermEnum class