Mailing List Archive

Excerpts
Hi,

My very trouble free upgrade to 0.20 has suffered from excerpts not
working. The symptom is that the exerpts are empty - no errors are thrown,
just empty strings get output. Could well be something on my end, just
wondered if anyone else had run into similar problems before I investigate
further.

Jon

----
Jonathan Peterson
Technical Manager, BMJ Knowledge, +44 (0)20 7383 6092
jpeterson@bmjgroup.com

_______________________________________________________________________

This email and any attachments are confidential and intended solely for the addressee. They may not be disclosed to, used by or copied in any way by anyone other than the intended recipient. If you have received this email in error please notify postmaster@bmjgroup.com and delete the email transmission immediately.

Any views expressed in this email are those of the individual and may not represent those of the BMJ Publishing Group Ltd.

Computer viruses can be transmitted by email. The recipient should check this email and any attachments for presence of viruses.The BMJ Publishing Group Ltd accepts no liability for damage caused by any virus transmitted by this email. Emails sent or received by the BMJ Publishing Group are monitored.

BMJ Publishing Group Limited
A private limited company, registered in England and Wales under registered number 03102371
Registered office: BMA House, Tavistock Square, London WC1H 9JR, UK. http://bmjgroup.bmj.com
_______________________________________________________________________
Excerpts [ In reply to ]
On Mar 19, 2007, at 6:59 AM, Jonathan Peterson wrote:

> My very trouble free upgrade to 0.20 has suffered from excerpts not
> working. The symptom is that the exerpts are empty - no errors are
> thrown,
> just empty strings get output. Could well be something on my end, just
> wondered if anyone else had run into similar problems before I
> investigate
> further.

You can now use Highlighter to highlight multiple fields. They are
accessed like so...

while ( my $hit = $hits->fetch_hit_hashref ) {
print "$hit->{excerpts}{$FIELD_NAME}\n";
}

... rather than via $hit->{excerpt}, which no longer stores anything.

Was that the issue?

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/