Skip to content

sul-dlss-deprecated/solr-tokenizing-suggester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solr Tokenizing Suggester

Build Status

Used in Stanford Library's IIIF Content Search implementation.

Usage

  1. Clone the project
 $ git clone git://github.com/sul-dlss/solr-tokenizing-suggester.git
  1. Run the maven installation
$ mvn clean install
  1. Include the generated jar (target/tokenizing-suggest-v1.0.jar) in your solrconfig.xml and configure
...
<lib dir="${solr.install.dir:../../../..}/contrib" regex="tokenizing-suggest-.*\.jar" />
...
<searchComponent name="suggest" class="solr.SuggestComponent">
 <lst name="suggester">
   <str name="name">mySuggester</str>
   <str name="lookupImpl">edu.stanford.dlss.search.suggest.analyzing.TokenizingLookupFactory</str>
   <str name="dictionaryImpl">DocumentDictionaryFactory</str>
   <str name="suggestAnalyzerFieldType">textSuggest</str>
   <str name="suggestTokenizingAnalyzerFieldType">textSuggestTokenizer</str>
   <str name="contextField">druid</str>
   <str name="field">ocrtext_suggest</str>
 </lst>
</searchComponent>