Re: Knowing what field caused the retrival of the document

2013-08-06 Thread Raymond Wiker
;> terms >> occur where in a document, but that adds more overhead to the index for >> "stored term vectors". >> >> -- Jack Krupansky >> >> -Original Message- >> From: Mysurf Mail >> Sent: Tuesday, August 06, 2013 5:59 AM >> To: solr-

Re: Knowing what field caused the retrival of the document

2013-08-06 Thread Jeff Wartes
You could also use the Solr term sectors component to get info on what >terms >occur where in a document, but that adds more overhead to the index for >"stored term vectors". > >-- Jack Krupansky > >-Original Message- >From: Mysurf Mail >Sent: Tuesday, Au

Re: Knowing what field caused the retrival of the document

2013-08-06 Thread Jack Krupansky
ed term vectors". -- Jack Krupansky -Original Message- From: Mysurf Mail Sent: Tuesday, August 06, 2013 5:59 AM To: solr-user@lucene.apache.org Subject: Re: Knowing what field caused the retrival of the document But what if this for multiple words ? I am guessing solr knows why the docum

Re: Knowing what field caused the retrival of the document

2013-08-06 Thread Mysurf Mail
But what if this for multiple words ? I am guessing solr knows why the document is there since I get to see the paragraph in the highlight.(hl) section. On Tue, Aug 6, 2013 at 11:36 AM, Raymond Wiker wrote: > If you were searching for single words (terms), you could use the 'tf' > function, by

Re: Knowing what field caused the retrival of the document

2013-08-06 Thread Raymond Wiker
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 M

Knowing what field caused the retrival of the document

2013-08-06 Thread Mysurf Mail
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.