lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Wiker <>
Subject Re: Knowing what field caused the retrival of the document
Date Tue, 06 Aug 2013 08:36:27 GMT
If you were searching for single words (terms), you could use the 'tf'
function, by adding something like

matchesinname:tf(name, "whatever")

to the 'fl' parameter - if the 'name' field contains "whatever", the
(result) field 'matchesinname' will be 1.

On Tue, Aug 6, 2013 at 10:24 AM, Mysurf Mail <> wrote:

> I have two indexed fields in my document.- Name, Comment.
> The user searches for a phrase and I need to act differently if it appeared
> in the comment or the name.
> Is there a way to know why the document was retrieved?
> Thanks.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message