Skip to content

Instantly share code, notes, and snippets.

@peaeater
Created June 18, 2013 23:46
Show Gist options
  • Save peaeater/5810540 to your computer and use it in GitHub Desktop.
Save peaeater/5810540 to your computer and use it in GitHub Desktop.
solrconfig.xml /suggest request handler
<!-- request handler to return typeahead suggestions -->
<requestHandler name="/suggest" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="defType">edismax</str>
<str name="rows">10</str>
<str name="fl">universe,collection,title,score</str>
<str name="qf">title_suggest^30 title_suggest_ngram^50.0 collection_suggest^15 collection_suggest_ngram^25.0</str>
<str name="pf">title_suggest_edge^50.0 collection_suggest_edge^25.0</str>
<str name="group">true</str>
<str name="group.field">universe_s</str>
<str name="group.field">collection_s</str>
<str name="group.field">title_s</str>
<str name="sort">score desc,title_sort asc</str>
<str name="group.sort">score desc</str>
</lst>
</requestHandler>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment