Created
June 16, 2011 20:45
-
-
Save jrochkind/1030231 to your computer and use it in GitHub Desktop.
Blacklight unstemmed_overrides, with relevant solrconfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are over-rides sent to Solr when in :unstemmed_search mode | |
# They need to be kind of carefully calibrated with the settings in Solr | |
# and Blacklight for individual search types, sorry it's a bit fragile. | |
config[:unstemmed_overrides] = { | |
"title_qf" => [ | |
"title1_unstem^80", | |
"title2_unstem^60", | |
"title3_unstem^30", | |
"title_series_unstem^25" | |
], | |
"subject_qf" => "subject_unstem^40", | |
"series_qf" => "title_series_unstem^10", | |
# this 'qf' will be used for default 'all fields' search | |
# when in unstemmed mode, over-riding the qf defaults set | |
# in solrconfig.xml, which include some stemmed fields. | |
"qf" => [ | |
'title1_unstem^80', | |
'title2_unstem^60', | |
'title3_unstem^20', | |
'author_unstem^90', | |
'author2_unstem^40', | |
'subject_unstem^20', | |
'title_series_unstem^10', | |
'isbn_t', | |
'issn', | |
'issn_related', | |
'local_call_number_t', | |
'oclcnum_t', | |
'lccn', | |
'text_unstem^2', | |
'text_extra_boost_unstem^6' | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<requestHandler name="search" class="solr.SearchHandler" default="true" > | |
<lst name="defaults"> | |
<str name="defType">dismax</str> | |
<str name="echoParams">explicit</str> | |
<str name="q.alt">*:*</str> | |
<str name="mm">3<-1 6<80%</str> | |
<str name="qf"> | |
title1_unstem^80 | |
title2_unstem^60 | |
title3_unstem^20 | |
title1_t^30 | |
title2_t^25 | |
title3_t^10 | |
author_unstem^90 | |
author2_unstem^40 | |
subject_unstem^20 | |
subject_t^10 | |
title_series_unstem^10 | |
title_series_t^5 | |
isbn_t | |
issn | |
issn_related | |
local_call_number_t | |
oclcnum_t | |
lccn | |
text | |
text_unstem^2 | |
text_extra_boost_t^4 | |
text_extra_boost_unstem^6 | |
</str> | |
<!-- ...ommitted irrelevant parts... --> | |
<!-- Blacklight-search specific values, will be used as Solr LocalParams --> | |
<str name="title_qf"> | |
title1_unstem^80 | |
title2_unstem^60 | |
title3_unstem^30 | |
title1_t^30 | |
title2_t^25 | |
title3_t^10 | |
title_series_unstem^25 | |
title_series_t^10 | |
</str> | |
<str name="title_pf"> | |
title_exactmatch^500 | |
title1_unstem^320 | |
title2_unstem^240 | |
title3_unstem^160 | |
title_series_unstem^120 | |
title1_t^60 | |
title2_t^50 | |
title3_t^20 | |
title_series_t^30 | |
</str> | |
<str name="series_qf"> | |
title_series_unstem^10 | |
title_series_t | |
</str> | |
<str name="series_pf"> | |
title_series_unstem^100 | |
title_series_t^20 | |
</str> | |
<str name="author_qf"> | |
author_unstem^80 | |
author2_unstem^40 | |
</str> | |
<str name="author_pf"> | |
author_unstem^400 | |
author2_unstem^240 | |
</str> | |
<str name="subject_qf"> | |
subject_unstem^40 | |
subject_t^15 | |
</str> | |
<str name="subject_pf"> | |
subject_unstem^120 | |
subject_t^30 | |
</str> | |
<str name="numbers_qf"> | |
isbn_t^10 | |
issn^10 | |
oclcnum_t^10 | |
lccn^10 | |
local_call_number_t^10 | |
issn_related^5 | |
other_number_unstem | |
</str> | |
<str name="numbers_pf"> | |
local_call_number_t^50 | |
other_number_unstem^10 | |
lccn^10 | |
</str> | |
</lst> | |
<arr name="last-components"> | |
<str>spellcheck</str> | |
</arr> | |
</requestHandler> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment