Highlighting parameters
Is there a way I can specify separate configuration for 2 different fields. For field 1 I wan to display only 100 chars, Field 2 200 chars
Re: Highlighting parameters
Yes Some parameters may be overriden on a per-field basis with the following syntax: f.fieldName.originalParam=value http://wiki.apache.org/solr/HighlightingParameters Is there a way I can specify separate configuration for 2 different fields. For field 1 I wan to display only 100 chars, Field 2 200 chars
Re: Highlighting parameters
Is there a way I can specify separate configuration for 2 different fields. For field 1 I wan to display only 100 chars, Field 2 200 chars yes with the parameter accepts per-field overrides. the syntax is http://wiki.apache.org/solr/HighlightingParameters#HowToOverride f.TEXT.hl.maxAlternateFieldLength=80f.CATEGORY.hl.maxAlternateFieldLength=100
Highlighting parameters wiki
The wiki entry for hl.highlightMultiTerm: http://wiki.apache.org/solr/HighlightingParameters#hl.highlightMultiTerm doesn't appear to be correct. It says: If the SpanScorer is also being used, enables highlighting for range/wildcard/fuzzy/prefix queries. Default is false. But the code in DefaultSolrHighlighter (both on the 1.4 branch that I'm using and in the trunk) does: Boolean highlightMultiTerm = request.getParams().getBool(HighlightParams.HIGHLIGHT_MULTI_TERM, true); if(highlightMultiTerm == null) { highlightMultiTerm = false; } which looks to me like like it's going to default to true, since getBool will never return null, and if it gets a null value from the parameters internally, it will return true. Shall I file a Jira on this one? Perhaps it's easier just to fix the Wiki page? Steve -- Stephen Green http://thesearchguy.wordpress.com
Re: Highlighting parameters wiki
(10/07/27 23:16), Stephen Green wrote: The wiki entry for hl.highlightMultiTerm: http://wiki.apache.org/solr/HighlightingParameters#hl.highlightMultiTerm doesn't appear to be correct. It says: If the SpanScorer is also being used, enables highlighting for range/wildcard/fuzzy/prefix queries. Default is false. But the code in DefaultSolrHighlighter (both on the 1.4 branch that I'm using and in the trunk) does: Boolean highlightMultiTerm = request.getParams().getBool(HighlightParams.HIGHLIGHT_MULTI_TERM, true); if(highlightMultiTerm == null) { highlightMultiTerm = false; } which looks to me like like it's going to default to true, since getBool will never return null, and if it gets a null value from the parameters internally, it will return true. Shall I file a Jira on this one? Perhaps it's easier just to fix the Wiki page? Steve Hi Steve, Please just fix the wiki page. Thank you for reporting this! Koji -- http://www.rondhuit.com/en/