mirror of https://github.com/apache/lucene.git
merge from r1467413
* SOLR-4680: Correct example spellcheck configuration's queryAnalyzerFieldType and use "text" field instead of narrower "name" field (ehatcher, Mark Bennett) * SOLR-4702: Fix example /browse "Did you mean?" suggestion feature. (ehatcher, Mark Bennett) (note, I don't have JDK7 available currently, but merge from 4x r1467413 looks good) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1467416 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a79c85d338
commit
dfd50b7438
|
@ -180,6 +180,12 @@ Bug Fixes
|
|||
|
||||
* SOLR-4695: Fix core admin SPLIT action to be useful with non-cloud setups (shalin)
|
||||
|
||||
* SOLR-4680: Correct example spellcheck configuration's queryAnalyzerFieldType and
|
||||
use "text" field instead of narrower "name" field (ehatcher, Mark Bennett)
|
||||
|
||||
* SOLR-4702: Fix example /browse "Did you mean?" suggestion feature. (ehatcher, Mark Bennett)
|
||||
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -1236,7 +1236,7 @@
|
|||
-->
|
||||
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
||||
|
||||
<str name="queryAnalyzerFieldType">textSpell</str>
|
||||
<str name="queryAnalyzerFieldType">text_general</str>
|
||||
|
||||
<!-- Multiple "Spell Checkers" can be declared and used by this
|
||||
component
|
||||
|
@ -1245,7 +1245,7 @@
|
|||
<!-- a spellchecker built from a field of the main index -->
|
||||
<lst name="spellchecker">
|
||||
<str name="name">default</str>
|
||||
<str name="field">name</str>
|
||||
<str name="field">text</str>
|
||||
<str name="classname">solr.DirectSolrSpellChecker</str>
|
||||
<!-- the spellcheck distance measure used, the default is the internal levenshtein -->
|
||||
<str name="distanceMeasure">internal</str>
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
#set($mltResults = $response.response.get("moreLikeThis"))
|
||||
#set($annotate = $params.get("annotateBrowse"))
|
||||
#parse('query.vm')
|
||||
#if($response.response.spellcheck.suggestions and $response.response.spellcheck.suggestions.size() > 0)
|
||||
Did you mean <a href="#url_for_home?q=$esc.url($response.response.spellcheck.suggestions.collation)#if($list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#debug">$response.response.spellcheck.suggestions.collation</a>?
|
||||
#end
|
||||
#parse('did_you_mean.vm')
|
||||
|
||||
<div class="navigators">
|
||||
#parse("facets.vm")
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#set($dym = $response.response.spellcheck.suggestions.collation.collationQuery)
|
||||
#if($dym)
|
||||
Did you mean <a href="#{url_for_home}#{lensNoQ}&q=$esc.url($dym)">$esc.html($dym)</a>?
|
||||
#end
|
Loading…
Reference in New Issue