Thanks a lot Koji.

On 8/25/2011 5:04 PM, Koji Sekiguchi wrote:
(11/08/26 2:32), Val Minyaylo wrote:
Hi there,
I am trying to utilize highlighting alternateField and can't get highlights on the results from targeted fields. Is this expected behavior or am I understanding alternateFields wrong?

Yes, it is expected behavior.

solrconfig.xml:
<str name="f.description.hl.alternateField">description_highlighting</str>
<str name="f.description.hl.alternateFieldLen">100</str>

With &hl=on&hl.fl=description parameters, you can get the first 100 chars of the (raw) stored description_highlighting field value if highlighter cannot generate
snippets on description field for some reason.

koji

Reply via email to