lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: More about the TermVectorMapper
Date Tue, 30 Oct 2007 11:12:47 GMT

On Oct 29, 2007, at 8:51 PM, Karl Wettin wrote:

> 25 okt 2007 kl. 01.23 skrev Karl Wettin:
>> The use case is that I want a normalized frequency, and I'd like to  
>> do that by loading the factor from an IndexReader in setExpectations.
> Moving along in this code, how about passing down the current  
> document number to the mapper? Perhaps in setExpectations, perhaps  
> as a simple setter method.
> Really no big deal to handle that my self via an ad hoc setter  
> method, but I think it make sense that the mapper is aware of what  
> document it is working with, that the mapper is told when it is used  
> for a new/different document.

Seems reasonable, feel free to submit a patch.  Not sure if we need to  
worry too much back-compatibility, since it hasn't been released.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message