(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 -- Check out "Query Log Visualizer" for Apache Solr http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html http://www.rondhuit.com/en/