Used in Stanford Library's IIIF Content Search implementation.
- Clone the project
$ git clone git://github.com/sul-dlss/solr-tokenizing-suggester.git
- Run the maven installation
$ mvn clean install
- Include the generated jar (
target/tokenizing-suggest-v1.0.jar
) in yoursolrconfig.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>