Hi,

hl.alternateField and hl.maxAlternateFieldLength would be useful.

http://wiki.apache.org/solr/HighlightingParameters

Ahmet


On Sunday, September 14, 2014 9:35 PM, SolrUser1543 <osta...@gmail.com> wrote:



Suppose I have the following fields : 

text,author,title

users performs a query on all those fileds : 

...?q=(text:XX OR author:XX OR title:XX)

if this query has a match in 'text' field , so highligter will generate a
hit preview based on this field , which is fine . 

But suppose a query matched an 'author' field , so the preview will not be 
much intresting . 
In this case I would like to show something else e.g. first 3 lines of
'text' filed. 

What will be the best way to achive this ? 







--
View this message in context: 
http://lucene.472066.n3.nabble.com/Altenative-preview-for-specific-fields-tp4158771.html
Sent from the Solr - User mailing list archive at Nabble.com.  

Reply via email to