On 7/21/06, Andrew May <[EMAIL PROTECTED]> wrote:

Well, that explains why I wasn't getting any variations when using the gradient 
formatter.
Also, creating the QueryScorer with the fieldName prevents highlights from 
appearing where
they shouldn't - e.g. when searching for +title:management +journal:quarterly I 
was seeing
"Management" highlighted in my journal field as well as the title.

Interesting--I wasn't aware that it affected that.

Is there much of an extra cost in using a scorer created with the IndexReader 
and fieldName?

I don't expect so, but I'm not entirely sure.  Regardless, I think the
additional functionality (and field-specific highlighting) is
sufficient reason to enable it by default.  If term lookup is slow,
that can be fixed in the future with a cache.

-Mike

Reply via email to