[Ferret-talk] Which field(s) matched?

Mark Reginald James mrj at bigpond.net.au
Thu Apr 10 11:33:42 EDT 2008


Robert Hulme wrote:
> Is there a way to discover which fields in a document matched the search 
> that was performed?
> 
> I've just started with Ferret, but so far I can only get back the ids of 
> the documents that were matched (along with the score).
> 
> I'm aware there is a highlighting method, but I was hoping for something 
> computer readable (unless I'm misunderstanding what data can be gained 
> from that method).

I've implemented a field_scores hash that can be returned along with
each document and aggregate score. It's only currently working in
Ferret 0.11.4.



More information about the Ferret-talk mailing list